gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit1419572014195720log: HM49B done, HM51 startedmre14195720/components/franchisewidget.hl

3.1 KB

  1. // components/franchisewidget.hl — THE FRANCHISE WIDGET on a show / movie page (tracker.worldapi.org#19, mission 066), composed
  2. // by components/show.hl: `FranchiseWidget { widgets = … }` (franchises.hl widgetsOf). One per timeline the title is in:
  3. //
  4. // Star Trek ← the franchise (only when the timeline has one) → its index
  5. // ‹ Prequel | Star Trek — Prime | Sequel › ← links to the title before / after this one; an end is greyed out
  6. //
  7. // The timeline's name links to /timelines/<slug>. Each side shows the title it leads to under the word.
  8. widgets = []
  9. // HM49: component rules keep the existing selectors and shared theme variables.
  10. Style {
  11. franchiseWidgets {
  12. display = 'block'
  13. margin = '0'
  14. @media {
  15. minWidth = '40rem'
  16. margin = '.5rem 0'
  17. }
  18. }
  19. 'franchise-widgets:not(:has(franchise-widget))' {
  20. display = 'none'
  21. }
  22. franchiseWidget {
  23. display = 'block'
  24. padding = '.5rem .6rem'
  25. marginBottom = '.5rem'
  26. background = 'var(--color-surface)'
  27. borderRadius = 'var(--radius-large)'
  28. }
  29. 'a.fw-franchise' {
  30. display = 'block'
  31. padding = '.8rem 0'
  32. marginBottom = '0'
  33. fontSize = '.8rem'
  34. fontWeight = '600'
  35. letterSpacing = '.04em'
  36. textTransform = 'uppercase'
  37. textAlign = 'center'
  38. }
  39. fwRow {
  40. display = 'grid'
  41. gridTemplateColumns = 'minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr)'
  42. alignItems = 'center'
  43. gap = '.5rem'
  44. @media {
  45. minWidth = '40rem'
  46. gridTemplateColumns = 'minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr)'
  47. }
  48. }
  49. '.fw-side' {
  50. display = 'flex'
  51. flexDirection = 'column'
  52. justifyContent = 'center'
  53. minHeight = '2.75rem'
  54. minWidth = '0'
  55. color = 'var(--color-accent)'
  56. }
  57. '.fw-next' {
  58. alignItems = 'flex-end'
  59. textAlign = 'right'
  60. }
  61. '.fw-side.off' {
  62. color = 'var(--color-text-muted)'
  63. opacity = '.5'
  64. }
  65. 'a.fw-side' {
  66. hover {
  67. textDecoration = 'none'
  68. fwDir {
  69. textDecoration = 'underline'
  70. }
  71. }
  72. }
  73. fwDir {
  74. fontWeight = '600'
  75. whiteSpace = 'nowrap'
  76. }
  77. fwTitle {
  78. fontSize = '.8rem'
  79. color = 'var(--color-text-muted)'
  80. whiteSpace = 'nowrap'
  81. overflow = 'hidden'
  82. textOverflow = 'ellipsis'
  83. maxWidth = '100%'
  84. }
  85. 'a.fw-timeline' {
  86. minWidth = '0'
  87. fontWeight = '600'
  88. color = 'var(--color-text-strong)'
  89. textAlign = 'center'
  90. overflowWrap = 'anywhere'
  91. padding = '0 .4rem'
  92. }
  93. }
  94. View {
  95. franchiseWidgets {
  96. for (w of widgets) {
  97. franchiseWidget { "data-timeline" = w.id
  98. if (w.hasFranchise) { a { class = "fw-franchise" href = w.franchiseHref w.franchiseName } }
  99. fwRow {
  100. if (w.hasPrev) {
  101. a { class = "fw-side fw-prev" href = w.prevHref title = w.prevTitle
  102. fwDir { "‹ Prequel" }
  103. fwTitle { w.prevTitle }
  104. }
  105. }
  106. if (w.noPrev) { span { class = "fw-side fw-prev off" "aria-disabled" = "true" fwDir { "‹ Prequel" } } }
  107. a { class = "fw-timeline" href = w.href w.name }
  108. if (w.hasNext) {
  109. a { class = "fw-side fw-next" href = w.nextHref title = w.nextTitle
  110. fwDir { "Sequel ›" }
  111. fwTitle { w.nextTitle }
  112. }
  113. }
  114. if (w.noNext) { span { class = "fw-side fw-next off" "aria-disabled" = "true" fwDir { "Sequel ›" } } }
  115. }
  116. }
  117. }
  118. }
  119. }

Branches

Latest commits

  • 14195720log: HM49B done, HM51 startedmre
  • 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
  • 55257852log: #53 live, #56 mergedmre
  • 78b39f1bMerge hm56-rows: tracker#56 list builders insert oncemre
  • 7aea52batmdb fix: protect owners without slugs and record passing gatesmre
  • 9b3c2559tmdb fix: revalidate planned identities and reserve target idsmre