gitoria

layouts

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmain4099e64aMerge branch 'font-segoe-ui' into mainAtlasmain/components/home.hl

1.9 KB

  1. // components/home.hl — `/`: what the theme is, and the way to its parts. Content-first, like every showcase page.
  2. parent './main.hl'
  3. import SiteHeader from './site-header.hl'
  4. import SiteSidebar from './site-sidebar.hl'
  5. import ContentFirst from '../theme/shell/content-first.hl'
  6. import { siteName, componentPages, shellPages } from '../lib/site.hl'
  7. __title = siteName
  8. Hybrid components = componentPages
  9. Hybrid shells = shellPages
  10. Style {
  11. homePage {
  12. 'ul.parts' {
  13. display = 'grid'
  14. gap = '.25rem 2rem'
  15. margin = '0 0 1.5rem'
  16. padding = '0'
  17. listStyle = 'none'
  18. li { margin = '0' }
  19. a {
  20. display = 'block'
  21. padding = '.5rem 0'
  22. fontWeight = '600'
  23. }
  24. span {
  25. display = 'block'
  26. fontWeight = '400'
  27. color = 'var(--color-text-muted)'
  28. }
  29. @media {
  30. minWidth = '40rem'
  31. gridTemplateColumns = 'repeat(2, minmax(0, 1fr))'
  32. }
  33. }
  34. }
  35. }
  36. View {
  37. homePage {
  38. SiteHeader { current = "/" }
  39. ContentFirst {
  40. SiteSidebar { current = "/" }
  41. main {
  42. h1 { "The WorldAPI theme" }
  43. p { "How WorldAPI makes the black and white components of " a { href = "https://components.hybriel.worldapi.org/" "components.hybriel.worldapi.org" } " look for itself: the palette and its named roles, plain elements without frames, the components themed without being forked, and three app shells with a header that works on a phone." }
  44. p { class = "muted" "An app copies theme/ and shared/tokens.hl, inherits the theme in its styles.hl, picks a shell and sets its accent. Try another accent in the sidebar: every page follows it." }
  45. p { a { class = "button primary" href = "/read/using-the-theme" "Use it in an app" } " " a { class = "button" href = "/elements" "See the elements" } }
  46. h2 { "Shells" }
  47. ul { class = "parts" for (s of shells) { li { a { href = s.href s.label span { s.about } } } } }
  48. h2 { "Themed components" }
  49. ul { class = "parts" for (c of components) { li { a { href = c.href c.label span { c.about } } } } }
  50. }
  51. }
  52. }
  53. }

Branches

Latest commits

  • 4099e64aMerge branch 'font-segoe-ui' into mainAtlas
  • e14fb795|||PR Theme font: Segoe UI first (his choice 2026-11-19)Atlas
  • 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