retest / src /app /page.tsx
veltrixcode's picture
Upload 75 files
ebde876 verified
Raw History Blame Contribute Delete
13.4 kB
import Link from "next/link"
import { Button } from "@/components/ui/button"
import { Sparkles, Zap, Palette, Shield, ArrowRight, Star } from "lucide-react"
import { getPlatformStats, getFeaturedImages } from "@/lib/data"
import { GalleryMasonry } from "@/components/gallery-masonry"
export const dynamic = "force-dynamic"
export default async function Home() {
const stats = await getPlatformStats()
const featuredImages = await getFeaturedImages(6)
const features = [
{
icon: Zap,
title: "Lightning Fast",
description: "Generate high-quality images in seconds. Our distributed AI infrastructure delivers blazing-fast results globally.",
color: "text-amber-500",
highlight: "< 20s generation"
},
{
icon: Palette,
title: "Open Source Models",
description: "Powered by the best OSS models—Flux, Stable Diffusion, Dreamshaper & more. Community-driven, constantly improving.",
color: "text-blue-500",
highlight: "10+ AI models"
},
{
icon: Shield,
title: "100 Free Daily",
description: "No subscriptions, no hidden fees. Get 100 free credits every day to create up to 20 stunning images.",
color: "text-emerald-500",
highlight: "Forever free"
}
]
return (
<div className="flex flex-col min-h-screen font-sans">
{/* Animated Background */}
{/* Background - Clean Grid */}
<div className="fixed inset-0 -z-10 bg-background">
<div className="absolute inset-0 bg-[linear-gradient(rgba(0,0,0,0.02)_1px,transparent_1px),linear-gradient(90deg,rgba(0,0,0,0.02)_1px,transparent_1px)] dark:bg-[linear-gradient(rgba(255,255,255,0.02)_1px,transparent_1px),linear-gradient(90deg,rgba(255,255,255,0.02)_1px,transparent_1px)] bg-[size:64px_64px]" />
</div>
{/* Hero Section */}
<section className="relative pt-24 pb-16 lg:pt-32 lg:pb-24 overflow-hidden">
<div className="container px-4 md:px-6 relative z-10">
<div className="max-w-5xl mx-auto text-center space-y-8">
{/* Badge */}
<div className="inline-flex items-center gap-2 px-4 py-2 border-2 border-primary bg-primary/5 shadow-[4px_4px_0px_0px_rgba(0,0,0,1)] dark:shadow-[4px_4px_0px_0px_rgba(255,255,255,1)] animate-in fade-in slide-in-from-bottom-4 duration-700">
<Sparkles className="h-4 w-4 text-primary" />
<span className="text-sm font-black uppercase tracking-widest text-primary">
AI-Powered Art Generation
</span>
</div>
{/* Main Heading */}
<h1 className="text-4xl sm:text-5xl md:text-6xl lg:text-7xl font-black tracking-tighter leading-[1.1] animate-in fade-in slide-in-from-bottom-6 duration-700 delay-100 uppercase">
Transform Ideas Into
<br />
<span className="text-primary text-stroke-primary">
Stunning Visuals
</span>
</h1>
{/* Subtitle */}
<p className="mx-auto max-w-2xl text-lg md:text-xl text-muted-foreground font-medium leading-relaxed animate-in fade-in slide-in-from-bottom-8 duration-700 delay-200">
Create professional-quality AI art in seconds. Powered by Flux, Stable Diffusion, and cutting-edge models through our global edge network.
</p>
{/* CTA Buttons */}
<div className="flex flex-col sm:flex-row gap-4 justify-center items-center pt-4 animate-in fade-in slide-in-from-bottom-8 duration-700 delay-300">
<Button
size="lg"
className="h-14 px-8 text-lg bg-primary hover:bg-primary/90 text-white font-black uppercase tracking-wider rounded-none border-2 border-primary shadow-[4px_4px_0px_0px_rgba(0,0,0,1)] dark:shadow-[4px_4px_0px_0px_rgba(255,255,255,1)] hover:translate-y-[2px] hover:shadow-[2px_2px_0px_0px_rgba(0,0,0,1)] dark:hover:shadow-[2px_2px_0px_0px_rgba(255,255,255,1)] transition-all group"
asChild
>
<Link href="/create" className="flex items-center gap-2">
Start Creating Free
<ArrowRight className="h-5 w-5 group-hover:translate-x-1 transition-transform" />
</Link>
</Button>
<Button
size="lg"
variant="outline"
className="h-14 px-8 text-lg bg-background hover:bg-accent hover:text-accent-foreground font-black uppercase tracking-wider rounded-none border-2 border-border shadow-[4px_4px_0px_0px_rgba(0,0,0,1)] dark:shadow-[4px_4px_0px_0px_rgba(255,255,255,1)] hover:translate-y-[2px] hover:shadow-[2px_2px_0px_0px_rgba(0,0,0,1)] dark:hover:shadow-[2px_2px_0px_0px_rgba(255,255,255,1)] transition-all"
asChild
>
<Link href="/gallery">View Gallery</Link>
</Button>
</div>
{/* Social Proof with Real Numbers */}
<div className="flex flex-wrap items-center justify-center gap-6 pt-12 text-sm text-foreground animate-in fade-in duration-1000 delay-500">
<div className="flex items-center gap-2 px-4 py-2 border-2 border-border bg-card shadow-[4px_4px_0px_0px_rgba(0,0,0,1)] dark:shadow-[4px_4px_0px_0px_rgba(255,255,255,1)]">
<div className="flex -space-x-2">
{[...Array(4)].map((_, i) => (
<div key={i} className="h-8 w-8 rounded-full bg-primary border-2 border-background flex items-center justify-center text-xs font-bold text-white">
{String.fromCharCode(65 + i)}
</div>
))}
</div>
<span className="font-bold uppercase tracking-tight">{stats.totalArtists}+ Artists</span>
</div>
<div className="flex items-center gap-2 px-4 py-2 border-2 border-border bg-card shadow-[4px_4px_0px_0px_rgba(0,0,0,1)] dark:shadow-[4px_4px_0px_0px_rgba(255,255,255,1)]">
<div className="flex items-center gap-1">
{[...Array(5)].map((_, i) => (
<Star key={i} className="h-4 w-4 fill-primary text-primary" />
))}
</div>
<span className="font-bold uppercase tracking-tight">{stats.averageRating}/5 Rating</span>
</div>
<div className="flex items-center gap-2 px-4 py-2 border-2 border-border bg-card shadow-[4px_4px_0px_0px_rgba(0,0,0,1)] dark:shadow-[4px_4px_0px_0px_rgba(255,255,255,1)]">
<Zap className="h-4 w-4 text-primary" />
<span className="font-bold uppercase tracking-tight">{stats.totalImages}+ Images Created</span>
</div>
</div>
</div>
</div>
</section>
{/* Featured Creations */}
<section className="py-16 lg:py-24 border-t-2 border-border bg-background">
<div className="container px-4 md:px-6">
<div className="text-center mb-12">
<h2 className="text-3xl md:text-5xl font-black tracking-tighter mb-4 uppercase">
Featured <span className="text-primary underline decoration-4 decoration-primary underline-offset-4">Creations</span>
</h2>
<p className="text-muted-foreground max-w-2xl mx-auto font-medium text-lg">
Check out what our community is creating right now.
</p>
</div>
<GalleryMasonry
generations={featuredImages}
className="columns-1 sm:columns-2 lg:columns-3 gap-6 space-y-6"
enableInfiniteScroll={false}
/>
<div className="flex justify-center mt-12">
<Button
variant="outline"
className="h-12 px-8 text-base bg-background hover:bg-accent hover:text-accent-foreground font-black uppercase tracking-wider rounded-none border-2 border-border shadow-[4px_4px_0px_0px_rgba(0,0,0,1)] dark:shadow-[4px_4px_0px_0px_rgba(255,255,255,1)] hover:translate-y-[2px] hover:shadow-[2px_2px_0px_0px_rgba(0,0,0,1)] dark:hover:shadow-[2px_2px_0px_0px_rgba(255,255,255,1)] transition-all"
asChild
>
<Link href="/gallery">Explore Full Gallery</Link>
</Button>
</div>
</div>
</section>
{/* Features Section */}
<section className="py-16 lg:py-24 border-t-2 border-border bg-muted/20">
<div className="container px-4 md:px-6">
<div className="text-center mb-12">
<h2 className="text-3xl md:text-5xl font-black tracking-tighter mb-4 uppercase">
Why Choose <span className="text-primary underline decoration-4 decoration-primary underline-offset-4">Imyra</span>?
</h2>
<p className="text-muted-foreground max-w-2xl mx-auto font-medium text-lg">
Built for creators who demand speed, quality, and freedom.
</p>
</div>
<div className="grid md:grid-cols-3 gap-8 lg:gap-12">
{features.map((feature, index) => (
<div
key={index}
className="group relative p-8 rounded-none border-2 border-border bg-card hover:border-primary transition-all duration-300 shadow-[6px_6px_0px_0px_rgba(0,0,0,1)] dark:shadow-[6px_6px_0px_0px_rgba(255,255,255,1)] hover:translate-x-[2px] hover:translate-y-[2px] hover:shadow-[2px_2px_0px_0px_rgba(0,0,0,1)] dark:hover:shadow-[2px_2px_0px_0px_rgba(255,255,255,1)]"
>
{/* Highlight Badge */}
<div className="absolute top-0 right-0 p-3">
<span className="px-3 py-1 text-xs font-black border-2 border-border bg-white dark:bg-black uppercase tracking-wider">
{feature.highlight}
</span>
</div>
<div className="mb-4">
<feature.icon className={`h-8 w-8 ${feature.color}`} />
</div>
<h3 className="text-xl font-black mb-3 tracking-tight uppercase">{feature.title}</h3>
<p className="text-muted-foreground leading-relaxed font-medium">{feature.description}</p>
</div>
))}
</div>
</div>
</section>
{/* CTA Section */}
<section className="py-16 lg:py-24 border-t-2 border-border">
<div className="container px-4 md:px-6">
<div className="relative overflow-hidden border-2 border-border bg-primary/5 p-8 md:p-10 lg:p-12 shadow-[8px_8px_0px_0px_rgba(0,0,0,1)] dark:shadow-[8px_8px_0px_0px_rgba(255,255,255,1)]">
<div className="relative z-10 text-center max-w-3xl mx-auto space-y-8">
<h1 className="text-4xl md:text-5xl lg:text-5xl font-black tracking-tighter uppercase mb-6">
Create Stunning<br />
<span className="text-primary text-stroke-primary">
AI Art in Seconds
</span>
</h1>
<p className="text-xl text-muted-foreground font-medium">
Join thousands of artists using Imyra. Get 100 free credits daily—no credit card required.
</p>
<Button
size="lg"
className="h-16 px-12 text-xl bg-primary hover:bg-primary/90 text-white font-black uppercase tracking-wider rounded-none border-2 border-primary shadow-[6px_6px_0px_0px_rgba(0,0,0,1)] dark:shadow-[6px_6px_0px_0px_rgba(255,255,255,1)] hover:translate-y-[2px] hover:shadow-[2px_2px_0px_0px_rgba(0,0,0,1)] dark:hover:shadow-[2px_2px_0px_0px_rgba(255,255,255,1)] transition-all"
asChild
>
<Link href="/signup">Get Started Free</Link>
</Button>
</div>
</div>
</div>
</section>
{/* Footer */}
<footer className="border-t-2 border-border py-12 bg-muted/20">
<div className="container px-4 md:px-6">
<div className="flex flex-col md:flex-row justify-between items-center gap-6">
<div className="flex items-center gap-2">
<div className="p-2 border-2 border-border bg-primary text-white shadow-[2px_2px_0px_0px_rgba(0,0,0,1)] dark:shadow-[2px_2px_0px_0px_rgba(255,255,255,1)]">
<Sparkles className="h-6 w-6" />
</div>
<span className="font-black text-xl uppercase tracking-tight">Imyra</span>
</div>
<nav className="flex gap-8 text-sm font-bold uppercase tracking-wider">
<Link href="/" className="hover:text-primary transition-colors hover:underline decoration-2 underline-offset-4">Home</Link>
<Link href="/gallery" className="hover:text-primary transition-colors hover:underline decoration-2 underline-offset-4">Gallery</Link>
<Link href="/create" className="hover:text-primary transition-colors hover:underline decoration-2 underline-offset-4">Create</Link>
<Link href="/about" className="hover:text-primary transition-colors hover:underline decoration-2 underline-offset-4">About</Link>
</nav>
<p className="text-sm font-bold text-muted-foreground">
© {new Date().getFullYear()} Imyra.
</p>
</div>
</div>
</footer>
</div>
)
}