487 lines
12 KiB
HTML
487 lines
12 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 }}</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=DM+Sans:ital,wght@0,300;0,400;0,500;0,700;1,400&family=DM+Mono:wght@400;500&display=swap" rel="stylesheet">
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.css">
|
|
<style>
|
|
html { background: #f9f9fb; }
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
:root {
|
|
--bg: #f9f9fb;
|
|
--surface: #ffffff;
|
|
--text: #111118;
|
|
--muted: #555560;
|
|
--dim: #9898a8;
|
|
--border: #e4e4ec;
|
|
}
|
|
|
|
body {
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font-family: "DM Sans", system-ui, sans-serif;
|
|
font-size: 21px;
|
|
line-height: 1.5;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
/* Top bar */
|
|
.topbar {
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--surface);
|
|
padding: 0 32px;
|
|
height: 52px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.topbar-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 20px;
|
|
}
|
|
|
|
.topbar-brand {
|
|
font-weight: 700;
|
|
font-size: 22px;
|
|
color: var(--text);
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
.topbar-nav {
|
|
display: flex;
|
|
gap: 2px;
|
|
}
|
|
|
|
.topbar-nav-item {
|
|
font-size: 20px;
|
|
font-weight: 500;
|
|
color: var(--dim);
|
|
padding: 4px 10px;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.topbar-nav-item.active {
|
|
background: #f0f0f8;
|
|
color: var(--text);
|
|
}
|
|
|
|
.topbar-right {
|
|
font-size: 18px;
|
|
color: var(--dim);
|
|
}
|
|
|
|
/* Color strip */
|
|
.color-strip {
|
|
display: flex;
|
|
height: 80px;
|
|
}
|
|
|
|
.color-strip-swatch {
|
|
flex: 1;
|
|
position: relative;
|
|
cursor: default;
|
|
transition: flex 0.2s ease;
|
|
}
|
|
|
|
.color-strip-swatch:hover {
|
|
flex: 2;
|
|
}
|
|
|
|
.color-strip-hex {
|
|
position: absolute;
|
|
bottom: 8px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
font-family: "DM Mono", monospace;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
background: rgba(0,0,0,0.4);
|
|
color: #fff;
|
|
padding: 2px 6px;
|
|
border-radius: 3px;
|
|
white-space: nowrap;
|
|
opacity: 0;
|
|
transition: opacity 0.15s;
|
|
}
|
|
|
|
.color-strip-swatch:hover .color-strip-hex {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Page */
|
|
.page {
|
|
max-width: 960px;
|
|
margin: 0 auto;
|
|
padding: 32px 32px 64px;
|
|
}
|
|
|
|
/* Page header */
|
|
.page-header {
|
|
margin-bottom: 32px;
|
|
}
|
|
|
|
.page-title {
|
|
font-size: 42px;
|
|
font-weight: 700;
|
|
letter-spacing: -0.03em;
|
|
color: var(--text);
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.page-meta {
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.meta-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
font-size: 18px;
|
|
font-weight: 500;
|
|
color: var(--muted);
|
|
background: var(--border);
|
|
padding: 3px 10px;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.meta-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
/* Swatch cards grid */
|
|
.swatch-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
|
|
gap: 12px;
|
|
margin-bottom: 32px;
|
|
}
|
|
|
|
.swatch-card {
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.04);
|
|
}
|
|
|
|
.swatch-color {
|
|
height: 72px;
|
|
}
|
|
|
|
.swatch-info {
|
|
padding: 8px 10px;
|
|
}
|
|
|
|
.swatch-name {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.swatch-hex {
|
|
font-family: "DM Mono", monospace;
|
|
font-size: 15px;
|
|
color: var(--dim);
|
|
}
|
|
|
|
/* Content */
|
|
.content-section-label {
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.1em;
|
|
color: var(--dim);
|
|
border-bottom: 1px solid var(--border);
|
|
padding-bottom: 8px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.content-card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
padding: 28px 32px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.content-area h1 {
|
|
font-size: 33px;
|
|
font-weight: 700;
|
|
letter-spacing: -0.02em;
|
|
color: var(--text);
|
|
margin-top: 28px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.content-area h2 {
|
|
font-size: 26px;
|
|
font-weight: 700;
|
|
color: var(--text);
|
|
margin-top: 22px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.content-area h3 {
|
|
font-size: 21px;
|
|
font-weight: 700;
|
|
color: var(--text);
|
|
margin-top: 18px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.content-area h4, .content-area h5, .content-area h6 {
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
color: var(--muted);
|
|
margin-top: 14px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.content-area p {
|
|
font-size: 21px;
|
|
color: var(--muted);
|
|
margin-bottom: 12px;
|
|
line-height: 1.65;
|
|
}
|
|
|
|
.content-area a {
|
|
color: #5b4fcf;
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.content-area a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.content-area code {
|
|
font-family: "DM Mono", monospace;
|
|
font-size: 18px;
|
|
background: #f3f3f8;
|
|
color: #5b4fcf;
|
|
padding: 2px 6px;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.content-area pre {
|
|
background: #18181f;
|
|
border-radius: 10px;
|
|
padding: 16px 18px;
|
|
margin: 14px 0;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.content-area pre code {
|
|
background: none;
|
|
color: #e0e0f0;
|
|
padding: 0;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.content-area blockquote {
|
|
border-left: 3px solid #5b4fcf;
|
|
background: rgba(91,79,207,0.04);
|
|
border-radius: 0 8px 8px 0;
|
|
padding: 12px 16px;
|
|
margin: 14px 0;
|
|
}
|
|
|
|
.content-area blockquote p {
|
|
color: #5b4fcf;
|
|
font-weight: 500;
|
|
margin: 0;
|
|
}
|
|
|
|
.content-area ul {
|
|
margin: 8px 0 14px 0;
|
|
list-style: none;
|
|
padding: 0;
|
|
}
|
|
|
|
.content-area ul li {
|
|
padding-left: 16px;
|
|
margin-bottom: 5px;
|
|
color: var(--muted);
|
|
position: relative;
|
|
}
|
|
|
|
.content-area ul li::before {
|
|
content: "";
|
|
position: absolute;
|
|
left: 3px;
|
|
top: 7px;
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 2px;
|
|
background: #5b4fcf;
|
|
}
|
|
|
|
.content-area ol {
|
|
margin: 8px 0 14px 22px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.content-area li {
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.content-area table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin: 14px 0;
|
|
font-size: 20px;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.content-area th {
|
|
background: #f3f3f8;
|
|
padding: 9px 13px;
|
|
text-align: left;
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
color: var(--dim);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
}
|
|
|
|
.content-area td {
|
|
padding: 9px 13px;
|
|
border-top: 1px solid var(--border);
|
|
color: var(--muted);
|
|
}
|
|
|
|
.content-area img {
|
|
max-width: 100%;
|
|
border-radius: 8px;
|
|
margin: 10px 0;
|
|
}
|
|
|
|
.content-area hr {
|
|
border: none;
|
|
border-top: 1px solid var(--border);
|
|
margin: 20px 0;
|
|
}
|
|
|
|
/* Tags */
|
|
.tags-row {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.tag {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: #5b4fcf;
|
|
background: rgba(91,79,207,0.08);
|
|
padding: 3px 10px;
|
|
border-radius: 6px;
|
|
}
|
|
</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="topbar">
|
|
<div class="topbar-left">
|
|
<div class="topbar-brand">{{ config.site.name }}</div>
|
|
<nav class="topbar-nav">
|
|
<div class="topbar-nav-item">Palettes</div>
|
|
<div class="topbar-nav-item active">Articles</div>
|
|
<div class="topbar-nav-item">Swatches</div>
|
|
</nav>
|
|
</div>
|
|
<div class="topbar-right">{{ published_date }} · {{ reading_time }}</div>
|
|
</div>
|
|
|
|
<!-- Decorative color strip -->
|
|
<div class="color-strip">
|
|
<div class="color-strip-swatch" style="background:#ef4444"><span class="color-strip-hex">#ef4444</span></div>
|
|
<div class="color-strip-swatch" style="background:#f97316"><span class="color-strip-hex">#f97316</span></div>
|
|
<div class="color-strip-swatch" style="background:#eab308"><span class="color-strip-hex">#eab308</span></div>
|
|
<div class="color-strip-swatch" style="background:#84cc16"><span class="color-strip-hex">#84cc16</span></div>
|
|
<div class="color-strip-swatch" style="background:#22c55e"><span class="color-strip-hex">#22c55e</span></div>
|
|
<div class="color-strip-swatch" style="background:#14b8a6"><span class="color-strip-hex">#14b8a6</span></div>
|
|
<div class="color-strip-swatch" style="background:#3b82f6"><span class="color-strip-hex">#3b82f6</span></div>
|
|
<div class="color-strip-swatch" style="background:#6366f1"><span class="color-strip-hex">#6366f1</span></div>
|
|
<div class="color-strip-swatch" style="background:#a855f7"><span class="color-strip-hex">#a855f7</span></div>
|
|
<div class="color-strip-swatch" style="background:#ec4899"><span class="color-strip-hex">#ec4899</span></div>
|
|
</div>
|
|
|
|
<div class="page">
|
|
|
|
<div class="page-header">
|
|
<h1 class="page-title">{{ title }}</h1>
|
|
<div class="page-meta">
|
|
<div class="meta-badge">
|
|
<div class="meta-dot" style="background: #5b4fcf;"></div>
|
|
{{ config.site.author }}
|
|
</div>
|
|
<div class="meta-badge">
|
|
<div class="meta-dot" style="background: #22c55e;"></div>
|
|
{{ published_date }}
|
|
</div>
|
|
<div class="meta-badge">
|
|
<div class="meta-dot" style="background: #f97316;"></div>
|
|
{{ reading_time }}
|
|
</div>
|
|
{% if updated_date %}
|
|
<div class="meta-badge">
|
|
<div class="meta-dot" style="background: #14b8a6;"></div>
|
|
Updated {{ updated_date }}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Decorative swatch grid -->
|
|
<div class="swatch-grid">
|
|
<div class="swatch-card"><div class="swatch-color" style="background:#ef4444"></div><div class="swatch-info"><div class="swatch-name">Red 500</div><div class="swatch-hex">#ef4444</div></div></div>
|
|
<div class="swatch-card"><div class="swatch-color" style="background:#f97316"></div><div class="swatch-info"><div class="swatch-name">Orange 500</div><div class="swatch-hex">#f97316</div></div></div>
|
|
<div class="swatch-card"><div class="swatch-color" style="background:#eab308"></div><div class="swatch-info"><div class="swatch-name">Yellow 500</div><div class="swatch-hex">#eab308</div></div></div>
|
|
<div class="swatch-card"><div class="swatch-color" style="background:#22c55e"></div><div class="swatch-info"><div class="swatch-name">Green 500</div><div class="swatch-hex">#22c55e</div></div></div>
|
|
<div class="swatch-card"><div class="swatch-color" style="background:#3b82f6"></div><div class="swatch-info"><div class="swatch-name">Blue 500</div><div class="swatch-hex">#3b82f6</div></div></div>
|
|
<div class="swatch-card"><div class="swatch-color" style="background:#a855f7"></div><div class="swatch-info"><div class="swatch-name">Purple 500</div><div class="swatch-hex">#a855f7</div></div></div>
|
|
<div class="swatch-card"><div class="swatch-color" style="background:#ec4899"></div><div class="swatch-info"><div class="swatch-name">Pink 500</div><div class="swatch-hex">#ec4899</div></div></div>
|
|
</div>
|
|
|
|
<div class="content-section-label">Content</div>
|
|
|
|
<div class="content-card">
|
|
<div class="content-area">
|
|
{{ content | safe }}
|
|
</div>
|
|
|
|
{% if taxonomy.tags %}
|
|
<div class="tags-row">
|
|
{% for tag in taxonomy.tags %}
|
|
<span class="tag">{{ tag }}</span>
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|