Skip to content

Block 127 of 297

Athletics Schedule

A sport's season schedule table with home or away, location, results or start times, and ticket and stream links.

Puck key
AthleticsScheduleBlock
Export
athleticsScheduleBlock
React component
<AthleticsSchedule />
Path
components/puck/athletics-schedule-block.tsx
Dependencies
None
License
MIT

About this block

When to use it, how to write for it, and what to change in the code.

What it's for

One team's season as a table of date, opponent, site, location, and result or start time, with ticket and watch links per row. Games sort by date, home games get a light tint, and results starting with W, L or T get a labeled outcome chip. The record and a full-schedule link sit in the header. Narrow screens scroll sideways.

  • A team page on an athletics site, updated through the season
  • A homecoming or rivalry-week page highlighting upcoming home games
  • A club or intramural sports page that needs a simple results table
Writing the content
  • Fill Date (YYYY-MM-DD) for every game; it sets the order, and games without it fall to the end.
  • Before a game, put the start time in Result or time; afterward, start with W, L or T and the score, like W 3–1.
  • Set Home or away for each game; away games read "at" and neutral sites "vs." before the opponent.
  • Mark Conference game to add an asterisk, then explain it and the time zone in the Footnote.
Accessibility
  • The schedule is a real table with column headers, the opponent as a row header and a hidden caption that defaults to the sport and heading (WCAG 1.3.1).
  • Outcomes show a letter and announce the full word (Win, Loss, Tie), and the site is spelled out, so neither relies on color alone (WCAG 1.4.1).
  • Ticket and watch links add the opponent's name for screen readers, and the scroll region is focusable.
Customizing the code
  • Win, loss and tie chip colors live in outcomeOf; home badge and row tint colors live in siteStyles.

Editor fields

What content editors see in the P1 sidebar when they select this block.

  • Sporttext
  • Headingtext
  • Heading levelselect
  • Recordtext
  • Table captiontext
  • Gamesarray
  • Footnotetext
  • Full schedule link texttext
  • Full schedule linktext