Skip to content

Commit 0627a3a

Browse files
authored
Merge pull request #62 from prgrms-web-devcourse-final-project/32-design/add-dog-profile-ui
🎨 Design: 강아지 프로필 기본정보 입력페이지 추가
2 parents 75e4836 + 12416e4 commit 0627a3a

File tree

6 files changed

+108
-31
lines changed

6 files changed

+108
-31
lines changed

package-lock.json

Lines changed: 1 addition & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/assets/add-dog-picture.svg

Lines changed: 5 additions & 0 deletions
Loading
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import * as S from './styles'
2+
import { ActionButton } from '~components/Button/ActionButton'
3+
import AddDogPicture from '~assets/add-dog-picture.svg'
4+
import TwoLineInput from '~components/Input/TwoLineInput'
5+
import PrevButton from '~components/Button/PrevButton'
6+
import { Typo24 } from '~components/Typo/index'
7+
8+
export default function DogProfileSection() {
9+
return (
10+
<S.DogProfileSection>
11+
<S.PrevBtnWrapper>
12+
<PrevButton />
13+
</S.PrevBtnWrapper>
14+
<S.TypoWrapper>
15+
<Typo24 weight='700'>반려견 기본 정보를<br/> 알려주세요!</Typo24>
16+
</S.TypoWrapper>
17+
<S.AddDogPictureBtnWrapper>
18+
<S.AddDogPictureBtn>
19+
<img src={AddDogPicture} alt="반려견 사진 추가" />
20+
<div>반려견 사진 추가</div>
21+
</S.AddDogPictureBtn>
22+
</S.AddDogPictureBtnWrapper>
23+
<S.InputArea>
24+
<TwoLineInput placeholder='이름 입력'>이름 입력</TwoLineInput>
25+
<S.DatePickerBtn>생년월일 선택</S.DatePickerBtn>
26+
<TwoLineInput placeholder='한줄 소개 입력'>한줄 소개 입력</TwoLineInput>
27+
</S.InputArea>
28+
<ActionButton>다음</ActionButton>
29+
</S.DogProfileSection>
30+
)
31+
}
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
import { styled } from 'styled-components'
2+
3+
export const DogProfileSection = styled.div`
4+
padding : 0 20px 24px 20px;
5+
background-color: ${({theme}) => theme.colors.grayscale.gc_4};
6+
height: 100dvh;
7+
8+
display: flex;
9+
flex-direction: column;
10+
justify-content: space-between;
11+
`
12+
13+
export const PrevBtnWrapper = styled.div`
14+
height: 56px;
15+
16+
@media (max-height: 700px) {
17+
margin-bottom: 10px;
18+
}
19+
`
20+
21+
export const TypoWrapper = styled.div`
22+
text-align: center;
23+
`
24+
25+
export const AddDogPictureBtnWrapper = styled.div`
26+
display: flex;
27+
justify-content: center;
28+
`
29+
30+
export const AddDogPictureBtn = styled.div`
31+
width: 180px;
32+
height: 180px;
33+
background-color: ${({theme}) => theme.colors.brand.lighten_2};
34+
border-radius: 50%;
35+
36+
display: flex;
37+
justify-content: center;
38+
align-items: center;
39+
flex-direction: column;
40+
gap : 0.5rem;
41+
42+
font-weight : 700;
43+
color: ${({theme}) => theme.colors.brand.darken};
44+
cursor: pointer;
45+
`
46+
47+
export const InputArea = styled.div`
48+
display: flex;
49+
flex-direction: column;
50+
51+
@media (min-height: 700px) {
52+
margin-bottom: 40px;
53+
gap: 0.3rem;
54+
}
55+
`
56+
57+
export const DatePickerBtn = styled.div`
58+
width: 100%;
59+
border: none;
60+
text-align: center;
61+
padding: 17px 32px;
62+
font-size: ${({ theme }) => theme.typography._20};
63+
color: ${({theme}) => theme.colors.grayscale.font_3};
64+
cursor: pointer;
65+
`

src/pages/LoginPage/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as S from './styles'
22
import { Helmet } from 'react-helmet-async'
3+
import DogProfileSection from './DogProfileSection'
34

45
export default function LoginPage() {
56
return (
@@ -8,7 +9,7 @@ export default function LoginPage() {
89
<title>DDang | 로그인</title>
910
<meta name='description' content='DDang 서비스 로그인' />
1011
</Helmet>
11-
LoginPage
12+
<DogProfileSection />
1213
</S.LoginPage>
1314
)
1415
}

src/router.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ export const router = createBrowserRouter([
2424
path: '/log',
2525
element: <Pages.LogPage />,
2626
},
27-
{
28-
path: '/login',
29-
element: <Pages.LoginPage />,
30-
},
3127
{
3228
path: '/walk',
3329
element: <Pages.WalkPage />,
@@ -38,4 +34,8 @@ export const router = createBrowserRouter([
3834
},
3935
],
4036
},
37+
{
38+
path: '/login',
39+
element: <Pages.LoginPage />,
40+
}
4141
])

0 commit comments

Comments
 (0)