Files
buzz-sheet/components/public/guide-export-branding.tsx
gunshiz 801386a8ed
CI / Verify application and manifests (push) Successful in 1m27s
CI / Build immutable images and deploy (push) Failing after 5m58s
feat : overwite buzz.sudloh.com/guide
2026-09-17 21:55:16 +07:00

39 lines
1.1 KiB
TypeScript

import Image from "next/image";
import { withBasePath } from "@/lib/base-path";
export function GuideExportBranding({
backgroundUrl,
variant = "standard",
}: {
backgroundUrl: string;
variant?: "standard" | "constellation";
}) {
const constellation = variant === "constellation";
return (
<>
<Image
src={backgroundUrl}
alt=""
fill
loading="eager"
sizes={constellation ? "1500px" : "1200px"}
className="object-cover"
/>
<div className="absolute inset-0 bg-[#050817]/65" />
<Image
src={withBasePath("/icon/Watermark.png")}
alt=""
width={constellation ? 280 : 180}
height={constellation ? 158 : 101}
loading="eager"
className={
constellation
? "guide-export-watermark absolute right-4 bottom-0 z-30 h-auto w-[280px] object-contain drop-shadow-[0_4px_3px_rgba(0,0,0,0.8)]"
: "guide-export-watermark absolute top-4 right-4 z-30 h-auto w-[180px] object-contain drop-shadow-[0_4px_3px_rgba(0,0,0,0.8)]"
}
/>
</>
);
}