feat: add branded editorial photo catalog

This commit is contained in:
Leon Tonhäuser committed 2026-08-09 22:22:31 +02:00
1 parent f6e6018cc1
commit 66f0599653
20 files changed
+1299 -36

No files matched your search

+31 -33
View File
@@ -1,12 +1,12 @@
import { eq } from "drizzle-orm";
import { headers } from "next/headers";
import { db } from "@/db/client";
import { billingAddressVersions, editorialAccounts } from "@/db/schema";
import { requireActiveEditorial } from "@/modules/auth/principal";
import { requireEditorial } from "../access";
export default async function EditorialProfilePage() {
const principal = await requireActiveEditorial(new Headers(await headers()));
const principal = await requireEditorial();
const [editorial] = await db
.select({
name: editorialAccounts.name,
@@ -27,35 +27,33 @@ export default async function EditorialProfilePage() {
.limit(1);
return (
<main className="portal-shell">
<section className="content-section" aria-labelledby="profile-title">
<p className="eyebrow">Redaktionskonto</p>
<h1 id="profile-title">Profil</h1>
<dl>
<dt>Redaktion</dt>
<dd>{editorial?.name}</dd>
<dt>Ansprechperson</dt>
<dd>{editorial?.contactName}</dd>
<dt>Anmelde-E-Mail</dt>
<dd>{editorial?.loginEmail}</dd>
<dt>Rechnungsadresse</dt>
<dd>
{editorial?.addressLine1 ? (
<address>
{editorial.addressLine1}
{editorial.addressLine2 ? <br /> : null}
{editorial.addressLine2}
<br />
{editorial.postalCode} {editorial.city}
<br />
{editorial.countryCode}
</address>
) : (
"Keine Rechnungsadresse hinterlegt."
)}
</dd>
</dl>
</section>
</main>
<section className="editorial-section" aria-labelledby="profile-title">
<p className="eyebrow">Redaktionskonto</p>
<h1 id="profile-title">Profil</h1>
<dl>
<dt>Redaktion</dt>
<dd>{editorial?.name}</dd>
<dt>Ansprechperson</dt>
<dd>{editorial?.contactName}</dd>
<dt>Anmelde-E-Mail</dt>
<dd>{editorial?.loginEmail}</dd>
<dt>Rechnungsadresse</dt>
<dd>
{editorial?.addressLine1 ? (
<address>
{editorial.addressLine1}
{editorial.addressLine2 ? <br /> : null}
{editorial.addressLine2}
<br />
{editorial.postalCode} {editorial.city}
<br />
{editorial.countryCode}
</address>
) : (
"Keine Rechnungsadresse hinterlegt."
)}
</dd>
</dl>
</section>
);
}