50 lines
1.7 KiB
TypeScript
50 lines
1.7 KiB
TypeScript
import { cn } from "@/lib/utils";
|
|
|
|
interface Cta11Props {
|
|
heading?: string;
|
|
description?: string;
|
|
imageSrc?: string;
|
|
imageAlt?: string;
|
|
buttonText?: string;
|
|
buttonHref?: string;
|
|
className?: string;
|
|
}
|
|
|
|
const Cta11 = ({
|
|
heading = "همین امروز شروع کنید",
|
|
description = "با استفاده از ابزارها و قابلیتهای آماده، زمان توسعه را کاهش دهید، کیفیت محصول را افزایش دهید و سریعتر به بازار برسید.",
|
|
imageSrc = "/block-media/shadcnblocks/block/placeholder-dark-1.svg",
|
|
imageAlt = "تصویر معرفی محصول",
|
|
className,
|
|
}: Cta11Props) => {
|
|
return (
|
|
<section dir="rtl" lang="fa" className={cn("py-32", className)}>
|
|
<div className="container">
|
|
<div className="flex w-full flex-col gap-16 overflow-hidden rounded-lg bg-accent p-8 md:rounded-xl lg:flex-row lg:items-center lg:p-12">
|
|
<div className="flex-1 text-start">
|
|
<h3 className="mb-3 text-xl font-semibold md:mb-4 md:text-xl lg:mb-6">
|
|
{heading}
|
|
</h3>
|
|
<p className="max-w-xl text-muted-foreground lg:text-lg">
|
|
{description}
|
|
</p>
|
|
</div>
|
|
<div className="shrink-0">
|
|
<div className="flex flex-col justify-center gap-4 sm:flex-row sm:items-center">
|
|
<div className="relative h-32 w-32 overflow-hidden rounded-lg sm:h-40 sm:w-40">
|
|
<img
|
|
src={imageSrc}
|
|
alt={imageAlt}
|
|
className="size-full object-cover"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
);
|
|
};
|
|
|
|
export { Cta11 };
|