gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit6ce156236ce15623Pack catalog lists and membership maps in UTF-8 bytesmre6ce15623/components/genres.hl

1.6 KB

  1. // components/genres.hl — `/genres` (tracker#32, mission 031: the main menu's Genres): every genre that has public titles, A–Z, with
  2. // how many; each links to its page `/genres/<genre>` (components/genre.hl). The list: catalog.hl genreList.
  3. parent './main.hl'
  4. import { appTitle } from '../lib/app.hl'
  5. import { genreList } from '../lib/catalog.hl'
  6. import { warmReady, warmText } from '../lib/warm.hl'
  7. rows = genreList()
  8. __title = 'Genres — ' + appTitle
  9. // mission T17 (boot time): the server listens while bootscan.hl still builds the lists / slug maps / search index (lib/warm.hl); until the 'catalog'
  10. // stage is there this page says so instead of showing half a map
  11. warming = !warmReady('catalog')
  12. warmNote = warming ? warmText() : ''
  13. // HM49: component rules keep the existing selectors and shared theme variables.
  14. Style {
  15. genreLinks {
  16. display = 'flex'
  17. flexWrap = 'wrap'
  18. gap = '.5rem'
  19. }
  20. aGenreLink {
  21. display = 'inline-flex'
  22. alignItems = 'baseline'
  23. gap = '.45rem'
  24. minHeight = '2.75rem'
  25. padding = '.35rem .85rem'
  26. borderRadius = 'var(--radius-small)'
  27. fontWeight = '600'
  28. color = 'var(--color-type4)'
  29. background = 'var(--color-surface)'
  30. hover {
  31. textDecoration = 'none'
  32. color = 'var(--color-text-strong)'
  33. }
  34. }
  35. genreCount {
  36. fontSize = '.8rem'
  37. fontWeight = '400'
  38. color = 'var(--color-text-muted)'
  39. }
  40. }
  41. View {
  42. listPage { id = "genres-list"
  43. if (warming) { p { id = "warming" class = "message banner" warmNote } }
  44. h1 { class = "typed" typeWord { class = "type-word type-genre" "Genres" } }
  45. genreLinks {
  46. for (g of rows) { a { Style.aGenreLink href = g.href genreName { g.name } genreCount { g.count } } }
  47. }
  48. }
  49. }

Branches

Latest commits

  • 6ce15623Pack catalog lists and membership maps in UTF-8 bytesmre
  • 71134e21HM66 briefmre
  • ed4cbab2status timemre
  • e982c26dlog: HM65 mergedmre
  • 6e72f9d1Merge hm65-fields: episode boot scan reads three fieldsmre
  • 07a5c883HM65 report measured field projection and complete validationmre
  • 0eab858fRead only catalog date fields during the episode boot scanmre
  • d3179273log: HM65 hl:heap vendoringmre
  • cb78a1a0HM65 report missing heap diagnostic package with repromre
  • 89606a5cHM65 briefmre
  • 096ce0d4log: DP69 live on day48mre
  • b3d8a80bDP69 brief, RV48 mergedmre
  • ce6d7d32Merge rv48: Hybriel day48mre
  • 3da2ea86RV48: report day48 cold starts, gates and cleanupmre
  • 8d9ecdfeRV48: re-vendor Hybriel set day48 (source b6a8f429, bin 660a9524)mre
  • 4a802ae7status: RV48 runningmre
  • 0a5412b6RV48 brief, day48 outmre
  • 56665efelog: CB69 mergedmre
  • 05448a98Merge cb69-imports: appTitle in a dependency-free topicmre
  • e55b379dKeep shared app title independent of the route import graphmre