Rebuild Home around a forest header with streak, score and water
Home now opens on a deep green header: greeting, a Today / Weekly toggle, a seven-day streak with a leaf on every kept day, minutes held with a + ring, plan thumbnails, the report-card letter as the score, and one bar per commitment class (weekly view swaps in per-day bars and class rates). The + opens an "Add to today" sheet over the blurred day. A water tracker sits below the header, kept on the device. The nav marks the selected tab as a filled block and drops the side action button. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhQh614DMeYoQEH9SoMRUw
This commit is contained in:
@@ -15,7 +15,7 @@ spark on night-green for the primary control.
|
||||
| `GlassSurface` / `glassCircle` | Frosted panels and square controls; `onDark` over a scene or tinted stage. |
|
||||
| `SceneArt` | Painted sky, sun and ridges with an optional figure glyph. Palettes come from `scenePalette(kind)`, `goalScene(accent)`, `classScene(class)`; seed with `sceneSeed(title)` so an item always wears the same picture. |
|
||||
| `DotDigits` | The dotted clock in the routine player. |
|
||||
| `FloatingNav` | Home's tab bar and action button. |
|
||||
| `FloatingNav` | Home's tab bar; the selected tab is a filled night block. The side action button is optional. |
|
||||
| `GroundedMark` | The logo, drawn — a lime sun on a ground line under two arcs. The launcher PNGs in `assets/icons/` were rendered from the same geometry. |
|
||||
|
||||
Cards are image-led where an item has a kind (routines, goals, tasks): scene on
|
||||
@@ -78,3 +78,15 @@ square top edge → `sectionHeader` (label + light display title) → content.
|
||||
- Chips carry state, never actions.
|
||||
- One primary button per screen; everything else is outlined or text.
|
||||
- Empty states are plain. An empty overdue queue is good news, not a party.
|
||||
|
||||
## Home
|
||||
|
||||
Home opens on a deep forest header block (`colorHeaderTop` → `colorHeaderBottom`):
|
||||
greeting and avatar, a Today / Weekly toggle, a seven-day streak panel ending
|
||||
today (a leaf on every kept day, kept = 80%+), then the numbers. Today shows
|
||||
minutes held against planned, a ring with + that opens the "Add to today"
|
||||
sheet, the plan as thumbnails, the report-card letter as the Score, and one
|
||||
bar per commitment class. Weekly swaps in the week's average, a bar per day
|
||||
and the class completion rates. Below the block, on the light ambient
|
||||
surface: the water tracker (drops of 250 ml, kept on the device), then the
|
||||
rest of the day. Bars on the dark block use the `colorBar*` tokens.
|
||||
|
||||
Reference in New Issue
Block a user