From 9e38ac6606e8e7adda2ba46af8e4783c40d600a3 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Thu, 18 Dec 2025 22:31:04 +0000 Subject: [PATCH] feat: Add 3D backdrop and update page layout Adds a Three.js backdrop to the hero section and refactors page layout for better visual appeal. Includes dependency updates for 'three'. Co-authored-by: jeremy --- bun.lock | 4 + package.json | 3 +- src/app.css | 11 +- src/lib/components/ThreeBackdrop.svelte | 266 ++++++++++++++ src/routes/+layout.svelte | 7 +- src/routes/+page.svelte | 449 ++++++++++++++++++++---- 6 files changed, 664 insertions(+), 76 deletions(-) create mode 100644 src/lib/components/ThreeBackdrop.svelte diff --git a/bun.lock b/bun.lock index dac8081..4ce4a2f 100644 --- a/bun.lock +++ b/bun.lock @@ -1,11 +1,13 @@ { "lockfileVersion": 1, + "configVersion": 0, "workspaces": { "": { "name": "camhack", "dependencies": { "@sveltejs/adapter-node": "^5.2.14", "@tailwindcss/vite": "^4.1.11", + "three": "^0.182.0", }, "devDependencies": { "@sveltejs/kit": "^2.28.0", @@ -325,6 +327,8 @@ "tar": ["tar@7.4.3", "", { "dependencies": { "@isaacs/fs-minipass": "^4.0.0", "chownr": "^3.0.0", "minipass": "^7.1.2", "minizlib": "^3.0.1", "mkdirp": "^3.0.1", "yallist": "^5.0.0" } }, "sha512-5S7Va8hKfV7W5U6g3aYxXmlPoZVAwUMy9AOKyF2fVuZa2UD3qZjg578OrLRt8PcNN1PleVaL/5/yYATNL0ICUw=="], + "three": ["three@0.182.0", "", {}, "sha512-GbHabT+Irv+ihI1/f5kIIsZ+Ef9Sl5A1Y7imvS5RQjWgtTPfPnZ43JmlYI7NtCRDK9zir20lQpfg8/9Yd02OvQ=="], + "tinyglobby": ["tinyglobby@0.2.14", "", { "dependencies": { "fdir": "^6.4.4", "picomatch": "^4.0.2" } }, "sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ=="], "totalist": ["totalist@3.0.1", "", {}, "sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ=="], diff --git a/package.json b/package.json index fb0373b..a0d3e1a 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,8 @@ "type": "module", "dependencies": { "@sveltejs/adapter-node": "^5.2.14", - "@tailwindcss/vite": "^4.1.11" + "@tailwindcss/vite": "^4.1.11", + "three": "^0.182.0" }, "prettier": { "plugins": [ diff --git a/src/app.css b/src/app.css index 2addcba..985bcfa 100644 --- a/src/app.css +++ b/src/app.css @@ -1,7 +1,10 @@ @import "tailwindcss"; @theme { - --font-playpen: Ubuntu Mono, monospace; + --font-playpen: Ubuntu Mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", + "Courier New", monospace; + --font-display: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, + "Noto Sans", "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji"; } html { @@ -27,26 +30,32 @@ section { h1 { @apply text-4xl font-bold; + font-family: var(--font-display); } h2 { @apply text-3xl font-bold; + font-family: var(--font-display); } h3 { @apply text-2xl font-bold; + font-family: var(--font-display); } h4 { @apply text-xl font-bold; + font-family: var(--font-display); } h5 { @apply text-lg font-bold; + font-family: var(--font-display); } h6 { @apply text-base font-bold; + font-family: var(--font-display); } h1, diff --git a/src/lib/components/ThreeBackdrop.svelte b/src/lib/components/ThreeBackdrop.svelte new file mode 100644 index 0000000..848926b --- /dev/null +++ b/src/lib/components/ThreeBackdrop.svelte @@ -0,0 +1,266 @@ + + + + + diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 50baf6e..07b11e1 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -1,20 +1,15 @@ -
+
{@render children()}
- -