Polish admin hub pages: drop duplicate headers, align CTAs and empties.

Remove redundant titles under AdminHubChrome, style events/polls create flows with admin chrome + i18n, and standardize empty states / teams form classes.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
simoleo89
2026-07-18 21:28:15 +02:00
co-authored by Cursor
parent 0582eed5ab
commit 3cb8b92cb3
14 changed files with 112 additions and 105 deletions
+8 -2
View File
@@ -1,3 +1,4 @@
import { getTranslations } from "next-intl/server";
import { redirect } from "next/navigation";
import { canAccess, getAdminContext, PERMS } from "@/lib/permissions";
import { prisma } from "@/lib/prisma";
@@ -9,6 +10,7 @@ export default async function CreateEventPage() {
redirect("/admin/events");
}
const t = await getTranslations("pages.admin.events");
const eventTypes = await prisma.websiteEventType.findMany({
where: { isActive: 1 },
orderBy: { name: "asc" },
@@ -17,8 +19,12 @@ export default async function CreateEventPage() {
return (
<div className="space-y-6">
<div>
<h1 className="text-3xl font-bold tracking-tight">Create Event</h1>
<p className="text-muted-foreground">Schedule a new hotel event</p>
<h1 className="m-0 text-2xl font-extrabold text-[var(--admin-text)]">
{t("createTitle")}
</h1>
<p className="m-0 mt-1 text-sm text-[var(--admin-text-muted)]">
{t("createSubtitle")}
</p>
</div>
<EventForm eventTypes={eventTypes} />