myadhd/site/index.html

329 lines
17 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">
<meta property="og:url" content="https://myadhd.dev/">
<script src="/static/audio.js" defer></script>
</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" id="tab-breaker" aria-selected="false" aria-controls="breaker">Break it down</a>
<a href="#timer" data-tab="timer" class="tab" role="tab" id="tab-timer" aria-selected="false" aria-controls="timer">Focus timer</a>
<a href="#dopamine" data-tab="dopamine" class="tab" role="tab" id="tab-dopamine" aria-selected="false" aria-controls="dopamine">Dopamine menu</a>
<a href="#now" data-tab="now" class="tab" role="tab" id="tab-now" aria-selected="false" aria-controls="now">One thing</a>
<a href="#inbox" data-tab="inbox" class="tab" role="tab" id="tab-inbox" aria-selected="false" aria-controls="inbox">Brain dump</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 big task">😰 I have a big 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 welcome-btn" data-goto="inbox" data-label="I have too many thoughts">🧠 I have too many thoughts</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" aria-labelledby="tab-breaker" hidden>
<div class="tool-head">
<h1>Break it down</h1>
<p class="sub">Big unwieldy tasks are just 5–10 small manageable 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 task</label>
<input id="breaker-input" type="text" placeholder="The big 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" aria-labelledby="tab-timer" 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="row center gap" style="margin-bottom: 12px; margin-top: -8px;">
<button class="btn ghost toggle-visual" id="timer-mode-toggle" aria-label="Toggle Pie Clock Mode">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" style="margin-right:8px; vertical-align:text-bottom;">
<circle cx="12" cy="12" r="10"></circle>
<path d="M12 2v10l5.5 5.5"></path>
</svg>
switch to visual pie clock
</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>
<!-- Visual Pie Mode overlay -->
<svg viewBox="0 0 220 220" class="ring pie-mode" id="ring-pie-svg" aria-hidden="true" style="display:none; transform: rotate(-90deg); border-radius: 50%; opacity: 0.9;">
<circle class="ring-bg" cx="110" cy="110" r="100"/>
<path id="ring-pie-path" d="M110,110 L110,10 A100,100 0 1,1 10,110 Z" fill="var(--primary)" />
</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>
<div class="card center" style="margin-top: 16px;">
<h3>Interval Grounding</h3>
<p class="tiny" style="margin-bottom: 12px; margin-top: 4px;">Time blindness? A soft 528Hz droplet chime will ground you every few minutes to pull you out of rabbit holes.</p>
<div class="presets" style="margin-bottom: 8px;">
<button class="chip preset grounding-chime" data-interval="5" aria-label="Every 5 minutes">5 min pings</button>
<button class="chip preset grounding-chime" data-interval="10" aria-label="Every 10 minutes">10 min pings</button>
<button class="chip preset grounding-chime active" data-interval="0" aria-label="Off">Off</button>
</div>
</div>
<div class="card center" style="margin-top: 16px;">
<h3>Focus soundscapes</h3>
<p class="tiny" style="margin-bottom: 16px; margin-top: 4px;">Locally generated procedural audio to help you focus. No internet required!</p>
<div class="presets" style="margin-bottom: 16px;">
<button class="chip preset bg-sound" data-sound="brown" aria-label="Brown Noise">Brown Noise</button>
<button class="chip preset bg-sound" data-sound="pink" aria-label="Pink Noise">Pink Noise</button>
<button class="chip preset bg-sound off active" data-sound="off" aria-label="Off">Off</button>
</div>
<div class="row center gap" style="max-width: 300px; margin: 0 auto;">
<label for="bg-volume" style="font-size: 0.85rem; color: var(--dim);">Volume</label>
<input type="range" id="bg-volume" min="0" max="1" step="0.05" value="0.2" style="flex: 1;">
</div>
</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" aria-labelledby="tab-dopamine" 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>
<!-- ============ BRAIN DUMP INBOX ============ -->
<section id="inbox" class="tool" role="tabpanel" aria-labelledby="tab-inbox" hidden>
<div class="tool-head">
<h1>Brain dump</h1>
<p class="sub">Get it out of your head before you forget. Rapid-fire your tasks, then pick one to break down when you're ready.</p>
</div>
<div class="card">
<form id="inbox-form" class="row">
<label for="inbox-input" class="sr-only">New task</label>
<input id="inbox-input" type="text" placeholder="Type a task and hit enter..." autocomplete="off">
<button class="btn" type="submit">dump</button>
</form>
<div id="inbox-out" hidden>
<p class="tiny" id="inbox-count"></p>
<ul id="inbox-list" class="steps" role="list"></ul>
<div id="inbox-actions" class="row gap mt-2">
<button class="btn ghost" id="inbox-clear" type="button">clear all dumped tasks</button>
</div>
</div>
</div>
</section>
<!-- ============ ONE THING ============ -->
<section id="now" class="tool" role="tabpanel" aria-labelledby="tab-now" 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>
<!-- Unstuck Floating Button -->
<button id="btn-unstuck" class="unstuck-trigger" title="Feeling paralyzed? Click here for the Unstuck Protocol">🆘 Unstuck</button>
<!-- Unstuck Protocol Modal -->
<div id="unstuck-modal" class="modal-overlay" hidden>
<div class="modal-content unstuck-card">
<button class="close-modal" id="unstuck-close">&times;</button>
<!-- Phase 1: Breathe -->
<div id="unstuck-phase-1" class="unstuck-phase">
<h2>Somatic Grounding</h2>
<p>Task paralysis is a nervous system response. Let's disarm it with a physiological sigh.</p>
<div class="breathing-circle-container">
<div class="breathing-circle"></div>
<div id="breathe-text">Inhale...</div>
</div>
<button id="unstuck-next-1" class="btn primary">My body feels calmer &rarr;</button>
</div>
<!-- Phase 2: Micro-Action -->
<div id="unstuck-phase-2" class="unstuck-phase" hidden>
<h2>Rule of 10 Seconds</h2>
<p>You don't need to do the whole task right now. What is a ridiculously small physical action you can do in exactly 10 seconds?</p>
<ul class="micro-suggestions">
<li>Stand up and stretch</li>
<li>Open the word doc tab</li>
<li>Find your favorite pen</li>
<li>Drink a glass of water</li>
</ul>
<input type="text" id="unstuck-micro-input" placeholder="My 10-second micro-action is..." style="width: 100%; padding: 10px; margin-bottom: 20px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-input); color: var(--text-main);">
<button id="unstuck-next-2" class="btn primary">I've got it &rarr;</button>
</div>
<!-- Phase 3: 3-Minute Commitment -->
<div id="unstuck-phase-3" class="unstuck-phase" hidden>
<h2>Commitment-Free Launch</h2>
<p>You only have to execute your micro-action and focus for 3 minutes. If you still hate the task after 3 minutes, you have full permission to walk away entirely guilt-free.</p>
<div class="timer-display" id="unstuck-timer" style="font-size: 3em; font-weight: bold; margin: 20px 0;">03:00</div>
<button id="unstuck-start-3" class="btn primary">Start 3-Minute Timer</button>
<button id="unstuck-finish" class="btn success" hidden>I'm in the zone, move to Focus Timer</button>
</div>
</div>
</div>
<script src="/static/app.js" defer></script>
</body>
</html>