myadhd/site/index.html
djg 1506d98b42 feat: Sprint 1 — Make It Real
Track 1 — Fix the foundation (P0):
- Fix dopamine reroll bug (track selected time bucket properly)
- Add 404 page with gentle copy
- Persist timer state across page refresh (localStorage)
- Add ARIA labels, roles, keyboard nav across all tools
- Shame-free microcopy throughout

Track 2 — Connect the flow (P0):
- Break down → 'Start this step' sets One Thing
- One Thing shows step progress (step N of M)
- 'Start timer' from One Thing pre-links context
- Timer completion → 'Mark step done?' prompt
- Done → auto-surface next step with transition
- Full flow: task → break down → focus → complete → next

Track 3 — Sensory rewards (P1):
- Canvas confetti on step/task completion
- Celebration moment when all steps done
- Session counter with warm encouragement
- Streak tracking for dopamine menu

Track 4 — Quality of life (P1-P2):
- PWA: manifest.json, service worker, installable + offline
- Welcome state for first-time visitors
- Keyboard shortcuts (1-4 for tools)
- Pick For Me button on task breaker
- OG image for social sharing
- Proper meta tags for SEO
2026-09-23 02:01:57 +00:00

214 lines
10 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>myadhd.dev — ADHD-friendly tools for focus, tasks and momentum</title>
<meta name="description" content="Free, ADHD-friendly tools: task breaker, focus timer with time-blindness support, a dopamine menu, and a one-thing mode. No signup, everything stays in your browser.">
<meta name="theme-color" content="#14141c">
<link rel="canonical" href="https://myadhd.dev/">
<link rel="icon" href="/static/favicon.svg" type="image/svg+xml">
<link rel="manifest" href="/manifest.json">
<link rel="apple-touch-icon" href="/static/icon-192.png">
<link rel="stylesheet" href="/static/style.css">
<meta property="og:title" content="myadhd.dev — ADHD-friendly tools">
<meta property="og:description" content="Break down scary tasks, tame time blindness, and build momentum. Free, no signup, data stays in your browser.">
<meta property="og:type" content="website">
<meta property="og:image" content="https://myadhd.dev/static/og.png">
</head>
<body>
<header class="top">
<a class="logo" href="/">myadhd<span>.dev</span></a>
<nav class="tabs" role="tablist">
<a href="#breaker" data-tab="breaker" class="tab" role="tab" aria-selected="false">Break it down</a>
<a href="#timer" data-tab="timer" class="tab" role="tab" aria-selected="false">Focus timer</a>
<a href="#dopamine" data-tab="dopamine" class="tab" role="tab" aria-selected="false">Dopamine menu</a>
<a href="#now" data-tab="now" class="tab" role="tab" aria-selected="false">One thing</a>
</nav>
</header>
<main>
<!-- ============ WELCOME ============ -->
<section id="welcome" class="tool" hidden>
<div class="tool-head">
<h1>Hey. Glad you're here.</h1>
<p class="sub">These are free tools built for ADHD brains. No signup, no tracking, no judgment. Everything stays right here in your browser.</p>
</div>
<div class="card">
<p class="welcome-q">What's the vibe right now?</p>
<div class="welcome-picks">
<button class="btn welcome-btn" data-goto="breaker" data-label="I have a scary task">😰 I have a scary task</button>
<button class="btn welcome-btn" data-goto="timer" data-label="I need to focus">⏱️ I need to focus</button>
<button class="btn welcome-btn" data-goto="dopamine" data-label="I need a break">🧠 I need a break</button>
<button class="btn welcome-btn" data-goto="now" data-label="I'm overwhelmed">🌀 I'm overwhelmed</button>
<button class="btn ghost welcome-btn" data-goto="pick" data-label="Pick for me">🎲 Just pick for me</button>
</div>
<p class="tiny">Pick whatever feels right. You can always switch. No wrong answers.</p>
</div>
</section>
<!-- ============ TASK BREAKER ============ -->
<section id="breaker" class="tool" role="tabpanel" hidden>
<div class="tool-head">
<h1>Break it down</h1>
<p class="sub">Big scary tasks are just 5–10 small boring ones wearing a trench coat. Name the monster; we'll slice it.</p>
</div>
<div class="card">
<form id="breaker-form" class="row">
<label for="breaker-input" class="sr-only">The big scary task</label>
<input id="breaker-input" type="text" placeholder="The big scary task… e.g. 'do my taxes'" autocomplete="off">
<button class="btn" type="submit">Break it down</button>
</form>
<div id="breaker-out" hidden>
<div class="progress-wrap"><div id="breaker-progress" class="progress"></div></div>
<p class="tiny" id="breaker-count"></p>
<ul id="breaker-steps" class="steps" role="list"></ul>
<div id="breaker-done-msg" class="done-msg" hidden>
<p class="done-text">Every step done. You did it. 🎉</p>
<div class="row center gap">
<button class="btn" id="breaker-new">Start something new</button>
</div>
</div>
<div id="breaker-actions" class="row gap">
<button class="btn ghost" id="breaker-add" type="button">+ add step</button>
<button class="btn ghost" id="breaker-reset" type="button">start over</button>
</div>
</div>
<p class="tiny">Steps are editable — click any of them to rewrite it your way. Everything saves in this browser.</p>
</div>
</section>
<!-- ============ FOCUS TIMER ============ -->
<section id="timer" class="tool" role="tabpanel" hidden>
<div class="tool-head">
<h1>Focus timer</h1>
<p class="sub">A timer for time-blind brains: you always see how much time is left, how much is gone, and what phase you're in.</p>
</div>
<div id="timer-context-bar" class="context-bar" hidden>
<span id="timer-context-label">working on:</span>
<strong id="timer-context-text"></strong>
</div>
<div class="card center">
<div class="presets">
<button class="chip preset" data-min="10" aria-label="10 minute focus">10 min</button>
<button class="chip preset" data-min="25" aria-label="25 minute focus">25 min</button>
<button class="chip preset" data-min="45" aria-label="45 minute focus">45 min</button>
<button class="chip preset break" data-min="5" aria-label="5 minute break">5 min break</button>
<button class="chip preset break" data-min="15" aria-label="15 minute break">15 min break</button>
</div>
<div class="timer-wrap">
<svg viewBox="0 0 220 220" class="ring" aria-hidden="true">
<circle class="ring-bg" cx="110" cy="110" r="100"/>
<circle id="ring-fg" class="ring-fg" cx="110" cy="110" r="100"/>
</svg>
<div class="timer-readout">
<div id="timer-time" class="timer-time">25:00</div>
<div id="timer-phase" class="timer-phase">pick a length</div>
</div>
</div>
<div class="row center gap">
<button class="btn" id="timer-start" aria-label="Start timer">start</button>
<button class="btn ghost" id="timer-reset" aria-label="Reset timer">reset</button>
</div>
<p class="tiny" id="timer-note">Tip: 25 minutes is a suggestion, not a law. The best length is the one you'll actually start.</p>
</div>
<!-- Timer completion overlay -->
<div id="timer-complete" class="completion-overlay" hidden>
<div class="completion-card">
<div class="completion-emoji">🎉</div>
<h2 class="completion-title">Focus round done!</h2>
<p id="timer-complete-sessions" class="completion-stat"></p>
<div id="timer-complete-actions" class="row center gap">
<button class="btn" id="timer-take-break">Take a break</button>
<button class="btn ghost" id="timer-mark-done">Mark step done ✓</button>
</div>
</div>
</div>
</section>
<!-- ============ DOPAMINE MENU ============ -->
<section id="dopamine" class="tool" role="tabpanel" hidden>
<div class="tool-head">
<h1>Dopamine menu</h1>
<p class="sub">Quick, healthy mood hits so your brain stops hijacking you for worse ones. Pick how long you have.</p>
</div>
<div class="card center">
<div class="presets">
<button class="chip menu-pick" data-min="5" aria-label="5 minute activity">5 min</button>
<button class="chip menu-pick" data-min="15" aria-label="15 minute activity">15 min</button>
<button class="chip menu-pick" data-min="30" aria-label="30 minute activity">30 min</button>
<button class="chip menu-pick" data-min="60" aria-label="60 minute activity">60 min</button>
</div>
<div id="menu-item" class="menu-item" hidden>
<p id="menu-text" class="menu-text"></p>
</div>
<div class="row center gap" id="menu-actions" hidden>
<button class="btn ghost" id="menu-reroll">something else</button>
<button class="btn" id="menu-done">did it ✓</button>
</div>
<p class="tiny" id="menu-streak"></p>
</div>
</section>
<!-- ============ ONE THING ============ -->
<section id="now" class="tool" role="tabpanel" hidden>
<div class="tool-head">
<h1>One thing</h1>
<p class="sub">Not the whole task. Not the project. The next physical action your hands can actually do.</p>
</div>
<div class="card center">
<form id="now-form" class="row">
<label for="now-input" class="sr-only">The next physical action</label>
<input id="now-input" type="text" placeholder="The next physical action… e.g. 'open the tax folder'" autocomplete="off">
<button class="btn" type="submit">lock it in</button>
</form>
<div id="now-view" hidden>
<p class="now-label">the one thing:</p>
<p id="now-text" class="now-text"></p>
<div id="now-source" class="now-source" hidden>
<span class="tiny">from your task breakdown — step <span id="now-step-num"></span> of <span id="now-step-total"></span></span>
</div>
<div class="row center gap">
<button class="btn" id="now-timer" aria-label="Start a focus timer for this">⏱️ start timer</button>
<button class="btn" id="now-done">done ✓</button>
<button class="btn ghost" id="now-edit">change</button>
</div>
<p class="tiny">If it still feels too big, start with the 2-minute version: just open the thing and look at it.</p>
</div>
<!-- Flow: next step prompt after completing one thing -->
<div id="now-next" class="next-step-prompt" hidden>
<div class="completion-emoji">✅</div>
<p class="done-text">Done. Nice work.</p>
<div id="now-next-step" hidden>
<p class="tiny">Next up from your breakdown:</p>
<p id="now-next-text" class="next-step-text"></p>
<div class="row center gap">
<button class="btn" id="now-next-go">Let's do it</button>
<button class="btn ghost" id="now-next-skip">Not right now</button>
</div>
</div>
<div id="now-all-done" hidden>
<p class="done-text">Every step from your breakdown is complete. 🎉</p>
<button class="btn" id="now-fresh">Start something new</button>
</div>
</div>
</div>
</section>
</main>
<!-- Celebration canvas (confetti) -->
<canvas id="confetti" class="confetti-canvas" aria-hidden="true"></canvas>
<footer class="foot">
<p><strong>myadhd.dev</strong> — free tools, no signup, no tracking. Everything you type or save lives only in this browser (localStorage). Clear your browser data and it's gone.</p>
<p class="tiny">Not medical advice. Just friendly scaffolding for a brain that works differently.</p>
<div class="session-stats" id="session-stats" hidden>
<p class="tiny" id="stats-text"></p>
</div>
</footer>
<script src="/static/app.js" defer></script>
</body>
</html>