gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit1dcb87a71dcb87a7Use plain declarations for unchanged bindingsmre1dcb87a7/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 '../project.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. 'a.genre-link' {
  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 { class = "genre-link" href = g.href genreName { g.name } genreCount { g.count } } }
  47. }
  48. }
  49. }

Branches

Latest commits

  • 1dcb87a7Use plain declarations for unchanged bindingsmre
  • 9edcc2dflog: #58 live, HM57 startedmre
  • 73fa20ddMerge hm49b-styles: tracker#49 rest of the component stylesmre
  • 14195720log: HM49B done, HM51 startedmre
  • 78ee6b56Move remaining component styles into Style blocksmre
  • 7f04de33log: HM49Bmre
  • 00616cf3log: #49 batch merged, DP67 startedmre
  • d7232e86Merge hm49-styles: tracker#49 first batch of component stylesmre
  • 079f376dMove seven components' styles into Style blocksmre
  • 17d66feelog: #58 mergedmre
  • 69a6640bMerge hm58-map: tracker#58 project.hl only the mapmre
  • a85f7900Move route logic out of the project mapmre
  • 13dea5belog: #56 live, HM49 and HM58 startedmre
  • a31c8f2fdocs: tracker#36 remaining listmre
  • 975d06d1log: #36 live, DP66 startedmre
  • d6d03fa3mission: T36Bmre
  • e7512d00status: #36 rolled back, retry askedmre
  • c98e2043log: T36A rollbackmre
  • ae905f15Merge t36a: tracker#36 apply rechecks, reportmre
  • 796bfaceT36A: report validated fixes, failed live SSH check and verified rollbackmre