Files
meshkee/src/components/FramedImage.tsx
T
Alireza HassaniandCursor 47bee1ce66 Build Meshkee marketing site with service pages and shared layout.
Add home and service routes (website, app, CMS, SEO, graphic), brand assets, and components aligned with the live meshkee.com design.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-28 10:49:55 +03:30

32 lines
675 B
TypeScript

export function FramedImage({
src,
alt = "",
aspect = "natural",
offset = false,
}: {
src: string;
alt?: string;
aspect?: "square" | "natural";
offset?: boolean;
}) {
return (
<div className="relative mx-auto w-full">
{offset ? (
<div
className="absolute -bottom-3 -left-3 h-[calc(100%-12px)] w-[calc(100%-12px)] rounded-2xl bg-[#EBEDF0]"
aria-hidden
/>
) : null}
<img
src={src}
alt={alt}
className={`relative w-full rounded-2xl ${
aspect === "square"
? "aspect-square object-cover"
: "object-contain"
}`}
/>
</div>
);
}