@@ -6,6 +6,7 @@ import { useEffect, useMemo, useState } from 'react'
66
77import {
88 CANDIDATES_FEATURED_POSITIONS ,
9+ CANDIDATES_ROUND_TWO_POSITIONS ,
910 CANDIDATES_WARMUP_POSITIONS ,
1011 CandidatePosition ,
1112} from 'src/constants/candidates'
@@ -115,7 +116,8 @@ const PositionBoard: React.FC<{
115116const PositionPill : React . FC < {
116117 position : CandidatePosition
117118 completed ?: boolean
118- } > = ( { position, completed = false } ) => {
119+ compactTitle ?: boolean
120+ } > = ( { position, completed = false , compactTitle = false } ) => {
119121 const playHref = buildPositionPlayLink ( {
120122 ...position ,
121123 challengeId : position . id ,
@@ -131,8 +133,18 @@ const PositionPill: React.FC<{
131133 } `}
132134 >
133135 < div className = "flex h-full flex-col gap-4" >
134- < div className = "min-w-0 xl:min-h-[150px]" >
135- < h2 className = "h-[3rem] overflow-hidden text-lg font-semibold leading-[1.5rem] text-primary md:h-[3.5rem] md:text-xl md:leading-[1.75rem]" >
136+ < div
137+ className = { `min-w-0 ${
138+ compactTitle ? 'xl:min-h-[132px]' : 'xl:min-h-[150px]'
139+ } `}
140+ >
141+ < h2
142+ className = { `overflow-hidden text-lg font-semibold text-primary md:text-xl ${
143+ compactTitle
144+ ? 'h-[1.5rem] leading-[1.5rem] md:h-[1.75rem] md:leading-[1.75rem]'
145+ : 'h-[3rem] leading-[1.5rem] md:h-[3.5rem] md:leading-[1.75rem]'
146+ } `}
147+ >
136148 { position . title }
137149 </ h2 >
138150 < p className = "mt-2 text-sm leading-6 text-white/65" >
@@ -244,7 +256,7 @@ export default function CandidatesPage() {
244256 FIDE Candidates Tournament 2026
245257 </ h1 >
246258 < p className = "mt-2 text-sm uppercase tracking-[0.2em] text-white/45" >
247- Round 2
259+ Round 3
248260 </ p >
249261 < div className = "mt-4 flex flex-wrap gap-3" >
250262 < Link
@@ -269,8 +281,21 @@ export default function CandidatesPage() {
269281 </ header >
270282 { CANDIDATES_FEATURED_POSITIONS . length > 0 ? (
271283 < >
272- < ChallengeSectionTitle title = "Round 2 Challenges" />
284+ < ChallengeSectionTitle title = "Round 3 Challenges" />
273285 { CANDIDATES_FEATURED_POSITIONS . map ( ( position ) => (
286+ < PositionPill
287+ key = { position . id }
288+ position = { position }
289+ completed = { completedChallengeIds . includes ( position . id ) }
290+ compactTitle
291+ />
292+ ) ) }
293+ </ >
294+ ) : null }
295+ { CANDIDATES_ROUND_TWO_POSITIONS . length > 0 ? (
296+ < >
297+ < ChallengeSectionTitle title = "Round 2 Challenges" />
298+ { CANDIDATES_ROUND_TWO_POSITIONS . map ( ( position ) => (
274299 < PositionPill
275300 key = { position . id }
276301 position = { position }
0 commit comments