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 {'home-page ul.parts' { display = 'grid' gap = '.25rem 2rem' margin = '0 0 1.5rem' padding = '0' listStyle = 'none' }'home-page ul.parts li' { margin = '0' }'home-page ul.parts a' { display = 'block' padding = '.5rem 0' fontWeight = '600' }'home-page ul.parts span' { display = 'block' fontWeight = '400' color = 'var(--color-text-muted)' }'@media (min-width: 40rem)' {'home-page ul.parts' { 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
- 0bbfc553main-menu: format Style with nested rules and bare mediamre
- 7755199dlist-first: format Style with nested rules and bare mediamre
- 35199303content-first: format Style with nested rules and bare mediamre
- 00f6e698app-sidebar: format Style with nested rules and bare mediamre
- bb2f29c9app-header: format Style with nested rules and bare mediamre
- 3aca2d7fSync components from 8176eb1 with reviewed nested stylesmre
- 87e4003dRe-vendor layouts to Hybriel set day35mre
- d8628cfflayouts: a startup error prints its message before exit 1 (hybriel#247)mre
- 180fd76elayouts: MdEditor from components 59704ce (text on the clipboard always pastes, a file manager copy still attaches; pipe rows; empty Table-button table; tickets#49, notes#5)mre
- a3eda8afRe-vendor Hybriel master 7a684920 (binary 74ab3715): plugins whole, startup fault exits 1; files-upload gate 340/0mre
- 025d5880WIP re-vendor Hybriel set-day27b (a9712e61, master f5ff97bf): plugins whole, startup fault exits 1; NOT deployable: files-upload emit refused (see .scratch/rv27-upload)mre
- 42183a71Merge sb3-standby: layouts deploys through its standbymre
- 408de1f2layouts: no jobs switch needed in the standbymre
- 0b85f57elayouts: a standby container (port 45019, profile standby); deploy hands over through standby-swap.sh without a gapmre
- 31e40b8bMerge dm3-media: range handling in the layouts media routemre
- 856dcacbLayouts media route: read suffix ranges and ignore range lists and garbage, like the components route (the layouts copy still answered 416 for the last bytes)mre
- ad5056eaMerge dm3-sync: components re-sync to c2834ddmre
- 740e2abeRe-sync the components copy to c2834dd: media player fixes (state after a queue pick, cover-less audio, accessibility labels)mre
- 7fe103bbMerge mp-player: the media player showcase pagemre
- 7db43c4eMedia route: serve the showcase's media from committed files (storage/ is not in git)mre