mirror of
http://nostr-git-proxy.forgejo.svc.cluster.local/git/45387ca441053e230b2126802005eb03767ab59d84555e8bac86b6e7def14e27/myadhd
synced 2026-09-23 20:23:10 +00:00
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
33 lines
983 B
Nginx Configuration File
33 lines
983 B
Nginx Configuration File
worker_processes 1;
|
|
error_log /dev/stderr warn;
|
|
pid /tmp/nginx.pid;
|
|
events { worker_connections 1024; }
|
|
http {
|
|
include /etc/nginx/mime.types;
|
|
default_type application/octet-stream;
|
|
access_log /dev/stdout;
|
|
sendfile on;
|
|
gzip on;
|
|
gzip_types text/plain text/css application/javascript application/json application/xml image/svg+xml;
|
|
gzip_min_length 1024;
|
|
server {
|
|
listen 80;
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
error_page 404 /404.html;
|
|
add_header X-Content-Type-Options nosniff always;
|
|
add_header Referrer-Policy strict-origin-when-cross-origin always;
|
|
# Service worker must not be cached aggressively
|
|
location = /sw.js {
|
|
add_header Cache-Control "no-cache";
|
|
add_header X-Content-Type-Options nosniff always;
|
|
}
|
|
location ~* \.(css|js|svg|png|jpg|ico|woff2?|json)$ {
|
|
expires 7d;
|
|
add_header Cache-Control "public";
|
|
}
|
|
location / {
|
|
try_files $uri $uri/ $uri/index.html =404;
|
|
}
|
|
}
|
|
}
|