-
Notifications
You must be signed in to change notification settings - Fork 0
Feat/update tab filter UI #99
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 all commits
10a1fff
9b761c8
fa4ec42
4b25ee1
afc1c27
1aaf0f6
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 |
|---|---|---|
| @@ -1,11 +1,13 @@ | ||
| export * from "./lib/hooks/useCarouselButton"; | ||
|
|
||
| export * from "./model/constant"; | ||
| export * from "./model/type"; | ||
|
|
||
| export * from "./ui/HonbobCarouselIndicator"; | ||
| export * from "./ui/HonbobCarouselSlide"; | ||
| export * from "./ui/HonbobFirstVisitModal"; | ||
| export * from "./ui/HonbobLevelCard"; | ||
| export * from "./ui/HonbobLevelCarousel"; | ||
| export * from "./ui/HonbobLevelFilterCard"; | ||
| export * from "./ui/HonbobLevelInfoCard"; | ||
| export * from "./ui/HonbobLevelTestGuideModal"; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| import type { StaticImageData } from "next/image"; | ||
|
|
||
| export interface HonbobLevelCardInfo { | ||
| honbobLevel: string; | ||
| honbobLevelTitle: string; | ||
| honbobLevelDescription: string; | ||
| honbobLevelIcon: StaticImageData; | ||
| recommendedMenu: string; | ||
| recommendedStore: string; | ||
| characteristics: string; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| import Image from "next/image"; | ||
| import { getHonbobLevelImageSet } from "@/shared/lib"; | ||
|
|
||
| interface HonbobLevelFilterCardProps { | ||
| honbobLevel: string; | ||
| honbobLevelTitle: string; | ||
| honbobLevelDescription: string; | ||
| recommendedMenu: string; | ||
| recommendedStore: string; | ||
| } | ||
|
|
||
| export function HonbobLevelFilterCard({ | ||
| honbobLevel, | ||
| honbobLevelTitle, | ||
| honbobLevelDescription, | ||
| recommendedMenu, | ||
| recommendedStore, | ||
| }: HonbobLevelFilterCardProps) { | ||
| const { infoCharacterImage } = getHonbobLevelImageSet(honbobLevel); | ||
|
|
||
| return ( | ||
| <div className="flex flex-col bg-gray50 rounded-[12px] p-[16px] gap-y-[16px]"> | ||
| <div className="flex items-center gap-x-[12px]"> | ||
| <Image | ||
| src={infoCharacterImage} | ||
| alt={`${honbobLevel}LevelImage`} | ||
| className=" w-[48px] h-[48px] rounded-full object-contain" | ||
| /> | ||
| <div> | ||
| <div className="flex flex-col gap-y-[8px]"> | ||
| <div className="w-fit px-[4px] py-1px rounded-[4px] bg-primary100 text-caption2-medium text-primary500"> | ||
| {honbobLevel} | ||
| </div> | ||
| <p className="text-body2-regular text-gray900">{honbobLevelTitle}</p> | ||
| </div> | ||
| <div className="text-body1-semibold text-gray700">{honbobLevelDescription}</div> | ||
| </div> | ||
| </div> | ||
| <div className="self-stretch p-4 bg-white rounded-lg inline-flex flex-col justify-start items-start gap-3"> | ||
| <div className="flex flex-col gap-y-[4px]"> | ||
| <span className="text-body3-semibold text-gray500">μΆμ² λ©λ΄</span> | ||
| <span className="text-body3-regular text-gray800">{recommendedMenu}</span> | ||
| </div> | ||
| <div className="flex flex-col gap-y-[4px]"> | ||
| <span className="text-body3-semibold text-gray500">μΆμ² μ’μ</span> | ||
| <span className="text-body3-regular text-gray800">{recommendedStore}</span> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| ); | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -44,10 +44,11 @@ export interface StoreListRequestBody { | |
| min: number; | ||
| max: number; | ||
| }; | ||
| honbobLevel: number; | ||
| honbobLevel?: number[]; | ||
|
Member
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. 볡μν
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. μ΄ λΆλΆμ dtoμ sκ°λΉ μ Έμμ΄μ κ³ λ―Όνλ€κ° λ€ λ¨μλ‘ λ°κΏ¨μ΅λλ€.. BEλ μ΄μΌκΈ°ν΄μ μμ ν΄μΌν κ² κ°μμ. |
||
| seatTypes?: ("FOR_ONE" | "FOR_TWO" | "FOR_FOUR" | "BAR_TABLE" | "CUBICLE")[]; | ||
| paymentMethods?: string[]; | ||
| categories?: string[]; | ||
| sortBy?: "DISTANCE" | "RECOMMENDED"; | ||
| }; | ||
| paging: { | ||
| limit: number; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| export * from "./utils/getDefaultStationCenter"; | ||
| export * from "./utils/getLevelFilterDisplayValue"; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| export const getLevelFilterDisplayValue = (honbobLevel: number[]) => { | ||
| if (honbobLevel.length > 1) { | ||
| return "컀μ€ν "; | ||
| } | ||
| return `λ 벨${honbobLevel[0] || 1}`; | ||
| }; |
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.
πππ