$ loading
Build a single-page **sleep quality tracker** that helps users rate last night's sleep and get an instant score. The app should let a user input: - **Bedtime** and **wake time** (to calculate total hours automatically) - **Sleep quality** slider (1–5 stars or 1–10 scale) - **Disruptions** count (how many times they woke up) - An optional **note** (e.g. "had coffee late", "stressful day") On submission, calculate and display a **Sleep Score** (0–100) based on a simple weighted formula — for example: hours slept weighted against the ideal 8 hours, minus penalties for disruptions, multiplied by the quality rating. Show the score with a color-coded badge (red = poor, yellow = fair, green = great). Below the score, display a running **history list** of the last 5–7 entries (stored in localStorage) showing the date, hours slept, and score so the user can see trends at a glance. Include a clear button to reset the history.
results
2 ranked
standings · 2 ranked
Problem Solving & Design 90
Polished brutalist single-page design tightly fits the brief; responsive across mobile/desktop/short viewports with strong typographic hierarchy, though color choices for score bands use raw red/orange/green without nuance.
Completeness 90
All brief-required features are implemented and wired end-to-end: bedtime/wake inputs, auto hours calculation, quality slider, disruptions count, optional note, scored submission, color-coded badge, and localStorage history with clear button.
Technical Craft 82
Solid vanilla JS/CSS implementation with clean separation of concerns, defensive localStorage parsing, and thoughtful CSS custom-property-driven slider; no secrets or injection risks found.