-
Notifications
You must be signed in to change notification settings - Fork 4
✨ Feat: Footer 컴포넌트 구현 #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| import envelopeIcon from '@/assets/icon/ic-envelope.svg'; | ||
| import facebookIcon from '@/assets/icon/ic-facebook.svg'; | ||
| import instagramIcon from '@/assets/icon/ic-instagram.svg'; | ||
| import { Container } from '@/components/layout'; | ||
| import Image from 'next/image'; | ||
| import Link from 'next/link'; | ||
|
|
||
| const Footer = () => { | ||
| return ( | ||
| <Container as={'footer'} className='max-w-full bg-gray-100'> | ||
| <div className='mx-auto flex flex-wrap justify-between gap-10 px-5 py-8 desktop:w-[964px]'> | ||
|
||
| <div className='order-3 flex-grow text-caption font-normal text-gray-500 tablet:order-1 tablet:flex-grow-0 tablet:text-body-m'> | ||
| ©codeit - 2023 | ||
| </div> | ||
| <div className='order-1 flex gap-[30px] font-normal text-gray-500'> | ||
| <Link href={'/'} className='text-body-s hover:text-gray-300 tablet:text-body-m'> | ||
| Privacy Policy | ||
| </Link> | ||
| <Link href={'/'} className='text-body-s hover:text-gray-300 tablet:text-body-m'> | ||
|
||
| FAQ | ||
| </Link> | ||
| </div> | ||
|
|
||
| <ul className='order-2 flex gap-[10px]'> | ||
| <li className='hover:-translate-y-1'> | ||
| <a href='https://mail.google.com/' target='_blank'> | ||
| <Image src={envelopeIcon} alt='메일' width={25} height={25} /> | ||
| </a> | ||
| </li> | ||
| <li className='hover:-translate-y-1'> | ||
| <a href='https://www.facebook.com/' target='_blank'> | ||
| <Image src={facebookIcon} alt='메일' width={25} height={25} /> | ||
| </a> | ||
| </li> | ||
| <li className='hover:-translate-y-1'> | ||
| <a href='https://www.instagram.com/' target='_blank'> | ||
| <Image src={instagramIcon} alt='인스타그램' width={25} height={25} /> | ||
| </a> | ||
|
||
| </li> | ||
| </ul> | ||
| </div> | ||
| </Container> | ||
| ); | ||
| }; | ||
|
|
||
| export default Footer; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,9 +7,9 @@ const Frame = ({ title, content }: FrameProps) => { | |
| return ( | ||
| <> | ||
| <section className='flex flex-col gap-4 px-3 py-10 tablet:px-8 tablet:py-[60px] desktop:px-[237px] desktop:py-[60px]'> | ||
| <h1 className='text-xl font-bold tablet:text-[28px]'>{title}</h1> | ||
| <h1 className='text-heading-s font-bold tablet:text-heading-l'>{title}</h1> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 하나더 알려드리자면 text-heading-l 만 선언해도 반응형으로 만들어졌기 때문에 640 이하에서는 20px , 640 이상에서는 28로 보여지게 됩니다 :) global.css 참고해보시면 좋을것 같습니다~!
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 아 그러네요! 꼼꼼히 읽어보겠습니다ㅠ 이 부분도 다시 수정해 놓을게요~! |
||
| <div className='flex flex-col items-center justify-center gap-4 rounded-xl border border-solid border-gray-200 px-6 py-[60px]'> | ||
| <h2 className='text-sm font-normal tablet:text-base'>{content}</h2> | ||
| <h2 className='text-body-s font-normal tablet:text-body-l'>{content}</h2> | ||
| {/* 버튼 컴포넌트 넣을 자리 */} | ||
| </div> | ||
| </section> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Icon 으로 이미 import 되어 있어서 Icon에서 대체해서 사용하면 될것 같습니다 ! (아래 설명 넣어놓겠습니다)