All files / web/src/app/arcade/memory-quiz page.tsx

0% Statements 0/70
0% Branches 0/1
0% Functions 0/1
0% Lines 0/70

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71                                                                                                                                             
'use client'

import { useEffect } from 'react'
import { useRouter } from 'next/navigation'

/**
 * Memory Quiz redirect page
 *
 * Local mode has been deprecated. Memory Quiz is now only available
 * through the Champion Arena (arcade) in room mode.
 *
 * This page redirects users to the arcade where they can:
 * 1. Create or join a room
 * 2. Select Memory Lightning from the game selector
 * 3. Play in multiplayer or solo (single-player room)
 */
export default function MemoryQuizRedirectPage() {
  const router = useRouter()

  useEffect(() => {
    // Redirect to arcade
    router.replace('/arcade')
  }, [router])

  return (
    <div
      style={{
        display: 'flex',
        flexDirection: 'column',
        alignItems: 'center',
        justifyContent: 'center',
        minHeight: '100vh',
        padding: '20px',
        background: 'linear-gradient(135deg, #f8fafc, #e2e8f0)',
      }}
    >
      <div
        style={{
          fontSize: '48px',
          marginBottom: '20px',
        }}
      >
        🧠
      </div>
      <h1
        style={{
          fontSize: '24px',
          fontWeight: 'bold',
          marginBottom: '12px',
          color: '#1f2937',
          textAlign: 'center',
        }}
      >
        Redirecting to Champion Arena...
      </h1>
      <p
        style={{
          fontSize: '16px',
          color: '#6b7280',
          textAlign: 'center',
          maxWidth: '500px',
        }}
      >
        Memory Lightning is now part of the Champion Arena.
        <br />
        You'll be able to play solo or with friends in multiplayer mode!
      </p>
    </div>
  )
}