Skip to content

Conversation

@Luganic
Copy link
Collaborator

@Luganic Luganic commented Jul 29, 2025

๐Ÿ“ฆ Pull Request

  • ์บ๋Ÿฌ์…€ ๊ตฌํ˜„ ํ›„ ํ…Œ์ŠคํŠธ ์™„๋ฃŒํ–ˆ์Šต๋‹ˆ๋‹ค

๐Ÿ“ ์š”์•ฝ(Summary)

  • ์บ๋Ÿฌ์…€ ๋ฒ„ํŠผ์ด ๋งˆ์ง€๋ง‰๊นŒ์ง€ ๊ฐ€๋ฉด ํ๋ฆผ ํ‘œ์‹œ๊ฐ€ ๋ฉ๋‹ˆ๋‹ค.
  • Link ์—ฐ๊ฒฐ๋กœ ์นด๋“œ ํด๋ฆญ ์‹œ ์ƒ์„ธ ํŽ˜์ด์ง€๋กœ ๊ฐ‘๋‹ˆ๋‹ค.

๐Ÿ’ฌ ๊ณต์œ ์‚ฌํ•ญ to ๋ฆฌ๋ทฐ์–ด

  • ์บ๋Ÿฌ์…€ (carousel.tsx)
  • ์บ๋Ÿฌ์…€ ์•ˆ ์™€์ธ ์นด๋“œ (WineCard.tsx)
  • ์บ๋Ÿฌ์…€ ์ปจํ…Œ์ด๋„ˆ (wineSlider.tsx)
  • ์บ๋Ÿฌ์…€ ์ „์šฉ ๋ฒ„ํŠผ (ListSliderButton.tsx)

๐Ÿ—‚๏ธ ๊ด€๋ จ ์ด์Šˆ

๐Ÿ“ธ ์Šคํฌ๋ฆฐ์ƒท

image

โœ… ์ฒดํฌ๋ฆฌ์ŠคํŠธ

  • ๋นŒ๋“œ ๋ฐ ํ…Œ์ŠคํŠธ ํ†ต๊ณผ
  • ESLint/Prettier ๊ฒ€์‚ฌ ํ†ต๊ณผ

@vercel
Copy link

vercel bot commented Jul 29, 2025

@Luganic is attempting to deploy a commit to the 626-ju's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Luganic Luganic requested review from 626-ju and youdaeng2 July 29, 2025 06:26
];

