|
| 1 | +'use client' |
| 2 | + |
| 3 | +import { motion } from 'framer-motion' |
| 4 | +import { Card } from '@/components/ui/card' |
| 5 | +import { IconBrain, IconRobot, IconSparkles, IconMessageDots, } from '@tabler/icons-react' |
| 6 | + |
| 7 | +interface Feature { |
| 8 | + title: string |
| 9 | + description: string |
| 10 | + icon: React.ReactNode |
| 11 | + className?: string |
| 12 | + glowColor?: string |
| 13 | +} |
| 14 | + |
| 15 | +const features: Feature[] = [ |
| 16 | + { |
| 17 | + title: 'AI Assistant', |
| 18 | + description: 'Get intelligent responses powered by advanced language models', |
| 19 | + icon: <IconBrain className="h-6 w-6" />, |
| 20 | + className: 'md:col-span-2', |
| 21 | + glowColor: 'from-violet-500/20 via-transparent', |
| 22 | + }, |
| 23 | + { |
| 24 | + title: 'Smart Automation', |
| 25 | + description: 'Automate your workflow with AI-powered tools', |
| 26 | + icon: <IconRobot className="h-6 w-6" />, |
| 27 | + className: 'md:col-span-1', |
| 28 | + glowColor: 'from-pink-500/20 via-transparent', |
| 29 | + }, |
| 30 | + { |
| 31 | + title: 'Magic Generation', |
| 32 | + description: 'Generate creative content with a single click', |
| 33 | + icon: <IconRobot/>, |
| 34 | + className: 'md:col-span-1 md:row-span-2', |
| 35 | + glowColor: 'from-blue-500/20 via-transparent', |
| 36 | + }, |
| 37 | + { |
| 38 | + title: 'Interactive Chat', |
| 39 | + description: 'Engage in natural conversations with AI', |
| 40 | + icon: <IconMessageDots className="h-6 w-6" />, |
| 41 | + className: 'md:col-span-2', |
| 42 | + glowColor: 'from-emerald-500/20 via-transparent', |
| 43 | + }, |
| 44 | +] |
| 45 | + |
| 46 | +export default function Component() { |
| 47 | + return ( |
| 48 | + <div className="min-h-screen bg-black text-white p-8"> |
| 49 | + {/* Dotted background pattern */} |
| 50 | + <div |
| 51 | + className="absolute inset-0 opacity-50" |
| 52 | + style={{ |
| 53 | + backgroundImage: 'radial-gradient(circle at 1px 1px, rgb(55 65 81) 1px, transparent 0)', |
| 54 | + backgroundSize: '32px 32px', |
| 55 | + }} |
| 56 | + /> |
| 57 | + |
| 58 | + <div className="relative max-w-6xl mx-auto"> |
| 59 | + <div className="text-center mb-12"> |
| 60 | + <motion.h1 |
| 61 | + className="text-4xl md:text-5xl font-bold mb-4 bg-clip-text text-transparent bg-gradient-to-r from-violet-400 to-pink-400" |
| 62 | + initial={{ opacity: 0, y: 20 }} |
| 63 | + animate={{ opacity: 1, y: 0 }} |
| 64 | + transition={{ duration: 0.5 }} |
| 65 | + > |
| 66 | + AI-Powered Features |
| 67 | + </motion.h1> |
| 68 | + <motion.p |
| 69 | + className="text-gray-400 text-lg" |
| 70 | + initial={{ opacity: 0, y: 20 }} |
| 71 | + animate={{ opacity: 1, y: 0 }} |
| 72 | + transition={{ duration: 0.5, delay: 0.2 }} |
| 73 | + > |
| 74 | + Experience the future of automation with our cutting-edge AI tools |
| 75 | + </motion.p> |
| 76 | + </div> |
| 77 | + |
| 78 | + <div className="grid grid-cols-1 md:grid-cols-4 gap-4 relative"> |
| 79 | + {features.map((feature, index) => ( |
| 80 | + <motion.div |
| 81 | + key={feature.title} |
| 82 | + className={feature.className} |
| 83 | + initial={{ opacity: 0, y: 20 }} |
| 84 | + animate={{ opacity: 1, y: 0 }} |
| 85 | + transition={{ duration: 0.5, delay: index * 0.1 }} |
| 86 | + > |
| 87 | + <Card className="relative h-full overflow-hidden bg-gray-900/50 backdrop-blur-sm border-gray-800 hover:border-gray-700 transition-colors group"> |
| 88 | + {/* Glow effect */} |
| 89 | + <div |
| 90 | + className={`absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-500 bg-gradient-to-br ${feature.glowColor}`} |
| 91 | + style={{ filter: 'blur(30px)' }} |
| 92 | + /> |
| 93 | + |
| 94 | + <div className="relative p-6 h-full"> |
| 95 | + <div className="flex items-center gap-3 mb-4"> |
| 96 | + <div className="p-2 rounded-lg bg-gray-800/50"> |
| 97 | + {feature.icon} |
| 98 | + </div> |
| 99 | + <h3 className="text-xl font-semibold">{feature.title}</h3> |
| 100 | + </div> |
| 101 | + <p className="text-gray-400">{feature.description}</p> |
| 102 | + |
| 103 | + {/* Interactive dots pattern */} |
| 104 | + <div className="absolute bottom-0 right-0 p-4 opacity-30"> |
| 105 | + <div className="grid grid-cols-3 gap-1"> |
| 106 | + {[...Array(9)].map((_, i) => ( |
| 107 | + <div |
| 108 | + key={i} |
| 109 | + className="w-1 h-1 rounded-full bg-white group-hover:bg-current transition-colors" |
| 110 | + /> |
| 111 | + ))} |
| 112 | + </div> |
| 113 | + </div> |
| 114 | + </div> |
| 115 | + </Card> |
| 116 | + </motion.div> |
| 117 | + ))} |
| 118 | + </div> |
| 119 | + </div> |
| 120 | + </div> |
| 121 | + ) |
| 122 | +} |
0 commit comments