- Two-column layout (My Leagues 2/3, Upcoming Events 1/3) with mobile stack - LeagueRow: square avatar, gradient draft highlight, rank/points display, progress bar - MyLeaguesCard, CreateLeagueCard with shared SectionCardHeader - UpcomingEventsCard: vertical timeline with grouped multi-league events - Shared gradient system: BracktGradients SVG defs, GradientIcon wrapper, brand.ts constants - Button default variant updated to green→cyan gradient - Navbar: plain nav links with gradient hover, support/admin icon buttons - Accessibility fixes: semantic h2 headings, aria-label on LeagueAvatar and nav elements - Storybook stories for all new components Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
21 lines
716 B
TypeScript
21 lines
716 B
TypeScript
import { Swords } from "lucide-react";
|
|
import { Link } from "react-router";
|
|
import { Button } from "~/components/ui/button";
|
|
import { Card, CardContent } from "~/components/ui/card";
|
|
import { SectionCardHeader } from "~/components/ui/SectionCardHeader";
|
|
|
|
export function CreateLeagueCard() {
|
|
return (
|
|
<Card className="gap-2">
|
|
<SectionCardHeader icon={Swords} title="Start a New League" />
|
|
<CardContent>
|
|
<p className="text-sm text-muted-foreground mb-4">
|
|
Invite friends, pick your sports, and start drafting.
|
|
</p>
|
|
<Button asChild className="w-full">
|
|
<Link to="/leagues/new">Create a League</Link>
|
|
</Button>
|
|
</CardContent>
|
|
</Card>
|
|
);
|
|
}
|