|
| 1 | +"use client"; |
| 2 | + |
| 3 | +import { motion } from "framer-motion"; |
| 4 | +import { cn } from "@/lib/utils"; |
| 5 | +import { Sparkles } from "lucide-react"; |
| 6 | + |
| 7 | +export function OpenSourceHero() { |
| 8 | + return ( |
| 9 | + <section className="py-20 md:py-32 relative overflow-hidden"> |
| 10 | + <div |
| 11 | + className={cn( |
| 12 | + "absolute inset-0", |
| 13 | + "[background-size:20px_20px]", |
| 14 | + "[background-image:linear-gradient(to_right,rgba(99,102,241,0.8)_1px,transparent_1px),linear-gradient(to_bottom,rgba(99,102,241,0.8)_1px,transparent_1px)]", |
| 15 | + "dark:[background-image:linear-gradient(to_right,rgba(139,92,246,0.8)_1px,transparent_1px),linear-gradient(to_bottom,rgba(139,92,246,0.8)_1px,transparent_1px)]" |
| 16 | + )} |
| 17 | + /> |
| 18 | + <div className="pointer-events-none absolute inset-0 flex items-center justify-center bg-background [mask-image:radial-gradient(ellipse_at_center,transparent_20%,black)]"></div> |
| 19 | + <div className="absolute inset-0 bg-gradient-to-br from-primary/5 via-background to-purple-500/5 animate-gradient"></div> |
| 20 | + <div className="absolute inset-0"> |
| 21 | + <div className="absolute top-20 left-10 w-72 h-72 bg-primary/10 rounded-full blur-3xl animate-pulse-slow"></div> |
| 22 | + <div |
| 23 | + className="absolute bottom-20 right-10 w-96 h-96 bg-purple-500/10 rounded-full blur-3xl animate-pulse-slow" |
| 24 | + style={{ animationDelay: "2s" }} |
| 25 | + ></div> |
| 26 | + </div> |
| 27 | + |
| 28 | + <motion.div |
| 29 | + initial={{ opacity: 0, y: 20 }} |
| 30 | + animate={{ opacity: 1, y: 0 }} |
| 31 | + transition={{ duration: 0.5 }} |
| 32 | + className="container px-4 mx-auto relative z-10" |
| 33 | + > |
| 34 | + <div className="max-w-4xl mx-auto text-center space-y-8"> |
| 35 | + <motion.div |
| 36 | + initial={{ scale: 0.9 }} |
| 37 | + animate={{ scale: 1 }} |
| 38 | + transition={{ duration: 0.3 }} |
| 39 | + > |
| 40 | + <div className="flex flex-col items-center justify-center gap-4"> |
| 41 | + <button className="bg-slate-800 no-underline group relative shadow-2xl shadow-zinc-900 rounded-full p-px text-sm font-semibold leading-6 text-white inline-block cursor-default"> |
| 42 | + <span className="absolute inset-0 overflow-hidden rounded-full"> |
| 43 | + <span className="absolute inset-0 rounded-full bg-[image:radial-gradient(75%_100%_at_50%_0%,rgba(56,189,248,0.6)_0%,rgba(56,189,248,0)_75%)] opacity-0 transition-opacity duration-500 group-hover:opacity-100" /> |
| 44 | + </span> |
| 45 | + <div className="relative flex space-x-2 items-center z-10 rounded-full bg-zinc-950 py-0.5 px-4 ring-1 ring-white/10"> |
| 46 | + <span>Open Source</span> |
| 47 | + <span> |
| 48 | + <Sparkles className="w-3 h-3" /> |
| 49 | + </span> |
| 50 | + </div> |
| 51 | + <span className="absolute -bottom-0 left-[1.125rem] h-px w-[calc(100%-2.25rem)] bg-gradient-to-r from-emerald-400/0 via-emerald-400/90 to-emerald-400/0 transition-opacity duration-500 group-hover:opacity-40" /> |
| 52 | + </button> |
| 53 | + </div> |
| 54 | + </motion.div> |
| 55 | + <motion.h1 |
| 56 | + initial={{ opacity: 0, y: 20 }} |
| 57 | + animate={{ opacity: 1, y: 0 }} |
| 58 | + transition={{ duration: 0.5, delay: 0.2 }} |
| 59 | + className="text-5xl md:text-6xl font-bold tracking-tight leading-tight" |
| 60 | + > |
| 61 | + Building the Status{" "} |
| 62 | + <motion.span |
| 63 | + className="gradient-text inline-block" |
| 64 | + animate={{ |
| 65 | + backgroundPosition: [ |
| 66 | + "0% 50%", |
| 67 | + "100% 50%", |
| 68 | + "0% 50%", |
| 69 | + ], |
| 70 | + }} |
| 71 | + transition={{ |
| 72 | + duration: 4, |
| 73 | + repeat: Infinity, |
| 74 | + ease: "linear", |
| 75 | + }} |
| 76 | + style={{ |
| 77 | + background: |
| 78 | + "linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4, #6366f1)", |
| 79 | + backgroundSize: "300% 100%", |
| 80 | + WebkitBackgroundClip: "text", |
| 81 | + WebkitTextFillColor: "transparent", |
| 82 | + }} |
| 83 | + > |
| 84 | + Quo |
| 85 | + </motion.span> |
| 86 | + </motion.h1> |
| 87 | + <motion.p |
| 88 | + initial={{ opacity: 0, y: 20 }} |
| 89 | + animate={{ opacity: 1, y: 0 }} |
| 90 | + transition={{ duration: 0.5, delay: 0.3 }} |
| 91 | + className="text-xl md:text-2xl text-muted-foreground max-w-3xl mx-auto leading-relaxed" |
| 92 | + > |
| 93 | + We believe in the power of open collaboration. Join us in building software that empowers everyone. |
| 94 | + </motion.p> |
| 95 | + </div> |
| 96 | + </motion.div> |
| 97 | + </section> |
| 98 | + ); |
| 99 | +} |
0 commit comments