Skip to content

Commit b7bf051

Browse files
Merge pull request #13 from ViktorSvertoka/user-page
Feat(jsx) Added new functionality
2 parents c4a9509 + 80ed085 commit b7bf051

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

src/pages/UserPage/UserPage.jsx

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { Container, Title, Avatar } from "./UserPage.styled";
2+
3+
const UserPage = () => {
4+
return (
5+
<Container>
6+
7+
<Title>Profile Settings</Title>
8+
<div style={{
9+
display: 'flex',
10+
justifyContent: 'center',
11+
alignItems: 'center',
12+
flexDirection: 'column',
13+
marginTop: '40px',
14+
}}>
15+
<Avatar><svg fill="var(--normal-color)" width="62" height="62"> <use href="../../../src/images/sprite.svg#icon-user"></use> </svg></Avatar>
16+
<svg style={{ position: 'relative', top: '-13' }} width="24" height="24"> <use href="../../../src/images/sprite.svg#icon-add-avatar"></use> </svg>
17+
<p style={{color: '#EFEDE8'}}>Anna Rybachok</p>
18+
<p style={{color: 'var(--normal-color)'}}>User</p>
19+
</div>
20+
21+
</Container>
22+
)
23+
}
24+
25+
export default UserPage;
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import styled from 'styled-components';
2+
3+
export const Container = styled.div`
4+
/* background-color: #040404; */
5+
`;
6+
7+
export const Title = styled.h2`
8+
color: #EFEDE8;
9+
font-family: RobotoBold;
10+
font-size: 24px;
11+
line-height: 28px;
12+
margin-left: 20px;
13+
margin-top: 110px;
14+
`;
15+
16+
export const Avatar = styled.div`
17+
width: 90px;
18+
height: 90px;
19+
border-radius: 100px;
20+
border: 1px solid #E6533C;
21+
display: flex;
22+
justify-content: center;
23+
align-items: center;
24+
`;
25+
26+

0 commit comments

Comments
 (0)