Spaces:
Build error
Build error
Upload components/Newsletter.jsx with huggingface_hub
Browse files- components/Newsletter.jsx +53 -0
components/Newsletter.jsx
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { motion } from 'framer-motion';
|
| 2 |
+
import { Mail } from 'lucide-react';
|
| 3 |
+
|
| 4 |
+
export default function Newsletter() {
|
| 5 |
+
return (
|
| 6 |
+
<section className="py-24 bg-slate-900 relative overflow-hidden">
|
| 7 |
+
{/* Background Elements */}
|
| 8 |
+
<div className="absolute inset-0 overflow-hidden">
|
| 9 |
+
<div className="absolute top-[20%] left-[10%] w-[60%] h-[60%] rounded-full bg-gradient-to-r from-blue-600/10 to-purple-600/10 blur-[120px]"></div>
|
| 10 |
+
</div>
|
| 11 |
+
|
| 12 |
+
<div className="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10">
|
| 13 |
+
<motion.div
|
| 14 |
+
className="bg-gradient-to-br from-slate-800 to-slate-900 rounded-3xl p-8 md:p-16 border border-slate-700 backdrop-blur-sm text-center"
|
| 15 |
+
initial={{ opacity: 0, y: 40 }}
|
| 16 |
+
whileInView={{ opacity: 1, y: 0 }}
|
| 17 |
+
viewport={{ once: true }}
|
| 18 |
+
>
|
| 19 |
+
<div className="w-20 h-20 mx-auto mb-8 rounded-2xl bg-gradient-to-br from-blue-500 to-purple-600 flex items-center justify-center shadow-2xl shadow-purple-500/30">
|
| 20 |
+
<Mail className="w-10 h-10 text-white" />
|
| 21 |
+
</div>
|
| 22 |
+
|
| 23 |
+
<h2 className="text-3xl md:text-4xl font-bold text-white mb-6">
|
| 24 |
+
Join Our <span className="text-transparent bg-clip-text bg-gradient-to-r from-blue-400 to-purple-400">AI Community</span>
|
| 25 |
+
</h2>
|
| 26 |
+
|
| 27 |
+
<p className="text-xl text-slate-400 mb-10 max-w-2xl mx-auto">
|
| 28 |
+
Subscribe to get the latest AI innovations, 3D scrolling tutorials, and exclusive updates directly to your inbox.
|
| 29 |
+
</p>
|
| 30 |
+
|
| 31 |
+
<form className="max-w-md mx-auto space-y-4">
|
| 32 |
+
<div className="relative">
|
| 33 |
+
<input
|
| 34 |
+
type="email"
|
| 35 |
+
placeholder="Enter your email address"
|
| 36 |
+
className="w-full px-6 py-4 bg-slate-900/50 border border-slate-700 rounded-xl text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:border-transparent transition-all duration-200"
|
| 37 |
+
/>
|
| 38 |
+
<button
|
| 39 |
+
type="submit"
|
| 40 |
+
className="absolute right-2 top-2 bottom-2 bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 text-white px-6 rounded-lg font-medium transition-all duration-200"
|
| 41 |
+
>
|
| 42 |
+
Subscribe
|
| 43 |
+
</button>
|
| 44 |
+
</div>
|
| 45 |
+
<p className="text-sm text-slate-500">
|
| 46 |
+
We respect your privacy. Unsubscribe at any time.
|
| 47 |
+
</p>
|
| 48 |
+
</form>
|
| 49 |
+
</motion.div>
|
| 50 |
+
</div>
|
| 51 |
+
</section>
|
| 52 |
+
);
|
| 53 |
+
}
|