This commit is contained in:
amirhosein.ashourloo
2026-08-19 17:54:11 +03:30
parent b065fac757
commit 149b77f734
80 changed files with 3015 additions and 92 deletions
+24
View File
@@ -0,0 +1,24 @@
import type { StaticImageSlot } from "@/lib/types";
export default function FullBanner({ slot }: { slot?: StaticImageSlot }) {
const img = slot?.images[0];
const aspectStyle = slot?.aspectRatio ? { aspectRatio: slot.aspectRatio } : undefined;
const src = img?.url ?? "/images/banners/full-banner.svg";
const href = img?.linkUrl ?? "#";
return (
<section className="boxed py-2 md:py-4">
<a href={href} className="block overflow-hidden rounded-lg border border-line">
<img
src={src}
alt=""
style={aspectStyle}
className={`w-full object-cover ${
aspectStyle ? "" : "aspect-[16/5] md:aspect-[16/4]"
}`}
/>
</a>
</section>
);
}