layouts
All repositories: gitoria
1.9 KB
// components/home.hl — `/`: what the theme is, and the way to its parts. Content-first, like every showcase page.parent './main.hl'import SiteHeader from './site-header.hl'import SiteSidebar from './site-sidebar.hl'import ContentFirst from '../theme/shell/content-first.hl'import { siteName, componentPages, shellPages } from '../lib/site.hl'__title = siteNameHybrid components = componentPagesHybrid shells = shellPagesStyle {homePage {'ul.parts' {display = 'grid'gap = '.25rem 2rem'margin = '0 0 1.5rem'padding = '0'listStyle = 'none'li { margin = '0' }a {display = 'block'padding = '.5rem 0'fontWeight = '600'}span {display = 'block'fontWeight = '400'color = 'var(--color-text-muted)'}@media {minWidth = '40rem'gridTemplateColumns = 'repeat(2, minmax(0, 1fr))'}}}}View {homePage {SiteHeader { current = "/" }ContentFirst {SiteSidebar { current = "/" }main {h1 { "The WorldAPI theme" }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." }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." }p { a { class = "button primary" href = "/read/using-the-theme" "Use it in an app" } " " a { class = "button" href = "/elements" "See the elements" } }h2 { "Shells" }ul { class = "parts" for (s of shells) { li { a { href = s.href s.label span { s.about } } } } }h2 { "Themed components" }ul { class = "parts" for (c of components) { li { a { href = c.href c.label span { c.about } } } } }}}}}
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