|
1 | | -import Breakpoints from 'constants/breakpoints'; |
2 | 1 | import Yapp from 'constants/yapp'; |
3 | 2 | import { YappLogo } from 'public/assets/icons'; |
4 | 3 | import React, { ReactElement } from 'react'; |
5 | 4 | import styled from 'styled-components'; |
6 | 5 | import media from 'styles/media'; |
7 | 6 |
|
8 | | -const link = [ |
| 7 | +const links = [ |
9 | 8 | { name: '카카오톡 공식채널', href: Yapp.YAPP_KAKAO }, |
10 | 9 | { name: '인스타그램', href: Yapp.YAPP_INSTAGRAM }, |
11 | 10 | { name: '깃허브', href: Yapp.YAPP_GITHUB }, |
12 | | -]; |
13 | | - |
14 | | -const link2 = [ |
15 | 11 | { name: '미디엄', href: Yapp.YAPP_MEDIUM }, |
16 | 12 | { name: '링크드인', href: Yapp.YAPP_LINKEDIN }, |
| 13 | + { name: '스레드', href: Yapp.YAPP_THREADS }, |
17 | 14 | ]; |
18 | 15 |
|
19 | 16 | function Footer(): ReactElement { |
20 | 17 | return ( |
21 | 18 | <FooterBlock> |
22 | 19 | <FooterInner> |
23 | | - <Logo /> |
24 | | - <YappInfo> |
25 | | - <ul> |
26 | | - {link.map(({ name, href }, idx) => ( |
27 | | - <li key={name}> |
28 | | - <YappInfoItem |
29 | | - href={href} |
30 | | - target="_blank" |
31 | | - rel="noopener noreferrer" |
32 | | - > |
33 | | - {name} |
34 | | - </YappInfoItem> |
35 | | - {idx !== link.length - 1 && <Divider />} |
36 | | - </li> |
37 | | - ))} |
38 | | - </ul> |
39 | | - <Divider className="not-in-mobile" /> |
40 | | - <ul> |
41 | | - {link2.map(({ name, href }, idx) => ( |
42 | | - <li key={name}> |
43 | | - <YappInfoItem |
44 | | - href={href} |
45 | | - target="_blank" |
46 | | - rel="noopener noreferrer" |
47 | | - > |
48 | | - {name} |
49 | | - </YappInfoItem> |
50 | | - {idx !== link2.length - 1 && <Divider />} |
51 | | - </li> |
52 | | - ))} |
53 | | - </ul> |
54 | | - </YappInfo> |
55 | | - <Copyright>ⓒ 2025 YAPP. All Rights Reserved</Copyright> |
| 20 | + <LeftColumn> |
| 21 | + <TopRow> |
| 22 | + <Logo /> |
| 23 | + <Links> |
| 24 | + {links.map(({ name, href }, idx) => ( |
| 25 | + <React.Fragment key={name}> |
| 26 | + <LinkItem> |
| 27 | + <LinkAnchor |
| 28 | + href={href} |
| 29 | + target="_blank" |
| 30 | + rel="noopener noreferrer" |
| 31 | + > |
| 32 | + {name} |
| 33 | + </LinkAnchor> |
| 34 | + {idx !== links.length - 1 && ( |
| 35 | + <Divider $hideOnMobile={idx === 2} /> |
| 36 | + )} |
| 37 | + </LinkItem> |
| 38 | + {idx === 2 && <MobileBreak />} |
| 39 | + </React.Fragment> |
| 40 | + ))} |
| 41 | + </Links> |
| 42 | + </TopRow> |
| 43 | + <BusinessInfo> |
| 44 | + <p>고유번호: 133-82-75281</p> |
| 45 | + <p>주소: 서울특별시 마포구 와우산로 105, 5층-220A호</p> |
| 46 | + <p>이메일: support@yapp.co.kr</p> |
| 47 | + </BusinessInfo> |
| 48 | + </LeftColumn> |
| 49 | + <Copyright>ⓒ 2026 YAPP. All Rights Reserved</Copyright> |
56 | 50 | </FooterInner> |
57 | 51 | </FooterBlock> |
58 | 52 | ); |
59 | 53 | } |
60 | 54 |
|
61 | | -const FooterBlock = styled.div` |
62 | | - width: 100%; |
63 | | - height: 162px; |
64 | | -
|
| 55 | +const FooterBlock = styled.footer` |
| 56 | + width: auto; |
65 | 57 | background-color: ${({ theme }) => theme.palette.black_5}; |
66 | | - color: ${({ theme }) => theme.palette.white}; |
| 58 | + padding: 24px 100px; |
67 | 59 |
|
68 | 60 | ${media.mobile} { |
69 | | - height: 195px; |
70 | | - min-width: 100vw; |
71 | | - } |
72 | | -`; |
73 | | - |
74 | | -const Logo = styled(YappLogo)` |
75 | | - path { |
76 | | - fill: ${({ theme }) => theme.palette.black}; |
| 61 | + padding: 24px; |
77 | 62 | } |
78 | 63 | `; |
79 | 64 |
|
80 | 65 | const FooterInner = styled.div` |
81 | 66 | width: 100%; |
82 | 67 | display: flex; |
83 | | - flex-direction: column; |
84 | | - align-items: center; |
| 68 | + justify-content: space-between; |
| 69 | + align-items: flex-end; |
85 | 70 | gap: 20px; |
86 | | - padding: 24px 0; |
87 | 71 |
|
88 | 72 | ${media.mobile} { |
89 | | - padding: 24px; |
| 73 | + flex-direction: column; |
90 | 74 | align-items: flex-start; |
| 75 | + gap: 10px; |
91 | 76 | } |
92 | 77 | `; |
93 | 78 |
|
94 | | -const YappInfo = styled.div` |
| 79 | +const LeftColumn = styled.div` |
95 | 80 | display: flex; |
96 | | - align-items: center; |
97 | | - flex-direction: row; |
| 81 | + flex-direction: column; |
| 82 | + gap: 24px; |
98 | 83 |
|
99 | | - & ul { |
100 | | - display: flex; |
101 | | - margin: 0; |
| 84 | + ${media.mobile} { |
| 85 | + width: 100%; |
| 86 | + gap: 20px; |
102 | 87 | } |
| 88 | +`; |
103 | 89 |
|
104 | | - & li { |
105 | | - display: flex; |
106 | | - list-style: none; |
107 | | - align-items: center; |
108 | | - } |
| 90 | +const TopRow = styled.div` |
| 91 | + display: flex; |
| 92 | + align-items: center; |
| 93 | + gap: 32px; |
109 | 94 |
|
110 | 95 | ${media.mobile} { |
111 | | - gap: 15px; |
112 | 96 | flex-direction: column; |
113 | 97 | align-items: flex-start; |
| 98 | + gap: 20px; |
114 | 99 | } |
115 | 100 | `; |
116 | 101 |
|
117 | | -const YappInfoItem = styled.a` |
| 102 | +const Logo = styled(YappLogo)` |
| 103 | + width: 20px; |
| 104 | + height: 27px; |
| 105 | + flex-shrink: 0; |
| 106 | +
|
| 107 | + path { |
| 108 | + fill: ${({ theme }) => theme.palette.black_100}; |
| 109 | + } |
| 110 | +`; |
| 111 | + |
| 112 | +const Links = styled.ul` |
| 113 | + display: flex; |
| 114 | + flex-wrap: wrap; |
| 115 | + align-items: center; |
| 116 | + margin: 0; |
| 117 | + padding: 0; |
| 118 | + list-style: none; |
| 119 | +`; |
| 120 | + |
| 121 | +const LinkItem = styled.li` |
| 122 | + display: flex; |
| 123 | + align-items: center; |
| 124 | +`; |
| 125 | + |
| 126 | +const LinkAnchor = styled.a` |
118 | 127 | white-space: nowrap; |
119 | 128 | color: ${({ theme }) => theme.palette.black_100}; |
120 | 129 | cursor: pointer; |
121 | | - ${({ theme }) => theme.textStyleV2.fix.font_15} |
| 130 | + font-size: 15px; |
| 131 | + font-weight: 500; |
| 132 | + letter-spacing: -0.3px; |
| 133 | + line-height: 24px; |
| 134 | +
|
| 135 | + ${media.mobile} { |
| 136 | + font-size: 14px; |
| 137 | + letter-spacing: -0.28px; |
| 138 | + line-height: 22.4px; |
| 139 | + } |
122 | 140 | `; |
123 | 141 |
|
124 | | -const Divider = styled.div` |
| 142 | +const Divider = styled.div<{ $hideOnMobile?: boolean }>` |
125 | 143 | width: 1px; |
126 | 144 | height: 14px; |
127 | 145 | background: ${({ theme }) => theme.palette.black_20}; |
128 | 146 | margin: 0 13px; |
129 | 147 |
|
130 | 148 | ${media.mobile} { |
131 | | - &.not-in-mobile { |
132 | | - display: none; |
133 | | - } |
| 149 | + margin: 0 12px; |
| 150 | + display: ${({ $hideOnMobile }) => ($hideOnMobile ? 'none' : 'block')}; |
| 151 | + } |
| 152 | +`; |
| 153 | + |
| 154 | +const MobileBreak = styled.div` |
| 155 | + display: none; |
| 156 | +
|
| 157 | + ${media.mobile} { |
| 158 | + display: block; |
| 159 | + flex-basis: 100%; |
| 160 | + width: 100%; |
| 161 | + height: 0; |
| 162 | + } |
| 163 | +`; |
| 164 | + |
| 165 | +const BusinessInfo = styled.div` |
| 166 | + display: flex; |
| 167 | + flex-direction: column; |
| 168 | + color: ${({ theme }) => theme.palette.black_60}; |
| 169 | + font-size: 16px; |
| 170 | + font-weight: 500; |
| 171 | + letter-spacing: -0.28px; |
| 172 | + line-height: 24px; |
| 173 | +
|
| 174 | + & p { |
| 175 | + margin: 0; |
| 176 | + } |
| 177 | +
|
| 178 | + ${media.mobile} { |
| 179 | + font-size: 14px; |
| 180 | + line-height: 20px; |
134 | 181 | } |
135 | 182 | `; |
136 | 183 |
|
137 | 184 | const Copyright = styled.div` |
138 | 185 | color: ${({ theme }) => theme.palette.black_40}; |
139 | | - ${({ theme }) => theme.textStyleV2.fix.font_12} |
| 186 | + font-size: 14px; |
| 187 | + font-weight: 500; |
| 188 | + letter-spacing: -0.28px; |
| 189 | + line-height: 22.4px; |
| 190 | +
|
| 191 | + ${media.mobile} { |
| 192 | + font-size: 12px; |
| 193 | + letter-spacing: -0.24px; |
| 194 | + line-height: 19.2px; |
| 195 | + } |
140 | 196 | `; |
141 | 197 |
|
142 | 198 | export default Footer; |
0 commit comments