-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#23) π° οΏ½EUNHAK: ꡬμ κ°μ΄λ νμ΄μ§ ꡬν λ° λ¨Έμ§
ꡬμ κ°μ΄λμμ μ΄κΈ° νμ΄μ§μ ν΄λΉ μ’μ λ²νΌμ ν΄λ¦νμμ λ μ΄λνλ μμΈ νμ΄μ§λ₯Ό ꡬννλ€.
- Loading branch information
Showing
21 changed files
with
269 additions
and
20 deletions.
There are no files selected for viewing
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.
2 changes: 1 addition & 1 deletion
2
src/pages/Onboarding/components/BackBar.tsx β src/components/layout/BackBar.tsx
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
4 changes: 2 additions & 2 deletions
4
...ges/Onboarding/components/BackLogoBar.tsx β src/components/layout/BackLogoBar.tsx
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
4 changes: 2 additions & 2 deletions
4
...Recommendation/Question/HeaderBackBar.tsx β src/components/layout/HeaderBackBar.tsx
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
2 changes: 1 addition & 1 deletion
2
...ges/Recommendation/Question/HeaderBar.tsx β src/components/layout/HeaderBar.tsx
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,19 @@ | ||
import React from 'react'; | ||
import Image from 'next/image'; | ||
import Link from 'next/link'; | ||
|
||
import logoIcon from '../../assets/svg/hitzone_logo.svg'; | ||
|
||
const BackBar = () => { | ||
return ( | ||
<div className="flex pb-[14px] border-b border-grayscale-10"> | ||
<div className="flex justify-center w-full"> | ||
<Link href="/"> | ||
<Image src={logoIcon} alt="Logo" width={154} height={27} /> | ||
</Link> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default BackBar; |
File renamed without changes.
File renamed without changes.
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
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,74 @@ | ||
import React from "react"; | ||
import Image from "next/image"; | ||
import StadiumInfo from "../../Main/components/StadiumInfo"; | ||
import SeatDropdown from "./SeatDropdown"; | ||
import tipIcon from "../../../assets/svg/tip_button.svg"; | ||
|
||
interface GuideDetailContentProps { | ||
title: string; | ||
image: string; | ||
description: string; | ||
gateInfo: string; | ||
stepInfo: string; | ||
seatSpaceInfo: string; | ||
} | ||
|
||
export default function GuideDetailContent({ | ||
title, | ||
image, | ||
description, | ||
gateInfo, | ||
stepInfo, | ||
seatSpaceInfo, | ||
}: GuideDetailContentProps) { | ||
// κ³΅ν΅ ν΄λμ€ μ μ | ||
const containerClass = "bg-grayscale-0 p-3 rounded-lg"; | ||
const sectionTitleClass = "text-sm font-semibold text-grayscale-80 bg-gray-100 px-2 py-1 rounded inline-block"; | ||
const sectionContentClass = "text-sm font-regular text-black mt-2"; | ||
|
||
return ( | ||
<div className="relative mb-[84px]"> | ||
{/* μ’μ μ ν λλ‘λ€μ΄ λ° Tip λ²νΌ */} | ||
<div className="flex items-center mb-4"> | ||
<SeatDropdown | ||
options={["λ λμ", "λΈλ£¨μ", "μ€λ μ§μ", "λ€μ΄λΉμ", "ν리미μμ", "ν μ΄λΈμ", "μ΅μ¬μ΄ν μ", "μΈμΌκ·Έλ¦°μ"]} | ||
selectedOption={title} | ||
onSelect={(option) => console.log(option)} | ||
/> | ||
<button className="ml-auto w-[54px] h-[30px] flex items-center justify-center"> | ||
<Image src={tipIcon} alt="Tip" width={54} height={30} /> | ||
</button> | ||
</div> | ||
|
||
{/* μΌκ΅¬μ₯ μ’μ μ΄λ―Έμ§ */} | ||
<div className="relative"> | ||
<Image src={image} alt={`${title} μ΄λ―Έμ§`} className="w-full rounded-lg" width={370} height={198} /> | ||
</div> | ||
|
||
{/* ꡬμ₯ μ 보 */} | ||
<StadiumInfo stadium={title} /> | ||
|
||
<div className="bg-grayscale-5 p-4 rounded-lg mt-4"> | ||
{/* μλ¨ νμ΄ν μΉμ */} | ||
<div className={containerClass}> | ||
<h2 className="text-lg font-bold">{title}</h2> | ||
<p className="text-sm text-gray-700 mt-2">{description}</p> | ||
</div> | ||
|
||
{/* μΈλΆ μ 보 μΉμ */} | ||
<div className={`${containerClass} mt-3 space-y-4`}> | ||
{[ | ||
{ title: "μΆμ ꡬ μμΉ", content: gateInfo }, | ||
{ title: "λ¨μ°¨ μ 보", content: stepInfo }, | ||
{ title: "μ’μ κ° κ°κ²© (λ¬΄λ¦ κ°κ²©) μ 보", content: seatSpaceInfo }, | ||
].map((section, index) => ( | ||
<div key={index}> | ||
<h3 className={sectionTitleClass}>{section.title}</h3> | ||
<p className={sectionContentClass}>{section.content}</p> | ||
</div> | ||
))} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import React, { useState } from "react"; | ||
import Image from "next/image"; | ||
import stadiumDropdownIcon from "../../../assets/webp/stadium_dropdown.webp"; | ||
|
||
interface SeatDropdownProps { | ||
options: string[]; | ||
selectedOption: string; | ||
onSelect: (option: string) => void; | ||
} | ||
|
||
export default function SeatDropdown({ options, selectedOption, onSelect }: SeatDropdownProps) { | ||
const [isDropdownOpen, setIsDropdownOpen] = useState(false); | ||
|
||
const toggleDropdown = () => setIsDropdownOpen(!isDropdownOpen); | ||
|
||
return ( | ||
<div className="relative w-[220px]"> | ||
<button | ||
onClick={toggleDropdown} | ||
className="flex items-center justify-between py-[6px] px-3 border border-gray-300 rounded-lg w-full h-[36px] text-md font-semibold text-gray-800" | ||
> | ||
<span>{selectedOption || "ꡬμμ μ ννμΈμ"}</span> | ||
<Image src={stadiumDropdownIcon} alt="dropdown icon" width={16} height={16} /> | ||
</button> | ||
|
||
{isDropdownOpen && ( | ||
<div className="absolute left-0 w-full mt-2 bg-white shadow-lg text-sm z-10 rounded-lg"> | ||
<ul className="list-none max-h-60 overflow-y-auto"> | ||
{options.map((option, index) => ( | ||
<li | ||
key={option} | ||
onClick={() => { | ||
onSelect(option); | ||
setIsDropdownOpen(false); | ||
}} | ||
className={`px-4 py-[10px] cursor-pointer ${ | ||
option === selectedOption ? "bg-red-500 text-white font-semibold" : "text-gray-800" | ||
} ${index === 0 ? "rounded-t-lg" : ""} ${index === options.length - 1 ? "rounded-b-lg" : ""} ${ | ||
option !== selectedOption ? "hover:bg-gray-100" : "" | ||
}`} | ||
> | ||
{option} | ||
</li> | ||
))} | ||
</ul> | ||
</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
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
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
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