Commit de0b81b
perf: remove R3F from hero, rebuild with CSS/SVG-only orbital composition
Performance reset — no more WebGL in the hero.
- Deleted CoreHaloCanvas.tsx and CoreHalo.tsx (all Three.js/R3F removed from hero)
- Deleted src/components/three/ and src/components/sections/Hero3DSection.tsx (dead code)
- Removed 3 large npm packages: @react-three/fiber, @react-three/drei, three (partial)
- Bundle dropped from 1274 KB to 390 KB (gzip: 357 KB to 121 KB)
BackgroundCanvas — heavy reduction:
- Removed all 20 animated star elements (framer-motion infinite loops)
- Removed 3 large blur orbs (500px, 400px, 350px with blur(80/70/60px))
- Kept only static technical grid with slow parallax + 1 static ambient radial glow
- Removed dead orb-float-1/2/3 CSS keyframes from index.css
CoreHeroSection — rebuilt without R3F:
- Removed CoreHaloCanvas entirely; hero is now pure DOM + CSS + SVG
- HaloDecoration component: CSS/SVG orbital rings (3 ellipses + 2 orbiting dots)
via CSS keyframes — no useFrame, no Canvas, no WebGL
- Le Huy is now the unambiguous visual core
SatelliteSystem — compact orbital layout:
- Simplified to absolute inset-0 inside core stage
- SVG connector lines from center to each satellite
- Each satellite: module shell (glassmorphism box with boxShadow + backdropFilter),
mini orb dot, label, sublabel — all CSS, no SVG filter
- prefers-reduced-motion: satellites appear instantly in final positions
MiniSystemVisual (ProjectsSection) — redesigned without SVG filter:
- Dropped archNodes + auto-tier layout
- New data model: nodes: { id, label, x, y, kind? }[] + connections: [id, id][]
- Each project has hand-crafted layout and explicit connections
- Removed SVG feGaussianBlur filter — replaced with CSS boxShadow glow per node
- Connection lines: simple SVG stroke, no heavy filter chain
Code hygiene:
- No 'use client' directives remaining in any Vite file
- TypeScript compiles clean (tsc --noEmit)
- Playwright verified: 0 R3F canvases, 0 SVG filters, 0 blur orbs, 0 star
elements, 0 JS errors across all 4 viewports (1280x720, 768x1024,
375x667, 1440x900)
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent e5237fc commit de0b81b
9 files changed
Lines changed: 297 additions & 526 deletions
File tree
- src
- components
- hero
- sections
- data
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 7 | + | |
19 | 8 | | |
20 | 9 | | |
21 | 10 | | |
22 | | - | |
23 | | - | |
| 11 | + | |
| 12 | + | |
24 | 13 | | |
25 | | - | |
| 14 | + | |
26 | 15 | | |
27 | | - | |
| 16 | + | |
28 | 17 | | |
29 | 18 | | |
30 | | - | |
31 | | - | |
| 19 | + | |
| 20 | + | |
32 | 21 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 22 | + | |
| 23 | + | |
48 | 24 | | |
49 | 25 | | |
50 | 26 | | |
51 | | - | |
| 27 | + | |
52 | 28 | | |
53 | | - | |
| 29 | + | |
54 | 30 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
61 | 38 | | |
62 | 39 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | 40 | | |
105 | 41 | | |
106 | 42 | | |
This file was deleted.
This file was deleted.
0 commit comments