상세 페이지 순서: 작은 제목 → 메인사진 → 서브사진 → 스토리 → 맨 아래 DETAILS(구매·소재·규격)
This commit is contained in:
1 parent
ebbec84ba6
commit
aba5d4d6e2
4 files changed
+163
-140
No files matched your search
@@ -157,6 +157,8 @@ image_alt: 조각보
|
|||||||
- 제목: `Noto Serif KR` (serif), 본문: `Noto Sans KR` (sans). CDN 실패 시 시스템 폰트 폴백.
|
- 제목: `Noto Serif KR` (serif), 본문: `Noto Sans KR` (sans). CDN 실패 시 시스템 폰트 폴백.
|
||||||
- 여백 위주, 그림자·그라데이션·둥근 카드 금지. 구분은 1px 실선.
|
- 여백 위주, 그림자·그라데이션·둥근 카드 금지. 구분은 1px 실선.
|
||||||
- 사진이 주인공: 최소 60vw 폭 또는 4:5 세로 컷. 호버 확대는 1.02 이하.
|
- 사진이 주인공: 최소 60vw 폭 또는 4:5 세로 컷. 호버 확대는 1.02 이하.
|
||||||
|
- **상세 페이지 순서는 고정**: ① 작은 제목(+부제·가격, `product-head`) ② 메인 사진(`product-hero`, 폭 min(100%,1080px), 자르지 않고 원본 비율)
|
||||||
|
③ 서브 사진(`gallery`, 한 열로 세로로 이어 붙임) ④ 스토리(`product-story`) ⑤ DETAILS(구매 버튼 + 소재·규격·세탁 `spec`) — 사양은 항상 맨 아래.
|
||||||
|
|
||||||
## 7. 자주 쓰는 명령
|
## 7. 자주 쓰는 명령
|
||||||
|
|
||||||
|
|||||||
@@ -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`. 지금은 꺼 둔다.
|
비상용: 아이맥에서만 돌리는 예전 방식도 남아 있다. `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 에 말로 지시하면 위 파일들을 알아서 고친다. 예:
|
Claude Code 에 말로 지시하면 위 파일들을 알아서 고친다. 예:
|
||||||
|
|||||||
+133
-122
@@ -772,7 +772,7 @@ strong {
|
|||||||
|
|
||||||
.back-link {
|
.back-link {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-block: 8px 28px;
|
margin-block: 8px 20px;
|
||||||
color: var(--muted);
|
color: var(--muted);
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
@@ -786,47 +786,136 @@ strong {
|
|||||||
padding-bottom: clamp(40px, 6vw, 80px);
|
padding-bottom: clamp(40px, 6vw, 80px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.product-top {
|
/* 제목은 작게 — 사진이 먼저 보이도록 */
|
||||||
|
.product-head {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
|
gap: 4px;
|
||||||
gap: clamp(36px, 5vw, 80px);
|
margin-bottom: clamp(14px, 2.5vw, 26px);
|
||||||
align-items: start;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.product-media {
|
.product-title {
|
||||||
aspect-ratio: 4 / 5;
|
margin: 0;
|
||||||
overflow: hidden;
|
font-size: clamp(1.05rem, 1.4vw, 1.3rem);
|
||||||
background: var(--line);
|
font-weight: 400;
|
||||||
}
|
line-height: 1.45;
|
||||||
|
letter-spacing: 0;
|
||||||
.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-sub {
|
.product-sub {
|
||||||
margin-top: 14px;
|
margin: 0;
|
||||||
color: var(--muted);
|
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;
|
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 {
|
.product-price {
|
||||||
margin-top: 26px;
|
margin: 0;
|
||||||
font-size: 18px;
|
font-size: 16px;
|
||||||
font-variant-numeric: tabular-nums;
|
font-variant-numeric: tabular-nums;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -837,19 +926,19 @@ strong {
|
|||||||
font-variant-numeric: tabular-nums;
|
font-variant-numeric: tabular-nums;
|
||||||
}
|
}
|
||||||
|
|
||||||
.product-info .btn,
|
.detail-body .btn,
|
||||||
.product-info .pending {
|
.detail-body .pending {
|
||||||
margin-top: 24px;
|
margin-top: 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.product-sold {
|
.product-sold {
|
||||||
margin-top: 8px;
|
margin-top: 10px;
|
||||||
color: var(--muted);
|
color: var(--muted);
|
||||||
font-size: 12px;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.spec {
|
.spec {
|
||||||
margin-top: 44px;
|
margin-top: 30px;
|
||||||
border-top: 1px solid var(--line);
|
border-top: 1px solid var(--line);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -873,75 +962,6 @@ strong {
|
|||||||
line-height: 1.6;
|
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 {
|
.pager {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr 1fr;
|
grid-template-columns: 1fr 1fr;
|
||||||
@@ -1084,29 +1104,20 @@ strong {
|
|||||||
gap: 48px;
|
gap: 48px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.product-top {
|
.product-story,
|
||||||
|
.product-detail {
|
||||||
grid-template-columns: minmax(0, 1fr);
|
grid-template-columns: minmax(0, 1fr);
|
||||||
|
gap: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.product-info {
|
.product-story .label,
|
||||||
position: static;
|
.product-detail > .label {
|
||||||
padding-top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.product-info .spec {
|
|
||||||
margin-top: 36px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.product-story {
|
|
||||||
grid-template-columns: minmax(0, 1fr);
|
|
||||||
}
|
|
||||||
|
|
||||||
.product-story .label {
|
|
||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.product-hero,
|
||||||
.gallery {
|
.gallery {
|
||||||
grid-column: 1;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.foot-meta {
|
.foot-meta {
|
||||||
|
|||||||
+23
-18
@@ -2,17 +2,30 @@
|
|||||||
<a class="back-link" href="../index.html#works">← 작품 목록</a>
|
<a class="back-link" href="../index.html#works">← 작품 목록</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<article class="product shell">
|
<article class="product">
|
||||||
<div class="product-top">
|
<header class="product-head shell">
|
||||||
<figure class="product-media">
|
<h1 class="product-title">{{title}}</h1>
|
||||||
|
<p class="product-sub">{{subtitle}}</p>
|
||||||
|
<p class="product-head-price">{{price_text}}</p>
|
||||||
|
{{price_note_html}}
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<figure class="product-hero">
|
||||||
<img src="../{{image}}" alt="{{alt}}" width="{{width}}" height="{{height}}" loading="eager" fetchpriority="high" decoding="async">
|
<img src="../{{image}}" alt="{{alt}}" width="{{width}}" height="{{height}}" loading="eager" fetchpriority="high" decoding="async">
|
||||||
</figure>
|
</figure>
|
||||||
|
|
||||||
<div class="product-info">
|
{{gallery_html}}
|
||||||
<h1>{{title}}</h1>
|
|
||||||
<p class="product-sub">{{subtitle}}</p>
|
<section class="product-story shell">
|
||||||
<p class="product-price">{{price_text}}</p>
|
<p class="label">STORY</p>
|
||||||
{{price_note_html}}
|
<div class="prose">
|
||||||
|
{{body_html}}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="product-detail shell">
|
||||||
|
<p class="label">DETAILS</p>
|
||||||
|
<div class="detail-body">
|
||||||
{{sold_html}}
|
{{sold_html}}
|
||||||
{{buy_html}}
|
{{buy_html}}
|
||||||
<a class="studio-edit" href="http://localhost:8081/?slug={{slug}}" hidden>이 작품 고치기</a>
|
<a class="studio-edit" href="http://localhost:8081/?slug={{slug}}" hidden>이 작품 고치기</a>
|
||||||
@@ -32,17 +45,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</section>
|
||||||
|
|
||||||
<div class="product-story">
|
<nav class="pager shell" aria-label="다른 작품">
|
||||||
<p class="label">STORY</p>
|
|
||||||
<div class="prose">
|
|
||||||
{{body_html}}
|
|
||||||
</div>
|
|
||||||
{{gallery_html}}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<nav class="pager" aria-label="다른 작품">
|
|
||||||
<div class="pager-slot pager-prev">{{prev_html}}</div>
|
<div class="pager-slot pager-prev">{{prev_html}}</div>
|
||||||
<div class="pager-slot pager-next">{{next_html}}</div>
|
<div class="pager-slot pager-next">{{next_html}}</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|||||||
Reference in new issue
Block a user