brackt/app/components/league/CreateLeagueCard.tsx
Chris Parsons 7ebc590764 Responsive league row layout and mobile polish
- League rows stack avatar+name on top, stats full-width below on mobile
- Stats spread to right side on sm+ screens with border separator on mobile
- Tighter padding on mobile (px-3/py-3), full padding on sm+
- Card headers and content use px-3 sm:px-6 to reduce mobile gutters
- Two-column home layout deferred to lg breakpoint (tablet gets stacked)
- Active leagues sorted by completion percentage descending
- Default rank 1 / 0 points for active leagues with no scoring events yet
- Fix ordinal bug for 11th/12th/13th; add aria-labels to rank change indicators
- Remove dead StatDivider className prop

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 14:17:49 -07:00

21 lines
741 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 className="px-3 sm:px-6">
<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>
);
}