fix: harden editorial thumbnail authorization

This commit is contained in:
Leon Tonhäuser committed 2026-08-09 22:32:18 +02:00
1 parent 66f0599653
commit 846904f3db
11 files changed
+182 -36

No files matched your search

+7 -4
View File
@@ -5,15 +5,18 @@ type BrandLogoProps = {
};
export function BrandLogo({ variant }: Readonly<BrandLogoProps>) {
const source = variant === "white" ? "/brand/logo-white.png" : "/brand/logo-black.png";
const logo =
variant === "white"
? { source: "/brand/logo-white.png", width: 250, height: 250 }
: { source: "/brand/logo-black.png", width: 1000, height: 1000 };
return (
<img
alt="Leon Tonhäuser Sportfotografie"
className="brand-logo"
height="64"
src={source}
width="250"
height={logo.height}
src={logo.source}
width={logo.width}
/>
);
}