| 1 | import { Card, CardContent } from "@/components/ui/card"; |
| 2 | import { Badge } |
| 3 | import { icons, DEFAULT_ICON_INDEX |
| 4 | |
| 5 | export function IconShowcase() |
| 6 | return ( |
| 7 | <section |
| 8 | id="icons" |
| 9 | className="container mx-auto px-4 sm:px-6 lg:px-8 py-20" |
| 10 | > |
| 11 | <div className="max-w-6xl mx-auto |
| 12 | <div className="text-center mb-16 |
| 13 | <h2 className="text-3xl sm:text-4xl font-bold mb-4 |
| 14 | Choose Your App Icon |
| 15 | </h2> |
| 16 | <p className="text-lg text-muted-foreground max-w-2xl mx-auto |
| 17 | Customize Aero to match your style. Choose from 12 beautiful app |
| 18 | icons. |
| 19 | </p> |
| 20 | </div> |
| 21 | <div className="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-6 |
| 22 | {icons.map(( |
| 23 | const isDefault = |
| 24 | return ( |
| 25 | <Card |
| 26 | key={index} |
| 27 | className="group cursor-pointer hover:border-primary transition-all hover:shadow-lg relative" |
| 28 | > |
| 29 | {isDefault && ( |
| 30 | <Badge |
| 31 | className="absolute top-2 right-2 z-10 text-xs" |
| 32 | variant="default" |
| 33 | > |
| 34 | Default |
| 35 | </Badge> |
| 36 | )} |
| 37 | <CardContent className=" |
| 38 | <div className="w-24 h-24 rounded-2xl bg-transparent flex items-center justify-center mb-3 group-hover:scale-110 transition-transform |
| 39 | <img |
| 40 | src={`/icons/${icon |
| 41 | alt={`Aero icon ${index |
| 42 | className="w-20 h-20 rounded-xl object-contain" |
| 43 | /> |
| 44 | </div> |
| 45 | <Badge variant=" |
| 46 | Icon {index + 1} |
| 47 | </Badge> |
| 48 | </CardContent> |
| 49 | </Card> |
| 50 | ); |
| 51 | })} |
| 52 | </div> |
| 53 | </div> |
| 54 | </section> |
| 55 | ); |
| 56 | } |
| 57 | |