From 07734b8bab72c3f89b9b04ebee3a42258a0b10a4 Mon Sep 17 00:00:00 2001 From: nym21 Date: Wed, 3 Jun 2026 16:26:55 +0200 Subject: [PATCH] website: redesign part 3 --- website/AGENTS.md | 1 + website/build/index.js | 8 ++ website/build/style.css | 7 ++ website/cube/style.css | 6 +- website/explore/index.js | 8 ++ website/explore/style.css | 7 ++ website/header/style.css | 2 - website/home/index.js | 8 ++ website/home/style.css | 7 ++ website/index.html | 7 ++ website/learn/data.js | 147 +++++++++++++++++++++++++++++++++++ website/learn/index.js | 147 +++++++++++++++++++++++++++++++++++ website/learn/style.css | 129 ++++++++++++++++++++++++++++++ website/main.js | 104 +++++++++++++++++++++++++ website/styles/fonts.css | 4 +- website/styles/main.css | 38 +++++++++ website/styles/variables.css | 5 -- 17 files changed, 623 insertions(+), 12 deletions(-) create mode 100644 website/build/index.js create mode 100644 website/build/style.css create mode 100644 website/explore/index.js create mode 100644 website/explore/style.css create mode 100644 website/home/index.js create mode 100644 website/home/style.css create mode 100644 website/learn/data.js create mode 100644 website/learn/index.js create mode 100644 website/learn/style.css create mode 100644 website/styles/main.css diff --git a/website/AGENTS.md b/website/AGENTS.md index 096e60254..4873a8318 100644 --- a/website/AGENTS.md +++ b/website/AGENTS.md @@ -25,3 +25,4 @@ ALWAYS - reads like english - very easy to understand - very easy to maintain +- avoid defensive checks when the code itself guarantees correctness diff --git a/website/build/index.js b/website/build/index.js new file mode 100644 index 000000000..8eb2f18ca --- /dev/null +++ b/website/build/index.js @@ -0,0 +1,8 @@ +export function createBuildPage() { + const main = document.createElement("main"); + main.className = "build"; + const title = document.createElement("h1"); + title.append("Build"); + main.append(title); + return main; +} diff --git a/website/build/style.css b/website/build/style.css new file mode 100644 index 000000000..29b0c2efe --- /dev/null +++ b/website/build/style.css @@ -0,0 +1,7 @@ +main.build { + min-height: 100dvh; + display: grid; + place-items: center; + color: white; + font-size: 4rem; +} diff --git a/website/cube/style.css b/website/cube/style.css index c1d645db9..81327c002 100644 --- a/website/cube/style.css +++ b/website/cube/style.css @@ -93,10 +93,8 @@ } } - .liquid { - &.front.top { - --x: calc(1 - var(--fill)); - } + .liquid.front.top { + --x: calc(1 - var(--fill)); } } diff --git a/website/explore/index.js b/website/explore/index.js new file mode 100644 index 000000000..13c591fdf --- /dev/null +++ b/website/explore/index.js @@ -0,0 +1,8 @@ +export function createExplorePage() { + const main = document.createElement("main"); + main.className = "explore"; + const title = document.createElement("h1"); + title.append("Explore"); + main.append(title); + return main; +} diff --git a/website/explore/style.css b/website/explore/style.css new file mode 100644 index 000000000..05aa37400 --- /dev/null +++ b/website/explore/style.css @@ -0,0 +1,7 @@ +main.explore { + min-height: 100dvh; + display: grid; + place-items: center; + color: white; + font-size: 4rem; +} diff --git a/website/header/style.css b/website/header/style.css index 388998484..b64de6c78 100644 --- a/website/header/style.css +++ b/website/header/style.css @@ -31,8 +31,6 @@ body { } > nav { - grid-column: 2; - justify-self: center; font-size: var(--font-size-xs); ul { diff --git a/website/home/index.js b/website/home/index.js new file mode 100644 index 000000000..bda72e274 --- /dev/null +++ b/website/home/index.js @@ -0,0 +1,8 @@ +export function createHomePage() { + const main = document.createElement("main"); + main.className = "home"; + const title = document.createElement("h1"); + title.append("Home"); + main.append(title); + return main; +} diff --git a/website/home/style.css b/website/home/style.css new file mode 100644 index 000000000..50014ee21 --- /dev/null +++ b/website/home/style.css @@ -0,0 +1,7 @@ +main.home { + min-height: 100dvh; + display: grid; + place-items: center; + color: white; + font-size: 4rem; +} diff --git a/website/index.html b/website/index.html index 11b24359a..c2055957c 100644 --- a/website/index.html +++ b/website/index.html @@ -39,10 +39,17 @@ + + + + + + +