Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,10 @@ const WineDetailContent = ({ wineId }: WineDetailContentProps) => {

return (
<main className="min-h-screen bg-white">
{/* 헤더 */}
<section className="rounded-b-none bg-[url('/images/wines/bg-recommended.png')] bg-cover bg-repeat pt-[60px] tablet:rounded-b-none tablet:pt-[70px] pc:rounded-b-[88px] pc:pt-[70px]">
<WineHeader wine={wine} />
</section>

{/* 맛/향 섹션 */}
<section className="mb-0 mt-12 bg-white tablet:mb-0 tablet:mt-16 pc:mb-12 pc:mt-16">
<div className="container">
<div className="flex flex-col gap-12 tablet:gap-20 pc:flex-row pc:gap-32">
Expand All @@ -66,12 +64,10 @@ const WineDetailContent = ({ wineId }: WineDetailContentProps) => {
</div>
</section>

{/* 구분선 */}
<div className="container">
<hr className="mt-[-5px] border-t border-gray-300 tablet:mt-0 pc:mt-0" />
</div>

{/* 리뷰 섹션 */}
<section className="bg-white pb-12 pt-14 tablet:pt-14 pc:pt-14">
<div className="container">
<ReviewSection
Expand Down
10 changes: 0 additions & 10 deletions src/app/wines/[id]/_components/wine-review-form/review-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export default function ReviewForm({
image: wineImage,
} = wine;

// 상태 관리
const [rating, setRating] = useState(0);
const [content, setContent] = useState("");
const [selectedAromas, setSelectedAromas] = useState<AromaKey[]>([]);
Expand Down Expand Up @@ -68,7 +67,6 @@ export default function ReviewForm({
}
}, [initialData]);

// 맛 변경 핸들러
const handleTasteChange = (index: number, newLevel: GaugeLevel) => {
const newTastes = [...tastes];
newTastes[index].data = newLevel;
Expand Down Expand Up @@ -114,7 +112,6 @@ export default function ReviewForm({

if (hasError) return;

// 데이터 생성
const reviewData: ReviewBase = {
rating,
lightBold: tastes[0].data,
Expand All @@ -140,15 +137,12 @@ export default function ReviewForm({
className
)}
>
{/* 모든 컨텐츠 */}
<div className="flex flex-col gap-8">
{/* 와인 정보 */}
<div>
<WineInfo name={wineName} region={wineRegion} image={wineImage} />
<div className="mt-4 border-t border-gray-300" />
</div>

{/* 별점 선택 */}
<div className="flex items-center gap-4">
<label className="text-body-sm text-gray-500">별점 선택</label>
<RatingInput
Expand All @@ -158,7 +152,6 @@ export default function ReviewForm({
/>
</div>

{/* 후기 입력 */}
<div>
<textarea
value={content}
Expand Down Expand Up @@ -189,7 +182,6 @@ export default function ReviewForm({
</div>
</div>

{/* 와인의 맛 */}
<div>
<label className="mb-4 block text-heading-md">
와인의 맛은 어떤가요?
Expand All @@ -201,7 +193,6 @@ export default function ReviewForm({
/>
</div>

{/* 향 선택 */}
<div className="tablet:pb-12 pc:pb-12">
<label className="mb-4 block text-heading-md">
기억에 남는 향이 있나요?
Expand All @@ -219,7 +210,6 @@ export default function ReviewForm({
</div>
</div>

{/* 버튼 */}
<PageModalBtnWrapper>
<Button
onClick={handleSubmit}
Expand Down
Loading