Spaces:
Paused
Paused
File size: 2,477 Bytes
ebde876 | 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 | import { getPublicGenerations } from "@/lib/data"
import { GalleryMasonry } from "@/components/gallery-masonry"
import { Button } from "@/components/ui/button"
import Link from "next/link"
import { Sparkles, ArrowRight } from "lucide-react"
export const dynamic = "force-dynamic"
export default async function GalleryPage() {
const generations = await getPublicGenerations()
return (
<div className="min-h-screen bg-background font-sans selection:bg-primary selection:text-white">
{/* Background */}
<div className="fixed inset-0 -z-10 bg-background">
<div className="absolute inset-0 bg-[linear-gradient(rgba(255,255,255,.02)_1px,transparent_1px),linear-gradient(90deg,rgba(255,255,255,.02)_1px,transparent_1px)] bg-[size:64px_64px]" />
</div>
<div className="container px-4 md:px-6 py-24 lg:py-32">
<div className="flex flex-col md:flex-row justify-between items-end gap-6 mb-12 border-b-2 border-border pb-6">
<div className="space-y-4">
<div className="inline-flex items-center gap-2 px-3 py-1 rounded-full bg-primary/10 border border-primary/30">
<Sparkles className="h-3 w-3 text-primary" />
<span className="text-xs font-bold uppercase tracking-widest text-primary">Community Showcase</span>
</div>
<h1 className="text-4xl md:text-5xl lg:text-6xl font-black tracking-tighter uppercase">
The <span className="text-primary">Gallery</span>
</h1>
<p className="text-muted-foreground font-medium max-w-xl text-lg">
Explore the wildest creations from our global community. <br />
Infinite imagination in every pixel.
</p>
</div>
<Button size="lg" className="neo-brutalist bg-primary text-white font-bold tracking-wide group" asChild>
<Link href="/create" className="flex items-center gap-2">
Submit Your Art <ArrowRight className="h-5 w-5 group-hover:translate-x-1 transition-transform" />
</Link>
</Button>
</div>
<GalleryMasonry generations={generations} />
</div>
</div>
)
}
|