design: 90s terminal/AI retro layout (VT323 + Press Start 2P + scanlines + glitch)

This commit is contained in:
2026-04-20 05:07:00 +00:00
parent 8dc5b450a8
commit 071da45a43

View File

@@ -44,172 +44,317 @@ const year = new Date().getFullYear();
<link rel="alternate" type="application/rss+xml" title={`${site.name} RSS`} href="/rss.xml" />
<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=Press+Start+2P&display=swap" rel="stylesheet" />
<style is:global>
* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: #000; }
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
line-height: 1.6;
color: #333;
max-width: 800px;
font-family: 'VT323', 'Courier New', monospace;
font-size: 22px;
line-height: 1.4;
color: #00ff66;
background:
repeating-linear-gradient(
180deg,
transparent 0,
transparent 2px,
rgba(0,255,102,0.05) 2px,
rgba(0,255,102,0.05) 3px
),
radial-gradient(ellipse at center, #061a0d 0%, #000 100%);
min-height: 100vh;
padding: 16px;
}
body::before {
content: "";
position: fixed; inset: 0;
background: linear-gradient(rgba(0,0,0,0), rgba(0,255,102,0.03) 50%, rgba(0,0,0,0));
pointer-events: none;
animation: scan 6s linear infinite;
}
@keyframes scan {
0% { transform: translateY(-100%); }
100% { transform: translateY(100%); }
}
@keyframes blink { 50% { opacity: 0; } }
@keyframes glitch { 2%, 64% { transform: translate(1px, 0) skew(0deg); } 4%, 60% { transform: translate(-1px, 0) skew(0deg); } 62% { transform: translate(0, 0) skew(3deg); } }
.container {
max-width: 880px;
margin: 0 auto;
padding: 20px;
background: rgba(0, 20, 10, 0.75);
border: 2px solid #00ff66;
padding: 0;
box-shadow:
0 0 0 1px #003311 inset,
0 0 24px rgba(0,255,102,0.18);
}
header {
border-bottom: 2px solid #eee;
padding-bottom: 20px;
margin-bottom: 30px;
.terminal-bar {
background: #001a0c;
border-bottom: 2px solid #00ff66;
padding: 6px 12px;
font-size: 14px;
color: #aaffaa;
display: flex;
justify-content: space-between;
}
header h1 { margin-bottom: 10px; }
header nav a {
margin-right: 20px;
text-decoration: none;
color: #666;
}
header nav a:hover { color: #333; }
.post {
border-bottom: 1px solid #eee;
padding: 20px 0;
}
.post-title { font-size: 1.5rem; margin-bottom: 10px; }
.post-title a { text-decoration: none; color: #333; }
.post-title a:hover { color: #0066cc; }
.post-meta { color: #999; font-size: 0.9rem; margin-bottom: 10px; }
.post-excerpt { color: #666; }
.post-content { line-height: 1.8; font-size: 1.1rem; }
.post-content h1, .post-content h2, .post-content h3 {
margin-top: 30px;
margin-bottom: 15px;
}
.post-content code {
background: #f4f4f4;
padding: 2px 6px;
border-radius: 3px;
}
.post-content pre {
background: #f4f4f4;
padding: 15px;
border-radius: 5px;
overflow-x: auto;
}
.post-content img { max-width: 100%; height: auto; }
.video-container {
position: relative;
padding-bottom: 56.25%;
height: 0;
.terminal-bar .dots::before { content: "● ● ●"; color: #ff00aa; letter-spacing: 2px; }
.marquee {
background: #ff00aa;
color: #000;
padding: 4px 0;
overflow: hidden;
max-width: 100%;
margin: 20px 0;
white-space: nowrap;
font-family: 'Press Start 2P', monospace;
font-size: 10px;
border-bottom: 2px solid #00ff66;
}
.video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 0;
.marquee span {
display: inline-block;
padding-left: 100%;
animation: marquee 28s linear infinite;
}
.tiktok-embed { margin: 20px 0; }
.twitter-tweet { margin: 20px auto; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
header.hero {
padding: 24px 20px 16px;
border-bottom: 1px dashed #00ff66;
}
.ascii-brand {
color: #00ff66;
font-family: 'Press Start 2P', monospace;
font-size: 28px;
letter-spacing: 2px;
text-shadow:
2px 0 #ff00aa,
-2px 0 #00ffff,
0 0 8px rgba(0,255,102,0.8);
animation: glitch 4s infinite;
}
.ascii-brand .cursor {
color: #00ff66;
animation: blink 1s step-end infinite;
}
.tagline {
color: #aaffaa;
font-size: 18px;
margin-top: 10px;
}
.tagline::before { content: "> "; color: #ff00aa; }
nav.nav {
margin-top: 14px;
font-size: 18px;
}
nav.nav a {
color: #00ffff;
text-decoration: none;
margin-right: 18px;
}
nav.nav a::before { content: "["; color: #ff00aa; }
nav.nav a::after { content: "]"; color: #ff00aa; }
nav.nav a:hover { color: #ffff00; background: #003311; }
main { padding: 20px; }
.post {
background: #001a0c;
border: 1px solid #00aa44;
padding: 14px 16px;
margin-bottom: 14px;
position: relative;
}
.post::before {
content: "[LOG]";
position: absolute; top: -12px; left: 8px;
background: #000;
color: #ff00aa;
padding: 0 6px;
font-size: 14px;
letter-spacing: 2px;
}
.post-title { font-size: 24px; margin-bottom: 4px; }
.post-title a {
color: #ffff00;
text-decoration: none;
text-shadow: 0 0 6px rgba(255,255,0,0.5);
}
.post-title a:hover { color: #fff; text-decoration: underline; }
.post-meta {
color: #77cc88;
font-size: 16px;
margin-bottom: 8px;
}
.post-meta::before { content: "timestamp: "; color: #ff00aa; }
.post-excerpt { color: #bfffcf; font-size: 18px; }
.tag {
display: inline-block;
background: #eee;
padding: 2px 8px;
border-radius: 3px;
font-size: 0.85rem;
margin-right: 5px;
background: #003311;
color: #00ffff;
padding: 0 6px;
margin-right: 4px;
border: 1px dashed #00aa44;
font-size: 14px;
}
.tag a { color: inherit; text-decoration: none; }
.tag::before { content: "#"; }
.post-content {
background: #000;
border: 1px solid #00aa44;
padding: 24px;
line-height: 1.6;
font-size: 19px;
color: #bfffcf;
}
.post-content h1 {
color: #00ff66;
font-family: 'Press Start 2P', monospace;
font-size: 20px;
text-shadow: 2px 0 #ff00aa, -2px 0 #00ffff;
margin-bottom: 12px;
}
.post-content h2 { font-size: 26px; color: #ffff00; margin-top: 20px; }
.post-content h3 { font-size: 22px; color: #00ffff; margin-top: 16px; }
.post-content p { margin-bottom: 14px; }
.post-content a { color: #00ffff; text-decoration: underline; }
.post-content a:visited { color: #ff00aa; }
.post-content img {
max-width: 100%;
height: auto;
border: 2px solid #00aa44;
filter: saturate(0.85) contrast(1.05);
}
.post-content blockquote {
border-left: 3px solid #ff00aa;
margin: 14px 0;
padding: 4px 14px;
color: #aaffaa;
background: #001a0c;
}
.post-content code {
background: #002a14;
color: #ffff00;
padding: 1px 5px;
font-family: 'VT323', monospace;
}
.post-content pre {
background: #001a0c;
color: #00ff66;
padding: 12px;
border: 1px solid #00aa44;
overflow-x: auto;
}
.back-link {
display: inline-block;
margin-bottom: 20px;
color: #0066cc;
color: #00ffff;
text-decoration: none;
margin-bottom: 16px;
font-size: 18px;
}
footer {
margin-top: 50px;
padding-top: 20px;
border-top: 1px solid #eee;
color: #999;
font-size: 0.9rem;
}
.back-link::before { content: "<-- "; color: #ff00aa; }
.back-link:hover { background: #003311; color: #ffff00; }
.pagination {
margin-top: 50px;
padding-top: 30px;
border-top: 1px solid #eee;
margin-top: 24px;
padding-top: 12px;
border-top: 1px dashed #00aa44;
display: flex;
justify-content: space-between;
align-items: center;
}
.pagination-link {
display: inline-block;
padding: 10px 20px;
background: #f4f4f4;
border-radius: 5px;
padding: 4px 12px;
background: #001a0c;
border: 1px solid #00ff66;
color: #ffff00;
text-decoration: none;
color: #333;
}
.pagination-info { color: #666; }
.pagination-link:hover { background: #00ff66; color: #000; }
.pagination-info { color: #aaffaa; font-size: 16px; }
.related-posts {
margin-top: 60px;
padding-top: 40px;
border-top: 2px solid #eee;
margin-top: 32px;
padding-top: 16px;
border-top: 1px dashed #ff00aa;
}
.related-posts h3 {
font-size: 1.5rem;
margin-bottom: 25px;
color: #333;
font-family: 'Press Start 2P', monospace;
font-size: 14px;
color: #ff00aa;
margin-bottom: 14px;
}
.related-posts h3::before { content: "// "; color: #00ffff; }
.related-posts-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 20px;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 10px;
}
.related-post-card {
border: 1px solid #eee;
border-radius: 8px;
padding: 20px;
transition: box-shadow 0.2s;
background: #001a0c;
border: 1px solid #00aa44;
padding: 10px 12px;
}
.related-post-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.related-post-link { text-decoration: none; color: inherit; }
.related-post-link h4 {
font-size: 1.1rem;
margin-bottom: 10px;
color: #333;
.related-post-link h4 { font-size: 20px; color: #ffff00; margin-bottom: 6px; }
.related-post-excerpt { color: #bfffcf; font-size: 16px; }
.related-post-date { color: #77cc88; font-size: 14px; }
footer {
margin-top: 0;
padding: 12px 16px;
background: #001a0c;
border-top: 2px solid #00ff66;
color: #77cc88;
font-size: 16px;
text-align: center;
}
.related-post-excerpt {
font-size: 0.9rem;
color: #666;
margin-bottom: 10px;
line-height: 1.5;
}
.related-post-date { font-size: 0.8rem; color: #999; }
footer::before { content: "[EOF] "; color: #ff00aa; }
@media (max-width: 600px) {
body { font-size: 18px; padding: 8px; }
.ascii-brand { font-size: 18px; }
.related-posts-grid { grid-template-columns: 1fr; }
}
</style>
</head>
<body>
<header>
<h1 style="display:flex; align-items:center; gap:12px; margin-bottom:10px;">
<a href="/" style="display:flex; align-items:center; gap:12px; text-decoration: none; color: #333;">
<img src="/favicon.png" alt="" width="40" height="40" style="border-radius: 8px; flex-shrink:0;" />
<span>{site.name}</span>
<div class="container">
<div class="terminal-bar">
<span class="dots"></span>
<span>hype404://terminal — ai.sys</span>
</div>
<div class="marquee">
<span>&gt;&gt;&gt; HYPE404 :: AI NEWS DROP :: NEURAL NETWORKS :: PROMPT WARS :: LLM GOSSIP :: ROBOT UPRISING :: DEEPFAKE DRAMA :: AGI IS TOMORROW :: CTRL+C TO STOP :: &nbsp;</span>
</div>
<header class="hero">
<a href="/" style="text-decoration: none;">
<span class="ascii-brand">HYPE404<span class="cursor">_</span></span>
</a>
</h1>
<p style="color: #666; margin-bottom: 15px;">{site.description}</p>
<nav>
<a href="/">Home</a>
<a href="/about/">About</a>
</nav>
</header>
<div class="tagline">{site.description}</div>
<nav class="nav">
<a href="/">home</a>
<a href="/about/">about</a>
<a href="/rss.xml">rss</a>
</nav>
</header>
<main>
<slot />
</main>
<main>
<slot />
</main>
<footer>
<p>&copy; {year} {site.name}. Powered by Astro.</p>
</footer>
<footer>
(c) {year} {site.name} &nbsp;::&nbsp; powered by caffeine and a bad gpu
</footer>
</div>
</body>
</html>