import { useState } from 'react'; import { Link } from 'react-router'; import '../styles.css'; import Footer from '../components/Footer'; import MorseGame from '../components/MorseGame'; const HomePage = () => { // Game state const [gameStarted, setGameStarted] = useState(false); // Initialize the game when started - this happens on user interaction (button click) const startGame = () => { setGameStarted(true); }; // Reset game to initial state const resetGame = () => { setGameStarted(false); }; return (

Morse Hero

{ !gameStarted ? (

Master Morse Code Through Play

Morse Hero turns learning Morse code into an engaging game. Listen to the signals, identify the characters, and improve your skills with every round.

View Morse Code Chart
🎮

Interactive Learning

Learn by doing with our interactive game format

🔊

Audio Recognition

Train your ear to recognize Morse code sounds

📈

Track Progress

See your improvement with each practice session

âš¡

Adjustable Speed

Set your own pace as you build your skills

) : ( ) }
); }; export default HomePage;