Compare commits

..
5 Commits
7 changed files with 27 additions and 10 deletions

No files matched your search

+7
View File
@@ -830,6 +830,13 @@ strong {
font-variant-numeric: tabular-nums; font-variant-numeric: tabular-nums;
} }
.product-price-note {
margin-top: 6px;
color: var(--muted);
font-size: 14px;
font-variant-numeric: tabular-nums;
}
.product-info .btn, .product-info .btn,
.product-info .pending { .product-info .pending {
margin-top: 24px; margin-top: 24px;
+5
View File
@@ -561,6 +561,10 @@ def build_product_page(
subtitle = str(product.get("subtitle", "")).strip() subtitle = str(product.get("subtitle", "")).strip()
material = str(product.get("material", "")).strip() material = str(product.get("material", "")).strip()
price_note = str(product.get("price_note", "")).strip()
price_note_html = (
f'<p class="product-price-note">{esc(price_note)}</p>' if price_note else ""
)
description = ". ".join(part for part in (subtitle, material) if part) description = ". ".join(part for part in (subtitle, material) if part)
title = f"{product['title']} — {brand['name']}" title = f"{product['title']} — {brand['name']}"
@@ -583,6 +587,7 @@ def build_product_page(
"title_text": esc(product["title"]), "title_text": esc(product["title"]),
"subtitle": esc(subtitle), "subtitle": esc(subtitle),
"price_text": format_price(product.get("price")), "price_text": format_price(product.get("price")),
"price_note_html": price_note_html,
"sold_html": '<p class="product-sold">판매 완료</p>' if product.get("sold_out") else "", "sold_html": '<p class="product-sold">판매 완료</p>' if product.get("sold_out") else "",
"buy_html": buy_html, "buy_html": buy_html,
"material": esc(material) or "—", "material": esc(material) or "—",
+4 -4
View File
@@ -3,18 +3,18 @@ slug: 2026-10-kit-first-stitch
title: 처음 한 땀 티매트 키트 title: 처음 한 땀 티매트 키트
subtitle: 천과 실, 도안이 함께 오는 상자 subtitle: 천과 실, 도안이 함께 오는 상자
date: 2026-10-05 date: 2026-10-05
price: 32000 price: 16000
sold_out: false sold_out: false
featured: false featured: false
image: assets/img/2026-10-kit-first-stitch/cover.jpg image: assets/img/2026-10-kit-first-stitch/cover.jpg
image_alt: 여러 천 조각을 이어 붙인 조각보 image_alt: 여러 천 조각을 이어 붙인 조각보
gallery: gallery:
material: 린넨 천, 면사, 도안, 바늘 material: 린넨 천, 면사, 도안, 바늘
size: 완성 30 × 45 cm size: 완성 10 × 10 cm × 4장
care: 완성 후 미지근한 물에 단독 손세탁 care: 완성 후 미지근한 물에 단독 손세탁
naver_url: "" naver_url: "https://smartstore.naver.com/lalashopkr/products/5758959852"
--- ---
완제품이 아닙니다. 천에 도안이 옅게 찍혀 있고, 실과 바늘이 함께 들어 있습니다. 도안을 따라 한 땀씩 놓으면 30 × 45 cm 티매트 한 장이 됩니다. 완제품이 아닙니다. 천에 도안이 옅게 찍혀 있고, 실과 바늘이 함께 들어 있습니다. 도안을 따라 한 땀씩 놓으면 10 × 10 cm 티매트 네 장이 됩니다.
처음이면 가장자리부터 시작하세요. 실을 길게 빼지 않고, 한 땀 놓고 손을 한 번 내리는 리듬이 익숙해지면 안쪽으로 들어갑니다. 도안은 단순하게 그렸습니다. 천의 결을 가리지 않도록. 처음이면 가장자리부터 시작하세요. 실을 길게 빼지 않고, 한 땀 놓고 손을 한 번 내리는 리듬이 익숙해지면 안쪽으로 들어갑니다. 도안은 단순하게 그렸습니다. 천의 결을 가리지 않도록.
@@ -3,7 +3,8 @@ slug: 2026-10-whitework-tea-mat
title: 쪽빛 사시코 티매트 title: 쪽빛 사시코 티매트
subtitle: 흰 실로 놓는 네 가지 무늬 subtitle: 흰 실로 놓는 네 가지 무늬
date: 2026-10-28 date: 2026-10-28
price: 58000 price: 15000
price_note: 네 장 세트 50,000원
sold_out: false sold_out: false
featured: true featured: true
image: assets/img/2026-10-whitework-tea-mat/lala_S033_detail_07.jpg image: assets/img/2026-10-whitework-tea-mat/lala_S033_detail_07.jpg
@@ -14,7 +15,7 @@ gallery:
- assets/img/2026-10-whitework-tea-mat/lala_S033_detail_10.jpg - assets/img/2026-10-whitework-tea-mat/lala_S033_detail_10.jpg
- assets/img/2026-10-whitework-tea-mat/lala_S033_detail_11.jpg - assets/img/2026-10-whitework-tea-mat/lala_S033_detail_11.jpg
material: 면 100% (남색·자주) · 사시코 실(면) material: 면 100% (남색·자주) · 사시코 실(면)
size: 30 × 45 cm size: 10 × 10 cm (한 장)
care: 미지근한 물에 중성세제로 단독 손세탁 care: 미지근한 물에 중성세제로 단독 손세탁
naver_url: "" naver_url: ""
--- ---
@@ -22,4 +23,6 @@ naver_url: ""
도안선을 따라 한 땀씩 나아갑니다. 실이 천을 지나며 결이 살아나고, 남색과 흰 실의 대비가 무늬의 선을 또렷하게 만듭니다. 실은 오리무파스 사시코실을 씁니다. 도안선을 따라 한 땀씩 나아갑니다. 실이 천을 지나며 결이 살아나고, 남색과 흰 실의 대비가 무늬의 선을 또렷하게 만듭니다. 실은 오리무파스 사시코실을 씁니다.
한 장에 15,000원이고, 네 장을 한 세트로 묶으면 50,000원입니다. 무늬와 장수는 메일로 알려주시면 그에 맞춰 놓습니다.
자주빛으로 물들인 천도 함께 만들었습니다. 같은 무늬라도 색이 바뀌면 다른 표정이 됩니다. 쓰고 나면 미지근한 물에 단독으로 손세탁하고 그늘에 뉘어 말립니다. 자주빛으로 물들인 천도 함께 만들었습니다. 같은 무늬라도 색이 바뀌면 다른 표정이 됩니다. 쓰고 나면 미지근한 물에 단독으로 손세탁하고 그늘에 뉘어 말립니다.
+2 -2
View File
@@ -13,8 +13,8 @@
}, },
"shop": { "shop": {
"kit_slug": "2026-10-kit-first-stitch", "kit_slug": "2026-10-kit-first-stitch",
"store_url": "", "store_url": "https://smartstore.naver.com/lalashopkr",
"kit_url": "", "kit_url": "https://smartstore.naver.com/lalashopkr/products/5758959852",
"kit_note": "린넨 천, 면사, 도안, 바늘 — 처음 시작하는 사람에게 필요한 것들" "kit_note": "린넨 천, 면사, 도안, 바늘 — 처음 시작하는 사람에게 필요한 것들"
}, },
"process_intro": "천을 고르고, 도안을 옮기고, 한 땀씩 놓아 마감하기까지. 서두르지 않고 네 단계로 만납니다.", "process_intro": "천을 고르고, 도안을 옮기고, 한 땀씩 놓아 마감하기까지. 서두르지 않고 네 단계로 만납니다.",
+3 -2
View File
@@ -38,7 +38,7 @@ AI_MODEL = "deepseek-flash"
AI_CONFIG = Path.home() / ".config" / "teamat-studio" / "ai.json" AI_CONFIG = Path.home() / ".config" / "teamat-studio" / "ai.json"
CLAUDE_SETTINGS = Path.home() / ".claude" / "settings.json" CLAUDE_SETTINGS = Path.home() / ".claude" / "settings.json"
# AI 가 손댈 수 있는 필드 (slug·date·image·gallery·sold_out·featured·naver_url 은 제외) # AI 가 손댈 수 있는 필드 (slug·date·image·gallery·sold_out·featured·naver_url 은 제외)
AI_FIELDS = ["title", "subtitle", "price", "material", "size", "care", "image_alt"] AI_FIELDS = ["title", "subtitle", "price", "price_note", "material", "size", "care", "image_alt"]
# 폼에 노출할 필드와 순서. 여기 없는 키도 파일에 있으면 보존한다. # 폼에 노출할 필드와 순서. 여기 없는 키도 파일에 있으면 보존한다.
FIELDS: List[Dict[str, str]] = [ FIELDS: List[Dict[str, str]] = [
@@ -46,6 +46,7 @@ FIELDS: List[Dict[str, str]] = [
{"key": "subtitle", "label": "부제", "type": "text"}, {"key": "subtitle", "label": "부제", "type": "text"},
{"key": "date", "label": "날짜", "type": "date"}, {"key": "date", "label": "날짜", "type": "date"},
{"key": "price", "label": "가격(원)", "type": "number"}, {"key": "price", "label": "가격(원)", "type": "number"},
{"key": "price_note", "label": "가격 옵션 안내 (예: 네 장 세트 50,000원)", "type": "text"},
{"key": "sold_out", "label": "품절 표시", "type": "bool"}, {"key": "sold_out", "label": "품절 표시", "type": "bool"},
{"key": "featured", "label": "첫 페이지 대표작", "type": "bool"}, {"key": "featured", "label": "첫 페이지 대표작", "type": "bool"},
{"key": "image", "label": "대표 이미지", "type": "image"}, {"key": "image", "label": "대표 이미지", "type": "image"},
@@ -446,7 +447,7 @@ price 는 원 단위 정수. 모르면 0 이 아니라 null 이 아니라 빈
slug 는 제목을 영문 소문자·하이픈으로 옮긴 것(예: magnolia-tea-mat). slug 는 제목을 영문 소문자·하이픈으로 옮긴 것(예: magnolia-tea-mat).
""" """
DEFAULT_ORDER = ["slug", "title", "subtitle", "date", "price", "sold_out", "featured", DEFAULT_ORDER = ["slug", "title", "subtitle", "date", "price", "price_note", "sold_out", "featured",
"image", "image_alt", "gallery", "material", "size", "care", "naver_url"] "image", "image_alt", "gallery", "material", "size", "care", "naver_url"]
+1
View File
@@ -12,6 +12,7 @@
<h1>{{title}}</h1> <h1>{{title}}</h1>
<p class="product-sub">{{subtitle}}</p> <p class="product-sub">{{subtitle}}</p>
<p class="product-price">{{price_text}}</p> <p class="product-price">{{price_text}}</p>
{{price_note_html}}
{{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>