Files
buzz-sheet/components/public/guide-export-branding.tsx
T
gunshiz e66b5a3a0d
CI / Verify (push) Successful in 1m15s
CI / Build immutable images and deploy (push) Successful in 4m53s
feat : excel in website
2026-09-05 15:04:14 +07:00

38 lines
991 B
TypeScript

import Image from "next/image";
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="/icon/Watermark.png"
alt=""
width={constellation ? 280 : 180}
height={constellation ? 158 : 101}
loading="eager"
className={
constellation
? "absolute right-4 bottom-0 z-30 h-auto w-[280px] object-contain drop-shadow-[0_4px_3px_rgba(0,0,0,0.8)]"
: "absolute top-4 right-4 z-30 h-auto w-[180px] object-contain drop-shadow-[0_4px_3px_rgba(0,0,0,0.8)]"
}
/>
</>
);
}