Oatly Zine Collage
Irreverent hand-lettered zine and cut-out packaging collage with tilted tape stickers and witty carton-panel copy.
Inspired by Oatly ↗
WHY THIS AESTHETIC IS UNIQUE
Brings punk-zine irreverence and tactile grocery-carton typography to the web—layering rough marker headlines, masking-tape stickers, and self-aware copy blocks on warm oat paper.
BEST FOR
TAGS
COLOR PALETTE (CLICK TO COPY HEX)
TYPOGRAPHY
- Display
- Permanent Marker, Impact, sans-serif
- Body
- Space Grotesk, -apple-system, sans-serif
- Mono
- Space Mono, ui-monospace, monospace
- Scale
- Loud brush-marker shout headlines (36–64px) juxtaposed with deadpan 14–16px Space Grotesk essays and nutrition-label monospace tables.
ARCHITECTURE & MOBILE NOTES
LAYOUT
Cut-and-paste zine grid with subtly rotated (-2deg to +2deg) paper scraps, taped sticker callouts, and a parody nutrition-facts sidebar panel.
INTERACTION
Interactive flip-cards toggle between 'Boring Legal Stuff' and 'Fun Oat Facts'; clickable carton nutrition panel swaps serving metrics with witty commentary.
MOBILE
Rotated collage cards gently straighten to ±0.8deg on 390px screens with clipped container bounds so nothing triggers horizontal scroll, keeping all flip controls >=44px.
AI AGENT GUARDRAILS
DO
- Balance chaotic hand-lettered display bursts with super-readable sans-serif body blocks.
- Use deliberate slight tilts (-2deg/+2deg) and hard ink borders to sell the cut-out zine texture.
- Write genuinely witty, conversational microcopy rather than stiff corporate slogans.
DON'T
- Do not let rotated elements overflow the viewport horizontally on mobile.
- Do not overuse marker fonts for multi-sentence body paragraphs.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>OATPUNK — The Post-Milk Zine & Carton Manifesto</title>
<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=Permanent+Marker&family=Space+Grotesk:wght@500;700&family=Space+Mono:wght@400;700&display=swap" rel="stylesheet">
<style>
:root {
--bg: #F3EDE0;
--surface: #E8DFCC;
--ink: #151515;
--accent: #2A6FDB;
--muted: #6E685D;
--tape: rgba(255, 245, 204, 0.85);
--stamp-red: #D63A2F;
}
*, *::before, *::after {
box-sizing: border-box;
}
html, body {
margin: 0;
padding: 0;
background-color: var(--bg);
color: var(--ink);
font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
line-height: 1.45;
overflow-x: hidden;
}
body {
background-image:
radial-gradient(rgba(21, 21, 21, 0.055) 1px, transparent 1px),
radial-gradient(rgba(42, 111, 219, 0.04) 1px, transparent 1px);
background-size: 18px 18px, 36px 36px;
background-position: 0 0, 9px 9px;
}
h1, h2, h3, .marker {
font-family: 'Permanent Marker', cursive, sans-serif;
letter-spacing: 0.01em;
line-height: 1.05;
margin: 0;
}
.mono {
font-family: 'Space Mono', ui-monospace, monospace;
}
a {
color: inherit;
text-decoration: none;
}
button {
font-family: inherit;
cursor: pointer;
}
.container {
width: 100%;
max-width: 1120px;
margin: 0 auto;
padding: 0 20px;
}
/* Zine Navigation */
header {
border-bottom: 3px solid var(--ink);
background: var(--bg);
position: sticky;
top: 0;
z-index: 60;
}
.nav-inner {
display: flex;
align-items: center;
justify-content: space-between;
min-height: 70px;
gap: 16px;
}
.logo-stamp {
display: inline-flex;
align-items: center;
gap: 10px;
font-family: 'Permanent Marker', cursive;
font-size: 1.65rem;
background: var(--ink);
color: var(--bg);
padding: 4px 14px;
transform: rotate(-2deg);
box-shadow: 4px 4px 0 var(--accent);
}
.nav-links {
display: flex;
align-items: center;
gap: 18px;
}
.nav-links a {
font-family: 'Space Mono', monospace;
font-size: 0.85rem;
font-weight: 700;
text-transform: uppercase;
padding: 10px 10px;
min-height: 44px;
display: inline-flex;
align-items: center;
border: 2px solid transparent;
transition: transform 0.12s, background 0.12s;
}
.nav-links a:hover {
background: var(--accent);
color: #FFF;
border-color: var(--ink);
transform: rotate(-1.5deg);
}
.zine-btn {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 44px;
min-width: 44px;
padding: 10px 18px;
font-family: 'Space Mono', monospace;
font-weight: 700;
font-size: 0.85rem;
text-transform: uppercase;
background: var(--accent);
color: #FFF;
border: 3px solid var(--ink);
box-shadow: 4px 4px 0 var(--ink);
transition: transform 0.1s, box-shadow 0.1s;
}
.zine-btn:hover {
transform: translate(-1px, -1px);
box-shadow: 5px 5px 0 var(--ink);
}
.zine-btn:active {
transform: translate(3px, 3px);
box-shadow: 1px 1px 0 var(--ink);
}
.zine-btn.paper {
background: var(--bg);
color: var(--ink);
}
.menu-btn {
display: none;
width: 44px;
height: 44px;
background: var(--surface);
border: 3px solid var(--ink);
box-shadow: 3px 3px 0 var(--ink);
align-items: center;
justify-content: center;
}
.mobile-menu {
display: none;
flex-direction: column;
gap: 10px;
padding: 16px 20px 20px;
background: var(--surface);
border-top: 3px solid var(--ink);
}
.mobile-menu.open {
display: flex;
}
.mobile-menu a {
min-height: 44px;
display: flex;
align-items: center;
padding: 8px 12px;
background: var(--bg);
border: 2px solid var(--ink);
font-family: 'Space Mono', monospace;
font-weight: 700;
text-transform: uppercase;
}
/* Cut-out Hero Collage */
.hero {
padding: 46px 0 56px;
}
.hero-grid {
display: grid;
grid-template-columns: 1.15fr 0.85fr;
gap: 36px;
align-items: center;
}
.tape-label {
display: inline-block;
background: var(--tape);
border: 2px dashed var(--ink);
padding: 6px 14px;
font-family: 'Space Mono', monospace;
font-size: 0.78rem;
font-weight: 700;
text-transform: uppercase;
transform: rotate(-2.5deg);
margin-bottom: 18px;
}
.hero h1 {
font-size: clamp(2.6rem, 6vw, 4.6rem);
margin-bottom: 18px;
transform: rotate(-1deg);
}
.cutout-word {
display: inline-block;
background: var(--ink);
color: var(--bg);
padding: 2px 12px 6px;
transform: rotate(2deg);
}
.blue-word {
display: inline-block;
background: var(--accent);
color: #FFF;
padding: 2px 12px 6px;
transform: rotate(-1.8deg);
border: 3px solid var(--ink);
}
.manifesto-copy {
font-size: 1.12rem;
max-width: 52ch;
background: #FFFDF8;
border: 3px solid var(--ink);
padding: 18px 20px;
box-shadow: 6px 6px 0 var(--ink);
margin-bottom: 24px;
position: relative;
}
.manifesto-copy::before {
content: "SIDE-OF-CARTON ESSAY #04";
position: absolute;
top: -13px;
right: 16px;
background: var(--surface);
border: 2px solid var(--ink);
padding: 1px 8px;
font-family: 'Space Mono', monospace;
font-size: 0.7rem;
font-weight: 700;
}
.hero-actions {
display: flex;
flex-wrap: wrap;
gap: 14px;
align-items: center;
}
/* Bespoke Carton Art Stage */
.carton-stage {
position: relative;
display: flex;
align-items: center;
justify-content: center;
padding: 24px;
background: var(--surface);
border: 3px solid var(--ink);
box-shadow: 8px 8px 0 var(--ink);
transform: rotate(1.4deg);
}
.tape-strip {
position: absolute;
width: 96px;
height: 24px;
background: var(--tape);
border: 1.5px solid rgba(21, 21, 21, 0.25);
top: -12px;
left: 24px;
transform: rotate(-7deg);
}
.sticker-badge {
position: absolute;
bottom: -16px;
right: -8px;
background: var(--stamp-red);
color: #FFF;
border: 3px solid var(--ink);
border-radius: 50%;
width: 92px;
height: 92px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
font-family: 'Space Mono', monospace;
font-size: 0.72rem;
font-weight: 700;
line-height: 1.1;
transform: rotate(-11deg);
box-shadow: 3px 3px 0 var(--ink);
}
/* Ticker Strip */
.zine-strip {
background: var(--ink);
color: var(--bg);
padding: 12px 0;
border-top: 3px solid var(--ink);
border-bottom: 3px solid var(--ink);
font-family: 'Space Mono', monospace;
font-size: 0.85rem;
font-weight: 700;
text-transform: uppercase;
overflow: hidden;
}
.strip-inner {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 14px 28px;
padding: 0 16px;
}
/* Interactive Flip Cards */
.section {
padding: 58px 0;
}
.section-header {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
justify-content: space-between;
gap: 16px;
margin-bottom: 28px;
}
.section-header h2 {
font-size: clamp(2rem, 4.5vw, 3.2rem);
}
.flip-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 24px;
}
.flip-card {
background: transparent;
border: none;
padding: 0;
text-align: left;
perspective: 1000px;
min-height: 260px;
width: 100%;
}
.flip-inner {
position: relative;
width: 100%;
min-height: 260px;
transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
transform-style: preserve-3d;
}
.flip-card.flipped .flip-inner {
transform: rotateY(180deg);
}
.flip-face {
position: absolute;
inset: 0;
backface-visibility: hidden;
border: 3px solid var(--ink);
padding: 22px;
box-shadow: 6px 6px 0 var(--ink);
display: flex;
flex-direction: column;
justify-content: space-between;
}
.flip-front {
background: #FFFDF8;
}
.flip-back {
background: var(--accent);
color: #FFF;
transform: rotateY(180deg);
}
.face-tag {
display: inline-block;
font-family: 'Space Mono', monospace;
font-size: 0.72rem;
font-weight: 700;
text-transform: uppercase;
padding: 3px 8px;
border: 2px solid currentColor;
align-self: flex-start;
}
.flip-face h3 {
font-size: 1.55rem;
margin: 12px 0 8px;
}
.flip-face p {
margin: 0;
font-size: 0.96rem;
}
.flip-cue {
font-family: 'Space Mono', monospace;
font-size: 0.76rem;
font-weight: 700;
margin-top: 14px;
text-decoration: underline;
}
/* Nutrition Label Parody Widget */
.carton-split {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 32px;
align-items: start;
}
.nutrition-box {
background: #FFFDF8;
border: 4px solid var(--ink);
padding: 22px;
box-shadow: 8px 8px 0 var(--ink);
font-family: 'Space Mono', monospace;
}
.nut-title {
font-family: 'Space Grotesk', sans-serif;
font-weight: 700;
font-size: 2rem;
border-bottom: 10px solid var(--ink);
padding-bottom: 6px;
margin-bottom: 10px;
line-height: 1;
}
.nut-row {
display: flex;
justify-content: space-between;
gap: 12px;
padding: 8px 0;
border-bottom: 2px solid var(--ink);
font-size: 0.88rem;
}
.nut-row.thick {
border-bottom-width: 6px;
}
.mode-switch {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 18px;
}
.mode-btn {
min-height: 44px;
padding: 8px 16px;
font-family: 'Space Mono', monospace;
font-weight: 700;
font-size: 0.82rem;
border: 3px solid var(--ink);
background: var(--surface);
box-shadow: 3px 3px 0 var(--ink);
}
.mode-btn.active {
background: var(--ink);
color: var(--bg);
}
.zine-essay {
background: var(--surface);
border: 3px solid var(--ink);
padding: 26px;
box-shadow: 6px 6px 0 var(--ink);
transform: rotate(-0.7deg);
}
.zine-essay h3 {
font-size: 2rem;
margin-bottom: 14px;
}
.stamp-quote {
margin-top: 18px;
padding: 14px;
background: #FFFDF8;
border: 2px dashed var(--ink);
font-family: 'Space Mono', monospace;
font-size: 0.85rem;
}
footer {
border-top: 4px solid var(--ink);
background: var(--ink);
color: var(--bg);
padding: 36px 0 46px;
}
.footer-flex {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
gap: 18px;
}
@media (max-width: 820px) {
.hero-grid, .carton-split {
grid-template-columns: 1fr;
}
.nav-links, .nav-cta {
display: none;
}
.menu-btn {
display: inline-flex;
}
.carton-stage {
transform: rotate(0deg);
}
}
</style>
</head>
<body>
<header>
<div class="container nav-inner">
<a href="#top" class="logo-stamp">OATPUNK!</a>
<nav class="nav-links" aria-label="Main">
<a href="#flip-facts">Legal vs. Fun</a>
<a href="#carton-label">Carton Lab</a>
<a href="#manifesto">Manifesto</a>
</nav>
<div class="nav-cta">
<a href="#carton-label" class="zine-btn">Read The Carton</a>
</div>
<button class="menu-btn" id="menuBtn" aria-expanded="false" aria-controls="mobileMenu" aria-label="Open Menu">
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="#151515" stroke-width="3">
<path d="M3 6h18M3 12h18M3 18h18"/>
</svg>
</button>
</div>
<div class="mobile-menu" id="mobileMenu">
<a href="#flip-facts">Legal vs. Fun</a>
<a href="#carton-label">Carton Lab</a>
<a href="#manifesto">Manifesto</a>
</div>
</header>
<main id="top">
<section class="hero">
<div class="container hero-grid">
<div>
<span class="tape-label">Issue #19 • Printed on 100% digital oat paper</span>
<h1>IT'S LIKE MILK, BUT MADE FOR <span class="cutout-word">HUMANS</span> <span class="blue-word">NOT CALVES.</span></h1>
<div class="manifesto-copy">
Look, we could have hired an expensive agency to write poetic nonsense about morning dew on Nordic oat fields. Instead we printed a loud zine on the side of our carton and let our barista foam do the talking.
</div>
<div class="hero-actions">
<a href="#flip-facts" class="zine-btn">Flip The Fine Print</a>
<a href="#carton-label" class="zine-btn paper">Inspect Nutrition Parody</a>
</div>
</div>
<div class="carton-stage">
<div class="tape-strip" aria-hidden="true"></div>
<svg width="260" height="320" viewBox="0 0 260 320" fill="none" role="img" aria-label="Illustrated Oatpunk Barista Carton">
<!-- Shadow -->
<ellipse cx="132" cy="300" rx="84" ry="12" fill="rgba(21,21,21,0.16)"/>
<!-- Carton Body Front -->
<path d="M58 96 L158 96 L158 292 L58 292 Z" fill="#F3EDE0" stroke="#151515" stroke-width="4" stroke-linejoin="round"/>
<!-- Carton Side -->
<path d="M158 96 L204 82 L204 276 L158 292 Z" fill="#2A6FDB" stroke="#151515" stroke-width="4" stroke-linejoin="round"/>
<!-- Gable Top Front -->
<path d="M58 96 L74 44 L174 44 L158 96 Z" fill="#E8DFCC" stroke="#151515" stroke-width="4" stroke-linejoin="round"/>
<!-- Gable Top Side -->
<path d="M158 96 L174 44 L204 82 Z" fill="#1F58B5" stroke="#151515" stroke-width="4" stroke-linejoin="round"/>
<!-- Top Fin -->
<path d="M74 44 L74 28 L174 28 L174 44 Z" fill="#151515" stroke="#151515" stroke-width="3"/>
<!-- Cap -->
<ellipse cx="122" cy="64" rx="16" ry="8" fill="#2A6FDB" stroke="#151515" stroke-width="3.5"/>
<!-- Label Graphics -->
<rect x="68" y="112" width="80" height="38" fill="#151515" transform="rotate(-2 108 131)"/>
<text x="108" y="138" text-anchor="middle" font-family="Permanent Marker" font-size="18" fill="#F3EDE0">OATPUNK</text>
<text x="108" y="176" text-anchor="middle" font-family="Space Grotesk" font-weight="700" font-size="15" fill="#151515">BARISTA</text>
<text x="108" y="194" text-anchor="middle" font-family="Space Mono" font-weight="700" font-size="11" fill="#2A6FDB">FOAM EDITION</text>
<!-- Hand-drawn Oat Stalk -->
<path d="M108 268 C108 242, 108 228, 108 212" stroke="#151515" stroke-width="3" stroke-linecap="round"/>
<ellipse cx="97" cy="228" rx="8" ry="4" transform="rotate(-32 97 228)" fill="#E8DFCC" stroke="#151515" stroke-width="2.5"/>
<ellipse cx="119" cy="228" rx="8" ry="4" transform="rotate(32 119 228)" fill="#E8DFCC" stroke="#151515" stroke-width="2.5"/>
<ellipse cx="96" cy="244" rx="8" ry="4" transform="rotate(-32 96 244)" fill="#E8DFCC" stroke="#151515" stroke-width="2.5"/>
<ellipse cx="120" cy="244" rx="8" ry="4" transform="rotate(32 120 244)" fill="#E8DFCC" stroke="#151515" stroke-width="2.5"/>
<!-- Side Carton Copy -->
<text x="181" y="148" text-anchor="middle" font-family="Space Mono" font-size="9" font-weight="700" fill="#FFF" transform="rotate(-90 181 148)">SHAKE WELL OR ELSE</text>
<text x="181" y="232" text-anchor="middle" font-family="Space Mono" font-size="9" font-weight="700" fill="#FFF" transform="rotate(-90 181 232)">1000 ML / 33.8 FL OZ</text>
</svg>
<div class="sticker-badge">
<span>NO COWS</span>
<span>WERE</span>
<span>BOTHERED</span>
</div>
</div>
</div>
</section>
<div class="zine-strip" aria-hidden="true">
<div class="strip-inner">
<span>★ ZERO DAIRY</span>
<span>★ 100% FOAMABLE</span>
<span>★ PRINTED WITH IRREVERENCE</span>
<span>★ CLIMATE FOOTPRINT ON THE FRONT</span>
</div>
</div>
<section class="section" id="flip-facts">
<div class="container">
<div class="section-header">
<div>
<span class="mono" style="color:var(--muted); font-weight:700;">TAP ANY CARD TO FLIP</span>
<h2>Boring Legal Stuff / Fun Oat Facts</h2>
</div>
<button class="zine-btn paper" id="flipAllBtn">Flip All Cards</button>
</div>
<div class="flip-grid">
<button class="flip-card" aria-pressed="false">
<div class="flip-inner">
<div class="flip-face flip-front">
<div>
<span class="face-tag">Boring Legal Stuff #01</span>
<h3>STORAGE DIRECTIVE</h3>
<p>Keep refrigerated between 2°C and 6°C after opening. Consume within 5 days for optimal organoleptic compliance.</p>
</div>
<span class="flip-cue">Tap for the fun oat fact →</span>
</div>
<div class="flip-face flip-back">
<div>
<span class="face-tag">Fun Oat Fact #01</span>
<h3>IT SURVIVES YOUR FRIDGE</h3>
<p>Nobody actually lasts 5 days with a carton of Barista Edition. Most households empty it by Tuesday morning's second iced latte.</p>
</div>
<span class="flip-cue">← Back to legal snooze</span>
</div>
</div>
</button>
<button class="flip-card" aria-pressed="false">
<div class="flip-inner">
<div class="flip-face flip-front">
<div>
<span class="face-tag">Boring Legal Stuff #02</span>
<h3>ENZYMATIC HYDROLYSIS</h3>
<p>Contains water, oats (10%), rapeseed oil, acidity regulator (dipotassium phosphate), and calcium carbonate.</p>
</div>
<span class="flip-cue">Tap for the fun oat fact →</span>
</div>
<div class="flip-face flip-back">
<div>
<span class="face-tag">Fun Oat Fact #02</span>
<h3>MAGIC LIQUID OATMEAL</h3>
<p>We use natural enzymes to turn solid Scandinavian oats into silky microfoam without dumping weird gums into your espresso.</p>
</div>
<span class="flip-cue">← Back to legal snooze</span>
</div>
</div>
</button>
<button class="flip-card" aria-pressed="false">
<div class="flip-inner">
<div class="flip-face flip-front">
<div>
<span class="face-tag">Boring Legal Stuff #03</span>
<h3>CARBON ACCOUNTING</h3>
<p>Life-cycle assessment verified at 0.44 kg CO2e per kg of product from farm gate to regional distribution warehouse.</p>
</div>
<span class="flip-cue">Tap for the fun oat fact →</span>
</div>
<div class="flip-face flip-back">
<div>
<span class="face-tag">Fun Oat Fact #03</span>
<h3>70% LESS PLANET DRAMA</h3>
<p>We stamp the climate number right on the front of the box and dare every other beverage company to print theirs too.</p>
</div>
<span class="flip-cue">← Back to legal snooze</span>
</div>
</div>
</button>
</div>
</div>
</section>
<section class="section" id="carton-label">
<div class="container carton-split">
<div>
<div class="mode-switch" role="tablist" aria-label="Nutrition label mode">
<button class="mode-btn active" id="modeStandard" role="tab" aria-selected="true">Standard Nutrition</button>
<button class="mode-btn" id="modeHonest" role="tab" aria-selected="false">Brutally Honest Mode</button>
</div>
<div class="nutrition-box" id="nutritionPanel" aria-live="polite">
<!-- Populated by JS -->
</div>
</div>
<article class="zine-essay" id="manifesto">
<span class="tape-label" style="margin-bottom:12px;">Cut-Out Manifesto</span>
<h3>WHY WE WRITE ESSAYS ON MILK CARTONS</h3>
<p>
You were going to stare at your phone while eating cereal anyway. We figured we could at least give you a slightly sarcastic break-room zine printed in soy ink.
</p>
<p>
Switching one daily coffee from dairy to oats won't fix the entire planet overnight, sure — but it's ridiculously easy, tastes great, and requires zero heroic speeches.
</p>
<div class="stamp-quote">
<strong>FOOTNOTE FOR LAWYERS:</strong> Yes, oats do not technically have udders. We checked twice.
</div>
</article>
</div>
</section>
</main>
<footer>
<div class="container footer-flex">
<div>
<div class="marker" style="font-size:1.8rem;">OATPUNK ZINE CO.</div>
<div class="mono" style="font-size:0.8rem; color:#B7B0A1;">Malmö • Brooklyn • Your Kitchen Counter</div>
</div>
<div class="mono" style="font-size:0.8rem; color:#B7B0A1;">Recyclable carton • Shake vigorously before pouring</div>
</div>
</footer>
<script>
// Mobile nav
const menuBtn = document.getElementById('menuBtn');
const mobileMenu = document.getElementById('mobileMenu');
menuBtn.addEventListener('click', () => {
const open = mobileMenu.classList.toggle('open');
menuBtn.setAttribute('aria-expanded', String(open));
});
mobileMenu.querySelectorAll('a').forEach(a => {
a.addEventListener('click', () => {
mobileMenu.classList.remove('open');
menuBtn.setAttribute('aria-expanded', 'false');
});
});
// Interactive Flip Cards
const cards = Array.from(document.querySelectorAll('.flip-card'));
cards.forEach(card => {
card.addEventListener('click', () => {
const flipped = card.classList.toggle('flipped');
card.setAttribute('aria-pressed', String(flipped));
});
});
let allFlipped = false;
document.getElementById('flipAllBtn').addEventListener('click', (e) => {
allFlipped = !allFlipped;
cards.forEach(c => {
c.classList.toggle('flipped', allFlipped);
c.setAttribute('aria-pressed', String(allFlipped));
});
e.currentTarget.textContent = allFlipped ? 'Reset All Cards' : 'Flip All Cards';
});
// Nutrition Label Parody Widget
const nutritionData = {
standard: {
title: 'Nutrition Facts',
serving: 'Serving size: 1 cup (240 ml)',
rows: [
['Calories', '140 kcal', true],
['Total Fat', '7g (9% DV)', false],
['Beta-Glucan Fiber', '1.0g', false],
['Added Sugars', '0g (naturally sweet oats)', false],
['Calcium', '350mg (25% DV)', false],
['Vitamin B12', '1.2mcg (50% DV)', true]
],
footnote: 'Percent Daily Values are based on a 2,000 calorie diet.'
},
honest: {
title: 'Honesty Facts',
serving: 'Serving size: 1 oversized iced latte',
rows: [
['Liquid Oat Vibes', '100%', true],
['Cow Drama', '0g (0% DV)', false],
['Latte Art Confidence', '420% DV', false],
['Pretentious Marketing', '2% (we try)', false],
['Carton Reading Time', '94 seconds', false],
['Barista Approval', 'Yes / 10', true]
],
footnote: '*Not evaluated by anyone in a suit, just caffeinated designers.'
}
};
const panel = document.getElementById('nutritionPanel');
const btnStandard = document.getElementById('modeStandard');
const btnHonest = document.getElementById('modeHonest');
function renderNutrition(mode) {
const d = nutritionData[mode];
panel.innerHTML = `
<div class="nut-title">${d.title}</div>
<div class="nut-row thick"><span>${d.serving}</span><strong>PER CUP</strong></div>
${d.rows.map(([k, v, thick]) => `
<div class="nut-row ${thick ? 'thick' : ''}">
<span><strong>${k}</strong></span>
<span>${v}</span>
</div>
`).join('')}
<p style="font-size:0.75rem; color:var(--muted); margin:12px 0 0;">${d.footnote}</p>
`;
}
btnStandard.addEventListener('click', () => {
btnStandard.classList.add('active');
btnStandard.setAttribute('aria-selected', 'true');
btnHonest.classList.remove('active');
btnHonest.setAttribute('aria-selected', 'false');
renderNutrition('standard');
});
btnHonest.addEventListener('click', () => {
btnHonest.classList.add('active');
btnHonest.setAttribute('aria-selected', 'true');
btnStandard.classList.remove('active');
btnStandard.setAttribute('aria-selected', 'false');
renderNutrition('honest');
});
renderNutrition('standard');
</script>
</body>
</html>