Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit a652cc9

Browse files
committed
show profile informations
1 parent d4e82ef commit a652cc9

File tree

2 files changed

+64
-9
lines changed

2 files changed

+64
-9
lines changed
Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,37 @@
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";
53

6-
export default function Profile() : ReactElement {
4+
export default function Profile(): ReactElement {
5+
const user = {
6+
name: "Gimleux",
7+
groups: ["FAMILY", "ADMIN"]
8+
};
79

810
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>
1335
</Container>
1436
);
1537
}

src/style/helpers.scss

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,39 @@
22
text-shadow: none;
33
}
44

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+
538
.queer-banner{
639
color:white;
740
border-top: 5px solid $primary;

0 commit comments

Comments
 (0)