File tree Expand file tree Collapse file tree 6 files changed +108
-31
lines changed Expand file tree Collapse file tree 6 files changed +108
-31
lines changed Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change
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
+ `
Original file line number Diff line number Diff line change 1
1
import * as S from './styles'
2
2
import { Helmet } from 'react-helmet-async'
3
+ import DogProfileSection from './DogProfileSection'
3
4
4
5
export default function LoginPage ( ) {
5
6
return (
@@ -8,7 +9,7 @@ export default function LoginPage() {
8
9
< title > DDang | 로그인</ title >
9
10
< meta name = 'description' content = 'DDang 서비스 로그인' />
10
11
</ Helmet >
11
- LoginPage
12
+ < DogProfileSection />
12
13
</ S . LoginPage >
13
14
)
14
15
}
Original file line number Diff line number Diff line change @@ -24,10 +24,6 @@ export const router = createBrowserRouter([
24
24
path : '/log' ,
25
25
element : < Pages . LogPage /> ,
26
26
} ,
27
- {
28
- path : '/login' ,
29
- element : < Pages . LoginPage /> ,
30
- } ,
31
27
{
32
28
path : '/walk' ,
33
29
element : < Pages . WalkPage /> ,
@@ -38,4 +34,8 @@ export const router = createBrowserRouter([
38
34
} ,
39
35
] ,
40
36
} ,
37
+ {
38
+ path : '/login' ,
39
+ element : < Pages . LoginPage /> ,
40
+ }
41
41
] )
You can’t perform that action at this time.
0 commit comments