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.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>
: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; }
html { background: #ff00aa; }
html {
background: var(--bg);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
}
body {
font-family: "Comic Sans MS", "Chalkboard SE", cursive, sans-serif;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
font-size: 17px;
line-height: 1.55;
color: #000;
background:
repeating-linear-gradient(45deg, #ff0080 0 14px, #ffd500 14px 28px, #00d4ff 28px 42px, #8a2be2 42px 56px);
background-attachment: fixed;
line-height: 1.65;
color: var(--ink);
background: var(--bg);
min-height: 100vh;
padding: 14px;
}
.page-wrap {
max-width: 900px;
.container {
max-width: 1100px;
margin: 0 auto;
background: #fff;
border: 6px ridge #ffd500;
outline: 4px solid #ff0080;
outline-offset: -10px;
padding: 0;
box-shadow: 8px 8px 0 #000;
padding: 0 28px;
}
@keyframes rainbow {
0% { color: #ff0080; }
25% { color: #ffd500; }
50% { color: #00d4ff; }
75% { color: #8a2be2; }
100% { color: #ff0080; }
/* ========== Site header ========== */
header.hero {
padding: 36px 0 28px;
border-bottom: 1px solid var(--line);
margin-bottom: 48px;
}
@keyframes blinker { 50% { opacity: 0.2; } }
@keyframes wiggle { 0%,100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
.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;
.hero-row {
display: flex;
align-items: center;
gap: 12px;
justify-content: space-between;
gap: 24px;
flex-wrap: wrap;
}
.brand-row img {
width: 56px; height: 56px;
border-radius: 10px;
border: 4px ridge #ffd500;
box-shadow: 4px 4px 0 #000;
}
.brand-name {
font-family: "Bungee Shade", "Impact", sans-serif;
font-size: 48px;
.brand-link { text-decoration: none; color: inherit; display: inline-block; }
.ascii-brand {
font-family: 'Fraunces', 'Times New Roman', serif;
font-weight: 800;
font-size: 38px;
letter-spacing: -0.02em;
color: var(--ink);
line-height: 1;
animation: rainbow 3s infinite;
text-shadow: 3px 3px 0 #000;
letter-spacing: 1px;
font-variation-settings: 'opsz' 144;
}
.ascii-brand .cursor {
color: var(--accent);
font-weight: 800;
}
.tagline {
display: inline-block;
margin-top: 10px;
padding: 4px 12px;
background: #ffd500;
color: #000;
border: 2px dashed #ff0080;
font-family: "Impact", "Arial Black", sans-serif;
transform: rotate(-2deg);
color: var(--ink-soft);
font-family: 'Fraunces', serif;
font-style: italic;
font-size: 16px;
margin-top: 6px;
max-width: 520px;
font-variation-settings: 'opsz' 14;
}
.tagline::before { content: "★ "; color: #ff0080; }
.tagline::after { content: " ★"; color: #ff0080; }
nav.vmv-nav {
margin-top: 14px;
nav.nav {
display: flex;
gap: 24px;
font-size: 14px;
font-weight: 500;
}
nav.vmv-nav a {
display: inline-block;
margin: 4px;
padding: 4px 12px;
background: #00d4ff;
color: #000;
nav.nav a {
color: var(--ink-soft);
text-decoration: none;
border: 3px outset #ffd500;
font-weight: bold;
text-transform: uppercase;
}
nav.vmv-nav a:hover {
background: #ff0080;
color: #fff;
border-style: inset;
letter-spacing: 0.02em;
transition: color 0.15s;
}
nav.nav a:hover { color: var(--accent); }
main { padding: 18px 22px; background: #fff; }
.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;
}
main { padding: 0 0 64px; }
/* ========== Index post cards ========== */
.post {
background: #fff7e0;
border: 3px double #ff0080;
padding: 14px 16px;
margin-bottom: 16px;
position: relative;
background: var(--bg-card);
border: 1px solid var(--line);
border-radius: 12px;
padding: 28px 32px;
margin-bottom: 18px;
transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.post::before {
content: "HOT!!";
position: absolute;
top: -12px; left: 10px;
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:hover {
transform: translateY(-2px);
box-shadow: 0 12px 32px -16px rgba(80, 30, 80, 0.18);
border-color: #ddd0d8;
}
.post-title {
font-family: "Impact", "Arial Black", sans-serif;
font-size: 24px;
line-height: 1.15;
text-transform: uppercase;
letter-spacing: 1px;
margin-bottom: 6px;
font-family: 'Fraunces', serif;
font-weight: 600;
font-size: 26px;
line-height: 1.2;
letter-spacing: -0.015em;
margin-bottom: 8px;
font-variation-settings: 'opsz' 80;
}
.post-title a {
color: #8a2be2;
color: var(--ink);
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 {
color: #666;
color: var(--ink-muted);
font-size: 13px;
margin-bottom: 8px;
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;
letter-spacing: 0.02em;
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;
justify-content: space-between;
flex-wrap: wrap;
align-items: center;
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 {
display: inline-block;
padding: 6px 14px;
background: #ffd500;
color: #000;
padding: 8px 18px;
background: var(--bg-card);
border: 1px solid var(--line);
border-radius: 999px;
color: var(--ink);
text-decoration: none;
border: 3px outset #ff0080;
font-family: "Impact", sans-serif;
text-transform: uppercase;
font-size: 14px;
font-weight: 500;
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 {
margin-top: 28px;
padding-top: 14px;
border-top: 4px double #8a2be2;
max-width: 1100px;
margin: 64px auto 0;
padding-top: 36px;
border-top: 1px solid var(--line);
}
.related-posts h3 {
font-family: "Impact", sans-serif;
font-family: 'Fraunces', serif;
font-weight: 600;
font-size: 22px;
text-transform: uppercase;
color: #ff0080;
text-shadow: 2px 2px 0 #ffd500;
margin-bottom: 12px;
text-align: center;
letter-spacing: -0.01em;
color: var(--ink);
margin-bottom: 22px;
font-variation-settings: 'opsz' 36;
}
.related-posts h3::before { content: "🌟 "; }
.related-posts h3::after { content: " 🌟"; }
.related-posts-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
gap: 10px;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 16px;
}
.related-post-card {
background: #fff7e0;
border: 3px double #00d4ff;
padding: 10px 12px;
background: var(--bg-card);
border: 1px solid var(--line);
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 {
font-family: "Impact", sans-serif;
font-size: 16px;
text-transform: uppercase;
color: #8a2be2;
margin-bottom: 6px;
font-family: 'Fraunces', serif;
font-weight: 600;
font-size: 18px;
line-height: 1.25;
color: var(--ink);
margin-bottom: 8px;
font-variation-settings: 'opsz' 36;
}
.related-post-excerpt { font-size: 13px; color: #333; }
.related-post-date { font-size: 11px; color: #888; font-style: italic; }
footer {
margin-top: 0;
padding: 14px 18px;
background: #000;
color: #ffd500;
font-family: "Impact", sans-serif;
text-align: center;
.related-post-excerpt {
color: var(--ink-soft);
font-size: 14px;
letter-spacing: 2px;
border-top: 4px ridge #ff0080;
line-height: 1.55;
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) {
.brand-name { font-size: 34px; }
.post-title { font-size: 20px; }
.post-content h1 { font-size: 24px; }
/* ========== Footer ========== */
footer {
max-width: 1100px;
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; }
}
</style>
</head>
<body>
<div class="page-wrap">
<div class="hot-banner">
<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>
<header class="vmv-head">
<a href="/" style="text-decoration: none;">
<div class="brand-row">
<img src="/favicon.png" alt="" width="56" height="56" />
<span class="brand-name">{site.name}</span>
<div class="container">
<header class="hero">
<div class="hero-row">
<div>
<a href="/" class="brand-link">
<span class="ascii-brand">viral<span class="cursor">mvp</span></span>
</a>
<div class="tagline">{site.description}</div>
</div>
</a>
<div class="tagline">{site.description}</div>
<nav class="vmv-nav">
<a href="/">Home</a>
<a href="/about/">About</a>
<a href="/rss.xml">RSS</a>
</nav>
<nav class="nav">
<a href="/">Home</a>
<a href="/about/">About</a>
<a href="/rss.xml">RSS</a>
</nav>
</div>
</header>
<main>
<div class="hot-strip">★★★ TODAY'S VIRAL VICTIMS ★★★</div>
<slot />
</main>
<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>
</div>
</body>