-
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.
- Loading branch information
Showing
13 changed files
with
566 additions
and
64 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,3 +1,37 @@ | ||
export default function GiftDetail() { | ||
return <div></div>; | ||
import Star from "./star.svg?react"; | ||
|
||
export default function GiftDetail({ contentList }) { | ||
return ( | ||
<div className="flex flex-col font-bold"> | ||
<span className="text-body-l text-neutral-50 pb-10">경품 안내</span> | ||
|
||
{contentList.map((content, index) => ( | ||
<div key={index} className="bg-neutral-900 p-6 mb-5 flex z-0 relative"> | ||
<img src={content.src} alt="경품" /> | ||
|
||
<div className="pl-8 flex flex-col"> | ||
<span className="text-body-l text-white"> | ||
{content.name} | ||
<span className="text-blue-400 pl-2">{content.num}명</span> | ||
</span> | ||
|
||
<span className="pt-2 text-body-m text-neutral-400 whitespace-pre-wrap"> | ||
{content.desc} | ||
</span> | ||
</div> | ||
|
||
<div className="absolute right-0 top-0 z-40 translate-x-1/2 -translate-y-1/3"> | ||
<Star fill={content.starColor} /> | ||
|
||
<span | ||
style={{ color: content.starTextColor }} | ||
className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 text-body-s" | ||
> | ||
{content.star} | ||
</span> | ||
</div> | ||
</div> | ||
))} | ||
</div> | ||
); | ||
} |
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,49 @@ | ||
export default function TarBar({ | ||
currentInteraction, | ||
setCurrentInteraction, | ||
isJoinedList, | ||
}) { | ||
return ( | ||
<> | ||
<span className="py-5 text-body-l text-neutral-200 font-bold items-center border-b-[3px] border-b-neutral-400"> | ||
EVENT 1 | ||
</span> | ||
|
||
<span className="pt-9 text-head-m text-white font-bold"> | ||
The 새로워진 IONIQ 5, 인터랙션으로 만나다 | ||
</span> | ||
|
||
<span className="pt-4 text-title-s text-neutral-300 whitespace-pre-wrap text-center"> | ||
{`The new IONIQ 5의 새로운 기능을 날마다 체험하고 이벤트에 응모하세요!\n추첨을 통해 IONIQ과 함께하는 제주 여행 패키지를 드립니다`} | ||
</span> | ||
|
||
<div className="py-12 flex gap-[60px]"> | ||
{isJoinedList.map((isJoined, index) => ( | ||
<div | ||
key={index} | ||
onClick={() => setCurrentInteraction(index)} | ||
className="flex flex-col items-center select-none" | ||
> | ||
<img | ||
src="icons/check-mint.svg" | ||
alt="체크" | ||
className={`${isJoined > 0 ? "" : "invisible"}`} | ||
/> | ||
|
||
<span | ||
className={`text-body-l font-bold ${currentInteraction === index ? "text-neutral-100" : "text-neutral-500"}`} | ||
> | ||
Day{index + 1} | ||
</span> | ||
|
||
<span | ||
className={`text-body-m font-bold ${isJoined > 0 ? "text-green-400" : "text-neutral-700"}`} | ||
> | ||
{isJoined > 0 ? "참여 완료" : !isJoined ? "미참여" : ""} | ||
</span> | ||
</div> | ||
))} | ||
</div> | ||
</> | ||
); | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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