From 1c5f75b5b261a8224ca5fda0c85717061db8345b Mon Sep 17 00:00:00 2001 From: chpark Date: Fri, 17 Apr 2026 11:19:02 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EB=A7=A4=EB=A7=A4=EC=A0=95?= =?UTF-8?q?=EB=B3=B4=20=EC=84=B9=EC=85=98=20=EC=88=9C=EC=84=9C=20=EC=A0=95?= =?UTF-8?q?=EB=B9=84=20(=EB=A7=A4=EB=AC=BC=EC=84=A4=EB=AA=85+=EB=A7=A4?= =?UTF-8?q?=EC=9E=A5=EC=82=AC=EC=A7=84=E2=86=92=EB=A7=A4=EC=B6=9C/?= =?UTF-8?q?=EC=9E=85=EC=A7=80/=EC=82=AC=EC=9C=A0=E2=86=92=ED=98=84?= =?UTF-8?q?=EC=9E=A5=EC=82=AC=EC=A7=84)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 요구사항 12·13: 매매정보 안에 매물설명과 매장사진을 함께 묶고, 매물설명 아래에 매출/월수익·입지특징·매매사유·현장사진이 순서대로 나오도록 재구성. Co-Authored-By: Claude Opus 4.7 (1M context) --- apps/web/src/app/stores/[id]/page.tsx | 123 ++++++++++++++++++-------- 1 file changed, 85 insertions(+), 38 deletions(-) diff --git a/apps/web/src/app/stores/[id]/page.tsx b/apps/web/src/app/stores/[id]/page.tsx index 38b0839..a9adece 100644 --- a/apps/web/src/app/stores/[id]/page.tsx +++ b/apps/web/src/app/stores/[id]/page.tsx @@ -148,12 +148,7 @@ export default async function StoreDetailPage({ params }: { params: Promise<{ id

매매 정보

- {store.sale?.listingDescription && ( -

- {store.sale.listingDescription} -

- )} - + {/* 핵심 지표 (첫번째 캡쳐) */}
@@ -175,47 +170,99 @@ export default async function StoreDetailPage({ params }: { params: Promise<{ id />
- {(store.sale?.locationHighlight || store.sale?.saleReason) && ( -
- {store.sale?.locationHighlight && ( -
-

입지 특징

-

- {store.sale.locationHighlight} -

-
+ {/* 매물설명 + 매장사진 (두번째 캡쳐) */} + {(store.sale?.listingDescription || store.photos.length > 0) && ( +
+

매물 설명

+ {store.sale?.listingDescription ? ( +

+ {store.sale.listingDescription} +

+ ) : ( +

설명이 등록되지 않았습니다

)} - {store.sale?.saleReason && ( -
-

매매 사유

-

{store.sale.saleReason}

+ + {store.photos[0] && ( +
+ {/* eslint-disable-next-line @next/next/no-img-element */} + 매장 대표 사진
)}
)} -
- {/* 매장 사진 */} - {store.photos.length > 0 && ( -
-

매장 사진

-
- {store.photos.map((photo) => ( -
- {/* eslint-disable-next-line @next/next/no-img-element */} - 매장 사진 +

매출 / 월수익

+
+
+ + +
- ))} +
-
- )} + )} + + {/* 입지특징 */} + {store.sale?.locationHighlight && ( +
+

입지 특징

+

+ {store.sale.locationHighlight} +

+
+ )} + + {/* 매매사유 */} + {store.sale?.saleReason && ( +
+

매매 사유

+

+ {store.sale.saleReason} +

+
+ )} + + {/* 현장사진 (대표 사진 제외한 나머지) */} + {store.photos.length > 1 && ( +
+

현장 사진

+
+ {store.photos.slice(1).map((photo) => ( +
+ {/* eslint-disable-next-line @next/next/no-img-element */} + 현장 사진 +
+ ))} +
+
+ )} + {/* 임대 정보 */}