diff --git a/.gitea/workflows/pre-release.yaml b/.gitea/workflows/pre-release.yaml
new file mode 100644
index 0000000..f965a20
--- /dev/null
+++ b/.gitea/workflows/pre-release.yaml
@@ -0,0 +1,194 @@
+name: Pre-release on non-main branches
+
+on:
+ push:
+ branches-ignore: [ main ]
+ workflow_dispatch:
+
+jobs:
+ prerelease:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout (full history + tags)
+ uses: actions/checkout@v6
+ with:
+ fetch-depth: 0
+
+ - name: Stop if this is the bot changelog commit
+ shell: bash
+ run: |
+ set -e
+ msg="$(git log -1 --pretty=%B)"
+ echo "$msg" | tr -d '\r' | grep -qi "\[skip ci\]" && {
+ echo "Skipping (bot commit with [skip ci])"
+ exit 0
+ } || true
+
+ - name: Install git-cliff
+ shell: bash
+ run: |
+ set -e
+ GIT_CLIFF_VERSION="2.11.0"
+ URL="https://github.com/orhun/git-cliff/releases/download/v${GIT_CLIFF_VERSION}/git-cliff-${GIT_CLIFF_VERSION}-x86_64-unknown-linux-gnu.tar.gz"
+ curl -L "$URL" -o /tmp/git-cliff.tar.gz
+ tar -xzf /tmp/git-cliff.tar.gz -C /tmp
+ sudo install /tmp/git-cliff-*/git-cliff /usr/local/bin/git-cliff
+ git-cliff --version
+
+ - name: Generate CHANGELOG.md (in runner only)
+ shell: bash
+ run: |
+ set -e
+ git-cliff --config cliff.toml --output CHANGELOG.md
+ test -s CHANGELOG.md
+
+ - name: Extract newest changelog section for pre-release body
+ shell: bash
+ run: |
+ set -e
+ awk '
+ /^## / { if (seen) exit; seen=1 }
+ seen { print }
+ ' CHANGELOG.md > RELEASE_NOTES.md
+
+ sed -i 's/[[:space:]]*$//' RELEASE_NOTES.md
+ test -s RELEASE_NOTES.md
+
+ - name: Create export zip (Computing:Box Website.zip)
+ shell: bash
+ run: |
+ set -e
+ if [ ! -d "dist" ]; then
+ echo "❌ dist/ folder not found in repo root"
+ ls -la
+ exit 1
+ fi
+
+ rm -f "Computing:Box Website.zip"
+ (cd dist && zip -r "../Computing:Box Website.zip" .)
+ test -s "Computing:Box Website.zip"
+ ls -lh "Computing:Box Website.zip"
+
+ - name: Prepare pre-release tag + name
+ shell: bash
+ run: |
+ set -e
+
+ # Get branch name from ref: refs/heads/feature/x -> feature/x
+ ref="${GITHUB_REF#refs/heads/}"
+ # Make it tag-safe: lowercase, / -> -, remove invalid chars, collapse repeats
+ safe_branch="$(echo "$ref" | tr '[:upper:]' '[:lower:]' | sed -E 's#[^a-z0-9._-]+#-#g; s#-+#-#g; s#(^-|-$)##g')"
+
+ VERSION="$(date -u +'%y.%m.%d')"
+ SHORT_SHA="$(git rev-parse --short HEAD)"
+
+ # Pre-release tag format:
+ # vYY.MM.DD-pre..
+ TAG="v${VERSION}-pre.${safe_branch}.${SHORT_SHA}"
+
+ # Release name shown in UI
+ RELEASE_NAME="Computing:Box pre-release (${ref}) v${VERSION}"
+
+ echo "TAG=$TAG" >> "$GITHUB_ENV"
+ echo "RELEASE_NAME=$RELEASE_NAME" >> "$GITHUB_ENV"
+ echo "ZIP_PATH=Computing:Box Website.zip" >> "$GITHUB_ENV"
+ echo "BRANCH_NAME=$ref" >> "$GITHUB_ENV"
+
+ echo "Using tag: $TAG"
+ echo "Release name: $RELEASE_NAME"
+
+ - name: Create and push tag (CHANGELOG_PAT)
+ shell: bash
+ env:
+ CHANGELOG_PAT: ${{ secrets.CHANGELOG_PAT }}
+ run: |
+ set -e
+
+ git tag -f "$TAG"
+
+ origin_url="$(git remote get-url origin)"
+
+ # Convert SSH origin to HTTPS if needed
+ if echo "$origin_url" | grep -q "^git@"; then
+ host="$(echo "$origin_url" | sed -E 's#git@([^:]+):.*#\1#')"
+ path="$(echo "$origin_url" | sed -E 's#git@[^:]+:(.*)#\1#')"
+ origin_url="https://$host/$path"
+ fi
+
+ authed_url="$(echo "$origin_url" | sed -E "s#^https://#https://oauth2:${CHANGELOG_PAT}@#")"
+ git push "$authed_url" "refs/tags/$TAG" --force
+
+ - name: Create Gitea pre-release + upload asset (CHANGELOG_PAT)
+ shell: bash
+ env:
+ CHANGELOG_PAT: ${{ secrets.CHANGELOG_PAT }}
+ run: |
+ set -e
+
+ origin_url="$(git remote get-url origin)"
+ if echo "$origin_url" | grep -q "^git@"; then
+ host="$(echo "$origin_url" | sed -E 's#git@([^:]+):.*#\1#')"
+ path="$(echo "$origin_url" | sed -E 's#git@[^:]+:(.*)#\1#')"
+ origin_url="https://$host/$path"
+ fi
+
+ base="$(echo "$origin_url" | sed -E 's#(https?://[^/]+)/.*#\1#')"
+ repo_path="$(echo "$origin_url" | sed -E 's#https?://[^/]+/##')"
+ repo_path="$(echo "$repo_path" | sed -E 's/\.git$//')"
+
+ owner="$(echo "$repo_path" | cut -d/ -f1)"
+ repo="$(echo "$repo_path" | cut -d/ -f2-)"
+
+ api="$base/api/v1"
+
+ python3 - <<'PY'
+ import json, os
+ tag = os.environ["TAG"]
+ name = os.environ["RELEASE_NAME"]
+ branch = os.environ.get("BRANCH_NAME", "")
+
+ with open("RELEASE_NOTES.md", "r", encoding="utf-8") as f:
+ body = f.read()
+
+ # Add a small pre-release banner at the top
+ banner = f"⚠️ Pre-release build from branch `{branch}`\n\n"
+ payload = {
+ "tag_name": tag,
+ "target_commitish": branch if branch else "main",
+ "name": name,
+ "body": banner + body,
+ "draft": False,
+ "prerelease": True,
+ }
+
+ with open("release.json", "w", encoding="utf-8") as f:
+ json.dump(payload, f)
+ PY
+
+ curl -sS -X POST \
+ -H "Authorization: Bearer ${CHANGELOG_PAT}" \
+ -H "Content-Type: application/json" \
+ "${api}/repos/${owner}/${repo}/releases" \
+ --data-binary @release.json \
+ -o release_response.json
+
+ release_id="$(python3 - <<'PY'
+ import json
+ with open("release_response.json","r",encoding="utf-8") as f:
+ data=json.load(f)
+ rid=data.get("id")
+ if not rid:
+ raise SystemExit("No release id returned. Response:\n" + json.dumps(data, indent=2))
+ print(rid)
+ PY
+ )"
+ echo "Created pre-release id: $release_id"
+
+ curl -sS -X POST \
+ -H "Authorization: Bearer ${CHANGELOG_PAT}" \
+ "${api}/repos/${owner}/${repo}/releases/${release_id}/assets?name=Computing%3ABox%20Website.zip" \
+ -F "attachment=@${ZIP_PATH}" \
+ >/dev/null
+
+ echo "✅ Pre-release created: ${RELEASE_NAME} (tag: ${TAG}) with asset uploaded"
diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yaml
similarity index 100%
rename from .gitea/workflows/release.yml
rename to .gitea/workflows/release.yaml
diff --git a/README.md b/README.md
index fbc07a0..b8242a9 100644
--- a/README.md
+++ b/README.md
@@ -28,18 +28,19 @@ An evolution of Bit:Box & CS:Box to incorporate different elements of the UK Com
- [X] XNOR Gate Simulator
### Wave 3 CS:Box Features (Spring 2026)
-- [ ] New User Interface (Responsive)
+- [X] New User Interface (Responsive)
- [X] Two's Compliment Simulator
- [X] Extended Binary Simulator (Custom bit sizes)
- [X] Unified Binary Simulator (Unsigned & Two's Completment combined)
-- [ ] Extended Hexadecimal Simulator
-- [ ] Unified Hexadecimal Simulator (For GCSE & A Level Specification)
-- [ ] Enhanced Gate Simulator (Truth Table Creator)
-- [ ] Compound Gate Simulator
-- [ ] Computer Components Simulator
+- [X] Extended Hexadecimal Simulator
+- [X] Unified Hexadecimal Simulator (For GCSE & A Level Specification)
+- [X] Enhanced Gate Simulator (Truth Table Creator)
+- [X] Compound Gate Simulator
+- [X] Computer Components Simulator - Beta Available
## Version 1.0 Release Date: 1st September 2025
-## Version 2.0 Release Date (Goal): 1st May 2026
+## Version 2.0 Release Date (Beta): 1st March 2026
+## Version 2.0 Release Date (Full Release): 1st May 2026
Shield: [![CC BY-NC-SA 4.0][cc-by-nc-sa-shield]][cc-by-nc-sa]
diff --git a/dist/_astro/binary.astro_astro_type_script_index_0_lang.C_c_A3x5.js b/dist/_astro/binary.astro_astro_type_script_index_0_lang.C_c_A3x5.js
new file mode 100644
index 0000000..a23a7d5
--- /dev/null
+++ b/dist/_astro/binary.astro_astro_type_script_index_0_lang.C_c_A3x5.js
@@ -0,0 +1,12 @@
+(()=>{const d=document.getElementById("bitsGrid"),h=document.getElementById("denaryNumber"),M=document.getElementById("binaryNumber"),f=document.getElementById("bitsInput"),m=document.getElementById("modeToggle"),E=document.getElementById("modeHint"),T=document.getElementById("lblUnsigned"),k=document.getElementById("lblTwos"),H=document.getElementById("btnCustomBinary"),G=document.getElementById("btnCustomDenary"),P=document.getElementById("btnShiftLeft"),V=document.getElementById("btnShiftRight"),q=document.getElementById("btnDec"),Z=document.getElementById("btnInc"),z=document.getElementById("btnClear"),I=document.getElementById("btnRandom"),O=document.getElementById("btnBitsUp"),W=document.getElementById("btnBitsDown"),R=document.getElementById("toolboxToggle"),w=document.getElementById("binaryPage");let i=b(Number(f?.value??8),1,64),s=new Array(i).fill(!1),u=null;function b(t,n,e){return Number.isFinite(t)?Math.max(n,Math.min(e,Math.trunc(t))):n}function l(){return!!m?.checked}function a(t){return 1n<>BigInt(o)&1n)===1n}function L(){const t=v();return s[i-1]===!0?t-a(i):t}function x(t){const n=a(i);let e=t;e=(e%n+n)%n,g(e)}function j(){let t="";for(let n=i-1;n>=0;n--){t+=s[n]?"1":"0";const e=i-n;n!==0&&e%4===0&&(t+=" ")}return t.trimEnd()}function D(){E&&(l()?E.textContent="Tip: In two's complement, the left-most bit (MSB) represents a negative value.":E.textContent="Tip: In unsigned binary, all bits represent positive values.")}function A(){if(!d)return;const t=d.parentElement;if(!t)return;const n=t.getBoundingClientRect().width,o=b(Math.floor(n/100),1,12);d.style.setProperty("--cols",String(Math.min(o,i)))}function C(t){i=b(t,1,64),f&&(f.value=String(i));const n=s.slice();s=new Array(i).fill(!1);for(let e=0;e=0;e--){const o=document.createElement("div");o.className="bit",o.innerHTML=`
+
+
+
+ `,d.appendChild(o)}d.querySelectorAll('input[type="checkbox"]').forEach(e=>{e.addEventListener("change",()=>{const o=Number(e.dataset.index);s[o]=e.checked,r()})}),A(),r()}function J(){for(let t=0;t{const n=Number(t.dataset.index);t.checked=!!s[n]})}function Q(){for(let t=0;tc)return!1;x(e)}else{if(e<0n||e>$(i))return!1;g(e)}return r(),!0}function tt(){for(let t=i-1;t>=1;t--)s[t]=s[t-1];s[0]=!1,r()}function nt(){const t=s[i-1];for(let n=0;nn&&(e=t),x(e)}else{const t=y(i);g((v()+1n)%t)}r()}function ot(){if(l()){const t=B(i),n=p(i);let e=L()-1n;e0n&&(c=c>>U),c{lt(),Date.now()-t>=n&&(clearInterval(u),u=null,N(!1))},80)}function S(t){const n=b(t,1,64);C(n)}function F(t){if(!w)return;w.classList.toggle("toolboxCollapsed",!!t);const n=!t;R?.setAttribute("aria-expanded",n?"true":"false")}m?.addEventListener("change",r),H?.addEventListener("click",()=>{const t=prompt(`Enter binary (spaces allowed). Current width: ${i} bits`);t!==null&&(Y(t)||alert("Invalid binary"))}),G?.addEventListener("click",()=>{const t=prompt(l()?`Enter denary (${B(i).toString()} to ${p(i).toString()}):`:`Enter denary (0 to ${$(i).toString()}):`);t!==null&&(_(t)||alert("Invalid denary for current mode/bit width"))}),P?.addEventListener("click",tt),V?.addEventListener("click",nt),Z?.addEventListener("click",it),q?.addEventListener("click",ot),z?.addEventListener("click",et),I?.addEventListener("click",rt),O?.addEventListener("click",()=>S(i+1)),W?.addEventListener("click",()=>S(i-1)),f?.addEventListener("change",()=>S(Number(f.value))),R?.addEventListener("click",()=>{const t=w?.classList.contains("toolboxCollapsed");F(!t)}),window.addEventListener("resize",()=>{A()}),D(),C(i),F(!1)})();
diff --git a/dist/binary/index.html b/dist/binary/index.html
new file mode 100644
index 0000000..8b1520c
--- /dev/null
+++ b/dist/binary/index.html
@@ -0,0 +1,19 @@
+ Binary Simulator | Computing:Box
+
\ No newline at end of file
diff --git a/dist/favicon.svg b/dist/favicon.svg
new file mode 100644
index 0000000..f157bd1
--- /dev/null
+++ b/dist/favicon.svg
@@ -0,0 +1,9 @@
+
diff --git a/dist/fonts/DSEG7Classic-Regular.ttf b/dist/fonts/DSEG7Classic-Regular.ttf
new file mode 100644
index 0000000..b940496
Binary files /dev/null and b/dist/fonts/DSEG7Classic-Regular.ttf differ
diff --git a/dist/fonts/DSEG7Classic-Regular.woff b/dist/fonts/DSEG7Classic-Regular.woff
new file mode 100644
index 0000000..af83455
Binary files /dev/null and b/dist/fonts/DSEG7Classic-Regular.woff differ
diff --git a/dist/fonts/Seven-Segment.woff b/dist/fonts/Seven-Segment.woff
new file mode 100644
index 0000000..5a388a9
Binary files /dev/null and b/dist/fonts/Seven-Segment.woff differ
diff --git a/dist/fonts/Seven-Segment.woff2 b/dist/fonts/Seven-Segment.woff2
new file mode 100644
index 0000000..7c7e36f
Binary files /dev/null and b/dist/fonts/Seven-Segment.woff2 differ
diff --git a/dist/hexadecimal/index.html b/dist/hexadecimal/index.html
new file mode 100644
index 0000000..dfb3c34
--- /dev/null
+++ b/dist/hexadecimal/index.html
@@ -0,0 +1,19 @@
+ Hexadecimal Simulator | Computing:Box
+ Denary
0
Hexadecimal
00
Binary
00000000
\ No newline at end of file
diff --git a/dist/images/computing-box-logo.svg b/dist/images/computing-box-logo.svg
new file mode 100644
index 0000000..7bf11ef
--- /dev/null
+++ b/dist/images/computing-box-logo.svg
@@ -0,0 +1,1017 @@
+
+
diff --git a/dist/images/favicon.svg b/dist/images/favicon.svg
new file mode 100644
index 0000000..7bf11ef
--- /dev/null
+++ b/dist/images/favicon.svg
@@ -0,0 +1,1017 @@
+
+
diff --git a/dist/index.html b/dist/index.html
new file mode 100644
index 0000000..9674850
--- /dev/null
+++ b/dist/index.html
@@ -0,0 +1,18 @@
+ Welcome | Computing:Box Version 2.0 Now Live
Understand Computing concepts better.
+Interactive simulators for Binary, Hexadecimal, Logic Gates, and Computer Components designed for the UK curriculum.
+
\ No newline at end of file
diff --git a/dist/js/binary/unsigned-binary.js b/dist/js/binary/unsigned-binary.js
new file mode 100644
index 0000000..e28ab9f
--- /dev/null
+++ b/dist/js/binary/unsigned-binary.js
@@ -0,0 +1,115 @@
+// Browser-only script. Safe because it's loaded via
-
-
diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro
index edce928..d0e14ec 100644
--- a/src/layouts/BaseLayout.astro
+++ b/src/layouts/BaseLayout.astro
@@ -1,6 +1,5 @@
---
-import '../styles/global.css';
-
+import "../styles/global.css";
const { title = "Computing:Box" } = Astro.props;
---
@@ -11,6 +10,22 @@ const { title = "Computing:Box" } = Astro.props;
{title}
+
@@ -20,15 +35,16 @@ const { title = "Computing:Box" } = Astro.props;
@@ -38,9 +54,13 @@ const { title = "Computing:Box" } = Astro.props;
-
-
diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro
deleted file mode 100644
index e455c61..0000000
--- a/src/layouts/Layout.astro
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-