redesign: premium editorial light theme

Replaces the Geocities/MTV rainbow stripe layout (Bungee Shade,
Rubik Glitch, hot-pink bg, repeating diagonal stripes, Comic Sans
body) with the same clean editorial magazine theme as hype404:

- Warm off-white bg (#fbfaf6), rich near-black ink
- Fraunces serif headlines + Inter body + JetBrains Mono code
- Magenta accent (#d4308f) — fits the creator-drama beat without
  Geocities visual noise
- Same component classes (.post, .post-content, .tag, etc.) so
  PostList and post pages cascade through unchanged
- Drop cap on the first paragraph, pill tags, hover lift on cards
- Brand wordmark "viralmvp" (mvp in magenta accent)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Claude Code
2026-05-01 16:44:17 +08:00
parent 4586e765a4
commit 62559f7546

View File

@@ -47,382 +47,435 @@ const year = new Date().getFullYear();
<link rel="preconnect" href="https://fonts.googleapis.com" /> <link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Bungee+Shade&family=Rubik+Glitch&display=swap" rel="stylesheet" /> <link href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet" />
<style is:global> <style is:global>
:root {
--bg: #fbfaf6;
--bg-card: #ffffff;
--bg-soft: #f5f0ef;
--ink: #1a121d;
--ink-soft: #4f3f57;
--ink-muted: #897a8f;
--line: #ebe4e8;
--accent: #d4308f;
--accent-soft: #fbe2f0;
--link: #6c2bd9;
--link-hover: #4c1d95;
}
* { margin: 0; padding: 0; box-sizing: border-box; } * { margin: 0; padding: 0; box-sizing: border-box; }
html { background: #ff00aa; }
html {
background: var(--bg);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
}
body { body {
font-family: "Comic Sans MS", "Chalkboard SE", cursive, sans-serif; font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
font-size: 17px; font-size: 17px;
line-height: 1.55; line-height: 1.65;
color: #000; color: var(--ink);
background: background: var(--bg);
repeating-linear-gradient(45deg, #ff0080 0 14px, #ffd500 14px 28px, #00d4ff 28px 42px, #8a2be2 42px 56px);
background-attachment: fixed;
min-height: 100vh; min-height: 100vh;
padding: 14px;
} }
.page-wrap { .container {
max-width: 900px; max-width: 1100px;
margin: 0 auto; margin: 0 auto;
background: #fff; padding: 0 28px;
border: 6px ridge #ffd500;
outline: 4px solid #ff0080;
outline-offset: -10px;
padding: 0;
box-shadow: 8px 8px 0 #000;
} }
@keyframes rainbow { /* ========== Site header ========== */
0% { color: #ff0080; } header.hero {
25% { color: #ffd500; } padding: 36px 0 28px;
50% { color: #00d4ff; } border-bottom: 1px solid var(--line);
75% { color: #8a2be2; } margin-bottom: 48px;
100% { color: #ff0080; }
} }
@keyframes blinker { 50% { opacity: 0.2; } } .hero-row {
@keyframes wiggle { 0%,100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } } display: flex;
.hot-banner {
background: #000;
color: #ffd500;
padding: 6px 0;
overflow: hidden;
white-space: nowrap;
font-family: "Impact", "Arial Black", sans-serif;
font-size: 18px;
letter-spacing: 2px;
border-bottom: 3px solid #ff0080;
}
.hot-banner span {
display: inline-block;
padding-left: 100%;
animation: mqr 24s linear infinite;
}
@keyframes mqr { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
header.vmv-head {
text-align: center;
padding: 22px 14px 14px;
background:
radial-gradient(circle at 20% 30%, rgba(255,0,128,0.25), transparent 40%),
radial-gradient(circle at 85% 70%, rgba(0,212,255,0.25), transparent 45%),
#fff;
border-bottom: 4px dashed #ff0080;
}
.brand-row {
display: inline-flex;
align-items: center; align-items: center;
gap: 12px; justify-content: space-between;
gap: 24px;
flex-wrap: wrap;
} }
.brand-row img { .brand-link { text-decoration: none; color: inherit; display: inline-block; }
width: 56px; height: 56px; .ascii-brand {
border-radius: 10px; font-family: 'Fraunces', 'Times New Roman', serif;
border: 4px ridge #ffd500; font-weight: 800;
box-shadow: 4px 4px 0 #000; font-size: 38px;
} letter-spacing: -0.02em;
.brand-name { color: var(--ink);
font-family: "Bungee Shade", "Impact", sans-serif;
font-size: 48px;
line-height: 1; line-height: 1;
animation: rainbow 3s infinite; font-variation-settings: 'opsz' 144;
text-shadow: 3px 3px 0 #000; }
letter-spacing: 1px; .ascii-brand .cursor {
color: var(--accent);
font-weight: 800;
} }
.tagline { .tagline {
display: inline-block; color: var(--ink-soft);
margin-top: 10px; font-family: 'Fraunces', serif;
padding: 4px 12px; font-style: italic;
background: #ffd500; font-size: 16px;
color: #000; margin-top: 6px;
border: 2px dashed #ff0080; max-width: 520px;
font-family: "Impact", "Arial Black", sans-serif; font-variation-settings: 'opsz' 14;
transform: rotate(-2deg);
} }
.tagline::before { content: "★ "; color: #ff0080; } nav.nav {
.tagline::after { content: " ★"; color: #ff0080; } display: flex;
gap: 24px;
nav.vmv-nav { font-size: 14px;
margin-top: 14px; font-weight: 500;
} }
nav.vmv-nav a { nav.nav a {
display: inline-block; color: var(--ink-soft);
margin: 4px;
padding: 4px 12px;
background: #00d4ff;
color: #000;
text-decoration: none; text-decoration: none;
border: 3px outset #ffd500; letter-spacing: 0.02em;
font-weight: bold; transition: color 0.15s;
text-transform: uppercase;
}
nav.vmv-nav a:hover {
background: #ff0080;
color: #fff;
border-style: inset;
} }
nav.nav a:hover { color: var(--accent); }
main { padding: 18px 22px; background: #fff; } main { padding: 0 0 64px; }
.hot-strip {
background: #ff0080;
color: #fff;
padding: 4px 10px;
margin-bottom: 14px;
font-family: "Impact", sans-serif;
font-size: 15px;
letter-spacing: 2px;
text-align: center;
animation: blinker 1.4s infinite;
border: 2px dashed #ffd500;
}
/* ========== Index post cards ========== */
.post { .post {
background: #fff7e0; background: var(--bg-card);
border: 3px double #ff0080; border: 1px solid var(--line);
padding: 14px 16px; border-radius: 12px;
margin-bottom: 16px; padding: 28px 32px;
position: relative; margin-bottom: 18px;
transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
} }
.post::before { .post:hover {
content: "HOT!!"; transform: translateY(-2px);
position: absolute; box-shadow: 0 12px 32px -16px rgba(80, 30, 80, 0.18);
top: -12px; left: 10px; border-color: #ddd0d8;
background: #ff0080;
color: #fff;
font-family: "Impact", sans-serif;
padding: 2px 8px;
border: 2px solid #000;
transform: rotate(-6deg);
animation: wiggle 1.2s infinite;
} }
.post-title { .post-title {
font-family: "Impact", "Arial Black", sans-serif; font-family: 'Fraunces', serif;
font-size: 24px; font-weight: 600;
line-height: 1.15; font-size: 26px;
text-transform: uppercase; line-height: 1.2;
letter-spacing: 1px; letter-spacing: -0.015em;
margin-bottom: 6px; margin-bottom: 8px;
font-variation-settings: 'opsz' 80;
} }
.post-title a { .post-title a {
color: #8a2be2; color: var(--ink);
text-decoration: none; text-decoration: none;
text-shadow: 2px 2px 0 #ffd500;
} }
.post-title a:hover { color: #ff0080; text-decoration: underline wavy; } .post-title a:hover { color: var(--accent); }
.post-meta { .post-meta {
color: #666; color: var(--ink-muted);
font-size: 13px; font-size: 13px;
margin-bottom: 8px; letter-spacing: 0.02em;
font-style: italic;
}
.post-meta::before { content: "📺 "; }
.post-excerpt { color: #222; }
.tag {
display: inline-block;
background: #ffd500;
color: #000;
padding: 1px 8px;
margin-right: 4px;
font-size: 13px;
font-weight: bold;
border: 2px solid #000;
text-transform: uppercase;
transform: rotate(-1deg);
}
.tag a { color: inherit; text-decoration: none; }
.post-content {
background: #fff;
border: 4px ridge #00d4ff;
padding: 20px 24px;
line-height: 1.7;
}
.post-content h1 {
font-family: "Impact", sans-serif;
font-size: 32px;
line-height: 1.1;
text-transform: uppercase;
letter-spacing: 1px;
color: #8a2be2;
text-shadow: 3px 3px 0 #ffd500, 6px 6px 0 #ff0080;
margin-bottom: 10px;
}
.post-content h2 {
font-family: "Impact", sans-serif;
font-size: 22px;
color: #ff0080;
margin-top: 24px;
border-bottom: 3px dotted #ffd500;
}
.post-content h3 {
font-size: 18px;
color: #00a0cc;
margin-top: 16px;
}
.post-content p { margin-bottom: 12px; }
.post-content a {
color: #ff0080;
font-weight: bold;
text-decoration: underline;
}
.post-content a:visited { color: #8a2be2; }
.post-content img {
max-width: 100%;
height: auto;
border: 4px groove #ffd500;
box-shadow: 4px 4px 0 #000;
margin: 12px 0;
}
.post-content blockquote {
background: #ffd500;
border-left: 8px solid #ff0080;
padding: 8px 14px;
margin: 12px 0;
font-style: italic;
transform: rotate(-0.4deg);
}
.post-content code {
background: #000;
color: #00ff00;
padding: 1px 6px;
font-family: "Courier New", monospace;
}
.post-content pre {
background: #000;
color: #00ff00;
padding: 12px;
border: 3px ridge #ffd500;
overflow-x: auto;
}
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin: 14px 0; border: 4px ridge #ffd500; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.back-link {
display: inline-block;
margin-bottom: 12px; margin-bottom: 12px;
padding: 3px 10px;
background: #00d4ff;
color: #000;
text-decoration: none;
border: 3px outset #ffd500;
font-weight: bold;
}
.back-link::before { content: "<< "; }
.pagination {
margin-top: 20px;
padding-top: 14px;
border-top: 4px dashed #ff0080;
display: flex; display: flex;
justify-content: space-between; flex-wrap: wrap;
align-items: center; align-items: center;
gap: 8px; gap: 8px;
} }
.post-excerpt {
color: var(--ink-soft);
font-size: 16px;
line-height: 1.6;
}
/* ========== Tags ========== */
.tag {
display: inline-block;
background: var(--bg-soft);
color: var(--ink-soft);
padding: 2px 10px;
border-radius: 999px;
border: 1px solid var(--line);
font-size: 12px;
font-weight: 500;
letter-spacing: 0.02em;
transition: background 0.15s, color 0.15s;
}
.tag a { color: inherit; text-decoration: none; }
.tag:hover { background: var(--accent-soft); color: var(--accent); }
/* ========== Article (post detail) ========== */
.post-content {
max-width: 720px;
margin: 0 auto;
padding: 0;
background: transparent;
border: none;
font-size: 18px;
line-height: 1.75;
color: var(--ink);
}
.post-content h1 {
font-family: 'Fraunces', serif;
font-weight: 700;
font-size: clamp(32px, 5vw, 48px);
line-height: 1.1;
letter-spacing: -0.02em;
color: var(--ink);
margin-bottom: 18px;
font-variation-settings: 'opsz' 144;
}
.post-content h2 {
font-family: 'Fraunces', serif;
font-weight: 600;
font-size: 28px;
line-height: 1.25;
letter-spacing: -0.015em;
color: var(--ink);
margin: 44px 0 14px;
font-variation-settings: 'opsz' 80;
}
.post-content h3 {
font-family: 'Fraunces', serif;
font-weight: 600;
font-size: 22px;
line-height: 1.3;
color: var(--ink);
margin: 32px 0 10px;
font-variation-settings: 'opsz' 36;
}
.post-content p {
margin-bottom: 22px;
color: var(--ink);
}
.post-content > p:first-of-type::first-letter {
font-family: 'Fraunces', serif;
font-weight: 700;
font-size: 64px;
float: left;
line-height: 0.92;
padding: 6px 10px 0 0;
color: var(--accent);
font-variation-settings: 'opsz' 144;
}
.post-content a {
color: var(--link);
text-decoration: underline;
text-decoration-thickness: 1px;
text-underline-offset: 3px;
transition: color 0.15s;
}
.post-content a:hover { color: var(--link-hover); }
.post-content img {
max-width: 100%;
height: auto;
border-radius: 10px;
margin: 28px 0;
box-shadow: 0 12px 36px -18px rgba(80, 30, 80, 0.25);
}
.post-content blockquote {
border-left: 3px solid var(--accent);
margin: 28px 0;
padding: 4px 0 4px 24px;
font-family: 'Fraunces', serif;
font-style: italic;
font-size: 21px;
line-height: 1.5;
color: var(--ink-soft);
font-variation-settings: 'opsz' 36;
}
.post-content code {
background: var(--bg-soft);
color: var(--accent);
padding: 1px 7px;
border-radius: 4px;
font-family: 'JetBrains Mono', 'SF Mono', monospace;
font-size: 0.88em;
}
.post-content pre {
background: #1a1a1f;
color: #e8e6df;
padding: 18px 20px;
border-radius: 10px;
overflow-x: auto;
margin: 24px 0;
font-family: 'JetBrains Mono', 'SF Mono', monospace;
font-size: 14px;
line-height: 1.65;
}
.post-content pre code {
background: transparent;
color: inherit;
padding: 0;
}
.post-content ul, .post-content ol {
margin: 18px 0 22px 28px;
}
.post-content li { margin-bottom: 8px; }
.post-content hr {
border: none;
border-top: 1px solid var(--line);
margin: 40px 0;
}
.back-link {
display: inline-block;
color: var(--ink-muted);
text-decoration: none;
margin-bottom: 24px;
font-size: 14px;
font-weight: 500;
letter-spacing: 0.02em;
transition: color 0.15s;
}
.back-link:hover { color: var(--accent); }
/* ========== Pagination ========== */
.pagination {
max-width: 720px;
margin: 48px auto 0;
padding-top: 24px;
border-top: 1px solid var(--line);
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
}
.pagination-link { .pagination-link {
display: inline-block; display: inline-block;
padding: 6px 14px; padding: 8px 18px;
background: #ffd500; background: var(--bg-card);
color: #000; border: 1px solid var(--line);
border-radius: 999px;
color: var(--ink);
text-decoration: none; text-decoration: none;
border: 3px outset #ff0080; font-size: 14px;
font-family: "Impact", sans-serif; font-weight: 500;
text-transform: uppercase; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pagination-link:hover {
background: var(--accent);
border-color: var(--accent);
color: #fff;
}
.pagination-info {
color: var(--ink-muted);
font-size: 13px;
} }
.pagination-link:hover { background: #ff0080; color: #fff; border-style: inset; }
.pagination-info { color: #555; font-size: 13px; }
/* ========== Related posts ========== */
.related-posts { .related-posts {
margin-top: 28px; max-width: 1100px;
padding-top: 14px; margin: 64px auto 0;
border-top: 4px double #8a2be2; padding-top: 36px;
border-top: 1px solid var(--line);
} }
.related-posts h3 { .related-posts h3 {
font-family: "Impact", sans-serif; font-family: 'Fraunces', serif;
font-weight: 600;
font-size: 22px; font-size: 22px;
text-transform: uppercase; letter-spacing: -0.01em;
color: #ff0080; color: var(--ink);
text-shadow: 2px 2px 0 #ffd500; margin-bottom: 22px;
margin-bottom: 12px; font-variation-settings: 'opsz' 36;
text-align: center;
} }
.related-posts h3::before { content: "🌟 "; }
.related-posts h3::after { content: " 🌟"; }
.related-posts-grid { .related-posts-grid {
display: grid; display: grid;
grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 10px; gap: 16px;
} }
.related-post-card { .related-post-card {
background: #fff7e0; background: var(--bg-card);
border: 3px double #00d4ff; border: 1px solid var(--line);
padding: 10px 12px; border-radius: 10px;
padding: 20px;
transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
} }
.related-post-link { text-decoration: none; color: inherit; } .related-post-card:hover {
transform: translateY(-2px);
box-shadow: 0 10px 28px -16px rgba(80, 30, 80, 0.18);
border-color: #ddd0d8;
}
.related-post-link { text-decoration: none; color: inherit; display: block; }
.related-post-link h4 { .related-post-link h4 {
font-family: "Impact", sans-serif; font-family: 'Fraunces', serif;
font-size: 16px; font-weight: 600;
text-transform: uppercase; font-size: 18px;
color: #8a2be2; line-height: 1.25;
margin-bottom: 6px; color: var(--ink);
margin-bottom: 8px;
font-variation-settings: 'opsz' 36;
} }
.related-post-excerpt { font-size: 13px; color: #333; } .related-post-excerpt {
.related-post-date { font-size: 11px; color: #888; font-style: italic; } color: var(--ink-soft);
footer {
margin-top: 0;
padding: 14px 18px;
background: #000;
color: #ffd500;
font-family: "Impact", sans-serif;
text-align: center;
font-size: 14px; font-size: 14px;
letter-spacing: 2px; line-height: 1.55;
border-top: 4px ridge #ff0080; margin-bottom: 10px;
}
.related-post-date {
color: var(--ink-muted);
font-size: 12px;
letter-spacing: 0.02em;
} }
footer::before { content: "★ ✦ ★ "; color: #ff0080; }
footer::after { content: " ★ ✦ ★"; color: #ff0080; }
@media (max-width: 600px) { /* ========== Footer ========== */
.brand-name { font-size: 34px; } footer {
.post-title { font-size: 20px; } max-width: 1100px;
.post-content h1 { font-size: 24px; } margin: 80px auto 0;
padding: 28px 28px 36px;
border-top: 1px solid var(--line);
color: var(--ink-muted);
font-size: 13px;
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
flex-wrap: wrap;
}
footer .footer-brand {
font-family: 'Fraunces', serif;
font-weight: 600;
color: var(--ink-soft);
letter-spacing: -0.01em;
}
footer .footer-brand .accent { color: var(--accent); }
/* ========== Mobile ========== */
@media (max-width: 700px) {
.container { padding: 0 18px; }
header.hero { padding: 24px 0 20px; margin-bottom: 32px; }
.ascii-brand { font-size: 30px; }
.tagline { font-size: 14px; }
.post { padding: 22px 22px; }
.post-title { font-size: 22px; }
.post-excerpt { font-size: 15px; }
.post-content { font-size: 17px; }
.post-content > p:first-of-type::first-letter { font-size: 52px; }
.related-posts-grid { grid-template-columns: 1fr; } .related-posts-grid { grid-template-columns: 1fr; }
} }
</style> </style>
</head> </head>
<body> <body>
<div class="page-wrap"> <div class="container">
<div class="hot-banner"> <header class="hero">
<span>🔥 VIRAL NOW!! 🔥 ISHOWSPEED BROKE THE INTERNET 🔥 MRBEAST CHALLENGES 🔥 CHARLI D'AMELIO 🔥 WHO'S FAMOUS TODAY?! 🔥 FRESH VIRAL TEA STRAIGHT TO YOUR SCREEN 🔥 &nbsp;</span> <div class="hero-row">
</div> <div>
<a href="/" class="brand-link">
<header class="vmv-head"> <span class="ascii-brand">viral<span class="cursor">mvp</span></span>
<a href="/" style="text-decoration: none;"> </a>
<div class="brand-row"> <div class="tagline">{site.description}</div>
<img src="/favicon.png" alt="" width="56" height="56" />
<span class="brand-name">{site.name}</span>
</div> </div>
</a> <nav class="nav">
<div class="tagline">{site.description}</div> <a href="/">Home</a>
<nav class="vmv-nav"> <a href="/about/">About</a>
<a href="/">Home</a> <a href="/rss.xml">RSS</a>
<a href="/about/">About</a> </nav>
<a href="/rss.xml">RSS</a> </div>
</nav>
</header> </header>
<main> <main>
<div class="hot-strip">★★★ TODAY'S VIRAL VICTIMS ★★★</div>
<slot /> <slot />
</main> </main>
<footer> <footer>
&copy; {year} {site.name} &nbsp;—&nbsp; BEST VIEWED IN NETSCAPE NAVIGATOR 4.0 <div class="footer-brand">viral<span class="accent">mvp</span></div>
<div>© {year} {site.name}</div>
</footer> </footer>
</div> </div>
</body> </body>