39 lines
1.2 KiB
TypeScript
39 lines
1.2 KiB
TypeScript
import Link from "next/link"
|
|
|
|
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"
|
|
import { Button } from "@/components/ui/button"
|
|
import {
|
|
Card,
|
|
CardContent,
|
|
CardDescription,
|
|
CardHeader,
|
|
CardTitle,
|
|
} from "@/components/ui/card"
|
|
|
|
export default function AuthErrorPage() {
|
|
return (
|
|
<main className="flex min-h-screen items-center justify-center bg-muted px-6 py-12">
|
|
<Card className="w-full max-w-md">
|
|
<CardHeader>
|
|
<CardTitle>Access denied</CardTitle>
|
|
<CardDescription>
|
|
This Google account is not allowed to access the wedding admin portal.
|
|
</CardDescription>
|
|
</CardHeader>
|
|
<CardContent className="space-y-6">
|
|
<Alert variant="destructive">
|
|
<AlertTitle>Unauthorized account</AlertTitle>
|
|
<AlertDescription>
|
|
Ask the site owners to add your email to the admin allowlist if this
|
|
is unexpected.
|
|
</AlertDescription>
|
|
</Alert>
|
|
<Button asChild variant="outline" className="w-full">
|
|
<Link href="/sign-in">Try another Google account</Link>
|
|
</Button>
|
|
</CardContent>
|
|
</Card>
|
|
</main>
|
|
)
|
|
}
|