Skip to content

Commit c890c70

Browse files
committed
refactor: remove ProductMonoliths from home page
## What Changed - Removed ProductMonoliths import and <monolith-container> from +page.svelte - Removed unused .monolith-container CSS selector (caught by Svelte lint) - Updated README.md and CLAUDE.md to note ProductMonoliths is unused ## Rationale The three wireframe rectangle panels behind the product cards created too much visual noise when combined with the background 3D scene (cube, grid, particles). Removing them gives the product section cleaner readability while the ambient 3D elements still provide cinematic depth. ## What Was Not Changed ProductMonoliths.svelte file itself is preserved in src/lib/three/ — it can be re-enabled if the design direction changes or if a different placement is found.
1 parent 935a9b0 commit c890c70

File tree

3 files changed

+4
-20
lines changed

3 files changed

+4
-20
lines changed

CLAUDE.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,7 @@ A cinematic Three.js background renders behind all page content on every route.
187187
├── GridHelper (100×100, scroll-linked drift)
188188
└── Particle system (500 dust particles)
189189
190-
+page.svelte (home only)
191-
└── <ProductMonoliths /> # Three wireframe panels behind product cards
192-
├── Augmentum monolith
193-
├── Visage monolith
194-
└── MrHaven monolith
190+
ProductMonoliths.svelte exists but is currently unused (removed for visual clarity).
195191
```
196192

197193
### Key Files
@@ -200,7 +196,7 @@ A cinematic Three.js background renders behind all page content on every route.
200196
|------|---------------|
201197
| `src/lib/three/Scene.svelte` | Canvas element creation, SceneManager lifecycle (mount/destroy) |
202198
| `src/lib/three/SceneManager.js` | Camera, renderer, scene objects, animation loop, resize/scroll/mouse handlers, theme color updates, cleanup |
203-
| `src/lib/three/ProductMonoliths.svelte` | Three interactive wireframe panels on home page, hover effects (tilt, glow, color), theme-aware materials |
199+
| `src/lib/three/ProductMonoliths.svelte` | Interactive wireframe panels with hover effects — currently unused, removed from home page for visual clarity |
204200

205201
### CSS Layering
206202

@@ -225,7 +221,7 @@ All page sections must have transparent backgrounds. Do **not** add `background-
225221
| Grid primary | `0x888888` | `0x444444` |
226222
| Grid secondary | `0xcccccc` | `0x222222` |
227223
| Particle color | `0x000000` (opacity 0.2) | `0xffffff` (opacity 0.4) |
228-
| Monolith wireframe | `0x333333` | `0xffffff` |
224+
| Monolith wireframe | `0x333333` | `0xffffff` | *(unused — monoliths removed)* |
229225

230226
### Modifying the 3D Scene
231227

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ A full-viewport 3D background renders behind all page content:
107107
- **Theme-aware:** Materials, fog color/density, and particle opacity adapt to light/dark mode
108108
- **Lifecycle:** `Scene.svelte` mounts/unmounts the canvas; `SceneManager.js` handles the animation loop and cleanup
109109

110-
The home page also renders `ProductMonoliths.svelte` — three interactive wireframe panels positioned behind the product cards that respond to hover with tilt, glow, and color transitions.
110+
`ProductMonoliths.svelte` exists as an interactive wireframe panel component but is currently unused — it was removed from the home page to reduce visual clutter.
111111

112112
### Shared Components
113113

src/routes/+page.svelte

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
</svelte:head>
88

99
<script>
10-
import ProductMonoliths from '$lib/three/ProductMonoliths.svelte';
11-
1210
const asciiArt = ` _______________
1311
/ /|
1412
/ / |
@@ -56,9 +54,6 @@
5654
</section>
5755

5856
<section class="products">
59-
<div class="monolith-container">
60-
<ProductMonoliths {products} />
61-
</div>
6257
<div class="product-grid">
6358
{#each products as p}
6459
<a href={p.href} class="product-card">
@@ -139,13 +134,6 @@
139134
position: relative;
140135
}
141136
142-
.monolith-container {
143-
position: absolute;
144-
top: 0; left: 0; right: 0; bottom: 0;
145-
pointer-events: none;
146-
z-index: -1;
147-
}
148-
149137
.product-grid {
150138
display: grid;
151139
grid-template-columns: repeat(3, 1fr);

0 commit comments

Comments
 (0)