Sign Ui
Sign Ui
1. 로그인 / 회원가입 UI
로그인 및 회원가입 UI 구현
1.1. 스타일
- 로그인 / 회원가입 스타일이 유사하여 공용 style component로 뺐다.
- 유효성 검사 여부로 스타일 props를 넘겨 시각적 재미와 직관성을 강화했다.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
import styled from 'styled-components'
export const Message = styled.span`
display: ${(props) => props.focus};
font-size: 12px;
margin-left: 5px;
`
export const Back = styled.div`
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-color: #F2F2F2;
width: 100%;
height: 100vh;
`
export const MainForm = styled.div`
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
background-color: #FFFF;
width: 440px;
padding: 34px 32px;
border-radius: 10px;
`
export const Form = styled.form`
width: 100%;
`
export const H1 = styled.div`
margin-right: auto;
margin-bottom: 20px;
font-size: 28px;
font-weight: 600;
`
export const InputBox = styled.div`
width: 100%;
height: 80px;
`
export const Hr = styled.div`
width: 100%;
border: none;
border-bottom: 1px solid #F2F2F2;
margin: 30px 0px;
`
export const H6 = styled.div`
display: flex;
flex-direction: row;
align-items: flex-start;
justify-content: flex-start;
font-size: 12px;
margin: 20px 0px 10px 0px;
`
export const Input = styled.input`
width: 100%;
height: 48px;
border: none;
border-radius: 10px;
background-color: #F2F2F2;
transition: background-color 5000s ease-in-out 0s;
&:focus{outline: none;}
`
export const Button = styled.button`
font-family: 'Noto Sans KR', sans-serif;
font-weight: 500;
font-size: 14px;
width: 100%;
height: 48px;
border: none;
border-radius: 10px;
background-color: ${(props) => props.color};
color: white;
margin-top: 30px;
cursor: pointer;
transition: 1s;
`
export const KakaoSignForm = styled.div`
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
`
export const SignUp = styled.div`
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
margin-top: 20px;
color: #636363;
`
export const Bold = styled.span`
margin-left: 8px;
font-size: 14px;
font-weight: 700;
color: black;
`
This post is licensed under CC BY 4.0 by the author.