fix some bug in some blocks
This commit is contained in:
+19
-15
@@ -13,42 +13,42 @@ const IMAGES = [
|
||||
src: "/block-media/shadcnblocks/block/guri3/img11.jpeg",
|
||||
imageAlt: "تحلیل عملکرد کمپین",
|
||||
className:
|
||||
"absolute -start-10 top-1/2 h-52 w-40 -translate-y-1/2 translate-x-full overflow-hidden rounded-2xl",
|
||||
"absolute -start-6 top-1/2 hidden h-40 w-32 -translate-y-1/2 translate-x-3/4 overflow-hidden rounded-2xl sm:block md:-start-10 md:h-52 md:w-40 md:translate-x-full",
|
||||
},
|
||||
{
|
||||
id: "corner-start-top",
|
||||
src: "/block-media/shadcnblocks/block/guri3/img1.jpeg",
|
||||
imageAlt: "نمودار ROI",
|
||||
className:
|
||||
"absolute -top-3 start-10 size-28 -translate-y-full translate-x-full overflow-hidden rounded-2xl",
|
||||
"absolute -top-3 start-6 hidden size-20 -translate-y-3/4 translate-x-1/2 overflow-hidden rounded-2xl sm:block md:start-10 md:size-28 md:-translate-y-full md:translate-x-full",
|
||||
},
|
||||
{
|
||||
id: "corner-start-bottom",
|
||||
src: "/block-media/shadcnblocks/block/guri3/img7.jpeg",
|
||||
imageAlt: "داشبورد بازاریابی دیجیتال",
|
||||
className:
|
||||
"absolute -bottom-3 start-10 size-32 translate-x-full translate-y-full overflow-hidden rounded-2xl",
|
||||
"absolute -bottom-3 start-6 hidden size-24 translate-x-1/2 translate-y-3/4 overflow-hidden rounded-2xl sm:block md:start-10 md:size-32 md:translate-x-full md:translate-y-full",
|
||||
},
|
||||
{
|
||||
id: "side-end-main",
|
||||
src: "/block-media/shadcnblocks/block/guri3/img12.jpeg",
|
||||
imageAlt: "تحلیل عملکرد کمپین",
|
||||
className:
|
||||
"absolute -end-10 top-1/2 h-52 w-45 -translate-x-full -translate-y-1/2 overflow-hidden rounded-2xl",
|
||||
"absolute -end-6 top-1/2 hidden h-40 w-36 -translate-x-3/4 -translate-y-1/2 overflow-hidden rounded-2xl sm:block md:-end-10 md:h-52 md:w-45 md:-translate-x-full",
|
||||
},
|
||||
{
|
||||
id: "corner-end-top",
|
||||
src: "/block-media/shadcnblocks/block/guri3/img13.jpeg",
|
||||
imageAlt: "نمودار ROI",
|
||||
className:
|
||||
"absolute -top-3 end-10 size-28 -translate-x-full -translate-y-full overflow-hidden rounded-2xl",
|
||||
"absolute -top-3 end-6 hidden size-20 -translate-x-1/2 -translate-y-3/4 overflow-hidden rounded-2xl sm:block md:end-10 md:size-28 md:-translate-x-full md:-translate-y-full",
|
||||
},
|
||||
{
|
||||
id: "corner-end-bottom",
|
||||
src: "/block-media/shadcnblocks/block/guri3/img3.jpeg",
|
||||
imageAlt: "داشبورد بازاریابی دیجیتال",
|
||||
className:
|
||||
"absolute -bottom-3 end-10 size-32 -translate-x-full translate-y-full overflow-hidden rounded-2xl",
|
||||
"absolute -bottom-3 end-6 hidden size-24 -translate-x-1/2 translate-y-3/4 overflow-hidden rounded-2xl sm:block md:end-10 md:size-32 md:-translate-x-full md:translate-y-full",
|
||||
},
|
||||
] as const;
|
||||
|
||||
@@ -63,24 +63,28 @@ const Feature283 = ({ className }: Feature283Props) => {
|
||||
<section
|
||||
dir="rtl"
|
||||
lang="fa"
|
||||
className={cn("h-screen overflow-hidden py-32", className)}
|
||||
className={cn(
|
||||
"relative h-svh max-h-[1400px] min-h-[600px] w-full overflow-hidden py-32",
|
||||
className,
|
||||
)}
|
||||
>
|
||||
<div className="container flex h-full w-full flex-col items-center justify-center px-4">
|
||||
<div className="relative flex flex-col items-center justify-center">
|
||||
<h2 className="relative py-2 text-center font-sans text-xl font-semibold tracking-tighter text-balance md:text-2xll">
|
||||
<div className="container flex h-full w-full min-w-0 flex-col items-center justify-center px-4">
|
||||
<div className="relative flex w-full min-w-0 max-w-4xl flex-col items-center justify-center overflow-x-clip px-8 py-16 sm:px-16 sm:py-24">
|
||||
<h2 className="relative z-10 py-2 text-center font-sans text-xl font-semibold tracking-tighter text-balance md:text-2xll">
|
||||
کمپینهایی بسازید که واقعاً تبدیل میشوند
|
||||
</h2>
|
||||
<p className="mx-auto mt-2 max-w-xl px-5 text-center text-pretty text-sm text-muted-foreground/50 md:text-base">
|
||||
<p className="relative z-10 mx-auto mt-2 max-w-xl px-5 text-center text-pretty text-sm text-muted-foreground/50 md:text-base">
|
||||
با سگمنتبندی دقیق، پیام مناسب را به مخاطب مناسب برسانید. داده رفتاری نشان میدهد کدام محتوا بیشترین تأثیر را روی تبدیل دارد.
|
||||
</p>
|
||||
<Button className="mt-10 h-10 gap-2 rounded-xl">
|
||||
<Button className="relative z-10 mt-10 h-auto max-w-full gap-2 rounded-xl whitespace-normal text-balance">
|
||||
گزارش لحظهای هزینه، کلیک و تبدیل به شما کمک میکند بودجه را از کانالهای ضعیف به کانالهای پربازده منتقل کنید.
|
||||
<Forward className="size-4 rtl:rotate-180" />
|
||||
<Forward className="size-4 shrink-0 rtl:rotate-180" />
|
||||
</Button>
|
||||
<div>
|
||||
<div className="pointer-events-none absolute inset-0 sm:pointer-events-auto">
|
||||
{IMAGES.map((image, index) => (
|
||||
<motion.div
|
||||
drag
|
||||
dragConstraints={{ left: -40, right: 40, top: -40, bottom: 40 }}
|
||||
key={image.id}
|
||||
initial={{ y: "50%", opacity: 0, scale: 0.8 }}
|
||||
whileInView={{ y: 0, opacity: 1, scale: 1 }}
|
||||
@@ -103,7 +107,7 @@ const Feature283 = ({ className }: Feature283Props) => {
|
||||
}}
|
||||
onHoverStart={() => setHoveredIndex(index)}
|
||||
onHoverEnd={() => setHoveredIndex(null)}
|
||||
className={image.className}
|
||||
className={cn("pointer-events-auto", image.className)}
|
||||
>
|
||||
<img
|
||||
src={image.src}
|
||||
|
||||
Reference in New Issue
Block a user