Skip to content

Commit 1d73f94

Browse files
Merge pull request #286 from CSSLab/codex/candidates-broadcast-links
Add women's candidates broadcast link
2 parents 0af39b3 + 3202761 commit 1d73f94

1 file changed

Lines changed: 22 additions & 9 deletions

File tree

src/pages/candidates.tsx

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ import { GameTree } from 'src/types'
1717

1818
const CANDIDATES_COMPLETED_STORAGE_KEY = 'maia-candidates-completed'
1919
const CANDIDATES_BROADCAST_HREF = '/broadcast/BLA70Vds/uLCZwqAK'
20+
const WOMENS_CANDIDATES_BROADCAST_HREF =
21+
'https://www.maiachess.com/broadcast/xj4qM8Nw/EMkf0c6e'
2022

2123
const readCompletedChallenges = (): string[] => {
2224
if (typeof window === 'undefined') return []
@@ -242,15 +244,26 @@ export default function CandidatesPage() {
242244
<p className="mt-2 text-sm uppercase tracking-[0.2em] text-white/45">
243245
Round 1
244246
</p>
245-
<Link
246-
href={CANDIDATES_BROADCAST_HREF}
247-
className="mt-4 inline-flex items-center gap-2 rounded-full border border-sky-300/25 bg-sky-500/10 px-4 py-2 text-sm font-medium text-sky-100 transition hover:border-sky-200/40 hover:bg-sky-500/15"
248-
>
249-
<span className="material-symbols-outlined !text-[18px]">
250-
live_tv
251-
</span>
252-
Watch Candidates Broadcast
253-
</Link>
247+
<div className="mt-4 flex flex-wrap gap-3">
248+
<Link
249+
href={CANDIDATES_BROADCAST_HREF}
250+
className="inline-flex items-center gap-2 rounded-full border border-rose-300/25 bg-rose-500/10 px-4 py-2 text-sm font-medium text-rose-100 transition hover:border-rose-200/40 hover:bg-rose-500/15"
251+
>
252+
<span className="material-symbols-outlined !text-[18px]">
253+
live_tv
254+
</span>
255+
Watch Candidates Broadcast
256+
</Link>
257+
<a
258+
href={WOMENS_CANDIDATES_BROADCAST_HREF}
259+
className="inline-flex items-center gap-2 rounded-full border border-rose-300/25 bg-rose-500/10 px-4 py-2 text-sm font-medium text-rose-100 transition hover:border-rose-200/40 hover:bg-rose-500/15"
260+
>
261+
<span className="material-symbols-outlined !text-[18px]">
262+
live_tv
263+
</span>
264+
Watch Women&apos;s Candidates Broadcast
265+
</a>
266+
</div>
254267
</header>
255268
{positions.map((position) => (
256269
<PositionPill

0 commit comments

Comments
 (0)