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

πŸ”€ 둜그인 νŽ˜μ΄μ§€ μ œμž‘ #5

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
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
17 changes: 17 additions & 0 deletions src/app/(page)/signin/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
'use client'

import React from 'react'
import * as S from './style'
import SignInItem from '@/components/Signin/organisms/SignInItem'

const Signin = () => {
return (
<S.Wrapper>
<S.FormContainer>
<SignInItem />
</S.FormContainer>
</S.Wrapper>
)
}

export default Signin
13 changes: 13 additions & 0 deletions src/app/(page)/signin/style.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import styled from '@emotion/styled'

export const Wrapper = styled.div`
padding: 70px 20px;
min-height: 100vh;
display: flex;
justify-content: center;
`

export const FormContainer = styled.div`
height: 100%;
width: 722px;
`
20 changes: 20 additions & 0 deletions src/components/Signin/atoms/FormItem/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import React from 'react'
import * as S from './style'
import Input from '@/components/common/Input'

interface Props {
text: string
type: string
placeholder: string
}

const FormItem = ({ text, type, placeholder }: Props) => {
return (
<S.Wrapper>
<S.Text>{text}</S.Text>
<Input type={type} placeholder={placeholder} />
</S.Wrapper>
)
}

export default FormItem
12 changes: 12 additions & 0 deletions src/components/Signin/atoms/FormItem/style.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import styled from '@emotion/styled'
import theme from '@/styles/theme'

export const Wrapper = styled.div`
width: 100%;
`

export const Text = styled.p`
${theme.text.title.smallB}
display: block;
margin-bottom: 24px;
`
24 changes: 24 additions & 0 deletions src/components/Signin/molecules/SignInForm/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import React from 'react'
import FormItem from '../../atoms/FormItem'
import * as S from './style'
import Button from '@/components/common/Button'

const SignInForm = () => {
return (
<S.Wrapper>
<FormItem
text='학ꡐ 이메일 μž…λ ₯ν•˜κΈ°'
type='email '
placeholder='이메일λ₯Ό μž…λ ₯ν•΄μ£Όμ„Έμš”'
/>
<FormItem
text='λΉ„λ°€λ²ˆν˜Έ μž…λ ₯ν•˜κΈ°'
type='password '
placeholder='λΉ„λ°€λ²ˆν˜Έλ₯Ό μž…λ ₯ν•΄μ£Όμ„Έμš”s'
/>
<Button text='확인' />
</S.Wrapper>
)
}

export default SignInForm
8 changes: 8 additions & 0 deletions src/components/Signin/molecules/SignInForm/style.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import styled from '@emotion/styled'

export const Wrapper = styled.div`
width: 100%;
display: flex;
flex-direction: column;
gap: 40px;
`
16 changes: 16 additions & 0 deletions src/components/Signin/molecules/SignInLogo/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import React from 'react'
import * as S from './style'
import { Logo } from '@/assets/svg'

const SignInLogo = () => {
return (
<S.Wrapper>
<S.LogoContainer>
<Logo />
</S.LogoContainer>
<S.Title>νšŒμ›κ°€μž…</S.Title>
</S.Wrapper>
)
}

export default SignInLogo
28 changes: 28 additions & 0 deletions src/components/Signin/molecules/SignInLogo/style.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import styled from '@emotion/styled'
import theme from '@/styles/theme'

export const Wrapper = styled.div`
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
gap: 20px;
width: 100%;
`

export const LogoContainer = styled.div`
display: flex;
justify-content: center;
align-items: center;
svg {
@media (max-width: 460px) {
width: 80%;
}
}
`

export const Title = styled.p`
${theme.text.title.largeM};
color: ${theme.color.main[800]};
text-align: center;
`
15 changes: 15 additions & 0 deletions src/components/Signin/organisms/SignInItem/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import React from 'react'

import SignInForm from '../../molecules/SignInForm'
import SignInLogo from '../../molecules/SignInLogo'

const SignInItem = () => {
return (
<div>
<SignInLogo />
<SignInForm />
</div>
)
}

export default SignInItem