Spaces:
Sleeping
Sleeping
File size: 5,065 Bytes
5463318 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 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 | import React from 'react';
import { motion } from 'framer-motion';
import { Sparkles, BrainCircuit, UploadCloud, CheckCircle2, Download } from 'lucide-react';
export const GradientPanel = () => {
return (
<div className="relative w-full h-full text-white overflow-hidden flex flex-col justify-center items-center p-12 bg-[#0F172A] z-0">
{/* Deep animated mesh glow */}
<motion.div
className="absolute top-[-20%] left-[-20%] w-[800px] h-[800px] bg-[#4F7CFF]/10 rounded-full blur-[100px] mix-blend-screen pointer-events-none"
animate={{ scale: [1, 1.1, 1], opacity: [0.5, 0.8, 0.5] }}
transition={{ duration: 8, repeat: Infinity, ease: "easeInOut" }}
/>
<motion.div
className="absolute bottom-[-20%] right-[-20%] w-[600px] h-[600px] bg-[#8B5CF6]/10 rounded-full blur-[100px] mix-blend-screen pointer-events-none"
animate={{ scale: [1, 1.2, 1], opacity: [0.4, 0.7, 0.4] }}
transition={{ duration: 10, repeat: Infinity, ease: "easeInOut", delay: 1 }}
/>
{/* Neural network / floating particles subtle layer */}
<div className="absolute inset-0 bg-[url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4IiBoZWlnaHQ9IjgiPgo8cmVjdCB3aWR0aD0iOCIgaGVpZ2h0PSI4IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDUiLz4KPC9zdmc+')] opacity-20 pointer-events-none" />
<div className="relative z-10 w-full max-w-xl text-left pl-4">
{/* Branding Text */}
<motion.div
initial={{ opacity: 0, y: 30 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.8, ease: "easeOut" }}
>
<div className="inline-flex items-center gap-2 px-4 py-2 rounded-full bg-[#4F7CFF]/10 border border-[#4F7CFF]/20 text-[#4F7CFF] text-sm font-semibold mb-8 shadow-[0_0_15px_rgba(79,124,255,0.15)]">
<Sparkles size={16} className="text-[#4F7CFF] animate-pulse" />
<span>Designed for Educators</span>
</div>
<h1 className="text-5xl lg:text-7xl font-extrabold mb-6 tracking-tight text-white leading-[1.15]">
Create Exams in <br />
<span className="bg-clip-text text-transparent bg-gradient-to-r from-[#4F7CFF] to-[#8B5CF6]">
Seconds with AI
</span>
</h1>
<p className="text-xl text-slate-400 mb-12 font-light max-w-md leading-relaxed">
Upload. Generate. Customize. Download.
</p>
</motion.div>
{/* Animated Feature Steps */}
<motion.div
className="flex justify-start items-center gap-6 lg:gap-10"
initial={{ opacity: 0, x: -30 }}
animate={{ opacity: 1, x: 0 }}
transition={{ duration: 0.8, delay: 0.3, ease: "easeOut" }}
>
{[
{ icon: UploadCloud, label: "Upload" },
{ icon: BrainCircuit, label: "Generate" },
{ icon: CheckCircle2, label: "Customize" },
{ icon: Download, label: "Download" },
].map((step, idx) => (
<div key={idx} className="flex flex-col items-center gap-4">
<motion.div
className="w-14 h-14 rounded-2xl bg-white/5 border border-white/10 flex items-center justify-center backdrop-blur-sm"
whileHover={{ scale: 1.1, backgroundColor: "rgba(255,255,255,0.1)", borderColor: "rgba(255,255,255,0.2)" }}
>
<step.icon className="w-6 h-6 text-[#8B5CF6]" />
</motion.div>
<span className="text-xs font-semibold text-slate-400 tracking-widest uppercase">{step.label}</span>
</div>
))}
</motion.div>
</div>
{/* Soft parallax decorative elements */}
<motion.div
className="absolute top-32 right-32 w-32 h-32 bg-gradient-to-br from-[#4F7CFF]/20 to-transparent rounded-full blur-xl pointer-events-none"
animate={{ y: [0, -20, 0], x: [0, 10, 0] }}
transition={{ duration: 5, repeat: Infinity, ease: "easeInOut" }}
/>
<motion.div
className="absolute bottom-32 left-32 w-40 h-40 bg-gradient-to-tr from-[#8B5CF6]/20 to-transparent rounded-full blur-2xl pointer-events-none"
animate={{ y: [0, 30, 0], x: [0, -20, 0] }}
transition={{ duration: 7, repeat: Infinity, ease: "easeInOut", delay: 0.5 }}
/>
</div>
);
};
|