Skip to content

Commit

Permalink
feat(admin-ui): design the layout for api role management #327
Browse files Browse the repository at this point in the history
  • Loading branch information
syntrydy committed Dec 2, 2021
1 parent 71de0da commit 96482db
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
14 changes: 14 additions & 0 deletions app/routes/Apps/Gluu/GluuRibbon.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from 'react'
import mystyle from './ribbon'
import { useTranslation } from 'react-i18next'

function GluuRibbon({ title, fromLeft, doTranslate }) {
const { t } = useTranslation()
return (
<div style={fromLeft ? mystyle.ribbon_left : mystyle.ribbon_right}>
{doTranslate ? t(title) : title}
</div>
)
}

export default GluuRibbon
28 changes: 28 additions & 0 deletions app/routes/Apps/Gluu/ribbon.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
export default {
ribbon_right: {
position: 'absolute',
top: '11px',
right: '-5px',
padding: '0.5rem',
width: '12rem',
background: '#00C49F',
zIndex: 3,
color: 'white',
borderRadius: '50px 0px 0px 50px',
textAlign: 'center',
boxShadow: '4px 4px 15px rgba(26, 35, 126, 0.2)',
},
ribbon_left: {
position: 'absolute',
top: '11px',
left: '-5px',
padding: '0.5rem',
width: '12rem',
background: '#00C49F',
zIndex: 3,
color: 'white',
borderRadius: '0px 50px 50px 0px',
textAlign: 'center',
boxShadow: '4px 4px 15px rgba(26, 35, 126, 0.2)',
},
}

0 comments on commit 96482db

Please sign in to comment.