some edit
This commit is contained in:
+77
-41
@@ -8,21 +8,33 @@ import {
|
||||
Share2,
|
||||
Sparkles,
|
||||
Video,
|
||||
type LucideIcon,
|
||||
} from "lucide-react";
|
||||
|
||||
import { Marquee } from "@/components/ui/marquee";
|
||||
import {
|
||||
Marquee,
|
||||
MarqueeContent,
|
||||
MarqueeFade,
|
||||
MarqueeItem,
|
||||
} from "@/components/kibo-ui/marquee";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
const integrations = [
|
||||
const integrations: {
|
||||
name: string;
|
||||
description: string;
|
||||
icon: LucideIcon;
|
||||
}[] = [
|
||||
{
|
||||
name: "ذخیرهسازی",
|
||||
description: "فایلهای ویدیویی خود را بهصورت امن در فضای ذخیرهسازی دلخواه مدیریت کنید.",
|
||||
description:
|
||||
"فایلهای ویدیویی خود را بهصورت امن در فضای ذخیرهسازی دلخواه مدیریت کنید.",
|
||||
icon: Cloud,
|
||||
},
|
||||
{
|
||||
name: "هوش مصنوعی",
|
||||
description: "با کمک هوش مصنوعی، تولید محتوای ویدیویی و تصویری را سرعت دهید.",
|
||||
description:
|
||||
"با کمک هوش مصنوعی، تولید محتوای ویدیویی و تصویری را سرعت دهید.",
|
||||
icon: Sparkles,
|
||||
},
|
||||
{
|
||||
@@ -37,7 +49,8 @@ const integrations = [
|
||||
},
|
||||
{
|
||||
name: "شبکههای اجتماعی",
|
||||
description: "ویدیوهای خود را تنها با چند کلیک در شبکههای اجتماعی منتشر کنید.",
|
||||
description:
|
||||
"ویدیوهای خود را تنها با چند کلیک در شبکههای اجتماعی منتشر کنید.",
|
||||
icon: Share2,
|
||||
},
|
||||
{
|
||||
@@ -47,6 +60,27 @@ const integrations = [
|
||||
},
|
||||
];
|
||||
|
||||
function IntegrationCard({
|
||||
name,
|
||||
description,
|
||||
icon: Icon,
|
||||
}: (typeof integrations)[number]) {
|
||||
return (
|
||||
<div
|
||||
dir="rtl"
|
||||
className="flex h-28 w-72 shrink-0 gap-2 rounded-lg border border-border p-4 text-right dark:bg-muted"
|
||||
>
|
||||
<Icon className="mt-0.5 size-4 shrink-0" />
|
||||
<div className="flex min-w-0 flex-1 flex-col gap-2">
|
||||
<p className="text-sm font-medium">{name}</p>
|
||||
<p className="line-clamp-3 text-sm text-muted-foreground">
|
||||
{description}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
interface Hero40Props {
|
||||
className?: string;
|
||||
}
|
||||
@@ -59,10 +93,11 @@ const Hero40 = ({ className }: Hero40Props) => {
|
||||
<div className="flex flex-col gap-6">
|
||||
<h1 className="text-2xll font-bold">
|
||||
همه ابزارهای موردنیاز خود را یکپارچه کنید
|
||||
</h1>
|
||||
</h1>
|
||||
<p className="text-lg text-muted-foreground">
|
||||
تمام سرویسها و ابزارهای کاری خود را به یکدیگر متصل کنید و فرایند تولید و انتشار محتوا را سادهتر کنید.
|
||||
</p>
|
||||
تمام سرویسها و ابزارهای کاری خود را به یکدیگر متصل کنید و فرایند
|
||||
تولید و انتشار محتوا را سادهتر کنید.
|
||||
</p>
|
||||
<div className="flex gap-4">
|
||||
<Button variant="outline" size="lg">
|
||||
<span>مشاهده دمو</span>
|
||||
@@ -100,41 +135,42 @@ const Hero40 = ({ className }: Hero40Props) => {
|
||||
alt="تصویر نمونه"
|
||||
className="aspect-video w-full rounded-lg border border-border object-cover"
|
||||
/>
|
||||
<div className="relative flex w-full flex-col items-center justify-center overflow-hidden">
|
||||
<Marquee className="[--duration:30s]">
|
||||
{integrations.map((integration) => (
|
||||
<div
|
||||
key={integration.name}
|
||||
className="flex max-w-72 gap-2 rounded-lg border border-border p-4 dark:bg-muted"
|
||||
>
|
||||
<integration.icon className="mt-0.5 size-4 shrink-0" />
|
||||
<div className="flex flex-col gap-2">
|
||||
<p className="text-sm">{integration.name}</p>
|
||||
<p className="text-sm text-muted-foreground">
|
||||
{integration.description}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
<div
|
||||
dir="rtl"
|
||||
className="relative flex w-full flex-col items-center justify-center gap-4 overflow-hidden"
|
||||
>
|
||||
<Marquee className="w-full">
|
||||
<MarqueeContent
|
||||
direction="right"
|
||||
speed={40}
|
||||
loop={0}
|
||||
autoFill
|
||||
pauseOnHover={false}
|
||||
>
|
||||
{integrations.map((integration) => (
|
||||
<MarqueeItem key={`fwd-${integration.name}`}>
|
||||
<IntegrationCard {...integration} />
|
||||
</MarqueeItem>
|
||||
))}
|
||||
</MarqueeContent>
|
||||
</Marquee>
|
||||
<Marquee reverse className="[--duration:30s]">
|
||||
{integrations.map((integration) => (
|
||||
<div
|
||||
key={integration.name}
|
||||
className="flex max-w-72 gap-2 rounded-lg border border-border p-4 dark:bg-muted"
|
||||
>
|
||||
<integration.icon className="mt-0.5 size-4 shrink-0" />
|
||||
<div className="flex flex-col gap-2">
|
||||
<p className="text-sm">{integration.name}</p>
|
||||
<p className="text-sm text-muted-foreground">
|
||||
{integration.description}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
<Marquee className="w-full">
|
||||
<MarqueeContent
|
||||
direction="right"
|
||||
speed={40}
|
||||
loop={0}
|
||||
autoFill
|
||||
pauseOnHover={false}
|
||||
>
|
||||
{integrations.map((integration) => (
|
||||
<MarqueeItem key={`rev-${integration.name}`}>
|
||||
<IntegrationCard {...integration} />
|
||||
</MarqueeItem>
|
||||
))}
|
||||
</MarqueeContent>
|
||||
</Marquee>
|
||||
<div className="pointer-events-none absolute inset-y-0 left-0 w-1/4 bg-gradient-to-r from-background"></div>
|
||||
<div className="pointer-events-none absolute inset-y-0 right-0 w-1/4 bg-gradient-to-l from-background"></div>
|
||||
<MarqueeFade side="left" />
|
||||
<MarqueeFade side="right" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user