gitoria

layouts

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit44071d2c44071d2cMerge branch 'hl-standard-5' into mainAtlas44071d2c/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

  • 44071d2cMerge branch 'hl-standard-5' into mainAtlas
  • 5ea64202|||PR Gate: count the new-tab check's console errors tooAtlas
  • 2752ceddMerge branch 'hl-standard-4' into mainAtlas
  • ac552b81|||PR Gate: keyboard (Tab/Enter/Space) and Back/Forward/reload/new-tab checks (HL-STANDARD F5, F21)Atlas
  • 8cddcaa9Merge branch 'hl-standard-2' into mainAtlas
  • 2b480a64|||PR Type the route parameter of main-menu build (HL-STANDARD L10)Atlas
  • ab54a39dMerge branch 'hl-standard' into mainAtlas
  • 04d36fcf|||PR Type function parameters and drop unneeded let (HL-STANDARD L2, L10)Atlas
  • 220c8fa4Merge branch 'readme-audit' into mainAtlas
  • b78fb85a|||PR README matches the codemre
  • 9f351699Preserve comments and nest supported selectors without changing rendered outputmre
  • 97110ad9WIP: nest accepted layout selectors; stopped at startup parse failuremre
  • ce4a0baeKeep caller slot styles whole so minimal shell apps startmre
  • 12cd3992Re-vendor complete Hybriel plugins and runtime to day44mre
  • b05c20feBackup tar: --hard-dereference, so mpackdb sidecars are never stored as hard links (Tracker's finding)mre
  • 8d9ed0b8Re-vendor complete Hybriel plugins and runtime to day39mre
  • ebd00b6cNest caller slot styles in three-panemre
  • 009991efNest caller slot styles in list-firstmre
  • 494d75d4Nest caller slot styles in app-sidebarmre
  • e5571680Align all plugin sources with Hybriel day38bmre