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,163 +44,307 @@ const year = new Date().getFullYear();
<link rel="alternate" type="application/rss+xml" title={`${site.name} RSS`} href="/rss.xml" /> <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> <style is:global>
* { margin: 0; padding: 0; box-sizing: border-box; } * { margin: 0; padding: 0; box-sizing: border-box; }
html { background: #000; }
body { body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-family: 'VT323', 'Courier New', monospace;
line-height: 1.6; font-size: 22px;
color: #333; line-height: 1.4;
max-width: 800px; 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; 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; .terminal-bar {
padding-bottom: 20px; background: #001a0c;
margin-bottom: 30px; border-bottom: 2px solid #00ff66;
padding: 6px 12px;
font-size: 14px;
color: #aaffaa;
display: flex;
justify-content: space-between;
} }
header h1 { margin-bottom: 10px; } .terminal-bar .dots::before { content: "● ● ●"; color: #ff00aa; letter-spacing: 2px; }
header nav a {
margin-right: 20px; .marquee {
text-decoration: none; background: #ff00aa;
color: #666; color: #000;
} padding: 4px 0;
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;
overflow: hidden; overflow: hidden;
max-width: 100%; white-space: nowrap;
margin: 20px 0; font-family: 'Press Start 2P', monospace;
font-size: 10px;
border-bottom: 2px solid #00ff66;
} }
.video-container iframe { .marquee span {
position: absolute; display: inline-block;
top: 0; padding-left: 100%;
left: 0; animation: marquee 28s linear infinite;
width: 100%;
height: 100%;
border: 0;
} }
.tiktok-embed { margin: 20px 0; } @keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
.twitter-tweet { margin: 20px auto; }
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 { .tag {
display: inline-block; display: inline-block;
background: #eee; background: #003311;
padding: 2px 8px; color: #00ffff;
border-radius: 3px; padding: 0 6px;
font-size: 0.85rem; margin-right: 4px;
margin-right: 5px; border: 1px dashed #00aa44;
font-size: 14px;
} }
.tag a { color: inherit; text-decoration: none; } .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 { .back-link {
display: inline-block; display: inline-block;
margin-bottom: 20px; color: #00ffff;
color: #0066cc;
text-decoration: none; text-decoration: none;
margin-bottom: 16px;
font-size: 18px;
} }
footer { .back-link::before { content: "<-- "; color: #ff00aa; }
margin-top: 50px; .back-link:hover { background: #003311; color: #ffff00; }
padding-top: 20px;
border-top: 1px solid #eee;
color: #999;
font-size: 0.9rem;
}
.pagination { .pagination {
margin-top: 50px; margin-top: 24px;
padding-top: 30px; padding-top: 12px;
border-top: 1px solid #eee; border-top: 1px dashed #00aa44;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
} }
.pagination-link { .pagination-link {
display: inline-block; display: inline-block;
padding: 10px 20px; padding: 4px 12px;
background: #f4f4f4; background: #001a0c;
border-radius: 5px; border: 1px solid #00ff66;
color: #ffff00;
text-decoration: none; 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 { .related-posts {
margin-top: 60px; margin-top: 32px;
padding-top: 40px; padding-top: 16px;
border-top: 2px solid #eee; border-top: 1px dashed #ff00aa;
} }
.related-posts h3 { .related-posts h3 {
font-size: 1.5rem; font-family: 'Press Start 2P', monospace;
margin-bottom: 25px; font-size: 14px;
color: #333; color: #ff00aa;
margin-bottom: 14px;
} }
.related-posts h3::before { content: "// "; color: #00ffff; }
.related-posts-grid { .related-posts-grid {
display: grid; display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 20px; gap: 10px;
} }
.related-post-card { .related-post-card {
border: 1px solid #eee; background: #001a0c;
border-radius: 8px; border: 1px solid #00aa44;
padding: 20px; padding: 10px 12px;
transition: box-shadow 0.2s;
} }
.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 { text-decoration: none; color: inherit; }
.related-post-link h4 { .related-post-link h4 { font-size: 20px; color: #ffff00; margin-bottom: 6px; }
font-size: 1.1rem; .related-post-excerpt { color: #bfffcf; font-size: 16px; }
margin-bottom: 10px; .related-post-date { color: #77cc88; font-size: 14px; }
color: #333;
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 { footer::before { content: "[EOF] "; color: #ff00aa; }
font-size: 0.9rem;
color: #666;
margin-bottom: 10px;
line-height: 1.5;
}
.related-post-date { font-size: 0.8rem; color: #999; }
@media (max-width: 600px) { @media (max-width: 600px) {
body { font-size: 18px; padding: 8px; }
.ascii-brand { font-size: 18px; }
.related-posts-grid { grid-template-columns: 1fr; } .related-posts-grid { grid-template-columns: 1fr; }
} }
</style> </style>
</head> </head>
<body> <body>
<header> <div class="container">
<h1 style="display:flex; align-items:center; gap:12px; margin-bottom:10px;"> <div class="terminal-bar">
<a href="/" style="display:flex; align-items:center; gap:12px; text-decoration: none; color: #333;"> <span class="dots"></span>
<img src="/favicon.png" alt="" width="40" height="40" style="border-radius: 8px; flex-shrink:0;" /> <span>hype404://terminal — ai.sys</span>
<span>{site.name}</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> </a>
</h1> <div class="tagline">{site.description}</div>
<p style="color: #666; margin-bottom: 15px;">{site.description}</p> <nav class="nav">
<nav> <a href="/">home</a>
<a href="/">Home</a> <a href="/about/">about</a>
<a href="/about/">About</a> <a href="/rss.xml">rss</a>
</nav> </nav>
</header> </header>
@@ -209,7 +353,8 @@ const year = new Date().getFullYear();
</main> </main>
<footer> <footer>
<p>&copy; {year} {site.name}. Powered by Astro.</p> (c) {year} {site.name} &nbsp;::&nbsp; powered by caffeine and a bad gpu
</footer> </footer>
</div>
</body> </body>
</html> </html>