feat: standardizer changes
This commit is contained in:
1 parent
8728308fc6
commit
70ebcc9cd5
13 files changed
+147
-119
No files matched your search
@@ -1,22 +1,13 @@
|
||||
/* eslint-disable @next/next/no-img-element */
|
||||
|
||||
type BrandLogoProps = {
|
||||
variant: "black" | "white";
|
||||
};
|
||||
|
||||
export function BrandLogo({ variant }: Readonly<BrandLogoProps>) {
|
||||
const logo =
|
||||
variant === "white"
|
||||
? { source: "/brand/logo-white.png", width: 250, height: 250 }
|
||||
: { source: "/brand/logo-black.png", width: 1000, height: 1000 };
|
||||
|
||||
export function BrandLogo() {
|
||||
return (
|
||||
<img
|
||||
alt="Leon Tonhäuser Sportfotografie"
|
||||
className="brand-logo"
|
||||
height={logo.height}
|
||||
src={logo.source}
|
||||
width={logo.width}
|
||||
height={250}
|
||||
src="/brand/logo-black.png"
|
||||
width={250}
|
||||
/>
|
||||
);
|
||||
}
|
||||
@@ -32,9 +32,7 @@ export function PortalShell({
|
||||
<header className="sticky top-0 z-50 w-full border-b border-border/40 bg-background/80 backdrop-blur-md transition-colors duration-300">
|
||||
<div className="flex h-16 items-center justify-between px-6 lg:px-12">
|
||||
<Link aria-label={sectionLabel} className="flex items-center gap-2 transition-opacity hover:opacity-80" href={brandHref}>
|
||||
{/* The BrandLogo might need to be theme-aware or we just use white/black depending on theme */}
|
||||
<div className="dark:hidden flex items-center"><BrandLogo variant="black" /></div>
|
||||
<div className="hidden dark:flex items-center"><BrandLogo variant="white" /></div>
|
||||
<div className="flex items-center"><BrandLogo /></div>
|
||||
</Link>
|
||||
<div className="flex items-center gap-6 text-sm font-medium">
|
||||
<span className="hidden md:inline-block text-muted-foreground uppercase tracking-widest text-xs font-bold">{sectionLabel}</span>
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
import * as React from "react"
|
||||
import { cn } from "@/lib/utils"
|
||||
|
||||
export interface PageHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
||||
kicker?: React.ReactNode;
|
||||
title: React.ReactNode;
|
||||
description?: React.ReactNode;
|
||||
titleId?: string;
|
||||
}
|
||||
|
||||
export function PageHeader({
|
||||
className,
|
||||
kicker,
|
||||
title,
|
||||
description,
|
||||
titleId,
|
||||
children,
|
||||
...props
|
||||
}: 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>
|
||||
</header>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user