@@ -332,13 +332,14 @@ export const Header: React.FC = () => {
332332 </ div >
333333 </ Link >
334334 < button
335- className = "block cursor-pointer *:*:fill-primary md:hidden"
335+ aria-label = "Open navigation menu"
336+ className = "block cursor-pointer *:*:fill-primary"
336337 onClick = { ( ) => setShowMenu ( ( show ) => ! show ) }
337338 >
338339 < span className = "material-symbols-outlined text-3xl" > menu</ span >
339340 </ button >
340341 { showMenu && (
341- < div className = "fixed left-0 top-0 z-40 flex h-screen w-screen flex-col items-start justify-between bg-backdrop py-4" >
342+ < div className = "fixed left-0 top-0 z-40 flex h-screen w-screen flex-col items-start justify-between overflow-y-auto bg-backdrop py-4" >
342343 < div className = "flex w-full flex-row justify-between px-4" >
343344 < Link href = "/" passHref >
344345 < div className = "flex flex-row items-center gap-2" >
@@ -347,26 +348,38 @@ export const Header: React.FC = () => {
347348 </ div >
348349 </ Link >
349350 < button
350- className = "block cursor-pointer *:*:fill-primary md:hidden"
351+ aria-label = "Close navigation menu"
352+ className = "block cursor-pointer *:*:fill-primary"
351353 onClick = { ( ) => setShowMenu ( false ) }
352354 >
353355 < span className = "material-symbols-outlined text-3xl" > menu</ span >
354356 </ button >
355357 </ div >
356- < div className = "flex flex-col gap-5 px-12 tracking-wider" >
358+ < div className = "flex w-full flex-1 flex- col gap-5 overflow-y-auto px-12 py-6 tracking-wider" >
357359 < div className = "flex flex-col items-start justify-center gap-3" >
358360 < button > PLAY</ button >
359361 < div className = "ml-4 flex flex-col items-start justify-center gap-2" >
360- < button onClick = { ( ) => startGame ( 'againstMaia' ) } >
362+ < button
363+ onClick = { ( ) => {
364+ setShowMenu ( false )
365+ startGame ( 'againstMaia' )
366+ } }
367+ >
361368 Play Maia
362369 </ button >
363- < button onClick = { ( ) => startGame ( 'handAndBrain' ) } >
370+ < button
371+ onClick = { ( ) => {
372+ setShowMenu ( false )
373+ startGame ( 'handAndBrain' )
374+ } }
375+ >
364376 Play Hand and Brain
365377 </ button >
366378 < a
367379 href = "https://lichess.org/@/maia1"
368380 target = "_blank"
369381 rel = "noreferrer"
382+ onClick = { ( ) => setShowMenu ( false ) }
370383 >
371384 Play Maia on Lichess
372385 </ a >
@@ -393,6 +406,15 @@ export const Header: React.FC = () => {
393406 < Link href = "/blog" className = "uppercase" >
394407 Maia Blog
395408 </ Link >
409+ < a
410+ target = "_blank"
411+ rel = "noreferrer"
412+ href = "https://discord.gg/Az93GqEAs7"
413+ className = "uppercase"
414+ onClick = { ( ) => setShowMenu ( false ) }
415+ >
416+ Discord
417+ </ a >
396418 { /* <a
397419 target="_blank"
398420 rel="noreferrer"
0 commit comments