Seed: music template (13 files)

This commit is contained in:
2026-07-23 22:13:35 +00:00
parent a878710e40
commit 8c9596bb38
+129
View File
@@ -0,0 +1,129 @@
import { toast } from "sonner";
import { Button } from "@/components/ui/button";
import { Card, CardContent } from "@/components/ui/card";
import { Badge } from "@/components/ui/badge";
import { Calendar, MapPin, Ticket, ExternalLink, Map } from "lucide-react";
import { useSaasMutation } from "@/hooks/use-tygarun";
import Header from "@/components/Header";
import Footer from "@/components/Footer";
const upcoming = [
{ date: "Apr 28, 2026", city: "Los Angeles, CA", venue: "The Wiltern", soldOut: false },
{ date: "May 3, 2026", city: "New York, NY", venue: "Brooklyn Steel", soldOut: false },
{ date: "May 10, 2026", city: "Chicago, IL", venue: "Metro Chicago", soldOut: true },
{ date: "May 17, 2026", city: "Austin, TX", venue: "Emos Austin", soldOut: false },
{ date: "May 24, 2026", city: "London, UK", venue: "Electric Brixton", soldOut: false },
{ date: "May 31, 2026", city: "Berlin, DE", venue: "SchwuZ", soldOut: false },
{ date: "Jun 7, 2026", city: "Tokyo, JP", venue: "Shibuya WWW X", soldOut: true },
{ date: "Jun 14, 2026", city: "Toronto, CA", venue: "The Danforth", soldOut: false },
];
const past = [
{ date: "Jan 12, 2026", city: "San Francisco, CA", venue: "The Fillmore" },
{ date: "Dec 15, 2025", city: "Portland, OR", venue: "Crystal Ballroom" },
{ date: "Nov 20, 2025", city: "Seattle, WA", venue: "Neumos" },
];
export default function TourPage() {
const { mutate: buyTicket } = useSaasMutation("event-ticketing", "/checkout");
const handleTickets = async (show: { venue: string; city: string }) => {
try {
const res = await buyTicket({ plan: show.venue, city: show.city });
if (res?.url && res.url !== "#") { window.location.href = res.url; return; }
toast.success(`Tickets reserved for \${show.venue}`);
} catch {
toast.error("Could not start checkout. Please try again.");
}
};
return (
<div className="min-h-screen bg-slate-950 text-white">
<Header />
{/* Hero */}
<section className="pt-32 pb-16 text-center px-6">
<h1 className="text-5xl md:text-6xl font-black tracking-tight mb-4 bg-gradient-to-r from-purple-400 to-fuchsia-400 bg-clip-text text-transparent animate-fade-up">Tour Dates</h1>
<p className="text-slate-400 max-w-xl mx-auto">Catch the Chromatic Abyss world tour live in a city near you.</p>
</section>
{/* Tour Map Placeholder */}
<section className="px-6 pb-12">
<div className="mx-auto max-w-5xl">
<Card className="bg-slate-900/50 border-slate-800 overflow-hidden">
<div className="h-64 bg-gradient-to-br from-slate-900 via-purple-950/30 to-slate-900 flex items-center justify-center relative">
<div className="absolute inset-0 opacity-20">
<div className="absolute top-[20%] left-[15%] w-3 h-3 rounded-full bg-purple-400 animate-pulse" />
<div className="absolute top-[35%] left-[70%] w-3 h-3 rounded-full bg-fuchsia-400 animate-pulse delay-300" />
<div className="absolute top-[60%] left-[40%] w-3 h-3 rounded-full bg-purple-400 animate-pulse delay-500" />
<div className="absolute top-[45%] left-[55%] w-3 h-3 rounded-full bg-fuchsia-400 animate-pulse delay-700" />
<div className="absolute top-[30%] left-[30%] w-3 h-3 rounded-full bg-violet-400 animate-pulse delay-200" />
<div className="absolute top-[70%] left-[60%] w-3 h-3 rounded-full bg-purple-400 animate-pulse delay-1000" />
<div className="absolute top-[25%] left-[50%] w-3 h-3 rounded-full bg-fuchsia-400 animate-pulse delay-400" />
<div className="absolute top-[55%] left-[25%] w-3 h-3 rounded-full bg-violet-400 animate-pulse delay-800" />
</div>
<div className="text-center z-10">
<Map className="h-10 w-10 text-purple-400 mx-auto mb-3" />
<p className="text-slate-400 text-sm">8 cities across North America and Europe</p>
</div>
</div>
</Card>
</div>
</section>
{/* Upcoming Shows */}
<section className="px-6 pb-24">
<div className="mx-auto max-w-4xl">
<h2 className="text-3xl font-bold mb-8 animate-fade-up">Upcoming Shows</h2>
<div className="space-y-4 stagger">
{upcoming.map((show, i) => (
<Card key={i} className="backdrop-blur-sm bg-card/80 border-border/50 hover:border-purple-500/30 transition-all duration-300">
<CardContent className="p-5 flex flex-col md:flex-row md:items-center gap-4">
<div className="flex items-center gap-3 md:w-44 shrink-0">
<Calendar className="h-4 w-4 text-purple-400 shrink-0" />
<span className="text-sm font-medium text-purple-300">{show.date}</span>
</div>
<div className="flex-1">
<div className="font-semibold text-white">{show.city}</div>
<div className="text-sm text-slate-400 flex items-center gap-1"><MapPin className="h-3 w-3" />{show.venue}</div>
</div>
{show.soldOut ? (
<Badge className="bg-red-500/20 text-red-300 border-red-500/30 shrink-0">Sold Out</Badge>
) : (
<Button size="sm" onClick={() => handleTickets(show)} className="bg-purple-600 hover:bg-purple-500 active:scale-[0.98] text-white shrink-0"><Ticket className="h-4 w-4 mr-2" />Tickets</Button>
)}
</CardContent>
</Card>
))}
</div>
</div>
</section>
{/* Past Shows */}
<section className="px-6 pb-24">
<div className="mx-auto max-w-4xl">
<h2 className="text-3xl font-bold mb-8 text-slate-400 animate-fade-up">Past Shows</h2>
<div className="space-y-3">
{past.map((show, i) => (
<Card key={i} className="bg-slate-900/30 border-slate-800/50">
<CardContent className="p-4 flex flex-col md:flex-row md:items-center gap-4 opacity-70">
<div className="flex items-center gap-3 md:w-44 shrink-0">
<Calendar className="h-4 w-4 text-slate-500 shrink-0" />
<span className="text-sm text-slate-500">{show.date}</span>
</div>
<div className="flex-1">
<div className="font-medium text-slate-400">{show.city}</div>
<div className="text-sm text-slate-500 flex items-center gap-1"><MapPin className="h-3 w-3" />{show.venue}</div>
</div>
<Button variant="ghost" size="sm" className="text-purple-400/60 hover:text-purple-400 shrink-0"><ExternalLink className="h-4 w-4 mr-2" />Recap</Button>
</CardContent>
</Card>
))}
</div>
</div>
</section>
<Footer />
</div>
);
}