-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c984d8d
commit c128186
Showing
8 changed files
with
164 additions
and
9 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import React from "react"; | ||
import logo from "@/public/Icons/logo.svg"; | ||
import Image from "next/image"; | ||
import Link from "next/link"; | ||
import styled from "styled-components"; | ||
|
||
const Layout = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
gap: 16px; | ||
`; | ||
|
||
const Text = styled.p` | ||
color: var(--black, #000); | ||
font-family: Pretendard; | ||
font-size: 16px; | ||
font-weight: 400; | ||
line-height: 24px; /* 150% */ | ||
margin-bottom: 30px; | ||
`; | ||
|
||
const LinkStyle = { | ||
color: "#6D6AFE", | ||
fontSize: "16px", | ||
fontWeight: 600, | ||
}; | ||
|
||
function LogoBox() { | ||
return ( | ||
<Layout> | ||
<Link href={`/`}> | ||
<Image src={logo} alt="logo" width={210} height={38}></Image> | ||
</Link> | ||
<Text> | ||
회원이 아니신가요?{" "} | ||
<Link style={LinkStyle} href={`/`}> | ||
회원 가입하기 | ||
</Link> | ||
</Text> | ||
</Layout> | ||
); | ||
} | ||
|
||
export default LogoBox; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React, { ReactNode } from "react"; | ||
import styled from "styled-components"; | ||
|
||
const Submit = styled.button` | ||
width: 100%; | ||
padding: 16px 20px; | ||
border-radius: 8px; | ||
background: var( | ||
--gra-purpleblue-to-skyblue, | ||
linear-gradient(91deg, #6d6afe 0.12%, #6ae3fe 101.84%) | ||
); | ||
border: none; | ||
color: var(--Grey-Light, #f5f5f5); | ||
font-size: 18px; | ||
`; | ||
|
||
interface SubmitBtnProps { | ||
children: ReactNode; | ||
} | ||
|
||
function SubmitBtn({ children }: SubmitBtnProps) { | ||
return <Submit type="submit">{children}</Submit>; | ||
} | ||
|
||
export default SubmitBtn; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import React from "react"; | ||
import Input from "@/src/components/signinPage/Input"; | ||
import styled from "styled-components"; | ||
import SubmitBtn from "@/src/components/signinPage/SubmitBtn"; | ||
import LogoBox from "@/src/components/signinPage/LogoBox"; | ||
import { useForm } from "react-hook-form"; | ||
|
||
const BackGround = styled.div` | ||
width: 100%; | ||
padding: 150px 0px 253px 0px; | ||
margin: 0 auto; | ||
background: var(--Linkbrary-bg, #f0f6ff); | ||
`; | ||
|
||
const Layout = styled.div` | ||
width: 400px; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
margin: 0 auto; | ||
`; | ||
|
||
const Form = styled.form` | ||
display: flex; | ||
flex-direction: column; | ||
gap: 30px; | ||
`; | ||
function SigninPage() { | ||
return ( | ||
<BackGround> | ||
<Layout> | ||
<LogoBox /> | ||
<Form action=""> | ||
<Input | ||
label="이메일" | ||
id="user_email" | ||
type="email" | ||
placeholder="이메일을 입력해 주세요" | ||
></Input> | ||
<Input | ||
label="비밀번호" | ||
id="user_pw" | ||
type="password" | ||
placeholder="비밀번호를 입력해 주세요" | ||
></Input> | ||
<SubmitBtn>로그인</SubmitBtn> | ||
</Form> | ||
</Layout> | ||
</BackGround> | ||
); | ||
} | ||
|
||
export default SigninPage; |