Commit 89b2814
Componentize, design tokens, earliest-snapshot links
Three independent improvements:
1. Earliest-snapshot wayback links. site_data now builds each
headline's wayback_url from curated.first_seen_ts instead of
reusing the enriched.csv link (which used last_seen_ts and
tended to point at 2024 mementos for old articles). No
re-fetching needed — the metadata didn't change, only the
link does. Verified: the 2015 Cubs-Pirates wild-card liveblog
now links to a 2015-10-09 capture (three days after the game)
instead of a 2024 capture.
2. Componentized SvelteKit. The home route was carrying all of
the header, footer, tagline, search, year list, and byline
teaser inline. Split into seven components under
src/lib/components/ with a barrel re-export:
SiteHeader / SiteFooter / Tagline / SearchBox /
YearList / BylineTeaser / EntryList
Pages now read top-down at a glance.
3. Expanded :root design tokens in app.css. Colors, font stack,
font sizes, weights, line-heights, spacing scale, page
max-width, and rule weights all expressed as custom
properties. Restyling the whole site is editing a dozen
tokens.
Also: svelte.config.js now picks base path automatically. CNAME
present in static/ -> custom domain (base ''). Absent -> gh-pages
subpath ('/fakethirtyeight.com'). Drop a CNAME file in to flip.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent c04b4af commit 89b2814
17 files changed
Lines changed: 21516 additions & 21409 deletions
File tree
- src/fakethirtyeight
- web
- src
- lib/components
- routes
- byline/[slug]
- year/[year]
- static/data
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
151 | 161 | | |
152 | 162 | | |
153 | 163 | | |
154 | 164 | | |
155 | 165 | | |
156 | 166 | | |
157 | | - | |
158 | 167 | | |
159 | 168 | | |
160 | 169 | | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
| 170 | + | |
166 | 171 | | |
167 | 172 | | |
168 | 173 | | |
| |||
0 commit comments