This repository was archived by the owner on Apr 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +64
-9
lines changed Expand file tree Collapse file tree 2 files changed +64
-9
lines changed Original file line number Diff line number Diff line change 1
- import React , { Props , ReactElement , useState } from "react" ;
2
- import { Container } from "react-bootstrap" ;
3
- import { genitiveOfWord } from "../../../background/methods/grammar/germanGrammar" ;
4
- import { SystemState } from "../../../background/redux/actions/sytemState" ;
1
+ import React , { ReactElement } from "react" ;
2
+ import { Container , Row , Button } from "react-bootstrap" ;
5
3
6
- export default function Profile ( ) : ReactElement {
4
+ export default function Profile ( ) : ReactElement {
5
+ const user = {
6
+ name : "Gimleux" ,
7
+ groups : [ "FAMILY" , "ADMIN" ]
8
+ } ;
7
9
8
10
return (
9
- < Container >
10
- < h2 >
11
- Profile
12
- </ h2 >
11
+ < Container className = "page-content" >
12
+ < Container fluid >
13
+ < Row className = "title-action mt-1" >
14
+ < h1 className = "mr-1 h4" >
15
+ My Profile
16
+ </ h1 >
17
+ < Button > Edit Informations</ Button >
18
+ </ Row >
19
+ </ Container >
20
+
21
+ < Container className = "profile-information-display p-0" >
22
+ < h2 className = "h3 pt-3 pb-3" >
23
+ { user . name }
24
+ </ h2 >
25
+ < dl >
26
+ < dt > Username</ dt >
27
+ < dd > { user . name } </ dd >
28
+ < dt > Groups</ dt >
29
+ < dd > { user . groups . map ( ( group : string ) => {
30
+ return group + " "
31
+ } ) }
32
+ </ dd >
33
+ </ dl >
34
+ </ Container >
13
35
</ Container >
14
36
) ;
15
37
}
Original file line number Diff line number Diff line change 2
2
text-shadow : none ;
3
3
}
4
4
5
+ .title-action {
6
+ display : flex ;
7
+ align-items : center ;
8
+ justify-content : space-between ;
9
+ }
10
+
11
+ .page-content {
12
+ display : flex ;
13
+ flex-direction : column ;
14
+ flex-grow : 1 ;
15
+ height : 100% ;
16
+ }
17
+
18
+ .profile-information-display dl {
19
+ display : flex ;
20
+ flex-wrap : wrap ;
21
+ padding : 20px 0 ;
22
+ }
23
+
24
+ .profile-information-display dl dt {
25
+ width : 25% ;
26
+ }
27
+
28
+ .profile-information-display dl dd {
29
+ width : 75% ;
30
+ }
31
+
32
+ .profile-information-display dl dt , .profile-information-display dl dd {
33
+ margin : 0 ;
34
+ padding : 0.75rem ;
35
+ border-bottom : 1px solid $secondary ;
36
+ }
37
+
5
38
.queer-banner {
6
39
color :white ;
7
40
border-top : 5px solid $primary ;
You can’t perform that action at this time.
0 commit comments