상세 페이지 순서: 작은 제목 → 메인사진 → 서브사진 → 스토리 → 맨 아래 DETAILS(구매·소재·규격)

This commit is contained in:
한땀 작업실 committed 2026-11-01 04:48:34 +00:00
1 parent ebbec84ba6
commit aba5d4d6e2
4 files changed
+165 -142

No files matched your search

+2
View File
@@ -157,6 +157,8 @@ image_alt: 조각보
- 제목: `Noto Serif KR` (serif), 본문: `Noto Sans KR` (sans). CDN 실패 시 시스템 폰트 폴백.
- 여백 위주, 그림자·그라데이션·둥근 카드 금지. 구분은 1px 실선.
- 사진이 주인공: 최소 60vw 폭 또는 4:5 세로 컷. 호버 확대는 1.02 이하.
- **상세 페이지 순서는 고정**: ① 작은 제목(+부제·가격, `product-head`) ② 메인 사진(`product-hero`, 폭 min(100%,1080px), 자르지 않고 원본 비율)
③ 서브 사진(`gallery`, 한 열로 세로로 이어 붙임) ④ 스토리(`product-story`) ⑤ DETAILS(구매 버튼 + 소재·규격·세탁 `spec`) — 사양은 항상 맨 아래.
## 7. 자주 쓰는 명령
+5
View File
@@ -106,6 +106,11 @@ bash scripts/studio.sh # http://localhost:8081
비상용: 아이맥에서만 돌리는 예전 방식도 남아 있다. `bash scripts/studio-service.sh install`(launchd) + `tailscale serve --bg 8081` → `https://imac.taild8883.ts.net/m`. 지금은 꺼 둔다.
## 상세 페이지 구성
① 작은 제목·부제·가격 → ② 메인 사진(자르지 않고 폭 1080px) → ③ 서브 사진(한 열) → ④ 스토리 → ⑤ DETAILS(구매 버튼 + 소재·규격·세탁).
사진이 주인공이고 사양은 맨 아래에 둔다. 템플릿은 `templates/product.html`, 스타일은 `assets/css/site.css` 의 `/* product */` 절.
## 대화로 고치기
Claude Code 에 말로 지시하면 위 파일들을 알아서 고친다. 예:
+133 -122
View File
@@ -772,7 +772,7 @@ strong {
.back-link {
display: inline-block;
margin-block: 8px 28px;
margin-block: 8px 20px;
color: var(--muted);
font-size: 13px;
text-decoration: none;
@@ -786,47 +786,136 @@ strong {
padding-bottom: clamp(40px, 6vw, 80px);
}
.product-top {
/* 제목은 작게 — 사진이 먼저 보이도록 */
.product-head {
display: grid;
grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
gap: clamp(36px, 5vw, 80px);
align-items: start;
gap: 4px;
margin-bottom: clamp(14px, 2.5vw, 26px);
}
.product-media {
aspect-ratio: 4 / 5;
overflow: hidden;
background: var(--line);
}
.product-media img {
width: 100%;
height: 110%;
object-fit: cover;
object-position: center top;
}
.product-info {
position: sticky;
top: 32px;
padding-top: clamp(8px, 3vw, 40px);
}
.product-info h1 {
font-size: clamp(2.3rem, 4.4vw, 4.1rem);
letter-spacing: -0.035em;
line-height: 1.06;
.product-title {
margin: 0;
font-size: clamp(1.05rem, 1.4vw, 1.3rem);
font-weight: 400;
line-height: 1.45;
letter-spacing: 0;
}
.product-sub {
margin-top: 14px;
margin: 0;
color: var(--muted);
font-size: 13px;
}
.product-head-price {
margin: 6px 0 0;
font-size: 15px;
font-variant-numeric: tabular-nums;
}
/* 1. 메인 사진 */
.product-hero {
margin: 0 auto;
width: min(100%, 1080px);
background: var(--line);
}
.product-hero img {
display: block;
width: 100%;
height: auto;
}
/* 2. 서브 사진 */
.gallery {
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: clamp(6px, 1vw, 12px);
width: min(100%, 1080px);
margin: clamp(6px, 1vw, 12px) auto 0;
}
.gallery-figure {
margin: 0;
background: var(--line);
}
.gallery-figure img {
display: block;
width: 100%;
height: auto;
}
/* 3. 스토리 */
.product-story {
display: grid;
grid-template-columns: 108px minmax(0, 1fr);
gap: clamp(20px, 4vw, 56px);
align-items: start;
margin-top: clamp(48px, 7vw, 96px);
}
.product-story .label {
padding-top: 10px;
}
.prose {
max-width: 64ch;
}
.prose p {
margin-bottom: 1.4em;
font-size: 17px;
line-height: 1.85;
}
.prose p:first-child {
font-size: clamp(1.15rem, 1.6vw, 1.35rem);
line-height: 1.75;
}
.prose p:last-child {
margin-bottom: 0;
}
.prose h2 {
margin: 2em 0 0.7em;
font-size: clamp(1.3rem, 2vw, 1.6rem);
}
.prose ul {
margin-bottom: 1.4em;
padding-left: 1.2em;
}
.prose li {
margin-bottom: 0.4em;
}
.prose figure {
margin-block: 32px;
}
/* 4. 맨 아래 상품 정보 */
.product-detail {
display: grid;
grid-template-columns: 108px minmax(0, 1fr);
gap: clamp(20px, 4vw, 56px);
align-items: start;
margin-top: clamp(48px, 7vw, 96px);
}
.product-detail > .label {
padding-top: 4px;
}
.detail-body {
max-width: 52ch;
}
.product-price {
margin-top: 26px;
font-size: 18px;
margin: 0;
font-size: 16px;
font-variant-numeric: tabular-nums;
}
@@ -837,19 +926,19 @@ strong {
font-variant-numeric: tabular-nums;
}
.product-info .btn,
.product-info .pending {
margin-top: 24px;
.detail-body .btn,
.detail-body .pending {
margin-top: 18px;
}
.product-sold {
margin-top: 8px;
margin-top: 10px;
color: var(--muted);
font-size: 12px;
font-size: 13px;
}
.spec {
margin-top: 44px;
margin-top: 30px;
border-top: 1px solid var(--line);
}
@@ -873,75 +962,6 @@ strong {
line-height: 1.6;
}
.product-story {
display: grid;
grid-template-columns: 120px minmax(0, 1fr);
gap: clamp(20px, 4vw, 56px);
align-items: start;
margin-top: clamp(72px, 10vw, 140px);
}
.product-story .label {
padding-top: 10px;
}
.prose {
max-width: 64ch;
}
.prose p {
margin-bottom: 1.4em;
font-size: 17px;
line-height: 1.85;
}
.prose p:first-child {
font-size: clamp(1.25rem, 1.9vw, 1.5rem);
line-height: 1.7;
}
.prose p:last-child {
margin-bottom: 0;
}
.prose h2 {
margin: 2em 0 0.7em;
font-size: clamp(1.4rem, 2.2vw, 1.8rem);
}
.prose ul {
margin-bottom: 1.4em;
padding-left: 1.2em;
}
.prose li {
margin-bottom: 0.4em;
}
.prose figure {
margin-block: 32px;
}
.gallery {
grid-column: 2;
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 20px;
margin-top: 24px;
}
.gallery-figure {
aspect-ratio: 4 / 5;
overflow: hidden;
background: var(--line);
}
.gallery-figure img {
width: 100%;
height: 100%;
object-fit: cover;
}
.pager {
display: grid;
grid-template-columns: 1fr 1fr;
@@ -1084,29 +1104,20 @@ strong {
gap: 48px;
}
.product-top {
.product-story,
.product-detail {
grid-template-columns: minmax(0, 1fr);
gap: 12px;
}
.product-info {
position: static;
padding-top: 0;
}
.product-info .spec {
margin-top: 36px;
}
.product-story {
grid-template-columns: minmax(0, 1fr);
}
.product-story .label {
.product-story .label,
.product-detail > .label {
padding-top: 0;
}
.product-hero,
.gallery {
grid-column: 1;
width: 100%;
}
.foot-meta {
+25 -20
View File
@@ -2,17 +2,30 @@
<a class="back-link" href="../index.html#works">← 작품 목록</a>
</div>
<article class="product shell">
<div class="product-top">
<figure class="product-media">
<img src="../{{image}}" alt="{{alt}}" width="{{width}}" height="{{height}}" loading="eager" fetchpriority="high" decoding="async">
</figure>
<article class="product">
<header class="product-head shell">
<h1 class="product-title">{{title}}</h1>
<p class="product-sub">{{subtitle}}</p>
<p class="product-head-price">{{price_text}}</p>
{{price_note_html}}
</header>
<div class="product-info">
<h1>{{title}}</h1>
<p class="product-sub">{{subtitle}}</p>
<p class="product-price">{{price_text}}</p>
{{price_note_html}}
<figure class="product-hero">
<img src="../{{image}}" alt="{{alt}}" width="{{width}}" height="{{height}}" loading="eager" fetchpriority="high" decoding="async">
</figure>
{{gallery_html}}
<section class="product-story shell">
<p class="label">STORY</p>
<div class="prose">
{{body_html}}
</div>
</section>
<section class="product-detail shell">
<p class="label">DETAILS</p>
<div class="detail-body">
{{sold_html}}
{{buy_html}}
<a class="studio-edit" href="http://localhost:8081/?slug={{slug}}" hidden>이 작품 고치기</a>
@@ -32,17 +45,9 @@
</div>
</dl>
</div>
</div>
</section>
<div class="product-story">
<p class="label">STORY</p>
<div class="prose">
{{body_html}}
</div>
{{gallery_html}}
</div>
<nav class="pager" aria-label="다른 작품">
<nav class="pager shell" aria-label="다른 작품">
<div class="pager-slot pager-prev">{{prev_html}}</div>
<div class="pager-slot pager-next">{{next_html}}</div>
</nav>