Skip to content

🎨 Design: κ°•μ•„μ§€ ν”„λ‘œν•„ 기본정보 μž…λ ₯νŽ˜μ΄μ§€ μΆ”κ°€ #62

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

Merged
merged 3 commits into from
Nov 21, 2024
Merged
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
27 changes: 1 addition & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/assets/add-dog-picture.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions src/pages/LoginPage/DogProfileSection/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import * as S from './styles'
import { ActionButton } from '~components/Button/ActionButton'
import AddDogPicture from '~assets/add-dog-picture.svg'
import TwoLineInput from '~components/Input/TwoLineInput'
import PrevButton from '~components/Button/PrevButton'
import { Typo24 } from '~components/Typo/index'

export default function DogProfileSection() {
return (
<S.DogProfileSection>
<S.PrevBtnWrapper>
<PrevButton />
</S.PrevBtnWrapper>
<S.TypoWrapper>
<Typo24 weight='700'>반렀견 κΈ°λ³Έ 정보λ₯Ό<br/> μ•Œλ €μ£Όμ„Έμš”!</Typo24>
</S.TypoWrapper>
<S.AddDogPictureBtnWrapper>
<S.AddDogPictureBtn>
<img src={AddDogPicture} alt="반렀견 사진 μΆ”κ°€" />
<div>반렀견 사진 μΆ”κ°€</div>
</S.AddDogPictureBtn>
</S.AddDogPictureBtnWrapper>
<S.InputArea>
<TwoLineInput placeholder='이름 μž…λ ₯'>이름 μž…λ ₯</TwoLineInput>
<S.DatePickerBtn>생년월일 선택</S.DatePickerBtn>
<TwoLineInput placeholder='ν•œμ€„ μ†Œκ°œ μž…λ ₯'>ν•œμ€„ μ†Œκ°œ μž…λ ₯</TwoLineInput>
</S.InputArea>
<ActionButton>λ‹€μŒ</ActionButton>
</S.DogProfileSection>
)
}
65 changes: 65 additions & 0 deletions src/pages/LoginPage/DogProfileSection/styles.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
import { styled } from 'styled-components'

export const DogProfileSection = styled.div`
padding : 0 20px 24px 20px;
background-color: ${({theme}) => theme.colors.grayscale.gc_4};
height: 100dvh;

display: flex;
flex-direction: column;
justify-content: space-between;
`

export const PrevBtnWrapper = styled.div`
height: 56px;

@media (max-height: 700px) {
margin-bottom: 10px;
}
`

export const TypoWrapper = styled.div`
text-align: center;
`

export const AddDogPictureBtnWrapper = styled.div`
display: flex;
justify-content: center;
`

export const AddDogPictureBtn = styled.div`
width: 180px;
height: 180px;
background-color: ${({theme}) => theme.colors.brand.lighten_2};
border-radius: 50%;

display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
gap : 0.5rem;

font-weight : 700;
color: ${({theme}) => theme.colors.brand.darken};
cursor: pointer;
`

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

@media (min-height: 700px) {
margin-bottom: 40px;
gap: 0.3rem;
}
`

export const DatePickerBtn = styled.div`
width: 100%;
border: none;
text-align: center;
padding: 17px 32px;
font-size: ${({ theme }) => theme.typography._20};
color: ${({theme}) => theme.colors.grayscale.font_3};
cursor: pointer;
`
3 changes: 2 additions & 1 deletion src/pages/LoginPage/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as S from './styles'
import { Helmet } from 'react-helmet-async'
import DogProfileSection from './DogProfileSection'

export default function LoginPage() {
return (
Expand All @@ -8,7 +9,7 @@ export default function LoginPage() {
<title>DDang | 둜그인</title>
<meta name='description' content='DDang μ„œλΉ„μŠ€ 둜그인' />
</Helmet>
LoginPage
<DogProfileSection />
</S.LoginPage>
)
}
8 changes: 4 additions & 4 deletions src/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ export const router = createBrowserRouter([
path: '/log',
element: <Pages.LogPage />,
},
{
path: '/login',
element: <Pages.LoginPage />,
},
{
path: '/walk',
element: <Pages.WalkPage />,
Expand All @@ -38,4 +34,8 @@ export const router = createBrowserRouter([
},
],
},
{
path: '/login',
element: <Pages.LoginPage />,
}
])
Loading