From a6fac18fb89d7268ac5ce1026f3bffd2e9f275a7 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Fri, 7 Mar 2025 13:12:43 +0100 Subject: Initial fatter design and copy --- src/pages/HomePage.tsx | 123 +++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 103 insertions(+), 20 deletions(-) (limited to 'src/pages/HomePage.tsx') diff --git a/src/pages/HomePage.tsx b/src/pages/HomePage.tsx index 6a8c9c7..f7f65dd 100644 --- a/src/pages/HomePage.tsx +++ b/src/pages/HomePage.tsx @@ -18,6 +18,7 @@ const HomePage = () => { const [options, setOptions] = useState([]); const [wpm, setWpm] = useState(20); const [showHints, setShowHints] = useState(false); + const [showHowToPlay, setShowHowToPlay] = useState(false); const actxRef = useRef(null); const optionButtonsRef = useRef>([null, null, null, null]); @@ -234,10 +235,63 @@ const HomePage = () => { { !gameStarted ? (
-

Learn Morse code the fun way!

- -
- View Morse Code Chart +
+

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.

+ +
+
+
๐ŸŽฎ
+

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

+
+
+ +
+ + +
+ + {showHowToPlay && ( +
+

How to Play Morse Hero

+
    +
  1. Listen to the Morse code sound played
  2. +
  3. Select the correct character from the four options
  4. +
  5. Use keyboard keys that match the displayed characters for faster play
  6. +
  7. Enable hints if you need help seeing the Morse patterns
  8. +
  9. Adjust the speed to match your skill level
  10. +
+
+

Did You Know?

+

Morse code was developed by Samuel Morse and Alfred Vail in the 1830s and revolutionized long-distance communication.

+
+
+ )} + +
+ View Morse Code Chart +
) : ( @@ -255,6 +309,13 @@ const HomePage = () => {
+
+

Listen to the Morse code and select the correct character

+ +
+
{options.map((option, index) => (
- - -
+
+ + +
+
{ />
+ +
+ +
+

Pro Tip: Use your keyboard to select options faster!

@@ -301,9 +369,24 @@ const HomePage = () => { } ); -- cgit v1.3.1