Merge branch 'codex/immich-redaktionsportal' into main

This commit is contained in:
Leon Tonhäuser committed 2026-08-11 11:19:30 +02:00
commit 64147a3282
13 files changed
+909 -106

No files matched your search

+18 -26
View File
@@ -1,31 +1,23 @@
import * as React from "react"
import { cn } from "@/lib/utils"
import React from "react";
export interface PageHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
kicker?: React.ReactNode;
title: React.ReactNode;
description?: React.ReactNode;
titleId?: string;
}
type PageHeaderProps = {
kicker: string;
title: string;
description?: string;
};
export function PageHeader({
className,
kicker,
title,
description,
titleId,
children,
...props
}: PageHeaderProps) {
export function PageHeader({ kicker, title, description }: PageHeaderProps) {
return (
<header className={cn("mb-8", className)} {...props}>
{kicker && <p className="editorial-kicker">{kicker}</p>}
<div className="editorial-title-row">
<h1 id={titleId}>{title}</h1>
{description && <p>{description}</p>}
{children}
<div className="editorial-section">
<p className="editorial-kicker text-sm font-semibold text-muted-foreground tracking-widest uppercase mb-2">{kicker}</p>
<div className="editorial-title-row mb-6">
<h1 className="text-4xl font-bold tracking-tight text-foreground">{title}</h1>
</div>
</header>
)
{description && (
<p className="text-lg text-muted-foreground max-w-3xl mb-8">
{description}
</p>
)}
</div>
);
}