430 lines
9.6 KiB
HTML
430 lines
9.6 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=VT323&family=IBM+Plex+Mono:wght@400;700&display=swap" rel="stylesheet">
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.css">
|
|
<style>
|
|
html { background: #000000; }
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
:root {
|
|
--green: #00ff41;
|
|
--green-dim: #00b32d;
|
|
--green-dark: #004a14;
|
|
--bg: #000000;
|
|
--amber: #ffb000;
|
|
}
|
|
|
|
body {
|
|
background: var(--bg);
|
|
color: var(--green);
|
|
font-family: "IBM Plex Mono", "Courier New", monospace;
|
|
font-size: 21px;
|
|
line-height: 1.6;
|
|
min-height: 100vh;
|
|
overflow-x: hidden;
|
|
position: relative;
|
|
}
|
|
|
|
/* CRT scanline overlay */
|
|
body::before {
|
|
content: "";
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: repeating-linear-gradient(
|
|
0deg,
|
|
transparent,
|
|
transparent 2px,
|
|
rgba(0, 0, 0, 0.18) 2px,
|
|
rgba(0, 0, 0, 0.18) 4px
|
|
);
|
|
pointer-events: none;
|
|
z-index: 999;
|
|
}
|
|
|
|
/* CRT vignette */
|
|
body::after {
|
|
content: "";
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.7) 100%);
|
|
pointer-events: none;
|
|
z-index: 998;
|
|
}
|
|
|
|
.terminal {
|
|
max-width: 900px;
|
|
margin: 0 auto;
|
|
padding: 24px 20px 60px;
|
|
}
|
|
|
|
/* Window chrome */
|
|
.window-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 8px 14px;
|
|
background: #111111;
|
|
border: 1px solid var(--green-dim);
|
|
border-bottom: none;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.wdot {
|
|
width: 12px;
|
|
height: 12px;
|
|
border-radius: 50%;
|
|
border: 1px solid var(--green-dim);
|
|
}
|
|
|
|
.wdot.red { background: #ff5f57; border-color: #e0443e; }
|
|
.wdot.yellow { background: #febc2e; border-color: #d4a017; }
|
|
.wdot.green { background: #28c840; border-color: #1aab29; }
|
|
|
|
.window-title {
|
|
flex: 1;
|
|
text-align: center;
|
|
font-size: 18px;
|
|
color: var(--green-dim);
|
|
letter-spacing: 0.1em;
|
|
}
|
|
|
|
.screen {
|
|
background: #020f02;
|
|
border: 1px solid var(--green-dim);
|
|
padding: 20px 24px 32px;
|
|
min-height: 80vh;
|
|
}
|
|
|
|
.prompt-line {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0;
|
|
margin-bottom: 4px;
|
|
font-family: "VT323", monospace;
|
|
font-size: 30px;
|
|
text-shadow: 0 0 8px var(--green);
|
|
}
|
|
|
|
.prompt-user { color: var(--green); }
|
|
.prompt-at { color: var(--green-dim); }
|
|
.prompt-host { color: #00cc33; }
|
|
.prompt-colon { color: var(--green-dim); }
|
|
.prompt-path { color: #00aaff; text-shadow: 0 0 8px #00aaff; }
|
|
.prompt-dollar { color: var(--green); margin: 0 8px; }
|
|
.prompt-cmd { color: #ffffff; text-shadow: 0 0 6px #ffffff; }
|
|
|
|
.ascii-divider {
|
|
font-family: "VT323", monospace;
|
|
font-size: 24px;
|
|
color: var(--green-dim);
|
|
margin: 16px 0;
|
|
letter-spacing: 0.05em;
|
|
text-shadow: 0 0 4px var(--green-dim);
|
|
white-space: pre;
|
|
}
|
|
|
|
.output-meta {
|
|
font-size: 18px;
|
|
color: var(--green-dim);
|
|
margin-bottom: 20px;
|
|
padding-left: 2px;
|
|
}
|
|
|
|
.output-meta span {
|
|
margin-right: 20px;
|
|
}
|
|
|
|
.blink {
|
|
display: inline-block;
|
|
width: 8px;
|
|
height: 14px;
|
|
background: var(--green);
|
|
vertical-align: middle;
|
|
animation: blink 1.1s step-end infinite;
|
|
box-shadow: 0 0 6px var(--green);
|
|
margin-left: 2px;
|
|
}
|
|
|
|
@keyframes blink {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0; }
|
|
}
|
|
|
|
.post-title-line {
|
|
font-family: "VT323", monospace;
|
|
font-size: 54px;
|
|
color: var(--green);
|
|
text-shadow: 0 0 12px var(--green), 0 0 24px rgba(0,255,65,0.4);
|
|
line-height: 1.1;
|
|
margin-bottom: 4px;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
.content-area {
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.content-area h1 {
|
|
font-family: "VT323", monospace;
|
|
font-size: 45px;
|
|
color: var(--green);
|
|
text-shadow: 0 0 8px var(--green);
|
|
margin-top: 28px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.content-area h1::before {
|
|
content: "## ";
|
|
color: var(--green-dim);
|
|
}
|
|
|
|
.content-area h2 {
|
|
font-size: 24px;
|
|
color: #00dd44;
|
|
text-shadow: 0 0 6px #00dd44;
|
|
margin-top: 24px;
|
|
margin-bottom: 10px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.1em;
|
|
}
|
|
|
|
.content-area h2::before {
|
|
content: "### ";
|
|
color: var(--green-dim);
|
|
}
|
|
|
|
.content-area h3 {
|
|
font-size: 21px;
|
|
color: var(--green);
|
|
margin-top: 20px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.content-area h3::before {
|
|
content: "> ";
|
|
color: var(--green-dim);
|
|
}
|
|
|
|
.content-area p {
|
|
margin-bottom: 14px;
|
|
text-shadow: 0 0 3px rgba(0,255,65,0.3);
|
|
}
|
|
|
|
.content-area a {
|
|
color: #00aaff;
|
|
text-decoration: none;
|
|
text-shadow: 0 0 6px #00aaff;
|
|
}
|
|
|
|
.content-area a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.content-area code {
|
|
font-family: "IBM Plex Mono", monospace;
|
|
font-size: 20px;
|
|
color: #ffff00;
|
|
text-shadow: 0 0 4px #ffff00;
|
|
background: rgba(255,255,0,0.07);
|
|
padding: 1px 5px;
|
|
border: 1px solid rgba(255,255,0,0.3);
|
|
}
|
|
|
|
.content-area pre {
|
|
background: #000a00;
|
|
border: 1px solid var(--green-dim);
|
|
padding: 16px 18px;
|
|
margin: 16px 0;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.content-area pre::before {
|
|
content: "$ ";
|
|
color: var(--green-dim);
|
|
}
|
|
|
|
.content-area pre code {
|
|
background: none;
|
|
border: none;
|
|
padding: 0;
|
|
color: var(--green);
|
|
text-shadow: 0 0 3px rgba(0,255,65,0.4);
|
|
}
|
|
|
|
.content-area blockquote {
|
|
border-left: 3px solid var(--green-dim);
|
|
padding-left: 16px;
|
|
margin: 16px 0;
|
|
color: var(--green-dim);
|
|
font-style: normal;
|
|
}
|
|
|
|
.content-area blockquote::before {
|
|
display: block;
|
|
content: "/* OUTPUT:";
|
|
color: var(--green-dim);
|
|
font-size: 18px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.content-area blockquote::after {
|
|
display: block;
|
|
content: "*/";
|
|
color: var(--green-dim);
|
|
font-size: 18px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.content-area ul,
|
|
.content-area ol {
|
|
margin: 12px 0 16px 0;
|
|
list-style: none;
|
|
padding: 0;
|
|
}
|
|
|
|
.content-area ul li::before {
|
|
content: " -> ";
|
|
color: var(--green-dim);
|
|
}
|
|
|
|
.content-area ol {
|
|
counter-reset: list;
|
|
}
|
|
|
|
.content-area ol li {
|
|
counter-increment: list;
|
|
}
|
|
|
|
.content-area ol li::before {
|
|
content: " [" counter(list) "] ";
|
|
color: var(--green-dim);
|
|
}
|
|
|
|
.content-area li {
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.content-area table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin: 16px 0;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.content-area th {
|
|
border: 1px solid var(--green-dim);
|
|
padding: 6px 12px;
|
|
color: var(--green);
|
|
text-transform: uppercase;
|
|
font-size: 16px;
|
|
letter-spacing: 0.1em;
|
|
background: rgba(0,255,65,0.05);
|
|
}
|
|
|
|
.content-area td {
|
|
border: 1px solid rgba(0,255,65,0.2);
|
|
padding: 6px 12px;
|
|
}
|
|
|
|
.content-area img {
|
|
max-width: 100%;
|
|
filter: grayscale(100%) sepia(50%) hue-rotate(80deg);
|
|
border: 1px solid var(--green-dim);
|
|
}
|
|
|
|
.content-area hr {
|
|
border: none;
|
|
border-top: 1px dashed var(--green-dim);
|
|
margin: 24px 0;
|
|
}
|
|
|
|
.bottom-prompt {
|
|
margin-top: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
font-family: "VT323", monospace;
|
|
font-size: 30px;
|
|
color: var(--green-dim);
|
|
text-shadow: 0 0 4px var(--green-dim);
|
|
}
|
|
</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="terminal">
|
|
<div class="window-bar">
|
|
<div class="wdot red"></div>
|
|
<div class="wdot yellow"></div>
|
|
<div class="wdot green"></div>
|
|
<div class="window-title">bash -- 80x24</div>
|
|
</div>
|
|
<div class="screen">
|
|
<div class="prompt-line">
|
|
<span class="prompt-user">felix</span>
|
|
<span class="prompt-at">@</span>
|
|
<span class="prompt-host">server</span>
|
|
<span class="prompt-colon">:</span>
|
|
<span class="prompt-path">~/posts</span>
|
|
<span class="prompt-dollar">$</span>
|
|
<span class="prompt-cmd">cat "{{ title }}.md"</span>
|
|
</div>
|
|
|
|
<div class="ascii-divider">================================================================================</div>
|
|
|
|
<div class="post-title-line">{{ title }}</div>
|
|
|
|
<div class="output-meta">
|
|
<span>author: {{ config.site.author }}</span>
|
|
<span>date: {{ published_date }}</span>
|
|
<span>{{ reading_time }}</span>
|
|
{% if updated_date %}<span>updated: {{ updated_date }}</span>{% endif %}
|
|
</div>
|
|
|
|
{% if taxonomy.tags %}
|
|
<div class="output-meta">
|
|
<span>tags:
|
|
{% for tag in taxonomy.tags %}[{{ tag }}] {% endfor %}
|
|
</span>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<div class="ascii-divider">--------------------------------------------------------------------------------</div>
|
|
|
|
<div class="content-area">
|
|
{{ content | safe }}
|
|
</div>
|
|
|
|
<div class="ascii-divider">================================================================================</div>
|
|
|
|
<div class="bottom-prompt">
|
|
<span class="prompt-user">felix</span>
|
|
<span class="prompt-at">@</span>
|
|
<span class="prompt-host">server</span>
|
|
<span class="prompt-colon">:</span>
|
|
<span class="prompt-path">~/posts</span>
|
|
<span class="prompt-dollar">$</span>
|
|
<span class="blink"></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|