-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
ADD :: TIP Page Publishing
- Loading branch information
Showing
6 changed files
with
106 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { GradientImg } from "@/assets" | ||
import Image from "next/image" | ||
|
||
export const TipBanner = () => { | ||
return ( | ||
<section className="w-full h-[240px] relative border-b-2 border-gray100 overflow-hidden flex justify-center items-center"> | ||
<Image src={GradientImg} alt="Banner 이미지" className="w-full h-[240px] absolute object-cover object-center -z-[1]" priority /> | ||
<div className="flex flex-col gap-3 items-center"> | ||
<span className="text-headlineLarge text-white">지원서 작성 팁</span> | ||
<span className="text-bodyLarge text-gray200">PROPOFOL 사용자들이 직접 작성한 유용한 지원서 작성 팁이에요.</span> | ||
</div> | ||
</section> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
'use client' | ||
|
||
import { TipBox } from "@/components"; | ||
import { useState } from "react"; | ||
|
||
interface TipBoxProps { | ||
title: string | ||
content: string | ||
name: string | ||
date: string | ||
} | ||
|
||
const TipData: TipBoxProps[] = [ | ||
{ | ||
title: "오늘 저녁 머 먹지...?", | ||
content: "맛있는 피자! 맛있는 치킨! 맛있는 도넛! 냠냠!! 맛있는 피자! 맛있는 치킨! 맛있는 도넛! 냠냠!! 맛있는 피자! 맛있는 치킨! 맛있는 도넛! 냠냠!! 맛있는 피자! 맛있는 치킨! 맛있는 도넛! 냠냠!!", | ||
name: "홍길동이", | ||
date: "2024-05-22" | ||
}, | ||
{ | ||
title: "1오늘 저녁 머 먹지...?", | ||
content: "맛있는 피자! 맛있는 치킨! 맛있는 도넛! 냠냠!! 맛있는 피자! 맛있는 치킨! 맛있는 도넛! 냠냠!! 맛있는 피자! 맛있는 치킨! 맛있는 도넛! 냠냠!! 맛있는 피자! 맛있는 치킨! 맛있는 도넛! 냠냠!!", | ||
name: "홍길동이", | ||
date: "2024-05-22" | ||
}, | ||
{ | ||
title: "2오늘 저녁 머 먹지...?", | ||
content: "맛있는 피자! 맛있는 치킨! 맛있는 도넛! 냠냠!! 맛있는 피자! 맛있는 치킨! 맛있는 도넛! 냠냠!! 맛있는 피자! 맛있는 치킨! 맛있는 도넛! 냠냠!! 맛있는 피자! 맛있는 치킨! 맛있는 도넛! 냠냠!!", | ||
name: "홍길동이", | ||
date: "2024-05-22" | ||
}, | ||
{ | ||
title: "2오늘 저녁 머 먹지...?", | ||
content: "맛있는 피자! 맛있는 치킨! 맛있는 도넛! 냠냠!! 맛있는 피자! 맛있는 치킨! 맛있는 도넛! 냠냠!! 맛있는 피자! 맛있는 치킨! 맛있는 도넛! 냠냠!! 맛있는 피자! 맛있는 치킨! 맛있는 도넛! 냠냠!!", | ||
name: "홍길동이", | ||
date: "2024-05-22" | ||
}, | ||
] | ||
|
||
export const ShowSection = () =>{ | ||
|
||
const [orderType, setOrderType] = useState<'first' | 'last'>('first') | ||
|
||
return( | ||
<section className="flex flex-col items-center w-full relative mb-[120px]"> | ||
<div className="py-6 px-10 flex justify-between items-center sticky bg-white top-0 left-0 w-[70%] min-w-[800px] h-fit"> | ||
<span className="text-bodyLarge text-black">182개의 지원서 자료</span> | ||
<div className="p-1 gap-0.5 flex rounded-full border h-12 border-gray200 bg-gray50 text-bodySmall relative text-gray600"> | ||
<div className={`absolute top-[2px] ${orderType === 'first' ? 'left-[3px]' : 'left-[80px]'} border border-gray100 bg-white py-2 px-4 text-transparent rounded-full transition-all`}>{orderType === 'first' ? '최신순' : '오래된순'}</div> | ||
<span className={`transition-all py-2 px-4 z-10 cursor-pointer ${orderType === 'first' ? 'text-blue500' : 'text-gray600'}`} onClick={() => setOrderType('first')}>최신순</span> | ||
<span className={`transition-all py-2 px-4 z-10 cursor-pointer ${orderType === 'last' ? 'text-blue500' : 'text-gray600'}`} onClick={() => setOrderType('last')}>오래된순</span> | ||
</div> | ||
</div> | ||
<div className="grid grid-cols-3 w-[70%] min-w-[800px] h-fit gap-x-3 gap-y-6 px-10"> | ||
{ | ||
TipData.map((item, index)=> | ||
<TipBox | ||
key={index} | ||
{...item} | ||
/> | ||
) | ||
} | ||
</div> | ||
</section> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { TipBanner } from "./Banner"; | ||
import { ShowSection } from "./ShowSection"; | ||
|
||
export default function Tip(){ | ||
return( | ||
<main> | ||
<TipBanner/> | ||
<ShowSection></ShowSection> | ||
</main> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters