Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added my page #5

Merged
merged 1 commit into from
Jun 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 79 additions & 0 deletions frontend/src/pages/settings.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
import Layout from "components/common/Layout";
import Navigation from "components/common/Navigation";

import styled from "@emotion/styled";
import Button from "components/common/Button";
import { hexToRgba } from "utils/color";

const ProfileCard = styled.div`
max-width: 1100px;
width: 100%;
height: 200px;
margin: 140px auto 0;
padding: 36px;
background-color: ${(props) => props.theme.color.white};
border-radius: 24px;
box-shadow: 0px 6px 16px ${(props) => hexToRgba(props.theme.color.primary700, 0.1)};
display: flex;
`;

const ProfilePicture = styled.div`
width: 128px;
height: 128px;
border-radius: 64px;
background-color: #d9d9d9;
margin-right: 28px;
`;

const InfoContainer = styled.div`
display: flex;
flex-direction: column;
`;

const ActionContainer = styled.div`
display: flex;
flex-direction: column;
flex: 1;
justify-content: space-between;
`;

const ButtonContainer = styled.div`
display: flex;
justify-content: space-between;
`;

const Name = styled.span`
font-size: 24px;
font-weight: 400;
margin-bottom: 4px;
`;

const Email = styled.span`
font-size: 16px;
font-weight: 100;
`;

function IndexPage() {
return (
<>
<Navigation />
<Layout>
<ProfileCard>
<ProfilePicture />
<ActionContainer>
<InfoContainer>
<Name>강대호</Name>
<Email>daeho@daeho.com</Email>
</InfoContainer>
<ButtonContainer>
<Button>비밀번호 변경</Button>
<Button variant="danger">로그아웃</Button>
</ButtonContainer>
</ActionContainer>
</ProfileCard>
</Layout>
</>
);
}

export default IndexPage;