diff --git a/app/morse-code/page.tsx b/app/morse-code/page.tsx new file mode 100644 index 00000000..ece5caab --- /dev/null +++ b/app/morse-code/page.tsx @@ -0,0 +1,22 @@ +import type { Metadata } from "next"; +import MorseCodeVisualizer from "../../components/encoding/MorseCodeVisualizer"; +import Navbar from "../../components/layout/Navbar"; +import Footer from "../../components/layout/footer"; + +export const metadata: Metadata = { + title: "Morse Code Visualizer — Encoder/Decoder | CryptoViz", + description: + "Encode and decode Morse code with real-time signal waveform visualization. Learn ITU International Morse Code with interactive timing analysis.", +}; + +export default function MorseCodePage() { + return ( +
| Char | +Morse | +Signal | +Units | +
|---|---|---|---|
| + {mc.char === " " ? "␣" : mc.char} + | ++ {mc.code || "/"} + | ++ {signal} + | ++ {units || 7} + | +
+ Showing first 30 of {result.characters.length} characters +
+ )} ++ Encoding Tool +
++ Encode and decode International Morse Code with real-time signal waveform visualization. Learn timing patterns, character mappings, and the history of the world's first digital encoding system. +
++ Interactive Signal +
++ Watch the waveform render in real-time. Each dot is 1 time unit, each dash is 3 units. Adjust WPM to see how timing changes. +
++ {mode === "encode" + ? "Type text to encode into Morse code." + : "Paste Morse code (use spaces between characters, / for words)."} +
++ Standard Morse timing ratios at {wpm} WPM +
++ {mode === "encode" ? result.morse : result.decoded} +
++ Developed by Samuel Morse and Alfred Vail in the 1830s-1840s, Morse code was the first + widespread digital communication system. It revolutionized long-distance communication + by encoding letters and numbers as sequences of short and long signals. +
++ The fundamental timing unit is the dot duration. A dash equals 3 dots. + The gap between dots/dashes within a character equals 1 dot. + The gap between characters equals 3 dots. The gap between words equals 7 dots. + This 1:3:1:3:7 ratio is maintained at any speed. +
++ While largely replaced by digital communication, Morse code remains used in amateur + radio (ham radio), aviation navigation (NDBs), maritime distress signals (SOS), + and by some individuals with disabilities as an input method. +
++ Morse code was used extensively in military cryptography. Theಛtwas's famous + "Q简" (Q codes) and prosigns are still used today. The encoding itself is not + encryption — it's a character encoding, but it can serve as a simple cipher when + combined with frequency analysis techniques. +
+