tracker
All repositories: gitoria
3.1 KB
// components/franchisewidget.hl — THE FRANCHISE WIDGET on a show / movie page (tracker.worldapi.org#19, mission 066), composed// by components/show.hl: `FranchiseWidget { widgets = … }` (franchises.hl widgetsOf). One per timeline the title is in://// Star Trek ← the franchise (only when the timeline has one) → its index// ‹ Prequel | Star Trek — Prime | Sequel › ← links to the title before / after this one; an end is greyed out//// The timeline's name links to /timelines/<slug>. Each side shows the title it leads to under the word.widgets = []// HM49: component rules keep the existing selectors and shared theme variables.Style {franchiseWidgets {display = 'block'margin = '0'@media {minWidth = '40rem'margin = '.5rem 0'}}'franchise-widgets:not(:has(franchise-widget))' {display = 'none'}franchiseWidget {display = 'block'padding = '.5rem .6rem'marginBottom = '.5rem'background = 'var(--color-surface)'borderRadius = 'var(--radius-large)'}aFwFranchise {display = 'block'padding = '.8rem 0'marginBottom = '0'fontSize = '.8rem'fontWeight = '600'letterSpacing = '.04em'textTransform = 'uppercase'textAlign = 'center'}fwRow {display = 'grid'gridTemplateColumns = 'minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr)'alignItems = 'center'gap = '.5rem'@media {minWidth = '40rem'gridTemplateColumns = 'minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr)'}}fwSide {display = 'flex'flexDirection = 'column'justifyContent = 'center'minHeight = '2.75rem'minWidth = '0'color = 'var(--color-accent)'}fwNext {alignItems = 'flex-end'textAlign = 'right'}'.fw-side.off' {color = 'var(--color-text-muted)'opacity = '.5'}'a.fw-side' {hover {textDecoration = 'none'fwDir {textDecoration = 'underline'}}}fwDir {fontWeight = '600'whiteSpace = 'nowrap'}fwTitle {fontSize = '.8rem'color = 'var(--color-text-muted)'whiteSpace = 'nowrap'overflow = 'hidden'textOverflow = 'ellipsis'maxWidth = '100%'}aFwTimeline {minWidth = '0'fontWeight = '600'color = 'var(--color-text-strong)'textAlign = 'center'overflowWrap = 'anywhere'padding = '0 .4rem'}}View {franchiseWidgets {for (w of widgets) {franchiseWidget { "data-timeline" = w.idif (w.hasFranchise) { a { Style.aFwFranchise href = w.franchiseHref w.franchiseName } }fwRow {if (w.hasPrev) {a { Style.fwSide class = "fw-prev" href = w.prevHref title = w.prevTitlefwDir { "‹ Prequel" }fwTitle { w.prevTitle }}}if (w.noPrev) { span { Style.fwSide class = "fw-prev off" "aria-disabled" = "true" fwDir { "‹ Prequel" } } }a { Style.aFwTimeline href = w.href w.name }if (w.hasNext) {a { Style.fwSide Style.fwNext href = w.nextHref title = w.nextTitlefwDir { "Sequel ›" }fwTitle { w.nextTitle }}}if (w.noNext) { span { Style.fwSide Style.fwNext class = "off" "aria-disabled" = "true" fwDir { "Sequel ›" } } }}}}}}
Branches
Latest commits
- 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
- 9a99659blog: hybriel#334, batch waits for day48mre
- 85fa6c9blog: CB68 result, CB69 startedmre
- 2f07c1b7log: DP68 boot gate failed, CB68mre
- 9652782dlog: HM59 merged, DP68 startedmre
- 29867a75Merge hm59-logic: tracker#59 page logic moved to libmre
- f7bfe90bMove remaining page builders into their topicsmre
- 7c3991f9log: day46 from Antonmre
- ec54fc35Move show page logic into the shows topicmre
- c1a8d074log: correct timesmre
- 5827eba9log: HM57 merged, HM59 startedmre