517 lines
11 KiB
HTML
517 lines
11 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
|
|
<title>{{ title }} — {{ config.site.name }} Catalog</title>
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,300;0,400;0,500;0,700;0,900;1,400&family=Courier+Prime&display=swap" rel="stylesheet">
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.css">
|
|
<style>
|
|
html { background: #f0ebe1; }
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
:root {
|
|
--bg: #f0ebe1;
|
|
--paper: #f7f3ea;
|
|
--red: #c0272d;
|
|
--black: #1a1210;
|
|
--dark-gray: #2d2926;
|
|
--mid-gray: #6b6560;
|
|
--light-gray: #b0a89a;
|
|
--cream: #e8e0d0;
|
|
}
|
|
|
|
body {
|
|
background: var(--bg);
|
|
color: var(--black);
|
|
font-family: "Jost", "Futura", "Century Gothic", "Gill Sans", sans-serif;
|
|
font-size: 20px;
|
|
line-height: 1.45;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
/* Top catalog header strip */
|
|
.catalog-header {
|
|
background: var(--black);
|
|
color: #fff;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.catalog-header-top {
|
|
background: var(--red);
|
|
padding: 6px 28px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.16em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.catalog-header-main {
|
|
padding: 16px 28px 20px;
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 16px;
|
|
}
|
|
|
|
.catalog-brand {
|
|
font-size: 54px;
|
|
font-weight: 900;
|
|
letter-spacing: -0.02em;
|
|
text-transform: uppercase;
|
|
line-height: 1;
|
|
}
|
|
|
|
.catalog-brand-sub {
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
letter-spacing: 0.2em;
|
|
text-transform: uppercase;
|
|
color: rgba(255,255,255,0.5);
|
|
}
|
|
|
|
.catalog-num {
|
|
margin-left: auto;
|
|
text-align: right;
|
|
}
|
|
|
|
.catalog-num-value {
|
|
font-family: "Courier Prime", monospace;
|
|
font-size: 36px;
|
|
color: var(--red);
|
|
line-height: 1;
|
|
}
|
|
|
|
.catalog-num-label {
|
|
font-size: 14px;
|
|
letter-spacing: 0.16em;
|
|
text-transform: uppercase;
|
|
color: rgba(255,255,255,0.4);
|
|
}
|
|
|
|
/* Category tabs */
|
|
.category-tabs {
|
|
background: var(--dark-gray);
|
|
display: flex;
|
|
padding: 0 28px;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.cat-tab {
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
color: rgba(255,255,255,0.5);
|
|
padding: 10px 16px;
|
|
border-bottom: 3px solid transparent;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.cat-tab.active {
|
|
color: #fff;
|
|
border-bottom-color: var(--red);
|
|
}
|
|
|
|
/* Page layout */
|
|
.page {
|
|
max-width: 960px;
|
|
margin: 0 auto;
|
|
padding: 28px 28px 64px;
|
|
}
|
|
|
|
/* Product hero */
|
|
.product-hero {
|
|
background: var(--paper);
|
|
border: 1px solid var(--cream);
|
|
margin-bottom: 24px;
|
|
display: grid;
|
|
grid-template-columns: auto 1fr;
|
|
gap: 0;
|
|
}
|
|
|
|
.product-hero-num {
|
|
background: var(--red);
|
|
color: #fff;
|
|
font-size: 84px;
|
|
font-weight: 900;
|
|
letter-spacing: -0.04em;
|
|
writing-mode: vertical-rl;
|
|
text-orientation: mixed;
|
|
transform: rotate(180deg);
|
|
padding: 20px 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
line-height: 1;
|
|
}
|
|
|
|
.product-hero-content {
|
|
padding: 24px 28px;
|
|
}
|
|
|
|
.product-label {
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.2em;
|
|
text-transform: uppercase;
|
|
color: var(--red);
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.product-name {
|
|
font-size: 42px;
|
|
font-weight: 900;
|
|
letter-spacing: -0.02em;
|
|
text-transform: uppercase;
|
|
line-height: 1.1;
|
|
margin-bottom: 12px;
|
|
color: var(--black);
|
|
}
|
|
|
|
.product-specs {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 16px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.spec-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1px;
|
|
}
|
|
|
|
.spec-label {
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.14em;
|
|
text-transform: uppercase;
|
|
color: var(--light-gray);
|
|
}
|
|
|
|
.spec-value {
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
color: var(--dark-gray);
|
|
}
|
|
|
|
.product-tags {
|
|
display: flex;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.tag {
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.1em;
|
|
text-transform: uppercase;
|
|
color: var(--mid-gray);
|
|
border: 1px solid var(--light-gray);
|
|
padding: 2px 8px;
|
|
}
|
|
|
|
/* Divider */
|
|
.section-divider {
|
|
display: grid;
|
|
grid-template-columns: auto 1fr;
|
|
gap: 12px;
|
|
align-items: center;
|
|
margin: 28px 0 16px;
|
|
}
|
|
|
|
.section-divider-label {
|
|
font-size: 14px;
|
|
font-weight: 900;
|
|
letter-spacing: 0.22em;
|
|
text-transform: uppercase;
|
|
color: var(--black);
|
|
background: var(--black);
|
|
color: #fff;
|
|
padding: 5px 12px;
|
|
}
|
|
|
|
.section-divider-line {
|
|
height: 1px;
|
|
background: var(--black);
|
|
}
|
|
|
|
/* Content area */
|
|
.content-area h1 {
|
|
font-size: 33px;
|
|
font-weight: 900;
|
|
text-transform: uppercase;
|
|
letter-spacing: -0.01em;
|
|
color: var(--black);
|
|
margin-top: 28px;
|
|
margin-bottom: 10px;
|
|
border-bottom: 3px solid var(--red);
|
|
padding-bottom: 6px;
|
|
}
|
|
|
|
.content-area h2 {
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
color: var(--black);
|
|
margin-top: 22px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.content-area h3 {
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
color: var(--red);
|
|
margin-top: 18px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.content-area h4, .content-area h5, .content-area h6 {
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
color: var(--mid-gray);
|
|
margin-top: 14px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.content-area p {
|
|
font-size: 20px;
|
|
margin-bottom: 12px;
|
|
color: var(--dark-gray);
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.content-area a {
|
|
color: var(--red);
|
|
text-decoration: none;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.content-area a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.content-area code {
|
|
font-family: "Courier Prime", monospace;
|
|
font-size: 18px;
|
|
background: var(--cream);
|
|
color: var(--dark-gray);
|
|
padding: 1px 5px;
|
|
border: 1px solid var(--light-gray);
|
|
}
|
|
|
|
.content-area pre {
|
|
background: var(--dark-gray);
|
|
color: #e0d8c8;
|
|
padding: 14px 16px;
|
|
margin: 12px 0;
|
|
overflow-x: auto;
|
|
font-family: "Courier Prime", monospace;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.content-area pre code {
|
|
background: none;
|
|
border: none;
|
|
padding: 0;
|
|
color: inherit;
|
|
}
|
|
|
|
.content-area blockquote {
|
|
border-left: 4px solid var(--red);
|
|
background: var(--paper);
|
|
border-top: 1px solid var(--cream);
|
|
border-bottom: 1px solid var(--cream);
|
|
padding: 12px 16px;
|
|
margin: 14px 0;
|
|
color: var(--mid-gray);
|
|
font-style: italic;
|
|
}
|
|
|
|
.content-area ul {
|
|
margin: 8px 0 14px 0;
|
|
list-style: none;
|
|
padding: 0;
|
|
}
|
|
|
|
.content-area ul li {
|
|
padding-left: 18px;
|
|
margin-bottom: 5px;
|
|
color: var(--dark-gray);
|
|
position: relative;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.content-area ul li::before {
|
|
content: "—";
|
|
position: absolute;
|
|
left: 0;
|
|
color: var(--red);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.content-area ol {
|
|
margin: 8px 0 14px 22px;
|
|
color: var(--dark-gray);
|
|
font-size: 20px;
|
|
}
|
|
|
|
.content-area li {
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.content-area table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin: 14px 0;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.content-area th {
|
|
background: var(--dark-gray);
|
|
color: #fff;
|
|
padding: 8px 12px;
|
|
text-align: left;
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.12em;
|
|
}
|
|
|
|
.content-area tr:nth-child(even) td {
|
|
background: var(--cream);
|
|
}
|
|
|
|
.content-area td {
|
|
padding: 8px 12px;
|
|
border-bottom: 1px solid var(--cream);
|
|
}
|
|
|
|
.content-area img {
|
|
max-width: 100%;
|
|
margin: 10px 0;
|
|
}
|
|
|
|
.content-area hr {
|
|
border: none;
|
|
border-top: 2px solid var(--black);
|
|
margin: 20px 0;
|
|
}
|
|
|
|
/* Footer */
|
|
.catalog-footer {
|
|
background: var(--black);
|
|
color: rgba(255,255,255,0.5);
|
|
padding: 16px 28px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 15px;
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.product-hero { grid-template-columns: 1fr; }
|
|
.product-hero-num { writing-mode: horizontal-tb; transform: none; padding: 12px 20px; font-size: 54px; }
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<a href="/{{ preview_query }}" style="position:fixed;top:calc(1rem + env(safe-area-inset-top, 0px));left:calc(1rem + env(safe-area-inset-left, 0px));z-index:9999;font-family:system-ui,-apple-system,sans-serif;font-size: 1.08rem;padding:0.5rem 0.9rem;background:rgba(255,255,255,0.95);color:#000;text-decoration:none;border-radius:999px;box-shadow:0 2px 8px rgba(0,0,0,0.15);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:1px solid rgba(0,0,0,0.1);transition:transform 0.2s">← back</a>
|
|
|
|
<div class="catalog-header">
|
|
<div class="catalog-header-top">
|
|
<span>{{ config.site.name }} — Publications Division</span>
|
|
<span>Vol. {{ published_date | replace("-", ".") }}</span>
|
|
</div>
|
|
<div class="catalog-header-main">
|
|
<div>
|
|
<div class="catalog-brand">{{ config.site.name }}</div>
|
|
<div class="catalog-brand-sub">Technical Publications</div>
|
|
</div>
|
|
<div class="catalog-num">
|
|
<div class="catalog-num-value">No. {{ published_date | replace("-", "") }}</div>
|
|
<div class="catalog-num-label">Catalog Number</div>
|
|
</div>
|
|
</div>
|
|
<div class="category-tabs">
|
|
<div class="cat-tab">All Products</div>
|
|
<div class="cat-tab active">Articles</div>
|
|
<div class="cat-tab">Technical</div>
|
|
<div class="cat-tab">Guides</div>
|
|
<div class="cat-tab">Reviews</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="page">
|
|
|
|
<div class="product-hero">
|
|
<div class="product-hero-num">01</div>
|
|
<div class="product-hero-content">
|
|
<div class="product-label">Featured Article</div>
|
|
<div class="product-name">{{ title }}</div>
|
|
<div class="product-specs">
|
|
<div class="spec-item">
|
|
<div class="spec-label">Author</div>
|
|
<div class="spec-value">{{ config.site.author }}</div>
|
|
</div>
|
|
<div class="spec-item">
|
|
<div class="spec-label">Published</div>
|
|
<div class="spec-value">{{ published_date }}</div>
|
|
</div>
|
|
<div class="spec-item">
|
|
<div class="spec-label">Read Time</div>
|
|
<div class="spec-value">{{ reading_time }}</div>
|
|
</div>
|
|
{% if updated_date %}
|
|
<div class="spec-item">
|
|
<div class="spec-label">Revised</div>
|
|
<div class="spec-value">{{ updated_date }}</div>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
{% if taxonomy.tags %}
|
|
<div class="product-tags">
|
|
{% for tag in taxonomy.tags %}
|
|
<span class="tag">{{ tag }}</span>
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="section-divider">
|
|
<div class="section-divider-label">Content</div>
|
|
<div class="section-divider-line"></div>
|
|
</div>
|
|
|
|
<div class="content-area">
|
|
{{ content | safe }}
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="catalog-footer">
|
|
<span>{{ config.site.name }}</span>
|
|
<span>{{ config.site.author }}</span>
|
|
<span>{{ published_date }}</span>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|