Spaces:
Sleeping
Sleeping
Upload pages/index.js with huggingface_hub
Browse files- pages/index.js +39 -0
pages/index.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { useState, useEffect, useRef } from 'react';
|
| 2 |
+
import dynamic from 'next/dynamic';
|
| 3 |
+
import Navbar from '../components/Navbar';
|
| 4 |
+
import Hero from '../components/Hero';
|
| 5 |
+
import Stats from '../components/Stats';
|
| 6 |
+
import Work from '../components/Work';
|
| 7 |
+
import Contact from '../components/Contact';
|
| 8 |
+
|
| 9 |
+
// Dynamic import for Three.js background to avoid SSR issues
|
| 10 |
+
const Scene = dynamic(() => import('../components/Background'), { ssr: false });
|
| 11 |
+
|
| 12 |
+
export default function Home() {
|
| 13 |
+
const [mounted, setMounted] = useState(false);
|
| 14 |
+
|
| 15 |
+
useEffect(() => {
|
| 16 |
+
setMounted(true);
|
| 17 |
+
}, []);
|
| 18 |
+
|
| 19 |
+
return (
|
| 20 |
+
<main className="relative w-full min-h-screen bg-void text-white selection:bg-white selection:text-black">
|
| 21 |
+
{/* Noise Texture Overlay */}
|
| 22 |
+
<div className="noise-overlay" />
|
| 23 |
+
|
| 24 |
+
{/* 3D Background */}
|
| 25 |
+
{mounted && <Scene />}
|
| 26 |
+
|
| 27 |
+
{/* Navigation */}
|
| 28 |
+
<Navbar />
|
| 29 |
+
|
| 30 |
+
{/* Content Sections */}
|
| 31 |
+
<div className="relative z-10">
|
| 32 |
+
<Hero />
|
| 33 |
+
<Stats />
|
| 34 |
+
<Work />
|
| 35 |
+
<Contact />
|
| 36 |
+
</div>
|
| 37 |
+
</main>
|
| 38 |
+
);
|
| 39 |
+
}
|