Skip to content

Commit

Permalink
Merge pull request #13 from ViktorSvertoka/user-page
Browse files Browse the repository at this point in the history
Feat(jsx) Added new functionality
  • Loading branch information
ViktorSvertoka authored Sep 16, 2023
2 parents c4a9509 + 80ed085 commit b7bf051
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/pages/UserPage/UserPage.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { Container, Title, Avatar } from "./UserPage.styled";

const UserPage = () => {
return (
<Container>

<Title>Profile Settings</Title>
<div style={{
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
flexDirection: 'column',
marginTop: '40px',
}}>
<Avatar><svg fill="var(--normal-color)" width="62" height="62"> <use href="../../../src/images/sprite.svg#icon-user"></use> </svg></Avatar>
<svg style={{ position: 'relative', top: '-13' }} width="24" height="24"> <use href="../../../src/images/sprite.svg#icon-add-avatar"></use> </svg>
<p style={{color: '#EFEDE8'}}>Anna Rybachok</p>
<p style={{color: 'var(--normal-color)'}}>User</p>
</div>

</Container>
)
}

export default UserPage;
26 changes: 26 additions & 0 deletions src/pages/UserPage/UserPage.styled.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import styled from 'styled-components';

export const Container = styled.div`
/* background-color: #040404; */
`;

export const Title = styled.h2`
color: #EFEDE8;
font-family: RobotoBold;
font-size: 24px;
line-height: 28px;
margin-left: 20px;
margin-top: 110px;
`;

export const Avatar = styled.div`
width: 90px;
height: 90px;
border-radius: 100px;
border: 1px solid #E6533C;
display: flex;
justify-content: center;
align-items: center;
`;


0 comments on commit b7bf051

Please sign in to comment.