gitoriaLog in with ident

components

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitd32b44e2d32b44e2antcolony#40: history (LOG.md), worker briefs (missions/) and reports moved here from antcolony, numbered per project; old numbers in antcolony docs/mission-map.mdmred32b44e2/components/month-view/README.md

1.8 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 browser's language, 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 palette 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; 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 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

  • d32b44e2antcolony#40: history (LOG.md), worker briefs (missions/) and reports moved here from antcolony, numbered per project; old numbers in antcolony docs/mission-map.mdmre
  • 0fb80b57components: Hybriel master ff51cf46 (re-vendor round)mre
  • 57408b6ecomponents#14: installable app (manifest, service worker, offline index), own iconmre
  • 317bd09fdeploy.sh: back up live storage/.sessions/.env before every deploy (newest 5 kept)mre
  • becbd59bcomponents#13: modal dialog (<dialog> based, focus wrap, backdrop/Esc/x close with reason, scroll lock, footer buttons)mre
  • 367dd19adeploy.sh: never send .git or .gitignore to Byrodinmre
  • 4b4dabe5State of 2026-09-27, before the move to gitoriamre