gitoria

layouts

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit413b11e1413b11e1Record corrected LY7 nesting, exact CSS and Chrome proofmre413b11e1/components/list-pages.hl

1.3 KB

  1. // components/list-pages.hl — the body of the overview pages `/components`, `/shells` and `/docs` (pages/*.hl): one list
  2. // of links each, from lib/site.hl. `part` says which.
  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 { componentPages, shellPages, docPages } from '../lib/site.hl'
  7. String part = 'components'
  8. String current = '/' + part
  9. String heading = part == 'shells' ? 'Shells' : (part == 'docs' ? 'Docs' : 'Components')
  10. String intro = part == 'shells' ? 'The three ground types of an app shell (docs/shells.md). Each demo is a mock app with its own header; try them at phone width.' : (part == 'docs' ? 'One page per layout, for people and for models: purpose, parent and children, classes and states, phone and desktop, semantics, an example, what not to use it for.' : 'The components of components.hybriel.worldapi.org, copied verbatim and themed by theme/theme.hl — no fork.')
  11. Hybrid pages = part == 'shells' ? shellPages : (part == 'docs' ? docPages : componentPages)
  12. View {
  13. listPage {
  14. SiteHeader { current = current }
  15. ContentFirst {
  16. SiteSidebar { current = current }
  17. main {
  18. h1 { heading }
  19. p { class = "muted" intro }
  20. ul { class = "pages" for (p of pages) { li { a { href = p.href p.label } span { p.about } } } }
  21. }
  22. }
  23. }
  24. }

Branches

Latest commits

  • 413b11e1Record corrected LY7 nesting, exact CSS and Chrome proofmre
  • b810453etracker-demo: nest child and compound selectors in Stylemre
  • 0b5b1d61notes-demo: nest child and compound selectors in Stylemre
  • ab22bdc2mail-demo: nest child and compound selectors in Stylemre
  • fe2d8de9home: nest child and compound selectors in Stylemre
  • e631791buser-menu: nest child and compound selectors in Stylemre
  • 69604944three-pane: nest child and compound selectors in Stylemre
  • 3e389b83main-menu: nest child and compound selectors in Stylemre
  • 05413975list-first: nest child and compound selectors in Stylemre
  • c545b642content-first: nest child and compound selectors in Stylemre
  • eae2be7aapp-sidebar: nest child selectors and document caller-slot gapmre
  • 69c9f784Record LY7 slot nesting blocker and minimal repromre
  • b1d4f379app-header: nest child and compound selectors in Stylemre
  • 6385ff8eRecord LY7 style formatting proof and review statusmre
  • 0100f51etracker-demo: format Style with nested rules and bare mediamre
  • 5f82554enotes-demo: format Style with nested rules and bare mediamre
  • 3dc27d78mail-demo: format Style with nested rules and bare mediamre
  • cf9648afhome: format Style with nested rules and bare mediamre
  • 846a6242user-menu: format Style with nested rules and bare mediamre
  • 4d58708cthree-pane: format Style with nested rules and bare mediamre