@wral/hsot-data 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -0
- package/dist/define.mjs +1 -1
- package/dist/define.standalone.js +549 -454
- package/dist/{hsot-boxscore-HfW4EnqW.js → hsot-boxscore-B_yZEV8T.js} +448 -353
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -29,6 +29,33 @@ Shared attributes on every component:
|
|
|
29
29
|
these are overridable per mount.
|
|
30
30
|
- `refresh-interval` — milliseconds between reloads (live surfaces). 0 = off.
|
|
31
31
|
|
|
32
|
+
## The section band
|
|
33
|
+
|
|
34
|
+
`hsot-scores`, `hsot-standings` and `hsot-rankings` open with the section-front
|
|
35
|
+
band from the public site (`hsot-section-header`): the sport title on the dark
|
|
36
|
+
red-baselined header, with the section sub-nav beneath it. The sub-nav row
|
|
37
|
+
renders only when the current URL is one of the sport's general section pages —
|
|
38
|
+
the component matches `location.pathname` (or a `#/…` hash route, as in the
|
|
39
|
+
demo harness) against its own `section-href` template, and school or game
|
|
40
|
+
detail URLs (per `school-href` / `game-href`) never qualify — so the section
|
|
41
|
+
front's sub-nav persists across the data pages it links to without appearing
|
|
42
|
+
on a page scoped to one team or game.
|
|
43
|
+
|
|
44
|
+
The default links are Home, Scores/Schedule, Playoff Brackets, Standings
|
|
45
|
+
(split into Boys/Girls when the sport's teams field both sides) and
|
|
46
|
+
Polls & Rankings, filled from `section-href`. To reproduce a section
|
|
47
|
+
front's custom items exactly, slot the same anchors its `hsot-section-header`
|
|
48
|
+
takes; `aria-current="page"` is kept in sync from the URL either way:
|
|
49
|
+
|
|
50
|
+
```html
|
|
51
|
+
<hsot-scores sport="football" api="…">
|
|
52
|
+
<a slot="nav" href="/football/">Football News</a>
|
|
53
|
+
<a slot="nav" href="/football/scores/">Scores/Schedules</a>
|
|
54
|
+
<a slot="nav" href="/football/rankings/">Polls & Rankings</a>
|
|
55
|
+
<a slot="nav" href="/football/page/14674638/">Football Friday</a>
|
|
56
|
+
</hsot-scores>
|
|
57
|
+
```
|
|
58
|
+
|
|
32
59
|
## Derivation lives here, for now
|
|
33
60
|
|
|
34
61
|
Standings, records, streaks and rank badges are **derived client-side** from
|
package/dist/define.mjs
CHANGED