Skip to content

Commit e86f9fc

Browse files
committed
Update global styles and Hero component rendering
- Changed background color in globals.css from black to a dark gray for improved aesthetics. - Set clear color for WebGL context in Hero and 404 components to match the new background color, enhancing visual consistency.
1 parent ec5c01d commit e86f9fc

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/app/globals.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@import "tailwindcss";
22

33
:root {
4-
--background: #000000;
4+
--background: #101010;
55
}
66

77
@theme inline {

src/components/hero-404/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ void main() {
105105

106106
const renderer = new Renderer({ antialias: true });
107107
const gl = renderer.gl;
108+
gl.clearColor(0.0627, 0.0627, 0.0627, 1.0);
108109
containerRef.current?.appendChild(gl.canvas);
109110
const camera = new Camera(gl, { near: 0.1, far: 100, fov: 10 });
110111
camera.position.set(

src/components/hero/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ void main() {
103103

104104
const renderer = new Renderer({ antialias: true });
105105
const gl = renderer.gl;
106+
gl.clearColor(0.0627, 0.0627, 0.0627, 1.0);
106107
containerRef.current?.appendChild(gl.canvas);
107108
const camera = new Camera(gl, { near: 0.1, far: 100, fov: 10 });
108109
camera.position.set(

0 commit comments

Comments
 (0)