Skip to content

Commit 0749afa

Browse files
authored
[#104] ✨ shared 컴포넌트 Footer 개발 (#151)
* [#104] ✨ add Footer component * [#104] ✅ add Footer stories * [#104] 💄 change default text color in text button
1 parent a7677a3 commit 0749afa

File tree

4 files changed

+94
-1
lines changed

4 files changed

+94
-1
lines changed

src/components/common/button/Clickable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const styleByVariant: Record<Variant, string> = {
3737
contained: 'bg-primary-normal text-common-white active:bg-primary-strong',
3838
outlined:
3939
'border-1 border-solid border-primary-normal bg-common-white text-primary-normal',
40-
text: 'text-gray-1000',
40+
text: 'text-gray-800',
4141
}
4242

4343
const styleBySize: Record<Size, string> = {
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
import { Link } from '@/components/common/button'
2+
import { Container } from '@/components/common/containers'
3+
import { Logo } from '@/components/common/logo'
4+
import { Text } from '@/components/common/text'
5+
6+
const footerTabs = [
7+
{ label: '고객센터', link: '/' },
8+
{ label: '서비스이용약관', link: '/' },
9+
{ label: '개인정보 처리방침', link: '/' },
10+
{ label: '도움말', link: '/' },
11+
]
12+
13+
export const Footer = (): JSX.Element => {
14+
return (
15+
<footer className='flex w-full justify-center border-t-1 border-solid border-gray-200'>
16+
<Container className='flex h-300 w-full flex-col py-40'>
17+
<div className='mb-20 flex items-center justify-between'>
18+
<Logo variant='secondary' />
19+
<div className='flex items-center justify-between gap-60'>
20+
{footerTabs.map(footerTab => (
21+
<Link
22+
href={footerTab.link}
23+
variant='text'
24+
className='h-24 px-0'
25+
key={footerTab.label}
26+
>
27+
{footerTab.label}
28+
</Link>
29+
))}
30+
</div>
31+
</div>
32+
<div>
33+
<Container className='mb-8'>
34+
<Text.Body
35+
variant='body3'
36+
color='gray600'
37+
weight='500'
38+
className='flex items-center gap-10'
39+
>
40+
(주)DevForDev
41+
<div className='h-14 w-1 bg-gray-200' />
42+
대표 : 고용빈
43+
</Text.Body>
44+
</Container>
45+
<Container className='mb-8'>
46+
<Text.Body
47+
variant='body3'
48+
color='gray600'
49+
weight='500'
50+
className='flex items-center gap-10'
51+
>
52+
서울특별시 중구 삼일대로 343 대신파이낸스센터 8층
53+
<div className='h-14 w-1 bg-gray-200' />
54+
전화번호 : 02-521-8238
55+
</Text.Body>
56+
</Container>
57+
<Container className='mb-30'>
58+
<Text.Body
59+
variant='body3'
60+
color='gray600'
61+
weight='500'
62+
className='flex items-center gap-10'
63+
>
64+
사업자등록번호 : 000-00-00000
65+
<div className='h-14 w-1 bg-gray-200' />
66+
유료직업소개사업등록번호: (국내) 제0000-0000000-00-0-00000호
67+
</Text.Body>
68+
</Container>
69+
</div>
70+
<div className='mb-30 border-t-1 border-solid border-gray-200' />
71+
<Text.Caption variant='caption1' color='gray500' weight='500'>
72+
© 2024 DevForDev Lab, Inc.
73+
</Text.Caption>
74+
</Container>
75+
</footer>
76+
)
77+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { Footer } from './Footer'
2+
3+
export { Footer }
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { Meta, StoryObj } from '@storybook/react'
2+
3+
import { Footer } from '@/components/shared/footer'
4+
5+
export default {
6+
title: 'Shared/Footer',
7+
component: Footer,
8+
parameters: {
9+
layout: 'fullscreen',
10+
},
11+
} as Meta
12+
13+
export const Default: StoryObj = {}

0 commit comments

Comments
 (0)