-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(admin-ui): design the layout for api role management #327
- Loading branch information
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)', | ||
}, | ||
} |