Phase 8: share panel, polish, accessibility and deploy config
- Share links section: scoreboard link, every judged game's judge links and open link with QR codes, and 'Copy all judge links' as plain text for WhatsApp. Warns when links point at localhost. - Error and not-found pages with plain-language copy; a real start page. - Accessibility: darker 'alert strong' red for text and white-on-red (Alert was 4.0:1 on white), no text below 70% ink, 44px block buttons and link targets, scoreboard status stays readable when idle. - vercel.json pins functions to Dublin next to the West EU database; README documents deployment and pre-game-night checks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -3,6 +3,7 @@ import { notFound } from "next/navigation";
|
||||
|
||||
import { EventDetailsForm } from "@/components/admin/event-details-form";
|
||||
import { GamesEditor } from "@/components/admin/games-editor";
|
||||
import { SharePanel } from "@/components/admin/share-panel";
|
||||
import { TeamsEditor } from "@/components/admin/teams-editor";
|
||||
import { buttonClass } from "@/components/ui/button";
|
||||
import { requireAdmin } from "@/lib/auth";
|
||||
@@ -21,7 +22,7 @@ export default async function EventSetupPage(props: PageProps<"/admin/events/[ev
|
||||
return (
|
||||
<div className="mx-auto flex max-w-5xl flex-col gap-8">
|
||||
<div>
|
||||
<Link href="/admin" className="text-sm underline underline-offset-4">
|
||||
<Link href="/admin" className="inline-flex min-h-11 items-center text-sm underline underline-offset-4">
|
||||
← All game nights
|
||||
</Link>
|
||||
<div className="mt-1 flex flex-wrap items-center justify-between gap-3">
|
||||
@@ -59,6 +60,11 @@ export default async function EventSetupPage(props: PageProps<"/admin/events/[ev
|
||||
<h2 className="text-xl font-bold">Games</h2>
|
||||
<GamesEditor eventId={event.id} games={games} />
|
||||
</section>
|
||||
|
||||
<section className="rounded-lg border border-ink/15 bg-white p-4">
|
||||
<h2 className="text-xl font-bold">Share links</h2>
|
||||
<SharePanel scoreboardToken={event.scoreboard_token} games={games} />
|
||||
</section>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user