Files
hype404-static/src/layouts/Layout.astro

361 lines
10 KiB
Plaintext

---
import { site } from '../lib/site.js';
const {
title,
description = site.description,
canonical,
image,
structuredData,
} = Astro.props;
const pageTitle = title || site.name;
const ogUrl = canonical || Astro.url.toString();
const year = new Date().getFullYear();
---
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{pageTitle}</title>
<meta name="description" content={description} />
{canonical && <link rel="canonical" href={canonical} />}
<link rel="icon" href="/favicon.ico" sizes="any" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="apple-touch-icon" href="/favicon-32x32.png" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content={site.name} />
<meta property="og:title" content={pageTitle} />
<meta property="og:description" content={description} />
{image && <meta property="og:image" content={image} />}
<meta property="og:url" content={ogUrl} />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content={pageTitle} />
<meta name="twitter:description" content={description} />
{image && <meta name="twitter:image" content={image} />}
{structuredData && (
<script type="application/ld+json" set:html={structuredData} />
)}
<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: '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;
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);
}
.terminal-bar {
background: #001a0c;
border-bottom: 2px solid #00ff66;
padding: 6px 12px;
font-size: 14px;
color: #aaffaa;
display: flex;
justify-content: space-between;
}
.terminal-bar .dots::before { content: "● ● ●"; color: #ff00aa; letter-spacing: 2px; }
.marquee {
background: #ff00aa;
color: #000;
padding: 4px 0;
overflow: hidden;
white-space: nowrap;
font-family: 'Press Start 2P', monospace;
font-size: 10px;
border-bottom: 2px solid #00ff66;
}
.marquee span {
display: inline-block;
padding-left: 100%;
animation: marquee 28s linear infinite;
}
@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: #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;
color: #00ffff;
text-decoration: none;
margin-bottom: 16px;
font-size: 18px;
}
.back-link::before { content: "<-- "; color: #ff00aa; }
.back-link:hover { background: #003311; color: #ffff00; }
.pagination {
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: 4px 12px;
background: #001a0c;
border: 1px solid #00ff66;
color: #ffff00;
text-decoration: none;
}
.pagination-link:hover { background: #00ff66; color: #000; }
.pagination-info { color: #aaffaa; font-size: 16px; }
.related-posts {
margin-top: 32px;
padding-top: 16px;
border-top: 1px dashed #ff00aa;
}
.related-posts h3 {
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(220px, 1fr));
gap: 10px;
}
.related-post-card {
background: #001a0c;
border: 1px solid #00aa44;
padding: 10px 12px;
}
.related-post-link { text-decoration: none; color: inherit; }
.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;
}
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>
<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>
<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>
<footer>
(c) {year} {site.name} &nbsp;::&nbsp; powered by caffeine and a bad gpu
</footer>
</div>
</body>
</html>