From 3addaca2f28857e7fa665c5d84debe13a6c843ea Mon Sep 17 00:00:00 2001 From: Alexander Lyall Date: Wed, 17 Dec 2025 17:28:40 +0000 Subject: [PATCH] Snapshot as lots broken. Taken snapshot before reverting commits --- public/images/favicon.svg | 1017 +++++++++++++++++ src/components/site-footer.astro | 8 + src/components/site-header.astro | 25 + src/pages/binary.astro | 59 +- src/scripts/binary.js | 201 +--- src/src/assets/astro.svg | 1 + src/src/assets/background.svg | 1 + src/{ => src}/components/Footer.astro | 0 src/{ => src}/components/Header.astro | 0 src/src/components/Welcome.astro | 210 ++++ .../components/simulators/HexSimulator.astro | 104 ++ .../simulators/hex/hex-simulator.css | 346 ++++++ .../simulators/hex/hex-simulator.ts | 232 ++++ src/src/layouts/BaseLayout.astro | 118 ++ src/src/layouts/Layout.astro | 22 + src/src/pages/binary.astro | 115 ++ src/src/pages/hexadecimal.astro | 8 + src/src/pages/index.astro | 11 + src/src/scripts/binary.js | 522 +++++++++ src/src/styles/binary.css | 342 ++++++ src/src/styles/global.css | 85 ++ src/src/styles/site.css | 75 ++ 22 files changed, 3319 insertions(+), 183 deletions(-) create mode 100644 public/images/favicon.svg create mode 100644 src/components/site-footer.astro create mode 100644 src/components/site-header.astro create mode 100644 src/src/assets/astro.svg create mode 100644 src/src/assets/background.svg rename src/{ => src}/components/Footer.astro (100%) rename src/{ => src}/components/Header.astro (100%) create mode 100644 src/src/components/Welcome.astro create mode 100644 src/src/components/simulators/HexSimulator.astro create mode 100644 src/src/components/simulators/hex/hex-simulator.css create mode 100644 src/src/components/simulators/hex/hex-simulator.ts create mode 100644 src/src/layouts/BaseLayout.astro create mode 100644 src/src/layouts/Layout.astro create mode 100644 src/src/pages/binary.astro create mode 100644 src/src/pages/hexadecimal.astro create mode 100644 src/src/pages/index.astro create mode 100644 src/src/scripts/binary.js create mode 100644 src/src/styles/binary.css create mode 100644 src/src/styles/global.css create mode 100644 src/src/styles/site.css diff --git a/public/images/favicon.svg b/public/images/favicon.svg new file mode 100644 index 0000000..7bf11ef --- /dev/null +++ b/public/images/favicon.svg @@ -0,0 +1,1017 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/components/site-footer.astro b/src/components/site-footer.astro new file mode 100644 index 0000000..bb1625e --- /dev/null +++ b/src/components/site-footer.astro @@ -0,0 +1,8 @@ + diff --git a/src/components/site-header.astro b/src/components/site-header.astro new file mode 100644 index 0000000..3ce3958 --- /dev/null +++ b/src/components/site-header.astro @@ -0,0 +1,25 @@ +--- +const nav = [ + { href: "/about", label: "About" }, + { href: "/binary", label: "Binary" }, + { href: "/hexadecimal", label: "Hexadecimal" }, + { href: "/hex-colours", label: "Hex Colours" }, + { href: "/logic-gates", label: "Logic Gates" }, +]; +--- + diff --git a/src/pages/binary.astro b/src/pages/binary.astro index fc195e5..e585a28 100644 --- a/src/pages/binary.astro +++ b/src/pages/binary.astro @@ -4,23 +4,21 @@ import "../styles/binary.css"; --- -
- - + +
-
+
Denary
0
Binary
- -
00000000
+
0000 0000
@@ -30,22 +28,19 @@ import "../styles/binary.css";
- -