gitoria

components

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit46fefaa746fefaa7Count the icons entry in the offline home-page checkmre46fefaa7/components/month-view/README.md

2.1 KB

  1. # Month view
  2. A month with prev / next buttons on top, the month's name and the year between them, and the days below.
  3. Weeks start on Monday; the days of the neighbouring months are dimmed; today is marked. Month and weekday
  4. names follow the page language (`<html lang>`, English when none), today follows the browser's time zone.
  5. Live demo: https://components.hybriel.worldapi.org/month-view
  6. ## Use it in an app
  7. Copy the folder `components/month-view/` (files `month-view.hl`, `clock.hl`)
  8. into the app (the component carries its own `Style`, colours have black/white/grey fallbacks; `shared/tokens.hl` in the app's styles.hl is optional), then compose it into a page:
  9. ```
  10. import MonthView from './month-view.hl'
  11. View {
  12. MonthView { }
  13. }
  14. ```
  15. - One month view per page: a composed component's members are the page's state (COMPONENTS.md §12).
  16. - Colours are the semantic tokens of `shared/tokens.hl` only, each with a black/white/grey fallback: the base look is black, white and greys (no frames; root README "Look"); an app that declares the WorldAPI tokens (layouts.worldapi.org's theme) restyles it; the accent is the app's `colorAccent`.
  17. ## What it shows
  18. The server's month at first (UTC date, English names). As soon as the page is live (and at the latest when the pointer, a finger or the keyboard reaches the
  19. month view), it takes the browser's own today and the page language (written in Hybriel, no script file); paging starts from there. Setting the start month from the page (`MonthView { year = 2026 month = 1 }`) is not tested.
  20. ## Data out
  21. None yet: the page cannot read the month shown, and an `emit` from the component did not reach a handler in the
  22. page (see STATUS.md). The first app that needs the month (calendar events) adds it.
  23. ## Markup and states
  24. `<month-view>` holds a `<header>` (buttons `#month-prev`, `#month-next`, title `#month-title`) and a `<table>` of six
  25. weeks. A day is an `<li>` with `<time datetime="YYYY-MM-DD">`; class `outside` = a neighbouring month's day,
  26. `today` = today. Narrow screens: the table fills the width with smaller cells; wide: taller cells.
  27. Do not use it for: choosing a date in a form (see the date picker, when it exists).

Branches

Latest commits

  • 46fefaa7Count the icons entry in the offline home-page checkmre
  • c7e14cabRecord IC28 rerun and unchanged-main baseline comparisonmre
  • 5e090ffdRecord IC28 review evidence and gate resultsmre
  • adfe2c4dAdd shuffle, repeat and repeatOne shared iconsmre
  • c96709c8media-player: skip = false and repeat = 'one' options (jukebox#19)mre
  • bd4aa808Record VL24 deployment and live verificationmre
  • e5b98ecfRun virtual-list gate before deploymentmre
  • 2e9b4a8evirtual-list: into main, with centerId and scrollTop/onScroll (jukebox#20)mre
  • 69954249Align all plugin sources with Hybriel day38bmre
  • f740f666Re-vendor components to Hybriel set day38bmre
  • 8176eb14Record CS23b deployment and live verificationmre
  • 84e3ddaaRemove blank line before pagination Style closing bracemre
  • a92298ddRecord exact CSS and same-date proof after specificity reviewmre
  • c71a0abePreserve consumer theme specificity with nested tag rulesmre
  • 64a2bc27Document CS23b style formatting proof and review statusmre
  • a72b57cficons: nest Style rules in the language's formmre
  • 927616e2pagination: nest Style rules in the language's formmre
  • aab8ad29code-editor: nest Style rules in the language's formmre
  • ba30727afile-upload: nest Style rules in the language's formmre
  • 42fefa4emodal: nest Style rules in the language's formmre