gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit2c95ac462c95ac46|||PR AP62: re-vendor Hybriel set day62 (source 70341ad2, bin a54f5f08)Tracker2c95ac46/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

  • 2c95ac46|||PR AP62: re-vendor Hybriel set day62 (source 70341ad2, bin a54f5f08)Tracker
  • b9c7c3c8Merge branch 'records-dp74' into mainTracker
  • 85cfb4ae|||PR records: AP61 day61, DP74 liveTracker
  • b1496147Merge branch 'ap61' into mainTracker
  • 2047955bMerge branch 'u12-gateports' into mainTracker
  • c8da40f3|||PR AP61: re-vendor Hybriel set day61 (source a05af47c, bin a11042e5)Tracker
  • 4e018678|||PR deploy.sh: gates use Tracker's ports 8716-8719 and LC_ALL=C; README: 2 backups keptTracker
  • 0b86324aMerge branch 'records-dp73' into mainTracker
  • 9ce5f59b|||PR records: DP73 live 613ae0e; deploy.sh keeps 2 backupsTracker
  • 613ae0ecMerge branch 'bs3' into mainTracker
  • 1383264b|||PR BS3: keep shared synchronous sorting fastTracker
  • 63e5ba1a|||PR BS3: guard boot imports and share resumable sort buffersTracker
  • 310613f1Merge branch 'records-dp72' into mainTracker
  • 6f7b61ba|||PR records: deploy-swap fix live, Kunibert findingsTracker
  • c41587d2Merge branch 'bs2' into mainTracker
  • 0dd538a6|||PR BS2: finish the boot index in slices so a booting instance keeps answeringTracker
  • 019d5cedMerge branch 'records-1110' into mainTracker
  • f88ae8b9|||PR records: day56 toggle live, reviewTracker
  • b6b3bb4dMerge branch 'ap56e' into mainTracker
  • 29a26da9|||PR AP56e: guard hidden show helpers during session syncTracker