Skip to content

Commit

Permalink
[#18] 로그인 페이지 작업
Browse files Browse the repository at this point in the history
  • Loading branch information
seocylucky committed Aug 4, 2023
1 parent bcd2cb1 commit 9ff2617
Showing 1 changed file with 76 additions and 1 deletion.
77 changes: 76 additions & 1 deletion pages/signin.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,82 @@
import type { NextPage } from 'next';
import { styled } from 'styled-components';
import Spacing from '../components/reusable/Spacing';
import theme from '../styles/theme';
import TextInput from '../components/reusable/TextInput';
import SquareBtn from '../components/reusable/Buttons/SquareBtn';
import Link from 'next/link';
import { useState } from 'react';

const Signin: NextPage = () => {
return <h1>Signin Page</h1>;
const [email, setEmail] = useState<string>('');
const [password, setPassword] = useState<string>('');

return (
<Container>
<Spacing direction="vertical" size={68} />
<SigninTitle>로그인</SigninTitle>
<Spacing direction="vertical" size={16} />
<SigninText>숭차로에서 다양한 지식과 답변을 공유해보세요.</SigninText>
<Spacing direction="vertical" size={56} />
<SubText>이메일</SubText>
<Spacing direction="vertical" size={16} />
<TextInput type="email" width="640px" height="56px" />
<Spacing direction="vertical" size={32} />
<SubText>비밀번호</SubText>
<Spacing direction="vertical" size={16} />
<TextInput type="password" width="640px" height="56px" />
<Spacing direction="vertical" size={64} />
<BtnContainer>
<SquareBtn children="로그인" />
<FindFlex>
<Link href="/find">비밀번호 찾기</Link>
<span>|</span>
<Link href="/signup">회원가입</Link>
</FindFlex>
</BtnContainer>
</Container>
);
};

export default Signin;

const Container = styled.div`
width: 640px;
margin: 0 auto;
`;

const SigninTitle = styled.div`
color: var(--black, #1d1d1d);
font-size: 48px;
font-style: normal;
font-weight: 600;
line-height: normal;
`;

const SigninText = styled.div`
font-size: ${theme.fontStyles.Text_M.fontSize}px;
font-weight: ${theme.fontStyles.Text_M.fontWeight};
color: ${theme.colors.gray3};
`;

const SubText = styled.div`
font-size: ${theme.fontStyles.Text_L.fontSize}px;
font-weight: ${theme.fontStyles.Text_L.fontWeight};
color: ${theme.colors.black};
`;

const BtnContainer = styled.div`
display: flex;
flex-direction: row;
justify-content: space-between;
`;
const FindFlex = styled.div`
display: flex;
flex-direction: row;
gap: 24px;
align-items: center;
color: ${theme.colors.gray2};
font-size: ${theme.fontStyles.Text_M.fontSize}px;
font-weight: ${theme.fontStyles.Text_M.fontWeight};
`;

0 comments on commit 9ff2617

Please sign in to comment.