export default function WineListCard() {
return (
Copy link
Collaborator

@626-ju 626-ju Jul 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ด๋Ÿฐ ์‹์œผ๋กœ ํ•˜๋Š” ๋ฐฉ๋ฒ•๋„ ์žˆ์—ˆ๊ตฐ์š”?
๋ถ„๋ช… ๊ฐ ๋ทฐํฌํŠธ ๋ณ„๋กœ ๋‚˜๋ˆ ์„œ ๋ณด๊ธฐ์—” ํŽธํ•  ์ˆ˜ ์žˆ๋Š” ์žฅ์ ์ด ์žˆ๋Š” ๊ฒƒ ๊ฐ™์ง€๋งŒ
์ด๋ ‡๊ฒŒ ํ•˜๋Š” ์‚ฌ๋ก€๋ฅผ ๊ฑฐ์˜ ๋ณธ ์ ์ด ์—†์–ด์„œ ์ €๋„ ์ฐพ์•„๋ณด๋‹ˆ

1.์Šคํฌ๋ฆฐ ๋ฆฌ๋”๊ธฐ๋‚˜ ํฌ๋กค๋Ÿฌ ๋ด‡์—๊ฒŒ ํ˜ผ๋ž€์„ ์ค„ ์ˆ˜ ์žˆ์Œ.
2. ์ˆ˜์ •์ด ํ•„์š”ํ•  ๋•Œ ์—ฌ๋Ÿฌ ๊ณณ์„ ํ•˜๋‚˜ํ•˜๋‚˜ ์ฐพ์•„์•ผ ํ•จ.
+์ˆ˜์ •์ด ํ•„์š”ํ•œ๋ฐ, ๋ˆ„๋ฝ์ด ๋  ์ˆ˜ ์žˆ๋‹ค๋Š” ์ . +๋””๋ฒ„๊น…์˜ ์–ด๋ ค์›€

3.ํžˆ๋“ ์ด์—ฌ๋„ ๋”ํŠธ๋ฆฌ์—๋Š” ๊ทธ๋Œ€๋กœ ๋‚จ์•„์žˆ์œผ๋‹ˆ๊นŒ ๋ถˆํ•„์š”ํ•œ ๋ฆฌ์†Œ์Šค ๋‚ญ๋น„.

๋“ฑ์˜ ๋ฌธ์ œ๊ฐ€ ์žˆ์„ ์ˆ˜๋„ ์žˆ๋‹ค๊ณ  ํ•˜๋”๋ผ๊ตฌ์š”

๊ทธ๋ž˜๋„ ์˜ค๋Š˜ ๋ดค์„ ๋•Œ ui์ƒ์œผ๋กœ ํฌ๊ฒŒ ์ด์ƒํ•œ๊ฑด ์—†์—ˆ์œผ๋‹ˆ ์ง„ํ–‰์„ ํ•˜๊ตฌ,
์œ„์—์„œ ๋งํ•œ ์ ๋“ค์ด ์‹ ๊ฒฝ ์“ฐ์ด์‹ ๋‹ค๋ฉด ๋‹ค์Œ์— ์‹œ๊ฐ„ ๋‚จ์„ ๋•Œ ๊ฐœ์ธ์ ์œผ๋กœ ์ˆ˜์ •ํ•ด๋ณด์‹œ๋Š” ๊ฒƒ๋„ ์ข‹์„ ๊ฒƒ ๊ฐ™๋„ค์š”!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค ๋ฉ”๋ชจํ•ด๋†“๊ฒ ์Šต๋‹ˆ๋‹ค!

Copy link
Member

@youdaeng2 youdaeng2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ค‘๊ฐ„์— ํž˜๋“œ์…จ๋‹ค๊ณ  ํ•˜์…จ๋Š”๋ฐ๋„ UI ์™„์„ฑํ•˜์‹œ๋А๋ผ ๊ณ ์ƒ ๋งŽ์œผ์…จ์–ด์š”!
์ „์ฒด์ ์œผ๋กœ ๊น”๋”ํ•˜๊ฒŒ ์ž˜ ์ •๋ฆฌ๋ผ์„œ ๋ณด๊ธฐ ์ข‹์•˜์Šต๋‹ˆ๋‹ค.
์บ๋Ÿฌ์…€ ๋ถ€๋ถ„์€ ํ‚ค๋ณด๋“œ ํฌ์ปค์Šค ์ž˜ ๋˜๋Š”์ง€๋งŒ ํ•œ๋ฒˆ ๋” ํ™•์ธํ•ด๋ณด์‹œ๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์•„์š”
๊ณ ์ƒํ•˜์…จ์Šต๋‹ˆ๋‹ค!

md:w-[114px] md:h-[42px] md:mt-[5px]'
>
โ‚ฉ {wine.price.toLocaleString()}
</Button>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ €๋Š” Badge ์ปดํฌ๋„ŒํŠธ ์‚ฌ์šฉํ•˜๋Š” ๊ฑธ๋กœ ์•Œ๊ณ ์žˆ๋Š”๋ฐ ์•„๋‹๊นŒ์š”!?!? ์™œ ๋ฒ„ํŠผ์ธ์ง€ ๋ชจ๋ฅด๊ฒ ์Šต๋‹ˆ๋‹ค! ๋”ฐ๋กœ ๋กœ์ง์ด ์žˆ์„๊นŒ์š”?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.... ์™œ๊ทธ๋žฌ์„๊นŒ์š”. ์ด๊ฑฐ ๋‹ค์‹œ ํ™•์ธํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.
๋ง์”€ํ•ด์ฃผ์‹ ๋Œ€๋กœ Badge ๋งž์Šต๋‹ˆ๋‹ค

<div className='flex flex-col gap-[5px] w-[160px] mt-[15px] items-start'>
<div className='flex gap-[4px] flex-nowrap'>
{Array.from({ length: 5 }).map((_, i) => (
<StarIcon
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๋ชจ๋ฐ”์ผ๊ณผ PC์—์„œ ๋ณ„์  UI๋ฅผ ๋”ฐ๋กœ ๋ Œ๋”๋งํ•˜๊ณ  ๊ณ„์‹  ๊ฒƒ ๊ฐ™์•„์š”!

์Šคํƒ€์ผ๊ณผ ์œ„์น˜ ๋•Œ๋ฌธ์— ๋ ˆ์ด์•„์›ƒ์„ ๋‹ค๋ฅด๊ฒŒ ๊ตฌ์„ฑํ•˜์‹  ๊ฑฐ๋ผ๋ฉด ํ˜„์žฌ ๋ฐฉ์‹๋„ ๊ดœ์ฐฎ์ง€๋งŒ
๋ณ„์  ๋ Œ๋”๋ง ๋ถ€๋ถ„์€ ๋กœ์ง์ด ๋™์ผํ•˜๋ฏ€๋กœ ํ•จ์ˆ˜๋กœ ์ถ”์ถœํ•ด์„œ ์ค‘๋ณต์„ ์ค„์ด๋Š” ๋ฐฉ๋ฒ•๋„ ๊ณ ๋ คํ•ด๋ณด๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค

์˜ˆ์‹œ๋กœ ์ œ์•ˆ๋“œ๋ฆฌ์ž๋ฉด:

  1. ์ž‘์„ฑํ•˜์‹  ์ฝ”๋“œ์™€ ๋งˆ์ฐฌ๊ฐ€์ง€๋กœ ๋ชจ๋ฐ”์ผ/pc ๋ณ„๋กœ ๋ ˆ์ด์•„์›ƒ์€ ๋‚˜๋ˆ„๋˜, ์ค‘๋ณต ์ œ๊ฑฐ๋ฅผ ์œ„ํ•ด ๋ณ„ ๋ Œ๋”๋ง ํ•จ์ˆ˜๋ฅผ ๋”ฐ๋กœ ๋งŒ๋“ค๊ธฐ

์˜ˆ์‹œ์ž…๋‹ˆ๋‹ค

// ๋ณ„ ๋ Œ๋”๋ง ํ•จ์ˆ˜
function renderStars(rating: number, size: 'sm' | 'md') {
  const starSizeClass = size === 'sm' ? 'w-3 h-3' : 'w-[16px] h-[16px]';

  return (
    <div className='flex gap-[4px] flex-nowrap'>
      {Array.from({ length: 5 }).map((_, i) => (
        <StarIcon
          key={i}
          className={cn(
            rating >= i + 1 ? 'fill-purpleDark' : 'fill-gray-300',
            starSizeClass,
          )}
        />
      ))}
    </div>
  );
}

{/* ๋ชจ๋ฐ”์ผ์—์„œ๋Š” */}
{renderStars(wine.rating, 'sm')}

{/* PC์—์„œ๋Š” */}
{renderStars(wine.rating, 'md')}

์ด๋ ‡๊ฒŒ ๊ตฌ์„ฑํ•˜์‹œ๋ฉด ๋ณ„์  ๊ด€๋ จ ์ˆ˜์ •์ด ํ•„์š”ํ•  ๋•Œ๋„ ์œ ์ง€๋ณด์ˆ˜๊ฐ€ ํ›จ์”ฌ ํŽธํ•  ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.
ํ˜น์‹œ ๋ณ„๋„๋กœ ๋ถ„๊ธฐํ•˜์‹  ๋‹ค๋ฅธ ์ด์œ ๊ฐ€ ์žˆ์œผ์‹ค๊นŒ์š”??

์ฐธ๊ณ ๋กœ ์„ฑ์ฃผ๋‹˜๊ป˜์„œ ์ž‘์„ฑํ•˜์‹  wine.detail์—๋„ ๋ณ„์  ๊ด€๋ จ ์ปดํฌ๋„ŒํŠธ๊ฐ€ ์žˆ์œผ๋‹ˆ ํ•œ๋ฒˆ ํ™•์ธํ•ด๋ณด์…”๋„ ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

@Luganic Luganic merged commit 2309af7 into codeit-part3-7:dev Jul 29, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants