Spaces:
Sleeping
Sleeping
Download src/app/gallery/page.tsx from veltrixcode/Iot: direct link, hf CLI and curl.
- Browser
- Download file 2.48 kB
-
https://huggingface.co/spaces/veltrixcode/Iot/resolve/main/src/app/gallery/page.tsx
- Command line
-
hf download hf://spaces/veltrixcode/Iot/src/app/gallery/page.tsx
-
curl -L -o page.tsx https://huggingface.co/spaces/veltrixcode/Iot/resolve/main/src/app/gallery/page.tsx
2.48 kB
| 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> | |
| ) | |
| } | |