Files
teamat/templates/index.html
T

199 lines
6.5 KiB
HTML

<section class="hero" aria-labelledby="hero-title">
<div class="shell hero-grid">
<div class="hero-copy">
<h1 id="hero-title">천 위에,<br>한 땀씩.</h1>
<p class="hero-lede">{{intro}}</p>
<div class="hero-actions">
<a class="btn" href="#works">작품 보기</a>
<a class="text-link" href="#process">제작 과정</a>
</div>
<p class="hero-meta">자수 티매트 · 린넨 · 손바느질 · {{since}}</p>
</div>
<figure class="hero-figure">
<div class="hero-media">
<img src="{{hero_image}}" alt="{{hero_alt}}" width="{{hero_width}}" height="{{hero_height}}" loading="eager" fetchpriority="high" decoding="async">
</div>
<figcaption>
<a href="{{hero_href}}">{{hero_title}}</a>
<span>{{hero_material}}</span>
</figcaption>
</figure>
</div>
</section>
<section class="section works" id="works" aria-labelledby="works-title">
<div class="shell">
<header class="section-head">
<p class="label">WORKS</p>
<h2 id="works-title">작품</h2>
<p class="section-note">{{works_note}}</p>
</header>
<div class="works-grid">
{{#products}}
<article class="work">
<a class="work-link" href="{{href}}">
<figure class="work-figure">
<img src="{{image}}" alt="{{alt}}" width="{{width}}" height="{{height}}" loading="lazy" decoding="async">
</figure>
<div class="work-caption">
<h3>{{title}}</h3>
<p class="work-sub">{{subtitle}}</p>
<p class="work-price">{{price_text}}</p>
</div>
</a>
</article>
{{/products}}
</div>
</div>
</section>
<section class="section soldout" id="soldout" aria-labelledby="soldout-title">
<div class="shell">
<header class="section-head">
<p class="label">SOLD OUT</p>
<h2 id="soldout-title">지난 작품 — 제작 문의</h2>
<p class="section-note">{{sold_note}}</p>
</header>
{{sold_empty_html}}
<div class="works-grid">
{{#sold_products}}
<article class="work is-sold">
<a class="work-link" href="{{href}}">
<figure class="work-figure">
<img src="{{image}}" alt="{{alt}}" width="{{width}}" height="{{height}}" loading="lazy" decoding="async">
</figure>
<div class="work-caption">
<h3>{{title}}</h3>
<p class="work-sub">{{subtitle}}</p>
<p class="work-price">{{price_text}}</p>
<p class="work-sold">판매 완료</p>
</div>
</a>
<button class="inquiry-btn" type="button" data-inquiry="{{inquiry_title}}">카톡으로 제작 문의</button>
<p class="inquiry-note">재고가 없어 주문을 받은 뒤 제작합니다. 아래 문구가 복사되니 카톡 대화창에 붙여넣어 주세요.</p>
</article>
{{/sold_products}}
</div>
</div>
</section>
<script>
(function () {
var KAKAO = "{{kakao_url}}";
var TEMPLATE = function (title) {
return title + " 재제작 문의드립니다.
"
+ "- 원하는 시기:
"
+ "- 크기·색상:
"
+ "- 문의 내용: ";
};
document.querySelectorAll("[data-inquiry]").forEach(function (btn) {
btn.addEventListener("click", function () {
var title = btn.getAttribute("data-inquiry") || "작품";
var text = TEMPLATE(title);
var note = btn.parentElement.querySelector(".inquiry-note");
var done = function (copied) {
if (note) {
note.textContent = copied
? "문의 문구를 복사했습니다. 카톡 대화창에 붙여넣어 보내 주세요."
: "카톡에서 새 대화를 열고 아래 내용을 적어 보내 주세요: " + text;
}
};
if (navigator.clipboard && navigator.clipboard.writeText) {
navigator.clipboard.writeText(text).then(function () { done(true); }, function () { done(false); });
} else {
done(false);
}
if (KAKAO) {
window.open(KAKAO, "_blank", "noopener");
} else {
window.location.href = "kakaotalk://";
}
});
});
})();
</script>
<section class="section process" id="process" aria-labelledby="process-title">
<div class="shell">
<header class="section-head">
<p class="label">PROCESS</p>
<h2 id="process-title">한 점이 되기까지</h2>
<p class="section-note">{{process_intro}}</p>
</header>
<ol class="process-list">
{{#process}}
<li class="{{step_class}}">
<p class="step-number" aria-hidden="true">{{step}}</p>
<div class="step-copy">
<h3>{{title}}</h3>
{{body_html}}
</div>
{{image_html}}
</li>
{{/process}}
</ol>
</div>
</section>
<section class="kit" id="kit" aria-labelledby="kit-title">
<div class="shell kit-grid">
<div class="kit-copy">
<p class="label label-invert">KIT</p>
<h2 id="kit-title">{{kit_title}}</h2>
<p class="kit-sub">{{kit_subtitle}}</p>
{{kit_excerpt}}
<p class="kit-note">{{kit_note}}</p>
<p class="kit-price">{{kit_price}}</p>
{{kit_action}}
<a class="kit-more" href="{{kit_href}}">키트 자세히 보기 →</a>
</div>
<figure class="kit-figure">
<img src="{{kit_image}}" alt="{{kit_alt}}" width="{{kit_width}}" height="{{kit_height}}" loading="lazy" decoding="async">
</figure>
</div>
</section>
<section class="section order" id="order" aria-labelledby="order-title">
<div class="shell">
<header class="section-head">
<p class="label">ORDER</p>
<h2 id="order-title">주문과 세탁</h2>
<p class="section-note">주문 전에 소재와 규격을 한 번 더 확인해 주세요.</p>
</header>
<div class="order-grid">
<div class="order-col">
<h3>배송</h3>
<ul class="info-list">
{{#shipping}}<li>{{text}}</li>{{/shipping}}
</ul>
</div>
<div class="order-col">
<h3>세탁</h3>
<ul class="info-list">
{{#care}}<li>{{text}}</li>{{/care}}
</ul>
</div>
</div>
<p class="order-note">{{store_note}}</p>
</div>
</section>
<section class="section contact" id="contact" aria-labelledby="contact-title">
<div class="shell">
<p class="label">CONTACT</p>
<h2 id="contact-title">천에 대해 궁금한 것이 있으면<br>편하게 물어보세요.</h2>
<a class="contact-email" href="{{email_href}}">{{contact_email}}</a>
<p class="contact-sub">작품과 키트에 대한 질문은 메일로 받습니다. {{instagram_link}}</p>
</div>
</section>