Skip to content

Commit 96482db

Browse files
committed
feat(admin-ui): design the layout for api role management #327
1 parent 71de0da commit 96482db

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

app/routes/Apps/Gluu/GluuRibbon.js

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import React from 'react'
2+
import mystyle from './ribbon'
3+
import { useTranslation } from 'react-i18next'
4+
5+
function GluuRibbon({ title, fromLeft, doTranslate }) {
6+
const { t } = useTranslation()
7+
return (
8+
<div style={fromLeft ? mystyle.ribbon_left : mystyle.ribbon_right}>
9+
{doTranslate ? t(title) : title}
10+
</div>
11+
)
12+
}
13+
14+
export default GluuRibbon

app/routes/Apps/Gluu/ribbon.js

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
export default {
2+
ribbon_right: {
3+
position: 'absolute',
4+
top: '11px',
5+
right: '-5px',
6+
padding: '0.5rem',
7+
width: '12rem',
8+
background: '#00C49F',
9+
zIndex: 3,
10+
color: 'white',
11+
borderRadius: '50px 0px 0px 50px',
12+
textAlign: 'center',
13+
boxShadow: '4px 4px 15px rgba(26, 35, 126, 0.2)',
14+
},
15+
ribbon_left: {
16+
position: 'absolute',
17+
top: '11px',
18+
left: '-5px',
19+
padding: '0.5rem',
20+
width: '12rem',
21+
background: '#00C49F',
22+
zIndex: 3,
23+
color: 'white',
24+
borderRadius: '0px 50px 50px 0px',
25+
textAlign: 'center',
26+
boxShadow: '4px 4px 15px rgba(26, 35, 126, 0.2)',
27+
},
28+
}

0 commit comments

Comments
 (0)