Spaces:
Sleeping
Sleeping
Upload components/Hero.js with huggingface_hub
Browse files- components/Hero.js +77 -0
components/Hero.js
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use client';
|
| 2 |
+
|
| 3 |
+
import { motion, useScroll, useTransform } from 'framer-motion';
|
| 4 |
+
import { useRef } from 'react';
|
| 5 |
+
|
| 6 |
+
export default function Hero() {
|
| 7 |
+
const containerRef = useRef(null);
|
| 8 |
+
const { scrollYProgress } = useScroll({
|
| 9 |
+
target: containerRef,
|
| 10 |
+
offset: ['start start', 'end start'],
|
| 11 |
+
});
|
| 12 |
+
|
| 13 |
+
const opacity = useTransform(scrollYProgress, [0, 0.5], [1, 0]);
|
| 14 |
+
const scale = useTransform(scrollYProgress, [0, 0.5], [1, 0.8]);
|
| 15 |
+
const y = useTransform(scrollYProgress, [0, 1], [0, 200]);
|
| 16 |
+
|
| 17 |
+
return (
|
| 18 |
+
<section ref={containerRef} className="relative h-screen flex flex-col justify-center items-center overflow-hidden px-4">
|
| 19 |
+
<motion.div
|
| 20 |
+
style={{ opacity, scale, y }}
|
| 21 |
+
className="text-center z-10 max-w-5xl mx-auto"
|
| 22 |
+
>
|
| 23 |
+
<motion.div
|
| 24 |
+
initial={{ opacity: 0, y: 30 }}
|
| 25 |
+
animate={{ opacity: 1, y: 0 }}
|
| 26 |
+
transition={{ duration: 1, delay: 0.2 }}
|
| 27 |
+
className="font-mono text-xs md:text-sm uppercase tracking-[0.3em] text-faint mb-6"
|
| 28 |
+
>
|
| 29 |
+
Artificial Intelligence Researcher
|
| 30 |
+
</motion.div>
|
| 31 |
+
|
| 32 |
+
<motion.h1
|
| 33 |
+
className="font-serif text-5xl md:text-8xl lg:text-9xl leading-[0.9] mb-8 glitch"
|
| 34 |
+
data-text="ARCHITECTING"
|
| 35 |
+
initial={{ opacity: 0, y: 50 }}
|
| 36 |
+
animate={{ opacity: 1, y: 0 }}
|
| 37 |
+
transition={{ duration: 1, delay: 0.4 }}
|
| 38 |
+
>
|
| 39 |
+
ARCHITECTING
|
| 40 |
+
</motion.h1>
|
| 41 |
+
|
| 42 |
+
<motion.h2
|
| 43 |
+
className="font-serif text-4xl md:text-6xl lg:text-7xl leading-none text-gray-400 italic mb-12"
|
| 44 |
+
initial={{ opacity: 0 }}
|
| 45 |
+
animate={{ opacity: 1 }}
|
| 46 |
+
transition={{ duration: 1, delay: 0.6 }}
|
| 47 |
+
>
|
| 48 |
+
The Cognitive Future
|
| 49 |
+
</motion.h2>
|
| 50 |
+
|
| 51 |
+
<motion.div
|
| 52 |
+
initial={{ opacity: 0 }}
|
| 53 |
+
animate={{ opacity: 1 }}
|
| 54 |
+
transition={{ duration: 1, delay: 0.8 }}
|
| 55 |
+
className="flex flex-col md:flex-row gap-6 justify-center items-center"
|
| 56 |
+
>
|
| 57 |
+
<div className="w-px h-16 bg-white/20 hidden md:block"></div>
|
| 58 |
+
<p className="font-mono text-sm md:text-base max-w-md text-gray-300 leading-relaxed">
|
| 59 |
+
Pioneering neural architectures and generative systems.
|
| 60 |
+
Bridging the gap between theoretical research and production-grade scalability.
|
| 61 |
+
</p>
|
| 62 |
+
</motion.div>
|
| 63 |
+
</motion.div>
|
| 64 |
+
|
| 65 |
+
{/* Scroll Indicator */}
|
| 66 |
+
<motion.div
|
| 67 |
+
initial={{ opacity: 0 }}
|
| 68 |
+
animate={{ opacity: 1 }}
|
| 69 |
+
transition={{ delay: 1.5, duration: 1.5 }}
|
| 70 |
+
className="absolute bottom-10 left-1/2 -translate-x-1/2 flex flex-col items-center gap-2"
|
| 71 |
+
>
|
| 72 |
+
<span className="font-mono text-[10px] uppercase tracking-widest text-faint">Scroll to Explore</span>
|
| 73 |
+
<div className="w-[1px] h-12 bg-gradient-to-b from-white to-transparent"></div>
|
| 74 |
+
</motion.div>
|
| 75 |
+
</section>
|
| 76 |
+
);
|
| 77 |
+
}
|