Reading mode: text versions of the front page's bands
- Stats: one line per number, no longer stuck at 0 (the count waited for the band to scroll into view, which the hidden page never does); reduced motion shows the numbers at once too. - Calendar: the next six weeks from today as a list (date, linked title, time, type, place), wherever a calendar is drawn. - Featured cards: a linked heading and its words each; a video card links to its video. - Countdown: left out, the retreats band shows the same event. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
502a294940
commit
c79910ef8d
5 changed files with 95 additions and 5 deletions
|
|
@ -26,6 +26,7 @@ import { eventHref } from '../../../lib/hrefs.ts'
|
|||
import { upcomingOccurrences } from '../../../lib/eventSeries.ts'
|
||||
import type { CountdownEvent } from '../../../lib/useFrontPage.ts'
|
||||
import { withAlpha, accentText, BRAND } from '../../../lib/color.ts'
|
||||
import { useReadingMode } from '../../../lib/readingMode.ts'
|
||||
|
||||
|
||||
/* Local midnight (or HH:MM) on a 'YYYY-MM-DD'. */
|
||||
|
|
@ -63,6 +64,7 @@ export default function NextEventCountdown({
|
|||
event: CountdownEvent
|
||||
overlap: boolean
|
||||
}) {
|
||||
const reading = useReadingMode()
|
||||
const now = useNow(1000)
|
||||
const when = target(event)
|
||||
const accent = event.color || BRAND
|
||||
|
|
@ -79,6 +81,9 @@ export default function NextEventCountdown({
|
|||
|
||||
const where = event.location_label || (event.is_online ? 'Online' : null)
|
||||
|
||||
// Reading mode: the event is already in the retreats band.
|
||||
if (reading) return null
|
||||
|
||||
return (
|
||||
<section
|
||||
aria-label="Next event"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue