-
Notifications
You must be signed in to change notification settings - Fork 5
Feature/page lending #57
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 9 commits
0dc6a4e
6ed077b
cd69bf4
b60bb5f
662771f
5c6c4b7
b0643cd
8eb6aee
53b948e
67bbeff
f0dd0ce
d525f17
c37777f
688271f
027b40a
f6df454
23c3d4f
9794dd1
6e534a5
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,106 @@ | ||
| import Image from 'next/image'; | ||
|
|
||
| import { ImageCard } from '../common/card/ImageCard'; | ||
|
|
||
| export const ContentSection = () => { | ||
| return ( | ||
| <div className='mx-auto max-w-[640px] min-w-[343px] mt-12 md:mt-[80px] xl:mt-[160px]'> | ||
| <div className='relative bg-[#EBEEF4] h-[424px] md:h-[320px] mb-[48px] md:mb-[96px] rounded-2xl'> | ||
| <div className='absolute top-[24px] md:top-[56px] left-[24px] md:left-[32px]'> | ||
| <span className='custom-text-2lg-bold md:custom-text-xl-bold'> | ||
| ๋งค๋ฌ ์๋กญ๊ฒ ๋ง๋๋ <br /> | ||
| ์์ธ ์ถ์ฒ ์ฝํ ์ธ | ||
| </span> | ||
| <p className='custom-text-xs-regular text-gray-500'>๋งค๋ฌ ๋ค์ํ ์ธ๊ธฐ ์์ธ์ ๋ง๋๋ณด์ธ์</p> | ||
| </div> | ||
| <div className='absolute w-[290px] md:w-[356px] h-[241px] md:h-[277px] right-0 bottom-[24px] md:bottom-0 bg-gray-100 overflow-hidden'> | ||
| <span className='absolute text-[#7E7E7E] md:text-[#50545B] custom-text-lg-bold md:custom-text-2lg-bold left-5 top-5'> | ||
| ์ด๋ฒ ๋ฌ ์ถ์ฒ ์์ธ | ||
| </span> | ||
| <div className='flex gap-2.5 ml-5 mt-[61px] '> | ||
| <div className='w-[193px] flex-shrink-0'> | ||
| <ImageCard | ||
| className='bg-white h-[160px] rounded-lg border-none overflow-hidden' | ||
| imageSrc='/assets/lendingwine3.png' | ||
| imageClassName='h-[165px] w-[44px] object-contain ' | ||
| > | ||
| <div className='flex flex-col ml-[9px] w-[80px]'> | ||
| <span className='font-extrabold text-4xl text-gray-800'>4.3</span> | ||
| <span>๋ณ์ ๋์ค์</span> | ||
| <p className='text-[10px] text-gray-500'>Sentinel Carbernet Sauvignon 2016</p> | ||
| </div> | ||
| </ImageCard> | ||
| </div> | ||
| <div className='w-[193px] flex-shrink-0'> | ||
| <ImageCard | ||
| className='bg-white h-[160px] rounded-lg border-none overflow-hidden' | ||
| imageSrc='/assets/lendingwine3.png' | ||
| imageClassName='h-[165px] w-[44px] object-contain ' | ||
| > | ||
| <div className='flex flex-col ml-[9px] w-[80px]'> | ||
| <span className='font-extrabold text-4xl text-gray-800'>4.3</span> | ||
| <span>๋ณ์ ๋์ค์</span> | ||
| <p className='text-[10px] text-gray-500'>Sentinel Carbernet Sauvignon 2016</p> | ||
| </div> | ||
| </ImageCard> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <div className='relative bg-[#EBEEF4] h-[424px] md:h-[320px] mb-[48px] md:mb-[96px] rounded-2xl overflow-hidden'> | ||
| <div className='absolute top-[24px] md:top-[55px] left-[24px] md:left-[32px]'> | ||
| <span className='custom-text-2lg-bold md:custom-text-xl-bold'> | ||
| ๋ค์ํ ํํฐ๋ก ์ฐพ๋ | ||
| <br />๋ด ๋ง์ถค ์์ธ | ||
| </span> | ||
| <p className='custom-text-xs-regular text-gray-500'> | ||
| ์์ธ ํ์ , ๊ฐ๊ฒฉ, ํ์ ์ผ๋ก <br /> | ||
| ๋์๊ฒ ๋ง๋ ์์ธ์ ์ฝ๊ฒ ๊ฒ์ํด์. | ||
| </p> | ||
| </div> | ||
| <Image | ||
| width={280} | ||
| height={100} | ||
| alt='ํํฐ๋ก ์ฐพ์ ๋ด ๋ง์ถค ์์ธ' | ||
| src='/assets/lendingwinecard.png' | ||
| className='absolute right-[-10px] top-[110px] md:top-[65px]' | ||
| /> | ||
| <div | ||
| className='pointer-events-none absolute inset-0 rounded-xl' | ||
| style={{ | ||
| background: | ||
| 'linear-gradient(to top, #EBEEF4 0%, transparent 5%, transparent 95%, #EBEEF4 100%)', | ||
| }} | ||
| /> | ||
| </div> | ||
| <div className='relative bg-[#EBEEF4] h-[424px] md:h-[320px] mb-[64px] md:mb-[80px] xl:mb-[104px] rounded-2xl overflow-hidden '> | ||
| <div className='absolute top-[24px] md:top-[55px] left-[24px] md:left-[28px]'> | ||
| <span className='custom-text-2lg-bold md:custom-text-xl-bold'> | ||
| ์ง๊ด์ ์ธ | ||
| <br /> | ||
| ๋ฆฌ๋ทฐ ์์คํ | ||
| </span> | ||
| <p className='custom-text-xs-regular text-gray-500'> | ||
| ๋ ๊ตฌ์ฒดํ๋ ๋ฆฌ๋ทฐ ์์คํ ์ผ๋ก | ||
| <br /> | ||
| ์ฝ๊ณ ๋น ๋ฅด๊ฒ ์์ธ ๋ฆฌ๋ทฐ๋ฅผ ์ดํด๋ณด์ธ์/ | ||
| </p> | ||
| </div> | ||
| <Image | ||
| width={272} | ||
| height={100} | ||
| alt='์์ธ ๋ฆฌ๋ทฐ ์์ ์ด๋ฏธ์ง' | ||
| src='/assets/lendingreviewcard.png' | ||
| className='absolute right-[-10px] top-[120px] md:right-[42px] md:top-[-65px]' | ||
| /> | ||
| <div | ||
| className='pointer-events-none absolute inset-0 rounded-xl' | ||
| style={{ | ||
| background: | ||
| 'linear-gradient(to top, #EBEEF4 0%, transparent 5%, transparent 95%, #EBEEF4 100%)', | ||
| }} | ||
| /> | ||
| </div> | ||
| </div> | ||
| ); | ||
| }; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,105 @@ | ||
| import Image from 'next/image'; | ||
|
|
||
| import { ImageCard } from '../common/card/ImageCard'; | ||
|
|
||
| export const HeroSection = () => { | ||
| return ( | ||
| <header> | ||
| <div className='relative h-[403px] md:h-[394px] xl:h-[535px] bg-[#171A21] flex items-center justify-center overflow-hidden rounded-lg'> | ||
| <div className='flex flex-col items-center h-full'> | ||
| <div> | ||
| <Image | ||
| src='/assets/lendinglogo.png' | ||
| alt='์์ธ ๋ก๊ณ ์ด๋ฏธ์ง' | ||
| width={100} | ||
| height={100} | ||
| className='w-[81px] md:w-[100px] h-[23px] md:h-[30px] text-primary mt-[58px] md:mt-[80px] xl:mt-[112px]' | ||
| /> | ||
| </div> | ||
| <span className='text-white text-center custom-text-xl-bold md:custom-text-2xl-bold mt-6 md:mt-8'> | ||
| ํ ๊ณณ์์ ๊ด๋ฆฌํ๋ <br /> | ||
| ๋๋ง์ ์์ธ์ฐฝ๊ณ | ||
| </span> | ||
| <div className='relative w-[720px] h-[420px] mt-auto mx-auto translate-y-[80px] md:translate-y-[40px] xl:translate-y-[120px] scale-[1] md:scale-[0.7] xl:scale-[1]'> | ||
| {/* ๊ธฐ์ค ๋ฐ์ค translate-y ์๋๋ก-ใ ใ ๋งํผ ๋ฐ์ด๋ด๊ธฐ */} | ||
| <div className='absolute top-4 left-1/2 w-[240px] h-[188px] bg-white rounded-xl z-30 -translate-x-1/2 shadow-xl'> | ||
| <ImageCard | ||
| imageSrc='/assets/lendingwine3.png' | ||
| imageClassName='h-full w-[44px] object-contain ' | ||
| > | ||
| <div className='flex flex-col ml-[8px] w-[100px]'> | ||
| <span className='font-extrabold text-4xl text-gray-800'>4.3</span> | ||
| {/* ๋ชจ๋ฌ์ชฝ์ ๊ตฌํํด๋ ๋ณ์ ์ด ์์ */} | ||
| <span>๋ณ์ ๋์ค์</span> | ||
| <p className='custom-text-xs-regular text-gray-500'> | ||
| Sentinel Carbernet Sauvignon 2016 | ||
| </p> | ||
| </div> | ||
| </ImageCard> | ||
| </div> | ||
|
|
||
| {/* ์ข์ฐ ์ ๋ฐ์ค */} | ||
| <div className='absolute top-10 left-[calc(50%-340px)] w-[240px] h-[185px] rounded-xl z-20 shadow-xl'> | ||
| <ImageCard | ||
| imageSrc='/assets/lendingwine1.png' | ||
| imageClassName='h-full w-[44px] object-contain ' | ||
| > | ||
| <div className='flex flex-col ml-[8px] w-[100px]'> | ||
| <span className='font-extrabold text-4xl text-gray-800'>4.3</span> | ||
| <span>๋ณ์ ๋์ค์</span> | ||
| <p className='custom-text-xs-regular text-gray-500'> | ||
| Sentinel Carbernet Sauvignon 2016 | ||
| </p> | ||
| </div> | ||
| </ImageCard> | ||
| </div> | ||
| <div className='absolute top-10 left-[calc(50%+100px)] w-[240px] h-[185px] rounded-xl z-20 shadow-xl'> | ||
| <ImageCard | ||
| imageSrc='/assets/lendingwine1.png' | ||
| imageClassName='h-full w-[44px] object-contain ' | ||
| > | ||
| <div className='flex flex-col ml-[8px] w-[100px]'> | ||
| <span className='font-extrabold text-4xl text-gray-800'>4.3</span> | ||
| <span>๋ณ์ ๋์ค์</span> | ||
| <p className='custom-text-xs-regular text-gray-500'> | ||
| Sentinel Carbernet Sauvignon 2016 | ||
| </p> | ||
| </div> | ||
| </ImageCard> | ||
| </div> | ||
|
|
||
| {/* ์ข์ฐ ์๋ ๋ฐ์ค */} | ||
| <div className='absolute top-[80px] left-[calc(50%-480px)] w-[240px] h-[185px] bg-primary rounded-xl z-10 shadow-xl'> | ||
| <ImageCard | ||
| imageSrc='/assets/lendingwine1.png' | ||
| imageClassName='h-full w-[44px] object-contain ' | ||
| > | ||
| <div className='flex flex-col ml-[8px] w-[100px]'> | ||
| <span className='font-extrabold text-4xl text-gray-800'>4.3</span> | ||
| <span>๋ณ์ ๋์ค์</span> | ||
| <p className='custom-text-xs-regular text-gray-500'> | ||
| Sentinel Carbernet Sauvignon 2016 | ||
| </p> | ||
| </div> | ||
| </ImageCard> | ||
| </div> | ||
| <div className='absolute top-[80px] left-[calc(50%+240px)] w-[240px] h-[185px] bg-[#6A42DB] rounded-xl z-10 shadow-xl'> | ||
| <ImageCard | ||
| imageSrc='/assets/lendingwine1.png' | ||
| imageClassName='h-full w-[44px] object-contain ' | ||
| > | ||
| <div className='flex flex-col ml-[8px] w-[100px]'> | ||
| <span className='font-extrabold text-4xl text-gray-800'>4.3</span> | ||
| <span>๋ณ์ ๋์ค์</span> | ||
| <p className='custom-text-xs-regular text-gray-500'> | ||
| Sentinel Carbernet Sauvignon 2016 | ||
| </p> | ||
| </div> | ||
| </ImageCard> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </header> | ||
| ); | ||
| }; | ||
|
Collaborator
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. ๋ ์ด์์ ์ ์ก์์ฃผ์
จ๋ค์. |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,24 @@ | ||
| import { ContentSection } from '@/components/home/ContentSection'; | ||
| import { HeroSection } from '@/components/home/HeroSection'; | ||
| import { Button } from '@/components/ui/button'; | ||
|
|
||
| export default function Home() { | ||
| return <main>๋ฉ์ธ</main>; | ||
| return ( | ||
| <div className='mx-auto px-[16px] md:px-[20px] xl:px-0 max-w-[1140px] min-w-[343px] mt-6 xl:mt-[80px]'> | ||
| <HeroSection /> | ||
| <main> | ||
| <ContentSection /> | ||
| </main> | ||
| <footer> | ||
| <Button | ||
| variant='purpleDark' | ||
| size='onlyLanding' | ||
| width='onlyLanding' | ||
| className='block mx-auto mb-[62px]' | ||
| > | ||
| ์์ธ ๋ณด๋ฌ๊ฐ๊ธฐ | ||
| </Button> | ||
| </footer> | ||
|
Collaborator
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> | ||
| ); | ||
| } | ||
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.
ImageCard๋ฅผ ๊ฐ์ธ๋ div ๋ถ๋ถ์ css๊ฐ ๊ณตํต์ ์ผ๋ก ์ ์ฉ๋๋ ๋ถ๋ถ์ด ์์ด์ ImageCardLayout ๊ฐ์ wrapper ์ปดํฌ๋ํธ๋ก ๋นผ์ฃผ๋ฉด ๊ฐ๋ ์ฑ์ด ๋ ์ข์์ง ๊ฒ ๊ฐ์ต๋๋ค!
๋ก๊ทธ์ธ/ํ์๊ฐ์ ํ์ด์ง์์ ๋ ์ด์์์ด ๋น์ทํ ๋ถ๋ถ์ด ์์ด AuthLayout ์ปดํฌ๋ํธ๋ฅผ ์ถ๊ฐํ์ฌ ์ฌ์ฉ์ค์ ๋๋ค. ์ฐธ๊ณ ๋ถํ๋๋ฆฝ๋๋ค