Skip to content

Commit 3202761

Browse files
Add women's candidates broadcast link
1 parent b10eed6 commit 3202761

2 files changed

Lines changed: 23 additions & 10 deletions

File tree

src/constants/candidates.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export const CANDIDATES_WARMUP_POSITIONS: CandidatePosition[] = [
108108
id: 'warmup-take-down-hikaru',
109109
title: 'Rd1 Challenge 3: Take down Hikaru',
110110
subtitle:
111-
'Fabi has built up a nice advantage against Hikaru, but how do you break though?',
111+
'Fabi has built up a nice advantage against Hikaru, but how do you break through?',
112112
summary:
113113
'Caruana is pressing against Nakamura. White to move and finish the attack.',
114114
tag: 'Warm-up',

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)