<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>A11y Civic Initiative — Web Accessibility for Everyone</title>
<script src="https://cdn.tailwindcss.com"></script>
<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=DM+Serif+Display&family=Source+Sans+3:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<style>
:root {
--bg: #f8f7f4;
--bg-deep: #efede8;
--fg: #1a1a1f;
--fg-muted: #5c5c66;
--accent: #2d6a6a;
--accent-light: #3d8a8a;
--accent-warm: #e85d4c;
--accent-warm-light: #ff7a6b;
--card: #ffffff;
--border: #d8d6d0;
--success: #2d8a5f;
--warning: #c47830;
}
[data-theme="dark"] {
--bg: #0f1014;
--bg-deep: #1a1b20;
--fg: #f0efec;
--fg-muted: #9c9ca6;
--accent: #4db8b8;
--accent-light: #6fd4d4;
--accent-warm: #ff7a6b;
--accent-warm-light: #ff9a8f;
--card: #1e1f26;
--border: #2e3038;
--success: #4db884;
--warning: #e8a050;
}
* {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
body {
font-family: 'Source Sans 3', sans-serif;
background-color: var(--bg);
color: var(--fg);
line-height: 1.6;
overflow-x: hidden;
}
.font-display {
font-family: 'DM Serif Display', serif;
letter-spacing: -0.02em;
}
/* Grid pattern background */
.grid-pattern {
background-image:
linear-gradient(var(--border) 1px, transparent 1px),
linear-gradient(90deg, var(--border) 1px, transparent 1px);
background-size: 40px 40px;
opacity: 0.4;
}
/* Hero gradient */
.hero-gradient {
background:
radial-gradient(ellipse 80% 60% at 50% 0%, var(--accent) 0%, transparent 50%),
radial-gradient(ellipse 60% 40% at 80% 20%, var(--accent-warm) 0%, transparent 40%),
var(--bg);
opacity: 0.12;
}
/* Cards */
.card {
background: var(--card);
border: 1px solid var(--border);
border-radius: 12px;
transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
transform: translateY(-2px);
box-shadow: 0 8px 32px rgba(0,0,0,0.08);
border-color: var(--accent);
}
/* Buttons */
.btn-primary {
background: var(--accent-warm);
color: white;
padding: 14px 28px;
border-radius: 8px;
font-weight: 600;
transition: all 0.2s ease;
border: none;
cursor: pointer;
}
.btn-primary:hover {
background: var(--accent-warm-light);
transform: translateY(-1px);
box-shadow: 0 4px 16px rgba(232, 93, 76, 0.3);
}
.btn-primary:focus-visible {
outline: 3px solid var(--accent-warm);
outline-offset: 3px;
}
.btn-secondary {
background: transparent;
color: var(--fg);
padding: 14px 28px;
border-radius: 8px;
font-weight: 600;
transition: all 0.2s ease;
border: 2px solid var(--border);
cursor: pointer;
}
.btn-secondary:hover {
border-color: var(--accent);
color: var(--accent);
}
.btn-secondary:focus-visible {
outline: 3px solid var(--accent);
outline-offset: 3px;
}
/* Status badges */
.badge {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 12px;
border-radius: 20px;
font-size: 13px;
font-weight: 600;
}
.badge-live {
background: rgba(45, 138, 95, 0.15);
color: var(--success);
}
.badge-open {
background: rgba(232, 93, 76, 0.15);
color: var(--accent-warm);
}
.badge-upcoming {
background: rgba(196, 120, 48, 0.15);
color: var(--warning);
}
/* Tab system */
.tab-btn {
padding: 10px 20px;
background: transparent;
border: none;
color: var(--fg-muted);
font-weight: 500;
cursor: pointer;
border-bottom: 2px solid transparent;
transition: all 0.2s ease;
}
.tab-btn:hover {
color: var(--fg);
}
.tab-btn[aria-selected="true"] {
color: var(--accent);
border-bottom-color: var(--accent);
}
.tab-btn:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
/* Accordion */
.accordion-trigger {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 24px;
background: transparent;
border: none;
color: var(--fg);
font-weight: 600;
font-size: 16px;
cursor: pointer;
text-align: left;
transition: background 0.2s ease;
}
.accordion-trigger:hover {
background: var(--bg-deep);
}
.accordion-trigger:focus-visible {
outline: 2px solid var(--accent);
outline-offset: -2px;
}
.accordion-icon {
transition: transform 0.3s ease;
}
.accordion-trigger[aria-expanded="true"] .accordion-icon {
transform: rotate(180deg);
}
.accordion-content {
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease;
}
.accordion-content.open {
max-height: 600px;
}
/* Scroll reveal */
.reveal {
opacity: 0;
transform: translateY(30px);
transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
opacity: 1;
transform: translateY(0);
}
/* Stagger children */
.stagger > * {
opacity: 0;
transform: translateY(20px);
}
.stagger.visible > *:nth-child(1) { animation: fadeUp 0.5s 0.1s forwards; }
.stagger.visible > *:nth-child(2) { animation: fadeUp 0.5s 0.2s forwards; }
.stagger.visible > *:nth-child(3) { animation: fadeUp 0.5s 0.3s forwards; }
.stagger.visible > *:nth-child(4) { animation: fadeUp 0.5s 0.4s forwards; }
.stagger.visible > *:nth-child(5) { animation: fadeUp 0.5s 0.5s forwards; }
.stagger.visible > *:nth-child(6) { animation: fadeUp 0.5s 0.6s forwards; }
@keyframes fadeUp {
to {
opacity: 1;
transform: translateY(0);
}
}
/* Hero entrance */
@keyframes heroIn {
from {
opacity: 0;
transform: translateY(40px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.hero-animate {
animation: heroIn 0.8s ease forwards;
}
.hero-animate-delay-1 { animation-delay: 0.15s; opacity: 0; }
.hero-animate-delay-2 { animation-delay: 0.3s; opacity: 0; }
.hero-animate-delay-3 { animation-delay: 0.45s; opacity: 0; }
/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
/* Skip link */
.skip-link {
position: absolute;
top: -100%;
left: 16px;
padding: 12px 24px;
background: var(--accent);
color: white;
border-radius: 0 0 8px 8px;
z-index: 1000;
transition: top 0.2s ease;
}
.skip-link:focus {
top: 0;
}
/* Stat counter */
.stat-number {
font-size: clamp(2.5rem, 5vw, 3.5rem);
font-weight: 700;
color: var(--accent);
line-height: 1;
}
</style>
</head>
<body>
<!-- Skip Link -->
<a href="#main-content" class="skip-link">Skip to main content</a>
<!-- Background layers -->
<div class="fixed inset-0 grid-pattern pointer-events-none" aria-hidden="true"></div>
<div class="fixed inset-0 hero-gradient pointer-events-none" aria-hidden="true"></div>
<!-- Header -->
<header class="sticky top-0 z-50 backdrop-blur-md bg-[var(--bg)]/80 border-b border-[var(--border)]">
<div class="max-w-7xl mx-auto px-6 py-4 flex items-center justify-between">
<a href="#" class="flex items-center gap-3" aria-label="A11y Civic Initiative Home">
<div class="w-10 h-10 rounded-lg bg-[var(--accent)] flex items-center justify-center">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="10"/>
<circle cx="12" cy="12" r="4"/>
<line x1="12" y1="2" x2="12" y2="4"/>
<line x1="12" y1="20" x2="12" y2="22"/>
<line x1="2" y1="12" x2="4" y2="12"/>
<line x1="20" y1="12" x2="22" y2="12"/>
</svg>
</div>
<span class="font-display text-xl">A11y Civic</span>
</a>
<nav class="hidden md:flex items-center gap-8" aria-label="Main navigation">
<a href="#office-hours" class="text-[var(--fg-muted)] hover:text-[var(--fg)] transition-colors font-medium">Office Hours</a>
<a href="#bounties" class="text-[var(--fg-muted)] hover:text-[var(--fg)] transition-colors font-medium">Bug Bounties</a>
<a href="#playbooks" class="text-[var(--fg-muted)] hover:text-[var(--fg)] transition-colors font-medium">Playbooks</a>
<a href="#community" class="text-[var(--fg-muted)] hover:text-[var(--fg)] transition-colors font-medium">Community</a>
</nav>
<div class="flex items-center gap-4">
<button id="theme-toggle" class="p-2 rounded-lg hover:bg-[var(--bg-deep)] transition-colors" aria-label="Toggle dark mode">
<svg id="theme-icon-light" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="5"/>
<path d="M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"/>
</svg>
<svg id="theme-icon-dark" class="hidden" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/>
</svg>
</button>
<button class="btn-primary hidden sm:block">Join Initiative</button>
</div>
</div>
</header>
<main id="main-content">
<!-- Hero Section -->
<section class="relative min-h-[85vh] flex items-center py-20">
<div class="max-w-7xl mx-auto px-6 grid lg:grid-cols-2 gap-16 items-center">
<div>
<div class="badge badge-live mb-6 hero-animate">
<span class="w-2 h-2 rounded-full bg-[var(--success)] animate-pulse"></span>
Open for submissions
</div>
<h1 class="font-display text-5xl md:text-6xl lg:text-7xl leading-[1.1] mb-6 hero-animate hero-animate-delay-1">
Building a more <span class="text-[var(--accent)]">accessible</span> web, together
</h1>
<p class="text-xl text-[var(--fg-muted)] mb-8 max-w-xl hero-animate hero-animate-delay-2">
A civic initiative connecting accessibility experts, developers, and community members to fix the web's biggest barriers — one bug, one session, one playbook at a time.
</p>
<div class="flex flex-wrap gap-4 hero-animate hero-animate-delay-3">
<button class="btn-primary">Report an Issue</button>
<button class="btn-secondary">Browse Playbooks</button>
</div>
</div>
<!-- Stats Panel -->
<div class="card p-8 hero-animate hero-animate-delay-3">
<div class="grid grid-cols-2 gap-8">
<div class="text-center p-4">
<div class="stat-number" data-count="2847">0</div>
<div class="text-[var(--fg-muted)] mt-2">Issues Fixed</div>
</div>
<div class="text-center p-4">
<div class="stat-number" data-count="156">0</div>
<div class="text-[var(--fg-muted)] mt-2">Volunteers</div>
</div>
<div class="text-center p-4">
<div class="stat-number" data-count="42">0</div>
<div class="text-[var(--fg-muted)] mt-2">Playbooks</div>
</div>
<div class="text-center p-4">
<div class="stat-number" data-count="89">0</div>
<div class="text-[var(--fg-muted)] mt-2">Civic Partners</div>
</div>
</div>
<div class="mt-8 pt-6 border-t border-[var(--border)]">
<div class="flex items-center justify-between text-sm">
<span class="text-[var(--fg-muted)]">This month's bounty pool</span>
<span class="font-bold text-[var(--accent-warm)]">$24,500</span>
</div>
</div>
</div>
</div>
</section>
<!-- Pillars Section -->
<section class="py-24 bg-[var(--bg-deep)]">
<div class="max-w-7xl mx-auto px-6">
<div class="text-center mb-16 reveal">
<h2 class="font-display text-4xl md:text-5xl mb-4">How We Work</h2>
<p class="text-xl text-[var(--fg-muted)] max-w-2xl mx-auto">Three core programs driving systemic accessibility improvement across civic technology.</p>
</div>
<div class="grid md:grid-cols-3 gap-8 stagger">
<!-- Office Hours -->
<div class="card p-8 text-center group">
<div class="w-16 h-16 mx-auto mb-6 rounded-2xl bg-[var(--accent)]/10 flex items-center justify-center group-hover:bg-[var(--accent)] group-hover:text-white transition-all duration-300">
<svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<rect x="3" y="4" width="18" height="18" rx="2" ry="2"/>
<line x1="16" y1="2" x2="16" y2="6"/>
<line x1="8" y1="2" x2="8" y2="6"/>
<line x1="3" y1="10" x2="21" y2="10"/>
</svg>
</div>
<h3 class="font-display text-2xl mb-3">Community Office Hours</h3>
<p class="text-[var(--fg-muted)] mb-6">Free, expert-led sessions where anyone can bring accessibility questions and get real-time guidance from certified specialists.</p>
<a href="#office-hours" class="text-[var(--accent)] font-semibold hover:underline">View schedule →</a>
</div>
<!-- Bug Bounties -->
<div class="card p-8 text-center group">
<div class="w-16 h-16 mx-auto mb-6 rounded-2xl bg-[var(--accent-warm)]/10 flex items-center justify-center group-hover:bg-[var(--accent-warm)] group-hover:text-white transition-all duration-300">
<svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="m8 2 1.88 1.88"/>
<path d="M14.12 3.88 16 2"/>
<path d="M9 7.13v-1a3.003 3.003 0 1 1 6 0v1"/>
<path d="M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6"/>
<path d="M12 20v-9"/>
<path d="M6.53 9C4.6 8.8 3 7.1 3 5"/>
<path d="M6 13H2"/>
<path d="M3 21c0-2.1 1.7-3.9 3.8-4"/>
<path d="M20.97 5c0 2.1-1.6 3.8-3.5 4"/>
<path d="M22 13h-4"/>
<path d="M17.2 17c2.1.1 3.8 1.9 3.8 4"/>
</svg>
</div>
<h3 class="font-display text-2xl mb-3">Accessibility Bug Bounties</h3>
<p class="text-[var(--fg-muted)] mb-6">Get rewarded for finding and documenting accessibility issues in civic tech platforms. Higher payouts for verified WCAG violations.</p>
<a href="#bounties" class="text-[var(--accent-warm)] font-semibold hover:underline">View bounties →</a>
</div>
<!-- Playbooks -->
<div class="card p-8 text-center group">
<div class="w-16 h-16 mx-auto mb-6 rounded-2xl bg-[var(--success)]/10 flex items-center justify-center group-hover:bg-[var(--success)] group-hover:text-white transition-all duration-300">
<svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"/>
<path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"/>
<line x1="12" y1="6" x2="16" y2="6"/>
<line x1="12" y1="10" x2="16" y2="10"/>
</svg>
</div>
<h3 class="font-display text-2xl mb-3">Remediation Playbooks</h3>
<p class="text-[var(--fg-muted)] mb-6">Battle-tested, step-by-step guides for fixing common accessibility issues. Open source and community-maintained.</p>
<a href="#playbooks" class="text-[var(--success)] font-semibold hover:underline">Browse playbooks →</a>
</div>
</div>
</div>
</section>
<!-- Office Hours Section -->
<section id="office-hours" class="py-24">
<div class="max-w-7xl mx-auto px-6">
<div class="flex flex-col md:flex-row md:items-end justify-between mb-12 reveal">
<div>
<span class="badge badge-live mb-4">
<span class="w-2 h-2 rounded-full bg-[var(--success)] animate-pulse"></span>
Live now
</span>
<h2 class="font-display text-4xl md:text-5xl mb-2">Community Office Hours</h2>
<p class="text-xl text-[var(--fg-muted)]">Free expert sessions — no question too small.</p>
</div>
<div class="mt-6 md:mt-0 flex gap-2" role="tablist" aria-label="Filter sessions by type">
<button class="tab-btn filter-btn" role="tab" aria-selected="true" data-filter="all">All</button>
<button class="tab-btn filter-btn" role="tab" aria-selected="false" data-filter="general">General</button>
<button class="tab-btn filter-btn" role="tab" aria-selected="false" data-filter="technical">Technical</button>
<button class="tab-btn filter-btn" role="tab" aria-selected="false" data-filter="policy">Policy</button>
</div>
</div>
<div id="sessions-grid" class="grid md:grid-cols-2 lg:grid-cols-3 gap-6 stagger">
<!-- Sessions will be rendered by JS -->
</div>
<div class="text-center mt-12 reveal">
<button class="btn-secondary">View Full Calendar</button>
</div>
</div>
</section>
<!-- Bug Bounties Section -->
<section id="bounties" class="py-24 bg-[var(--bg-deep)]">
<div class="max-w-7xl mx-auto px-6">
<div class="text-center mb-12 reveal">
<h2 class="font-display text-4xl md:text-5xl mb-4">Active Bug Bounties</h2>
<p class="text-xl text-[var(--fg-muted)] max-w-2xl mx-auto">Help us find and fix accessibility barriers. Get rewarded for making the web better.</p>
</div>
<!-- Bounty Tabs -->
<div class="flex justify-center gap-2 mb-10" role="tablist" aria-label="Bounty categories">
<button class="tab-btn bounty-tab" role="tab" aria-selected="true" data-tab="critical">Critical</button>
<button class="tab-btn bounty-tab" role="tab" aria-selected="false" data-tab="high">High</button>
<button class="tab-btn bounty-tab" role="tab" aria-selected="false" data-tab="medium">Medium</button>
<button class="tab-btn bounty-tab" role="tab" aria-selected="false" data-tab="low">Low</button>
</div>
<div id="bounties-list" class="space-y-4 stagger">
<!-- Bounties will be rendered by JS -->
</div>
<div class="mt-12 p-6 card flex flex-col md:flex-row items-center justify-between gap-6 reveal">
<div>
<h3 class="font-display text-xl mb-1">Total Available This Month</h3>
<p class="text-[var(--fg-muted)]">Funded by civic partners and community donations</p>
</div>
<div class="text-3xl font-bold text-[var(--accent-warm)]">$24,500</div>
</div>
</div>
</section>
<!-- Playbooks Section -->
<section id="playbooks" class="py-24">
<div class="max-w-7xl mx-auto px-6">
<div class="text-center mb-12 reveal">
<h2 class="font-display text-4xl md:text-5xl mb-4">Remediation Playbooks</h2>
<p class="text-xl text-[var(--fg-muted)] max-w-2xl mx-auto">Step-by-step guides to fix accessibility issues. Tested by experts, used by thousands.</p>
</div>
<div id="playbooks-accordion" class="max-w-3xl mx-auto space-y-4 reveal" role="region" aria-label="Playbook categories">
<!-- Accordions will be rendered by JS -->
</div>
<div class="text-center mt-12 reveal">
<a href="#" class="text-[var(--accent)] font-semibold hover:underline">View all 42 playbooks →</a>
</div>
</div>
</section>
<!-- Community Section -->
<section id="community" class="py-24 bg-[var(--accent)] text-white">
<div class="max-w-7xl mx-auto px-6">
<div class="grid lg:grid-cols-2 gap-16 items-center">
<div class="reveal">
<h2 class="font-display text-4xl md:text-5xl mb-6">Join 156 volunteers making the web accessible</h2>
<p class="text-xl text-white/80 mb-8">Our community includes accessibility specialists, developers, designers, and everyday users passionate about digital inclusion.</p>
<div class="grid grid-cols-2 gap-6 mb-8">
<div>
<div class="text-3xl font-bold">42</div>
<div class="text-white/70">Countries represented</div>
</div>
<div>
<div class="text-3xl font-bold">12</div>
<div class="text-white/70">Languages supported</div>
</div>
<div>
<div class="text-3xl font-bold">89%</div>
<div class="text-white/70">Issue resolution rate</div>
</div>
<div>
<div class="text-3xl font-bold">4.9</div>
<div class="text-white/70">Average satisfaction</div>
</div>
</div>
<button class="bg-white text-[var(--accent)] px-8 py-4 rounded-lg font-semibold hover:bg-white/90 transition-colors">
Become a Volunteer
</button>
</div>
<!-- Testimonials -->
<div class="space-y-6 stagger">
<blockquote class="bg-white/10 backdrop-blur rounded-xl p-6">
<p class="text-lg mb-4">"The playbooks helped us fix 200+ accessibility issues in our city's transit app. The community office hours were invaluable."</p>
<footer class="flex items-center gap-3">
<div class="w-10 h-10 rounded-full bg-white/20"></div>
<div>
<cite class="not-italic font-semibold">Maria Chen</cite>
<div class="text-sm text-white/70">CTO, Metro Transit Authority</div>
</div>
</footer>
</blockquote>
<blockquote class="bg-white/10 backdrop-blur rounded-xl p-6">
<p class="text-lg mb-4">"As a screen reader user, finding this initiative changed how I interact with civic services. Finally, someone listening."</p>
<footer class="flex items-center gap-3">
<div class="w-10 h-10 rounded-full bg-white/20"></div>
<div>
<cite class="not-italic font-semibold">James Okonkwo</cite>
<div class="text-sm text-white/70">Accessibility Advocate</div>
</div>
</footer>
</blockquote>
</div>
</div>
</div>
</section>
<!-- CTA Section -->
<section class="py-24">
<div class="max-w-4xl mx-auto px-6 text-center reveal">
<h2 class="font-display text-4xl md:text-5xl mb-6">Ready to make an impact?</h2>
<p class="text-xl text-[var(--fg-muted)] mb-8">Whether you're reporting issues, contributing code, or joining office hours — every action counts.</p>
<div class="flex flex-wrap justify-center gap-4">
<button class="btn-primary">Submit an Issue</button>
<button class="btn-secondary">Contribute to Playbooks</button>
</div>
</div>
</section>
</main>
<!-- Footer -->
<footer class="bg-[var(--bg-deep)] border-t border-[var(--border)] py-16">
<div class="max-w-7xl mx-auto px-6">
<div class="grid md:grid-cols-4 gap-12">
<div>
<div class="flex items-center gap-3 mb-4">
<div class="w-10 h-10 rounded-lg bg-[var(--accent)] flex items-center justify-center">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="10"/>
<circle cx="12" cy="12" r="4"/>
<line x1="12" y1="2" x2="12" y2="4"/>
<line x1="12" y1="20" x2="12" y2="22"/>
<line x1="2" y1="12" x2="4" y2="12"/>
<line x1="20" y1="12" x2="22" y2="12"/>
</svg>
</div>
<span class="font-display text-xl">A11y Civic</span>
</div>
<p class="text-[var(--fg-muted)] text-sm">Building a more accessible web, together. Open source, community-driven, forever free.</p>
</div>
<div>
<h4 class="font-semibold mb-4">Programs</h4>
<ul class="space-y-2 text-[var(--fg-muted)]">
<li><a href="#office-hours" class="hover:text-[var(--fg)] transition-colors">Office Hours</a></li>
<li><a href="#bounties" class="hover:text-[var(--fg)] transition-colors">Bug Bounties</a></li>
<li><a href="#playbooks" class="hover:text-[var(--fg)] transition-colors">Playbooks</a></li>
<li><a href="#" class="hover:text-[var(--fg)] transition-colors">Training</a></li>
</ul>
</div>
<div>
<h4 class="font-semibold mb-4">Resources</h4>
<ul class="space-y-2 text-[var(--fg-muted)]">
<li><a href="#" class="hover:text-[var(--fg)] transition-colors">Documentation</a></li>
<li><a href="#" class="hover:text-[var(--fg)] transition-colors">API Access</a></li>
<li><a href="#" class="hover:text-[var(--fg)] transition-colors">WCAG Reference</a></li>
<li><a href="#" class="hover:text-[var(--fg)] transition-colors">Partner Toolkit</a></li>
</ul>
</div>
<div>
<h4 class="font-semibold mb-4">Community</h4>
<ul class="space-y-2 text-[var(--fg-muted)]">
<li><a href="#" class="hover:text-[var(--fg)] transition-colors">Discord</a></li>
<li><a href="#" class="hover:text-[var(--fg)] transition-colors">GitHub</a></li>
<li><a href="#" class="hover:text-[var(--fg)] transition-colors">Newsletter</a></li>
<li><a href="#" class="hover:text-[var(--fg)] transition-colors">Code of Conduct</a></li>
</ul>
</div>
</div>
<div class="mt-12 pt-8 border-t border-[var(--border)] flex flex-col md:flex-row justify-between items-center gap-4 text-sm text-[var(--fg-muted)]">
<p>2024 A11y Civic Initiative. Open source under MIT License.</p>
<div class="flex gap-6">
<a href="#" class="hover:text-[var(--fg)] transition-colors">Privacy Policy</a>
<a href="#" class="hover:text-[var(--fg)] transition-colors">Accessibility Statement</a>
</div>
</div>
</div>
</footer>
<script>
// =====================
// DATA
// =====================
const sessionsData = [
{ id: 1, title: "Screen Reader Testing 101", host: "Dr. Sarah Kim", role: "Accessibility Lead, Deque", date: "Today", time: "2:00 PM EST", type: "technical", status: "live", attendees: 24 },
{ id: 2, title: "WCAG 2.2 New Criteria Deep Dive", host: "Marcus Johnson", role: "Sr. Accessibility Engineer", date: "Tomorrow", time: "10:00 AM EST", type: "technical", status: "upcoming", attendees: 18 },
{ id: 3, title: "Accessible Forms Workshop", host: "Priya Patel", role: "UX Researcher", date: "Wed, Jan 15", time: "3:00 PM EST", type: "general", status: "upcoming", attendees: 31 },
{ id: 4, title: "ADA Compliance for Government Sites", host: "Robert Chen, JD", role: "Digital Policy Advisor", date: "Thu, Jan 16", time: "1:00 PM EST", type: "policy", status: "upcoming", attendees: 45 },
{ id: 5, title: "Mobile Accessibility Testing", host: "Aisha Williams", role: "iOS Developer", date: "Fri, Jan 17", time: "11:00 AM EST", type: "technical", status: "upcoming", attendees: 22 },
{ id: 6, title: "Color & Contrast Best Practices", host: "Diego Rivera", role: "Visual Designer", date: "Mon, Jan 20", time: "2:30 PM EST", type: "general", status: "upcoming", attendees: 15 }
];
const bountiesData = {
critical: [
{ id: 1, title: "Keyboard trap on city voting portal", platform: "VoteNow.gov", wcag: "2.1.2", bounty: 2500, submissions: 3, deadline: "3 days" },
{ id: 2, title: "No skip navigation on benefits application", platform: "StateBenefits.org", wcag: "2.4.1", bounty: 2000, submissions: 7, deadline: "5 days" },
],
high: [
{ id: 3, title: "Missing form error announcements", platform: "DMV Portal", wcag: "4.1.3", bounty: 1000, submissions: 12, deadline: "1 week" },
{ id: 4, title: "Insufficient color contrast in navigation", platform: "CityTransit.com", wcag: "1.4.3", bounty: 800, submissions: 8, deadline: "2 weeks" },
],
medium: [
{ id: 5, title: "Images missing alt text on homepage", platform: "PublicLibrary.org", wcag: "1.1.1", bounty: 500, submissions: 15, deadline: "2 weeks" },
{ id: 6, title: "Heading structure not hierarchical", platform: "CountyRecords.gov", wcag: "1.3.1", bounty: 400, submissions: 6, deadline: "3 weeks" },
],
low: [
{ id: 7, title: "Focus indicator not visible", platform: "ParksRec.org", wcag: "2.4.7", bounty: 200, submissions: 22, deadline: "1 month" },
{ id: 8, title: "Link text not descriptive", platform: "CommunityCenter.net", wcag: "2.4.4", bounty: 150, submissions: 18, deadline: "1 month" },
]
};
const playbooksData = [
{
category: "Images & Media",
count: 8,
items: ["Alt Text Best Practices", "Video Captioning Guide", "Audio Description Setup", "SVG Accessibility"]
},
{
category: "Forms & Inputs",
count: 12,
items: ["Error Message Handling", "Label Association", "Required Field Indicators", "Autocomplete Attributes"]
},
{
category: "Navigation & Focus",
count: 10,
items: ["Skip Navigation Links", "Focus Management", "Keyboard Traps Prevention", "Focus Visible Styling"]
},
{
category: "Color & Contrast",
count: 6,
items: ["Contrast Ratio Calculator", "Color-Blind Friendly Palettes", "Focus Indicators", "Text Resizing"]
},
{
category: "ARIA & Semantics",
count: 6,
items: ["Landmark Regions", "Live Regions", "Role Attributes", "Accessible Names"]
}
];
// =====================
// THEME TOGGLE
// =====================
const themeToggle = document.getElementById('theme-toggle');
const themeIconLight = document.getElementById('theme-icon-light');
const themeIconDark = document.getElementById('theme-icon-dark');
// Initialize theme
const savedTheme = localStorage.getItem('theme') ||
(window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light');
if (savedTheme === 'dark') {
document.documentElement.setAttribute('data-theme', 'dark');
themeIconLight.classList.add('hidden');
themeIconDark.classList.remove('hidden');
}
themeToggle.addEventListener('click', () => {
const isDark = document.documentElement.getAttribute('data-theme') === 'dark';
const newTheme = isDark ? 'light' : 'dark';
document.documentElement.setAttribute('data-theme', newTheme);
localStorage.setItem('theme', newTheme);
themeIconLight.classList.toggle('hidden', !isDark);
themeIconDark.classList.toggle('hidden', isDark);
});
// =====================
// RENDER SESSIONS
// =====================
const sessionsGrid = document.getElementById('sessions-grid');
let currentFilter = 'all';
function renderSessions(filter = 'all') {
const filtered = filter === 'all'
? sessionsData
: sessionsData.filter(s => s.type === filter);
sessionsGrid.innerHTML = filtered.map(session => `
<article class="card p-6" data-type="${session.type}">
<div class="flex items-center justify-between mb-4">
<span class="badge ${session.status === 'live' ? 'badge-live' : 'badge-upcoming'}">
${session.status === 'live' ? '<span class="w-2 h-2 rounded-full bg-[var(--success)] animate-pulse"></span>' : ''}
${session.status === 'live' ? 'Live now' : session.date}
</span>
<span class="text-sm text-[var(--fg-muted)]">${session.time}</span>
</div>
<h3 class="font-display text-xl mb-2">${session.title}</h3>
<p class="text-[var(--fg-muted)] mb-4">${session.host} · ${session.role}</p>
<div class="flex items-center justify-between">
<span class="text-sm text-[var(--fg-muted)]">${session.attendees} attending</span>
<button class="text-[var(--accent)] font-semibold hover:underline text-sm">
${session.status === 'live' ? 'Join now →' : 'Register →'}
</button>
</div>
</article>
`).join('');
}
renderSessions();
// Filter buttons
document.querySelectorAll('.filter-btn').forEach(btn => {
btn.addEventListener('click', () => {
document.querySelectorAll('.filter-btn').forEach(b => b.setAttribute('aria-selected', 'false'));
btn.setAttribute('aria-selected', 'true');
renderSessions(btn.dataset.filter);
});
});
// =====================
// RENDER BOUNTIES
// =====================
const bountiesList = document.getElementById('bounties-list');
let currentBountyTab = 'critical';
function renderBounties(tab = 'critical') {
const bounties = bountiesData[tab] || [];
bountiesList.innerHTML = bounties.map(bounty => `
<article class="card p-6 flex flex-col md:flex-row md:items-center justify-between gap-4">
<div class="flex-1">
<div class="flex items-center gap-3 mb-2">
<span class="badge badge-open">${tab.toUpperCase()}</span>
<span class="text-sm text-[var(--fg-muted)]">WCAG ${bounty.wcag}</span>
</div>
<h3 class="font-semibold text-lg mb-1">${bounty.title}</h3>
<p class="text-[var(--fg-muted)]">${bounty.platform}</p>
</div>
<div class="flex items-center gap-6">
<div class="text-center">
<div class="text-2xl font-bold text-[var(--accent-warm)]">$${bounty.bounty.toLocaleString()}</div>
<div class="text-xs text-[var(--fg-muted)]">${bounty.submissions} submissions</div>
</div>
<div class="text-center">
<div class="text-sm font-medium">${bounty.deadline}</div>
<div class="text-xs text-[var(--fg-muted)]">remaining</div>
</div>
<button class="btn-primary text-sm py-2 px-4">Submit</button>
</div>
</article>
`).join('');
}
renderBounties();
// Bounty tabs
document.querySelectorAll('.bounty-tab').forEach(tab => {
tab.addEventListener('click', () => {
document.querySelectorAll('.bounty-tab').forEach(t => t.setAttribute('aria-selected', 'false'));
tab.setAttribute('aria-selected', 'true');
renderBounties(tab.dataset.tab);
});
});
// =====================
// RENDER PLAYBOOKS ACCORDION
// =====================
const playbooksAccordion = document.getElementById('playbooks-accordion');
function renderPlaybooks() {
playbooksAccordion.innerHTML = playbooksData.map((cat, index) => `
<div class="card overflow-hidden">
<button
class="accordion-trigger"
aria-expanded="false"
aria-controls="accordion-content-${index}"
id="accordion-trigger-${index}"
>
<div class="flex items-center gap-4">
<span class="font-display text-lg">${cat.category}</span>
<span class="text-sm text-[var(--fg-muted)]">${cat.count} playbooks</span>
</div>
<svg class="accordion-icon" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<polyline points="6 9 12 15 18 9"/>
</svg>
</button>
<div
id="accordion-content-${index}"
class="accordion-content"
role="region"
aria-labelledby="accordion-trigger-${index}"
>
<ul class="p-6 pt-0 space-y-3">
${cat.items.map(item => `
<li>
<a href="#" class="flex items-center gap-3 p-3 rounded-lg hover:bg-[var(--bg-deep)] transition-colors group">
<svg class="text-[var(--accent)]" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/>
<polyline points="14 2 14 8 20 8"/>
<line x1="16" y1="13" x2="8" y2="13"/>
<line x1="16" y1="17" x2="8" y2="17"/>
</svg>
<span class="group-hover:text-[var(--accent)] transition-colors">${item}</span>
</a>
</li>
`).join('')}
</ul>
</div>
</div>
`).join('');
// Attach accordion event listeners
document.querySelectorAll('.accordion-trigger').forEach(trigger => {
trigger.addEventListener('click', () => {
const isExpanded = trigger.getAttribute('aria-expanded') === 'true';
const content = trigger.nextElementSibling;
trigger.setAttribute('aria-expanded', !isExpanded);
content.classList.toggle('open', !isExpanded);
});
});
}
renderPlaybooks();
// =====================
// SCROLL REVEAL
// =====================
const prefersReducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
if (!prefersReducedMotion) {
const revealElements = document.querySelectorAll('.reveal, .stagger');
const revealObserver = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('visible');
revealObserver.unobserve(entry.target);
}
});
}, { threshold: 0.1, rootMargin: '0px 0px -50px 0px' });
revealElements.forEach(el => revealObserver.observe(el));
} else {
// If reduced motion, make everything visible immediately
document.querySelectorAll('.reveal, .stagger').forEach(el => {
el.classList.add('visible');
});
document.querySelectorAll('.hero-animate').forEach(el => {
el.style.opacity = '1';
});
}
// =====================
// STAT COUNTER ANIMATION
// =====================
function animateCounters() {
const counters = document.querySelectorAll('.stat-number');
counters.forEach(counter => {
const target = parseInt(counter.dataset.count);
const duration = 2000;
const increment = target / (duration / 16);
let current = 0;
const updateCounter = () => {
current += increment;
if (current < target) {
counter.textContent = Math.floor(current).toLocaleString();
requestAnimationFrame(updateCounter);
} else {
counter.textContent = target.toLocaleString();
}
};
// Only animate if not preferring reduced motion
if (!prefersReducedMotion) {
const observer = new IntersectionObserver((entries) => {
if (entries[0].isIntersecting) {
updateCounter();
observer.unobserve(counter);
}
}, { threshold: 0.5 });
observer.observe(counter);
} else {
counter.textContent = target.toLocaleString();
}
});
}
animateCounters();
</script>
</body>
</html>