Use CSS Scroll Snap to create a clock which showcases the following time details:
- Year
- Month
- Day
- Day of the week (SUN, MON, TUE, WED, THU, FRI, SAT)
- Hour (in 24-hour format)
- Minute
Requirements:
- This clock initially displays the user's local time
- The user is able to scroll to adjust the time
TODO:
- Unit tests
pnpm install
pnpm --filter day-04 dev
pnpm --filter day-04 test:dev
bazel build //challenges/day-04:build
bazel test //challenges/day-04:ut_test
- Docs: MDN - CSS Scroll Snap
- Article: Practical CSS Scroll Snapping
- Article: Well-controlled scrolling with CSS Scroll Snap