first project version mrDecor
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
|
||||
interface Cta10Props {
|
||||
heading: string;
|
||||
description: string;
|
||||
buttons?: {
|
||||
primary?: {
|
||||
text: string;
|
||||
url: string;
|
||||
};
|
||||
secondary?: {
|
||||
text: string;
|
||||
url: string;
|
||||
};
|
||||
};
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Cta10 = ({
|
||||
heading = "Call to Action",
|
||||
description = "Build faster with our collection of pre-built blocks. Speed up your development and ship features in record time.",
|
||||
buttons = {
|
||||
primary: {
|
||||
text: "Buy Now",
|
||||
url: "https://www.shadcnblocks.com",
|
||||
},
|
||||
},
|
||||
className,
|
||||
}: Cta10Props) => {
|
||||
return (
|
||||
<section className={cn("pt-32 pb-40 md:pb-48 lg:pb-56", className)}>
|
||||
<div className="container mx-auto px-4 md:px-6">
|
||||
<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">
|
||||
<h2 className="text-heading-2 mb-3 font-semibold md:mb-4 lg:mb-6">
|
||||
{heading}
|
||||
</h2>
|
||||
<p className="text-body max-w-xl leading-relaxed text-muted-foreground">
|
||||
{description}
|
||||
</p>
|
||||
</div>
|
||||
<div className="flex shrink-0 flex-col gap-2 sm:flex-row">
|
||||
{buttons.secondary && (
|
||||
<Button variant="secondary" asChild size="lg">
|
||||
<a href={buttons.secondary.url}>{buttons.secondary.text}</a>
|
||||
</Button>
|
||||
)}
|
||||
{buttons.primary && (
|
||||
<Button asChild variant="primary" size="lg">
|
||||
<a href={buttons.primary.url}>{buttons.primary.text}</a>
|
||||
</Button>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Cta10 };
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
"use client";
|
||||
|
||||
import Link from "next/link";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { useContent } from "@/components/layout/content-provider";
|
||||
|
||||
interface Cta14Props {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Cta14 = ({ className }: Cta14Props) => {
|
||||
const content = useContent();
|
||||
const cta = content.pages.product.abeshdeHamkar.cta14;
|
||||
|
||||
return (
|
||||
<section className={cn("py-32", className)} dir="rtl">
|
||||
<div className="container mx-auto max-w-6xl px-6">
|
||||
<div className="flex min-h-[280px] items-center justify-center rounded-2xl border border-border bg-card shadow-sm">
|
||||
<div className="flex flex-col gap-8 p-4 text-center">
|
||||
<p className="text-body font-medium leading-[var(--line-height-body)] text-foreground">
|
||||
{cta.text}
|
||||
</p>
|
||||
<div className="flex justify-center">
|
||||
<Button asChild size="lg" variant="primary">
|
||||
<Link href="/contact">{cta.button}</Link>
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Cta14 };
|
||||
@@ -0,0 +1,119 @@
|
||||
"use client";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { useContent } from "@/components/layout/content-provider";
|
||||
import Link from "next/link";
|
||||
|
||||
interface Cta17GoldStoreProps {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const CirclesPattern = () => (
|
||||
<svg
|
||||
className="absolute inset-0 size-full"
|
||||
viewBox="0 0 1984 1984"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
preserveAspectRatio="xMidYMid slice"
|
||||
>
|
||||
<rect
|
||||
x="0.5"
|
||||
y="0.5"
|
||||
width="1983"
|
||||
height="1983"
|
||||
rx="991.5"
|
||||
className="fill-muted/30 stroke-border"
|
||||
/>
|
||||
<rect
|
||||
x="100.5"
|
||||
y="100.5"
|
||||
width="1783"
|
||||
height="1783"
|
||||
rx="891.5"
|
||||
className="fill-muted/30 stroke-border"
|
||||
/>
|
||||
<rect
|
||||
x="200.5"
|
||||
y="200.5"
|
||||
width="1583"
|
||||
height="1583"
|
||||
rx="791.5"
|
||||
className="fill-muted/30 stroke-border"
|
||||
/>
|
||||
<rect
|
||||
x="300.5"
|
||||
y="300.5"
|
||||
width="1383"
|
||||
height="1383"
|
||||
rx="691.5"
|
||||
className="fill-muted/30 stroke-border"
|
||||
/>
|
||||
<rect
|
||||
x="400.25"
|
||||
y="400.25"
|
||||
width="1183.5"
|
||||
height="1183.5"
|
||||
rx="591.75"
|
||||
strokeWidth="0.5"
|
||||
className="fill-muted/30 stroke-border"
|
||||
/>
|
||||
<rect
|
||||
x="500.25"
|
||||
y="500.25"
|
||||
width="983.5"
|
||||
height="983.5"
|
||||
rx="491.75"
|
||||
strokeWidth="0.5"
|
||||
className="fill-muted/30 stroke-border"
|
||||
/>
|
||||
<rect
|
||||
x="600.25"
|
||||
y="600.25"
|
||||
width="783.5"
|
||||
height="783.5"
|
||||
rx="391.75"
|
||||
strokeWidth="0.5"
|
||||
className="fill-muted/50 stroke-border"
|
||||
/>
|
||||
<rect
|
||||
x="700.25"
|
||||
y="700.25"
|
||||
width="583.5"
|
||||
height="583.5"
|
||||
rx="291.75"
|
||||
strokeWidth="0.5"
|
||||
className="fill-muted/30 stroke-border"
|
||||
/>
|
||||
</svg>
|
||||
);
|
||||
|
||||
const Cta17GoldStore = ({ className }: Cta17GoldStoreProps) => {
|
||||
const content = useContent();
|
||||
const cta = content.pages.product.forushgahSazTala.cta17;
|
||||
return (
|
||||
<section className={cn("pt-8 md:pt-12 lg:pt-16 pb-24 md:pb-32 lg:pb-40", className)}>
|
||||
<div className="relative flex items-center justify-center overflow-hidden border py-20 text-center md:p-20">
|
||||
<CirclesPattern />
|
||||
<div className="container relative mx-auto max-w-7xl px-6">
|
||||
<div className="mx-auto max-w-3xl" dir="rtl">
|
||||
<h2 className="text-heading-2 mb-4 font-semibold leading-snug text-balance">
|
||||
{cta.heading}
|
||||
</h2>
|
||||
<p className="text-body leading-relaxed text-muted-foreground">
|
||||
{cta.description}
|
||||
</p>
|
||||
<div className="mt-11 flex flex-col justify-center gap-2 sm:flex-row">
|
||||
<Button size="lg" variant="primary" asChild>
|
||||
<Link href="/contact">{cta.button}</Link>
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Cta17GoldStore };
|
||||
@@ -0,0 +1,49 @@
|
||||
"use client";
|
||||
|
||||
import Link from "next/link";
|
||||
import { ArrowRight } from "lucide-react";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
interface Cta6Props {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Cta6 = ({ className }: Cta6Props) => {
|
||||
return (
|
||||
<section className={cn("section-blur-separator relative overflow-hidden py-20 md:py-24 lg:py-28", className)} dir="rtl">
|
||||
<div
|
||||
aria-hidden="true"
|
||||
className="pointer-events-none absolute left-1/2 top-1/2 -z-10 -translate-x-1/2 -translate-y-1/2"
|
||||
>
|
||||
<div className="h-44 w-[24rem] rounded-full bg-primary/10 blur-3xl md:h-52 md:w-[34rem] md:bg-primary/12" />
|
||||
</div>
|
||||
<div className="container mx-auto px-4 md:px-6">
|
||||
<div className="mx-auto max-w-6xl p-6 shadow-sm md:rounded-3xl md:p-10 lg:p-12">
|
||||
<div className="mx-auto max-w-4xl text-center">
|
||||
<p className="mb-3 text-caption font-medium text-primary">ویترین متفاوت، فروش متفاوت</p>
|
||||
<h2 className="text-heading-2 font-semibold text-foreground">
|
||||
برای انتخاب استند و دکور مناسب فروشگاهتان مشاوره بگیرید
|
||||
</h2>
|
||||
<p className="mx-auto mt-4 max-w-2xl text-body text-muted-foreground">
|
||||
کارشناسان مستر دکور با بررسی فضای فروشگاه، نوع محصولات و سبک برند شما، بهترین ترکیب استند و ملزومات ویترین را
|
||||
پیشنهاد می دهند تا مشتری در نگاه اول کیفیت شما را حس کند.
|
||||
</p>
|
||||
|
||||
<div className="mt-8 flex flex-col items-center justify-center gap-3 sm:flex-row sm:gap-4">
|
||||
<Button asChild size="lg" variant="primary" className="w-full sm:w-auto">
|
||||
<Link href="/consultation">
|
||||
دریافت مشاوره و استعلام قیمت
|
||||
<ArrowRight className="ms-2 size-4" />
|
||||
</Link>
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Cta6 };
|
||||
@@ -0,0 +1,40 @@
|
||||
import { Button } from '@/components/ui/button'
|
||||
import { Mail, SendHorizonal } from 'lucide-react'
|
||||
|
||||
export default function CallToAction3() {
|
||||
return (
|
||||
<section className="py-16 md:py-24 lg:py-32">
|
||||
<div className="mx-auto max-w-5xl px-6">
|
||||
<div className="text-center">
|
||||
<h2 className="text-heading-2 text-balance font-semibold">Start Building</h2>
|
||||
<p className="mt-4">Libero sapiente aliquam quibusdam aspernatur.</p>
|
||||
|
||||
<form
|
||||
action=""
|
||||
className="mx-auto mt-10 max-w-sm lg:mt-12">
|
||||
<div className="bg-background has-[input:focus]:ring-muted relative grid grid-cols-[1fr_auto] items-center rounded-[calc(var(--radius)+0.75rem)] border border-border pr-3 shadow-sm has-[input:focus]:ring-2">
|
||||
<Mail className="text-caption pointer-events-none absolute inset-y-0 left-5 my-auto size-5" />
|
||||
|
||||
<input
|
||||
placeholder="Your mail address"
|
||||
className="h-14 w-full bg-transparent pl-12 focus:outline-none"
|
||||
type="email"
|
||||
/>
|
||||
|
||||
<div className="md:pr-1.5 lg:pr-0">
|
||||
<Button variant="primary" aria-label="submit">
|
||||
<span className="hidden md:block">Get Started</span>
|
||||
<SendHorizonal
|
||||
className="relative mx-auto size-5 md:hidden"
|
||||
strokeWidth={2}
|
||||
/>
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
import { Button } from '@/components/ui/button'
|
||||
import Link from 'next/link'
|
||||
|
||||
export default function CallToAction() {
|
||||
return (
|
||||
<section className="py-16">
|
||||
<div className="mx-auto max-w-5xl rounded-3xl border px-6 py-12 md:py-20 lg:py-32">
|
||||
<div className="text-center">
|
||||
<h2 className="text-heading-2 text-balance font-semibold">Start Building</h2>
|
||||
<p className="mt-4">Libero sapiente aliquam quibusdam aspernatur.</p>
|
||||
|
||||
<div className="mt-12 flex flex-wrap justify-center gap-4">
|
||||
<Button asChild size="lg" variant="primary">
|
||||
<Link href="/">
|
||||
<span>Get Started</span>
|
||||
</Link>
|
||||
</Button>
|
||||
<Button asChild size="lg" variant="secondary">
|
||||
<Link href="/consultation">
|
||||
<span>درخواست مشاوره</span>
|
||||
</Link>
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
'use client'
|
||||
|
||||
import { Button } from '@/components/ui/button'
|
||||
import Link from 'next/link'
|
||||
import { useContent } from '@/components/layout/content-provider'
|
||||
|
||||
export default function CtaHome() {
|
||||
const content = useContent()
|
||||
const { ctaHome } = content.pages.home
|
||||
|
||||
return (
|
||||
<section id="mozakerat" className="py-12 md:py-16 lg:py-20 border-t border-border/50">
|
||||
<div className="mx-auto max-w-5xl rounded-3xl border border-border bg-card px-6 py-10 md:py-16 lg:py-20 dark:border-primary/20 dark:bg-card/50 hover:border-primary/30 dark:hover:border-primary/30 transition-colors">
|
||||
<div className="text-center">
|
||||
<h2 className="text-heading-2 text-balance font-semibold">{ctaHome.heading}</h2>
|
||||
<p className="text-body mt-4 leading-relaxed text-muted-foreground">{ctaHome.description}</p>
|
||||
|
||||
<div className="mt-12 flex flex-wrap justify-center gap-4">
|
||||
<Button asChild size="lg" variant="primary">
|
||||
<Link href="/consultation">
|
||||
<span>{ctaHome.primaryButton}</span>
|
||||
</Link>
|
||||
</Button>
|
||||
<Button asChild size="lg" variant="secondary">
|
||||
<Link href="/consultation">
|
||||
<span>{ctaHome.secondaryButton}</span>
|
||||
</Link>
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
import { cn } from "@/lib/utils";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import Link from "next/link";
|
||||
|
||||
interface CtaProductFinalProps {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export default function CtaProductFinal({ className }: CtaProductFinalProps) {
|
||||
return (
|
||||
<section className={cn("py-16 md:py-24 lg:py-32", className)}>
|
||||
<div className="container mx-auto max-w-4xl px-6">
|
||||
<div className="flex flex-col items-center text-center space-y-8 p-8 rounded-2xl bg-card border border-border shadow-sm">
|
||||
<p className="text-body leading-relaxed text-muted-foreground">
|
||||
اگر حجم معاملات شما بالاست و به دنبال کاهش تماسهای غیرضروری و مدیریت دقیق حسابها هستید،
|
||||
برای دریافت معرفی کامل سامانه با ما در تماس باشید.
|
||||
</p>
|
||||
<Button asChild size="lg" variant="primary">
|
||||
<Link href="/consultation">
|
||||
درخواست جلسه تخصصی
|
||||
</Link>
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { Separator } from "@/components/ui/separator";
|
||||
|
||||
interface CtaProductProps {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const CtaProduct = ({ className }: CtaProductProps) => {
|
||||
return (
|
||||
<section className={cn("py-32", className)}>
|
||||
<div className="container mx-auto">
|
||||
<div>
|
||||
<p className="text-center text-sm">Transform your business today.</p>
|
||||
<div className="mt-4 flex items-center justify-between gap-4">
|
||||
<Separator className="shrink" />
|
||||
<Button size="lg" variant="primary">Get Started</Button>
|
||||
<Separator className="shrink" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { CtaProduct };
|
||||
@@ -0,0 +1,111 @@
|
||||
"use client";
|
||||
|
||||
import {
|
||||
Handshake,
|
||||
Download,
|
||||
GraduationCap,
|
||||
Headphones,
|
||||
RefreshCw,
|
||||
BarChart3,
|
||||
} from "lucide-react";
|
||||
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
const cooperationSteps = [
|
||||
{
|
||||
title: "برگزاری جلسه معرفی و نیازسنجی",
|
||||
description: "شناسایی نیازها و تعیین اهداف همکاری",
|
||||
icon: Handshake,
|
||||
},
|
||||
{
|
||||
title: "نصب نسخه اختصاصی",
|
||||
description: "راهاندازی سامانه متناسب با کسبوکار شما",
|
||||
icon: Download,
|
||||
},
|
||||
{
|
||||
title: "آموزش و راهاندازی",
|
||||
description: "آموزش تیم و راهاندازی عملیاتی",
|
||||
icon: GraduationCap,
|
||||
},
|
||||
{
|
||||
title: "۶ ماه پشتیبانی رایگان",
|
||||
description: "پشتیبانی فنی در ماههای اول همکاری",
|
||||
icon: Headphones,
|
||||
},
|
||||
{
|
||||
title: "ادامه پشتیبانی و توسعه ماهانه",
|
||||
description: "پشتیبانی مستمر و بهروزرسانیهای دورهای",
|
||||
icon: RefreshCw,
|
||||
},
|
||||
{
|
||||
title: "ارزیابی و بهینهسازی مستمر",
|
||||
description: "بررسی عملکرد و پیشنهاد بهبود",
|
||||
icon: BarChart3,
|
||||
},
|
||||
];
|
||||
|
||||
interface Feature104Props {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Feature104 = ({ className }: Feature104Props) => {
|
||||
return (
|
||||
<section
|
||||
className={cn(
|
||||
"overflow-visible border-t border-border/50 bg-background py-10 sm:py-16 md:py-24 lg:py-32",
|
||||
className
|
||||
)}
|
||||
dir="rtl"
|
||||
>
|
||||
<div className="container mx-auto px-4 sm:px-6">
|
||||
<div className="mx-auto max-w-3xl text-center">
|
||||
<Badge
|
||||
variant="outline"
|
||||
className="mb-3 sm:mb-4 border-primary/50 bg-background px-3 py-1 sm:px-4 sm:py-1.5 text-caption font-medium text-foreground"
|
||||
>
|
||||
مسیر همکاری
|
||||
</Badge>
|
||||
<h2 className="text-heading-2 font-semibold leading-[var(--line-height-heading)] tracking-tight text-foreground">
|
||||
فرآیند همکاری
|
||||
</h2>
|
||||
<p className="mt-3 text-body text-muted-foreground sm:mt-4">
|
||||
از اولین تماس تا راهاندازی و پشتیبانی، در هر مرحله همراه شما
|
||||
هستیم تا همکاری با مستر دکور ساده و شفاف باشد.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="mx-auto mt-8 max-w-5xl sm:mt-12">
|
||||
<div className="relative overflow-hidden rounded-lg border border-border bg-card sm:rounded-xl">
|
||||
<img
|
||||
src="https://deifkwefumgah.cloudfront.net/shadcnblocks/block/illustrations/tokyo-letters-and-arrows-flying-out-of-a-black-hole.svg"
|
||||
alt=""
|
||||
className="h-32 w-full scale-x-[-1] object-cover object-center opacity-60 sm:h-40 md:h-48"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="mx-auto mt-10 grid max-w-6xl gap-4 sm:mt-16 sm:gap-6 sm:grid-cols-2 lg:grid-cols-3">
|
||||
{cooperationSteps.map((step, index) => (
|
||||
<div
|
||||
key={index}
|
||||
className="flex flex-col gap-3 rounded-xl border border-border bg-card p-4 shadow-sm transition-colors hover:bg-accent/50 sm:gap-4 sm:p-6"
|
||||
>
|
||||
<div className="flex size-9 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary sm:size-10">
|
||||
<step.icon className="size-5" />
|
||||
</div>
|
||||
<h3 className="text-heading-4 font-semibold leading-tight text-foreground">
|
||||
{step.title}
|
||||
</h3>
|
||||
<p className="text-body-sm text-muted-foreground">
|
||||
{step.description}
|
||||
</p>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Feature104 };
|
||||
@@ -0,0 +1,109 @@
|
||||
"use client";
|
||||
|
||||
import { ArrowLeft } from "lucide-react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
interface Feature188Resource {
|
||||
title: string;
|
||||
description: string;
|
||||
href: string;
|
||||
imageSrc: string;
|
||||
}
|
||||
|
||||
interface Feature188Props {
|
||||
className?: string;
|
||||
title?: string;
|
||||
resources?: Feature188Resource[];
|
||||
}
|
||||
|
||||
const defaultResources: Feature188Resource[] = [
|
||||
{
|
||||
title: "نصب نسخه اختصاصی برای هر مجموعه",
|
||||
description:
|
||||
"هر سازمان نسخهٔ جداگانه و مستقل از سامانه را روی سرور خود دریافت میکند. دادهها کاملاً در اختیار شما میمانند و امنیت و کنترل کامل بر اطلاعات خود دارید.",
|
||||
href: "#",
|
||||
imageSrc:
|
||||
"https://deifkwefumgah.cloudfront.net/shadcnblocks/block/placeholder-8-wide.svg",
|
||||
},
|
||||
{
|
||||
title: "امکان شخصیسازی کامل بر اساس مدل کاری",
|
||||
description:
|
||||
"ماژولها، فیلدها و گردشکارها متناسب با فرایندهای داخلی مجموعهٔ شما تنظیم میشوند. سامانه دقیقاً با نیاز و مدل کاری شما هماهنگ میشود.",
|
||||
href: "#",
|
||||
imageSrc:
|
||||
"https://deifkwefumgah.cloudfront.net/shadcnblocks/block/placeholder-8-wide.svg",
|
||||
},
|
||||
{
|
||||
title: "پشتیبانی مستقیم و توسعه مستمر",
|
||||
description:
|
||||
"تیم فنی ما بهصورت مستقیم پاسخگوی سوالات و مشکلات شماست. امکانات جدید و بهروزرسانیهای امنیتی و عملکردی بهطور منظم ارائه میشود.",
|
||||
href: "#",
|
||||
imageSrc:
|
||||
"https://deifkwefumgah.cloudfront.net/shadcnblocks/block/placeholder-8-wide.svg",
|
||||
},
|
||||
];
|
||||
|
||||
const Feature188 = ({
|
||||
className,
|
||||
title = "چرا این سامانه انتخاب مجموعههای حرفهای است؟",
|
||||
resources = defaultResources,
|
||||
}: Feature188Props) => {
|
||||
return (
|
||||
<section
|
||||
dir="rtl"
|
||||
className={cn(
|
||||
"relative w-full overflow-hidden border-t border-border/50 bg-background py-16 md:py-24 lg:py-32",
|
||||
className,
|
||||
)}
|
||||
>
|
||||
<div className="container mx-auto max-w-5xl px-4 sm:px-6">
|
||||
<h2 className="text-center text-heading-2 font-semibold leading-[var(--line-height-heading)] text-foreground sm:text-heading-2 lg:text-heading-2">
|
||||
{title}
|
||||
</h2>
|
||||
|
||||
<div className="mx-auto mt-10 sm:mt-12 rounded-2xl border border-border bg-background overflow-hidden">
|
||||
{resources.map((resource, index) => (
|
||||
<div
|
||||
key={index}
|
||||
className={cn(
|
||||
index !== resources.length - 1 && "border-b border-border",
|
||||
)}
|
||||
>
|
||||
<a
|
||||
href={resource.href}
|
||||
className="flex flex-col gap-4 p-4 md:flex-row md:items-center md:justify-between md:gap-6 lg:p-6"
|
||||
>
|
||||
<div className="flex min-w-0 flex-1 items-start gap-4 sm:gap-5">
|
||||
<span className="flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-muted p-2 lg:h-14 lg:w-14">
|
||||
<ArrowLeft className="h-5 w-5 text-muted-foreground sm:h-6 sm:w-6" />
|
||||
</span>
|
||||
<div className="min-w-0 flex-1 space-y-1">
|
||||
<h3 className="text-heading-4 font-semibold leading-[var(--line-height-heading)] text-foreground sm:text-heading-3">
|
||||
{resource.title}
|
||||
</h3>
|
||||
<p className="text-body-sm leading-[var(--line-height-body)] text-muted-foreground sm:text-body">
|
||||
{resource.description}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="mt-4 w-full shrink-0 md:mt-0 md:w-52 lg:w-60">
|
||||
<div className="aspect-video w-full overflow-hidden rounded-lg bg-muted">
|
||||
<img
|
||||
src={resource.imageSrc}
|
||||
alt={resource.title}
|
||||
className="h-full w-full object-cover"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Feature188 };
|
||||
@@ -0,0 +1,107 @@
|
||||
"use client";
|
||||
|
||||
import Link from "next/link";
|
||||
import { ArrowRight } from "lucide-react";
|
||||
import React from "react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
|
||||
interface Feature189AbeshdeHamkarProps {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Feature189AbeshdeHamkar = ({ className }: Feature189AbeshdeHamkarProps) => {
|
||||
const features = [
|
||||
{
|
||||
title: "بهرهوری بیشتر",
|
||||
description:
|
||||
"ثبت و پیگیری معاملات آبشده بدون تماسهای مکرر؛ دسترسی لحظهای به مانده و ریز تراکنشها تا روی کار اصلی تمرکز کنید.",
|
||||
},
|
||||
{
|
||||
title: "همکاری و شفافیت",
|
||||
description:
|
||||
"همه طرفین معامله بهصورت شفاف به دادهها دسترسی دارند؛ همکاری بدون ابهام و تسویه بر اساس اعداد واقعی.",
|
||||
},
|
||||
{
|
||||
title: "گزارش و تحلیل",
|
||||
description:
|
||||
"گزارشهای تفصیلی و ابزارهای تحلیلی برای ارزیابی عملکرد و تصمیمگیری بر اساس داده.",
|
||||
},
|
||||
];
|
||||
|
||||
return (
|
||||
<section
|
||||
className={cn(
|
||||
"bg-background py-16 sm:py-24 md:py-28 lg:py-32",
|
||||
className
|
||||
)}
|
||||
dir="rtl"
|
||||
>
|
||||
<div className="container mx-auto max-w-6xl px-4 sm:px-6">
|
||||
<div className="grid items-center gap-10 sm:gap-12 lg:grid-cols-2 lg:gap-16">
|
||||
{/* تصاویر سکشن آبشده همکار */}
|
||||
<div className="relative mb-8 lg:mb-0">
|
||||
<div className="relative -top-8 z-10 mx-auto w-[55%] sm:-top-10 sm:w-[40%] lg:-top-12 lg:w-[35%]">
|
||||
<img
|
||||
alt="Professional Business Collaboration Meeting abshodeh-hamkar"
|
||||
src="/assets/abshode-hamkar/Professional Business Collaboration Meeting abshodeh-hamkar.jpg"
|
||||
className="h-[180px] rounded-xl object-cover shadow-lg sm:h-[260px] lg:h-[280px]"
|
||||
/>
|
||||
</div>
|
||||
<div className="absolute left-0 top-4 z-0 w-[50%] -rotate-12 sm:top-6 sm:w-[35%]">
|
||||
<img
|
||||
alt="Financial Management Productivity Workspace abshodeh-hamkar"
|
||||
src="/assets/abshode-hamkar/Financial Management Productivity Workspace abshodeh-hamkar.jpg"
|
||||
className="h-[160px] rounded-xl object-cover shadow-lg sm:h-[240px] lg:h-[260px]"
|
||||
/>
|
||||
</div>
|
||||
<div className="absolute right-0 top-4 z-20 w-[50%] rotate-12 sm:top-6 sm:w-[35%]">
|
||||
<img
|
||||
alt="Advanced Data Analysis Dashboard Office abshodeh-hamkar"
|
||||
src="/assets/abshode-hamkar/Advanced Data Analysis Dashboard Office abshodeh-hamkar.jpg"
|
||||
className="h-[160px] rounded-xl object-cover shadow-lg sm:h-[240px] lg:h-[260px]"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* محتوا */}
|
||||
<div className="max-w-xl lg:max-w-none lg:mr-auto">
|
||||
<h2 className="text-heading-2 font-semibold leading-[var(--line-height-heading)] tracking-tight text-foreground lg:max-w-[90%]">
|
||||
با ابزارهای حرفهای، کسبوکارتان را متحول کنید
|
||||
</h2>
|
||||
|
||||
<div className="mt-6 grid gap-6 sm:mt-10 sm:gap-8">
|
||||
{features.map((feature) => (
|
||||
<div key={feature.title} className="flex items-start gap-4">
|
||||
<div>
|
||||
<h3 className="text-heading-4 font-semibold leading-[var(--line-height-heading)] text-foreground">
|
||||
{feature.title}
|
||||
</h3>
|
||||
<p className="text-body mt-1.5 leading-[var(--line-height-body)] text-muted-foreground">
|
||||
{feature.description}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
|
||||
<Button
|
||||
asChild
|
||||
variant="secondary"
|
||||
className="mt-6 flex items-center gap-2 sm:mt-10"
|
||||
>
|
||||
<Link href="/contact">
|
||||
بیشتر بدانید
|
||||
<ArrowRight className="size-4" />
|
||||
</Link>
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Feature189AbeshdeHamkar };
|
||||
@@ -0,0 +1,87 @@
|
||||
"use client";
|
||||
|
||||
import { Layout, UserPlus, Users, Zap } from "lucide-react";
|
||||
import React from "react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import { useContent } from "@/components/layout/content-provider";
|
||||
import { Card, CardContent } from "@/components/ui/card";
|
||||
|
||||
const iconClass = "size-10 stroke-white transition-all ease-in-out group-hover:scale-105";
|
||||
const stepIcons = [
|
||||
<UserPlus key="0" className={iconClass} aria-hidden />,
|
||||
<Layout key="1" className={iconClass} aria-hidden />,
|
||||
<Zap key="2" className={iconClass} aria-hidden />,
|
||||
<Users key="3" className={iconClass} aria-hidden />,
|
||||
];
|
||||
|
||||
interface Feature243GoldStoreProps {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Feature243GoldStore = ({ className }: Feature243GoldStoreProps) => {
|
||||
const content = useContent();
|
||||
const { heading, steps: stepsContent } = content.pages.product.forushgahSazTala.feature243;
|
||||
const steps = stepsContent.map((step, index) => ({
|
||||
title: step.title,
|
||||
description: step.description,
|
||||
icon: stepIcons[index] ?? stepIcons[0],
|
||||
}));
|
||||
|
||||
return (
|
||||
<section className={cn("overflow-visible bg-background", className)} dir="rtl">
|
||||
<div className="container mx-auto max-w-7xl px-4 py-16 sm:px-6 sm:py-24 md:py-28 lg:py-32">
|
||||
<header className="relative z-10 flex flex-col items-center justify-center gap-6 bg-background text-center">
|
||||
<h2 className="text-heading-2 font-semibold leading-[var(--line-height-heading)] tracking-tight text-foreground">
|
||||
{heading}
|
||||
</h2>
|
||||
</header>
|
||||
|
||||
<div className="mt-44 flex flex-wrap items-stretch justify-center gap-6 sm:mt-48 md:mt-52 lg:gap-8">
|
||||
{steps.map((step, index) => (
|
||||
<div
|
||||
key={index}
|
||||
className="relative flex w-full max-w-[18rem] flex-col items-center overflow-visible sm:w-64 sm:max-w-none md:w-72"
|
||||
>
|
||||
<div
|
||||
className={cn(
|
||||
"absolute -top-[174px] left-1/2 h-0.5 w-[120%] -translate-x-1/2 rounded-full bg-muted",
|
||||
index === 3 ? "hidden" : "",
|
||||
index === 2 ? "hidden lg:block" : "",
|
||||
index === 1 ? "hidden lg:block" : "",
|
||||
index === 0 ? "hidden sm:block" : "",
|
||||
)}
|
||||
/>
|
||||
<div className="absolute -top-[174px] left-1/2 h-full w-0.5 -translate-x-1/2 rounded-full bg-muted" />
|
||||
<div className="relative z-10 flex h-8 w-5 flex-shrink-0 items-center justify-center rounded-full bg-background p-1 pb-5">
|
||||
<div className="relative z-10 size-3 rounded-full bg-foreground" />
|
||||
</div>
|
||||
|
||||
<Card className="group relative z-10 h-full w-full overflow-hidden rounded-4xl border-none bg-muted shadow-none">
|
||||
<CardContent className="flex h-full flex-col items-center gap-5 p-0 pt-10 pb-5">
|
||||
<div className="flex size-20 shrink-0 items-center justify-center rounded-3xl bg-foreground dark:bg-background">
|
||||
{step.icon}
|
||||
</div>
|
||||
|
||||
<div className="flex w-full flex-col items-center gap-4 px-4 pt-5 pb-3">
|
||||
<h3 className="text-heading-3 w-full text-center font-semibold leading-[var(--line-height-heading)] tracking-tight text-foreground">
|
||||
{step.title}
|
||||
</h3>
|
||||
{step.description ? (
|
||||
<p className="text-body w-full max-w-sm text-center text-muted-foreground/70">
|
||||
{step.description}
|
||||
</p>
|
||||
) : null}
|
||||
</div>
|
||||
</CardContent>
|
||||
</Card>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Feature243GoldStore };
|
||||
@@ -0,0 +1,53 @@
|
||||
"use client";
|
||||
|
||||
import { BadgeCheck } from "lucide-react";
|
||||
import React from "react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
interface Feature246Props {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Feature246 = ({ className }: Feature246Props) => {
|
||||
const benefits = [
|
||||
"برگزاری جلسه معرفی و نیازسنجی",
|
||||
"نصب نسخه اختصاصی",
|
||||
"آموزش و راهاندازی",
|
||||
"۶ ماه پشتیبانی رایگان",
|
||||
"ادامه پشتیبانی و توسعه ماهانه",
|
||||
];
|
||||
|
||||
return (
|
||||
<section className={cn("overflow-visible bg-background", className)} dir="rtl">
|
||||
<div className="container mx-auto flex flex-col items-center justify-between overflow-visible px-6 py-40 lg:flex-row">
|
||||
<div className="flex w-full max-w-4xl flex-col items-center gap-20 text-center lg:mr-2 lg:items-start lg:text-left">
|
||||
<h2 className="text-heading-2 font-semibold leading-[var(--line-height-heading)] tracking-tight text-foreground">
|
||||
بخش فرآیند همکاری
|
||||
</h2>
|
||||
<div className="flex flex-col space-y-5 lg:items-start">
|
||||
{benefits.map((benefit, index) => (
|
||||
<div key={index} className="flex items-center justify-center gap-4 lg:justify-start">
|
||||
<div className="flex h-7 w-7 items-center justify-center">
|
||||
<BadgeCheck className="h-20" />
|
||||
</div>
|
||||
<span className="text-heading-4 leading-[var(--line-height-heading)] tracking-tight text-foreground">
|
||||
{benefit}
|
||||
</span>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
<div className="relative flex min-h-[400px] w-full items-center justify-center overflow-visible rounded-none py-12 lg:min-h-[500px] lg:py-20">
|
||||
<img
|
||||
src="https://deifkwefumgah.cloudfront.net/shadcnblocks/block/illustrations/tokyo-letters-and-arrows-flying-out-of-a-black-hole.svg"
|
||||
className="h-full w-full scale-x-[-1] object-contain object-center"
|
||||
alt=""
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Feature246 };
|
||||
@@ -0,0 +1,107 @@
|
||||
"use client";
|
||||
|
||||
import { motion, MotionValue, useScroll, useTransform } from "motion/react";
|
||||
import React from "react";
|
||||
import { ComponentPropsWithoutRef, FC, ReactNode, useRef } from "react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
import { useContent } from "@/components/layout/content-provider";
|
||||
|
||||
const Feature247 = () => {
|
||||
const content = useContent();
|
||||
const { title, description } = content.pages.product.forushgahSazTala.feature247;
|
||||
return (
|
||||
<section className="py-32">
|
||||
<div className="container mx-auto flex flex-col items-center justify-center px-6">
|
||||
<div className="flex max-w-4xl justify-center">
|
||||
<TextReveal
|
||||
title={title}
|
||||
className="items-center justify-center text-center"
|
||||
>
|
||||
{description}
|
||||
</TextReveal>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Feature247 };
|
||||
|
||||
// Below is the modified component from Magic UI
|
||||
// Original source: https://magicui.design/docs/components/text-reveal
|
||||
// Modified to follow our coding standards and design system
|
||||
// We respect copyright and attribution to the original creators
|
||||
|
||||
interface TextRevealProps extends ComponentPropsWithoutRef<"div"> {
|
||||
children: string;
|
||||
title?: string;
|
||||
maxWidth?: string;
|
||||
}
|
||||
|
||||
const TextReveal: FC<TextRevealProps> = ({
|
||||
children,
|
||||
title,
|
||||
className,
|
||||
maxWidth,
|
||||
}) => {
|
||||
const targetRef = useRef<HTMLDivElement | null>(null);
|
||||
const { scrollYProgress } = useScroll({
|
||||
target: targetRef,
|
||||
});
|
||||
|
||||
const words = children.split(" ");
|
||||
|
||||
return (
|
||||
<div
|
||||
ref={targetRef}
|
||||
className={cn("relative z-0 h-[200vh]", className)}
|
||||
style={{ maxWidth: maxWidth || "56rem" }}
|
||||
>
|
||||
<div className="sticky top-0 mx-auto flex h-[50%] items-center bg-transparent px-[1rem] py-[5rem]">
|
||||
<div ref={targetRef} className="flex flex-col justify-center">
|
||||
<span className="text-heading-4 text-center font-medium leading-snug tracking-tight text-foreground">
|
||||
{title}
|
||||
</span>
|
||||
<span
|
||||
className={cn(
|
||||
"flex flex-wrap justify-center p-5 text-2xl font-semibold leading-relaxed text-black/20 md:p-8 md:text-3xl lg:p-10 lg:text-4xl xl:text-5xl dark:text-white/20",
|
||||
className,
|
||||
)}
|
||||
>
|
||||
{words.map((word, i) => {
|
||||
const start = i / words.length;
|
||||
const end = start + 1 / words.length;
|
||||
return (
|
||||
<Word key={i} progress={scrollYProgress} range={[start, end]}>
|
||||
{word}
|
||||
</Word>
|
||||
);
|
||||
})}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
interface WordProps {
|
||||
children: ReactNode;
|
||||
progress: MotionValue<number>;
|
||||
range: [number, number];
|
||||
}
|
||||
|
||||
const Word: FC<WordProps> = ({ children, progress, range }) => {
|
||||
const opacity = useTransform(progress, range, [0, 1]);
|
||||
return (
|
||||
<span className="relative mx-1 lg:mx-1.5">
|
||||
<span className="absolute opacity-30">{children}</span>
|
||||
<motion.span
|
||||
style={{ opacity: opacity }}
|
||||
className="text-black dark:text-white"
|
||||
>
|
||||
{children}
|
||||
</motion.span>
|
||||
</span>
|
||||
);
|
||||
};
|
||||
@@ -0,0 +1,138 @@
|
||||
import { ArrowRight, Check } from "lucide-react";
|
||||
import React from "react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import {
|
||||
CardBody,
|
||||
CardContainer,
|
||||
CardItem,
|
||||
} from "@/components/aceternity/3d-card";
|
||||
import { Button } from "@/components/ui/button";
|
||||
|
||||
const defaultFeatures = [
|
||||
{ title: "Instant Implementation", description: "Get access to your blocks the moment you pay." },
|
||||
{ title: "One-Time Payment", description: "No subscriptions. Just pay once and own it forever." },
|
||||
{ title: "Developer Friendly", description: "Clean, copy-paste-ready code with full Tailwind + shadcn support." },
|
||||
{ title: "Fully Responsive", description: "Every block looks perfect on all screen sizes, out of the box." },
|
||||
{ title: "Production Ready", description: "Battle-tested components you can drop into real projects today." },
|
||||
];
|
||||
|
||||
interface Feature268Props {
|
||||
className?: string;
|
||||
title?: string;
|
||||
description?: string;
|
||||
showButtons?: boolean;
|
||||
listTitle?: string;
|
||||
features?: { title: string; description?: string }[];
|
||||
cardTitle?: string;
|
||||
cardWelcome?: string;
|
||||
cardImage?: string;
|
||||
showTryNow?: boolean;
|
||||
}
|
||||
|
||||
const Feature268 = ({
|
||||
className,
|
||||
title = "Drop-In Ready Blocks to Supercharge Your App",
|
||||
description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad",
|
||||
showButtons = true,
|
||||
listTitle = "ShadcnBlocks Perks",
|
||||
features = defaultFeatures,
|
||||
cardTitle = "#1 Biggest Shadcn Blocks Collection",
|
||||
cardWelcome = "Welcome to SHADCN BLOCKS",
|
||||
cardImage,
|
||||
showTryNow = true,
|
||||
}: Feature268Props) => {
|
||||
const defaultCardImage = "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/guri3/img27.jpeg";
|
||||
return (
|
||||
<section className={cn("h-full w-full max-w-full overflow-x-hidden overflow-y-hidden py-32", className)}>
|
||||
<div className="relative container mx-auto px-4 md:px-6">
|
||||
<div className="flex h-full flex-col items-center justify-center gap-10 lg:flex-row lg:justify-center lg:max-w-7xl lg:mx-auto">
|
||||
<div className="w-full space-y-5 lg:w-3/5">
|
||||
<h2 className="text-heading-2 mt-3 w-full max-w-2xl font-semibold tracking-tight">
|
||||
{title}
|
||||
</h2>
|
||||
<p className="text-body max-w-xl leading-relaxed text-muted-foreground">
|
||||
{description}
|
||||
</p>
|
||||
{showButtons && (
|
||||
<div className="mt-10 mb-29 flex flex-wrap gap-4">
|
||||
<Button variant="primary">Get Started</Button>
|
||||
<Button variant="secondary">Learn More</Button>
|
||||
</div>
|
||||
)}
|
||||
<ul className="space-y-4">
|
||||
<li className="mb-3">
|
||||
<p className="text-caption font-medium text-muted-foreground">
|
||||
{listTitle}
|
||||
</p>
|
||||
</li>
|
||||
{features.map((feature) => (
|
||||
<li key={feature.title} className="flex gap-4 lg:items-center">
|
||||
<Check className="size-4 shrink-0" />
|
||||
<p className="text-body-sm font-normal tracking-tight">
|
||||
{feature.title}
|
||||
{feature.description != null && feature.description !== "" && (
|
||||
<span className="pl-2 opacity-30">{feature.description}</span>
|
||||
)}
|
||||
</p>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
<CardContainer
|
||||
className="w-full"
|
||||
containerClassName="h-full w-full p-0 m-0 lg:w-2/5"
|
||||
>
|
||||
<CardBody className="group/card flex h-full !w-full flex-col items-center justify-center rounded-3xl bg-muted/70 px-5 py-15">
|
||||
{cardTitle != null && cardTitle !== "" && (
|
||||
<CardItem
|
||||
translateZ="60"
|
||||
className="text-heading-3 mb-2 max-w-xs text-center font-semibold leading-none tracking-tight"
|
||||
>
|
||||
{cardTitle}
|
||||
</CardItem>
|
||||
)}
|
||||
{cardWelcome != null && cardWelcome !== "" && (
|
||||
<CardItem
|
||||
as="p"
|
||||
translateZ="25"
|
||||
className="text-body-sm my-4 flex w-full max-w-sm items-center justify-center font-medium tracking-tight"
|
||||
>
|
||||
<span className="mr-2 opacity-50">Welcome to</span>
|
||||
<span className="font-semibold">SHADCN BLOCKS</span>
|
||||
</CardItem>
|
||||
)}
|
||||
<CardItem translateZ="60" className="mt-4 w-full max-w-[1000px]">
|
||||
<img
|
||||
src={cardImage ?? defaultCardImage}
|
||||
height="1000"
|
||||
width="1000"
|
||||
className="h-82 w-full rounded-3xl object-cover group-hover/card:shadow-xl lg:h-60"
|
||||
alt="thumbnail"
|
||||
/>
|
||||
</CardItem>
|
||||
|
||||
<div className="flex w-full flex-col items-center justify-center">
|
||||
{showTryNow && (
|
||||
<CardItem translateZ="100">
|
||||
<Button variant="ghost" className="my-5 opacity-50">
|
||||
Try now <ArrowRight />
|
||||
</Button>
|
||||
</CardItem>
|
||||
)}
|
||||
<img
|
||||
className="w-30"
|
||||
src="/images/block/logos/ph-daily.svg"
|
||||
alt=""
|
||||
/>
|
||||
</div>
|
||||
</CardBody>
|
||||
</CardContainer>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Feature268 };
|
||||
@@ -0,0 +1,111 @@
|
||||
"use client";
|
||||
|
||||
import Link from "next/link";
|
||||
import { Check } from "lucide-react";
|
||||
import React from "react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import {
|
||||
CardBody,
|
||||
CardContainer,
|
||||
CardItem,
|
||||
} from "@/components/aceternity/3d-card";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { useContent } from "@/components/layout/content-provider";
|
||||
|
||||
interface Feature269GoldStoreProps {
|
||||
className?: string;
|
||||
cardImage?: string;
|
||||
}
|
||||
|
||||
const defaultCardImage =
|
||||
"https://deifkwefumgah.cloudfront.net/shadcnblocks/block/guri3/img7.jpeg";
|
||||
|
||||
const Feature269GoldStore = ({ className, cardImage }: Feature269GoldStoreProps) => {
|
||||
const content = useContent();
|
||||
const { heading, description, featuresLabel, cardTitle1, cardTitle2, cardWelcome, cardWelcomeBrand, features } = content.pages.product.forushgahSazTala.feature269;
|
||||
return (
|
||||
<section
|
||||
className={cn(
|
||||
"h-full w-full max-w-full overflow-x-hidden overflow-y-hidden py-16 sm:py-24 lg:py-32",
|
||||
className
|
||||
)}
|
||||
dir="rtl"
|
||||
>
|
||||
<div className="relative container mx-auto px-4 md:px-6">
|
||||
<div className="flex h-full flex-col items-center justify-center gap-10 lg:mx-auto lg:max-w-7xl lg:flex-row lg:justify-center">
|
||||
<div className="w-full space-y-5 lg:w-3/5">
|
||||
<h2 className="text-heading-2 mt-3 w-full max-w-2xl font-semibold leading-[var(--line-height-heading)] tracking-tight text-foreground">
|
||||
{heading}
|
||||
</h2>
|
||||
<p className="text-body max-w-xl leading-[var(--line-height-body)] text-muted-foreground">
|
||||
{description}
|
||||
</p>
|
||||
<div className="mb-6 mt-10 flex flex-wrap gap-4">
|
||||
<Button asChild variant="primary" className="rounded-full">
|
||||
<Link href="/contact">شروع کنید</Link>
|
||||
</Button>
|
||||
<Button asChild variant="secondary" className="rounded-full">
|
||||
<Link href="/contact">بیشتر بدانید</Link>
|
||||
</Button>
|
||||
</div>
|
||||
<ul className="space-y-4">
|
||||
<li className="mb-3">
|
||||
<p className="text-caption font-medium text-muted-foreground">{featuresLabel}</p>
|
||||
</li>
|
||||
{features.map((featureTitle) => (
|
||||
<li key={featureTitle} className="flex items-center gap-2">
|
||||
<Check className="size-4 shrink-0 text-primary" />
|
||||
<span className="text-body-sm font-medium text-foreground">
|
||||
{featureTitle}
|
||||
</span>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
<CardContainer
|
||||
className="w-full"
|
||||
containerClassName="h-full w-full p-0 m-0 lg:w-2/5"
|
||||
>
|
||||
<CardBody className="group/card flex h-full !w-full flex-col items-center justify-center rounded-3xl bg-muted/70 px-5 py-10 sm:py-15">
|
||||
<CardItem
|
||||
translateZ="60"
|
||||
className="text-heading-3 mb-2 max-w-xs text-center font-semibold leading-[var(--line-height-heading)] tracking-tight text-foreground"
|
||||
>
|
||||
<span className="block">{cardTitle1}</span>
|
||||
<span className="block">{cardTitle2}</span>
|
||||
</CardItem>
|
||||
<CardItem
|
||||
as="p"
|
||||
translateZ="25"
|
||||
className="my-4 flex w-full max-w-sm items-center justify-center gap-2 text-body-sm font-medium tracking-tight text-foreground"
|
||||
>
|
||||
<span className="opacity-50">{cardWelcome}</span>
|
||||
<span className="whitespace-nowrap font-semibold">{cardWelcomeBrand}</span>
|
||||
</CardItem>
|
||||
<CardItem translateZ="60" className="mt-4 w-full max-w-[1000px]">
|
||||
<img
|
||||
src={cardImage ?? defaultCardImage}
|
||||
height="1000"
|
||||
width="1000"
|
||||
className="h-70 w-full rounded-3xl object-cover group-hover/card:shadow-xl lg:h-60"
|
||||
alt="فروشگاه آنلاین طلا"
|
||||
/>
|
||||
</CardItem>
|
||||
<div className="flex w-full flex-col items-center justify-center">
|
||||
<img
|
||||
className="h-8 w-auto object-contain mt-4"
|
||||
src="/assets/mzLogo.png"
|
||||
alt="مستر دکور"
|
||||
/>
|
||||
</div>
|
||||
</CardBody>
|
||||
</CardContainer>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Feature269GoldStore };
|
||||
@@ -0,0 +1,93 @@
|
||||
import { BadgeCheck } from "lucide-react";
|
||||
import React from "react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import {
|
||||
CardBody,
|
||||
CardContainer,
|
||||
CardItem,
|
||||
} from "@/components/aceternity/3d-card";
|
||||
|
||||
interface Feature269Props {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Feature269 = ({ className }: Feature269Props) => {
|
||||
const features = [
|
||||
"Instant Implementation",
|
||||
"One-Time Payment",
|
||||
"Developer Friendly",
|
||||
"Fully Responsive",
|
||||
"Production Ready",
|
||||
"Premium Support",
|
||||
"Regular Updates",
|
||||
"Customizable Design",
|
||||
"Performance Optimized",
|
||||
"Accessibility Compliant",
|
||||
"Cross-Browser ",
|
||||
"Documentation Included",
|
||||
];
|
||||
|
||||
return (
|
||||
<section className={cn("relative w-full overflow-hidden py-32", className)}>
|
||||
<div className="container mx-auto px-4 md:px-6">
|
||||
<div className="relative flex h-full flex-col items-start justify-between gap-10 lg:flex-row">
|
||||
<div className="w-full space-y-5 lg:w-3/5">
|
||||
<h2 className="text-heading-2 mx-auto mb-15 w-full max-w-lg text-center font-semibold tracking-tight lg:mx-0 lg:text-left">
|
||||
Why Choose Shadcn Blocks?
|
||||
</h2>
|
||||
<div className="mb-18 flex items-center gap-4 px-5 lg:max-w-md">
|
||||
<span className="h-px w-full bg-muted-foreground/20" />
|
||||
<p className="text-caption font-medium text-muted-foreground/50">FEATURES</p>
|
||||
<span className="h-px w-full bg-muted-foreground/20" />
|
||||
</div>
|
||||
<ul className="grid grid-cols-2 gap-3 lg:max-w-md">
|
||||
{features.map((feature) => (
|
||||
<li key={feature} className="flex gap-2 lg:items-center">
|
||||
<BadgeCheck className="size-4 text-muted-foreground/80" />
|
||||
<p className="text-body-sm tracking-tight text-muted-foreground/80">
|
||||
{feature}
|
||||
</p>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
<CardContainer
|
||||
className="w-full"
|
||||
containerClassName="h-full w-full p-0 m-0 lg:w-2/5"
|
||||
>
|
||||
<CardBody className="group/card flex h-full !w-full flex-col items-center justify-center rounded-3xl bg-muted/70 p-5">
|
||||
<CardItem
|
||||
translateZ="60"
|
||||
className="text-heading-3 mt-10 mb-2 max-w-xs text-center font-semibold leading-none tracking-tight"
|
||||
>
|
||||
#1 Biggest Shadcn Blocks Collection
|
||||
</CardItem>
|
||||
<CardItem
|
||||
as="p"
|
||||
translateZ="25"
|
||||
className="text-body-sm my-4 flex w-full max-w-sm items-center justify-center font-medium tracking-tight"
|
||||
>
|
||||
<span className="mr-2 opacity-50">Welcome to</span>
|
||||
<span className="font-semibold">SHADCN BLOCKS</span>
|
||||
</CardItem>
|
||||
<CardItem translateZ="60" className="mt-4 w-full max-w-[1000px]">
|
||||
<img
|
||||
src="https://deifkwefumgah.cloudfront.net/shadcnblocks/block/guri3/img7.jpeg"
|
||||
height="1000"
|
||||
width="1000"
|
||||
className="h-70 w-full rounded-3xl object-cover group-hover/card:shadow-xl"
|
||||
alt="thumbnail"
|
||||
/>
|
||||
</CardItem>
|
||||
</CardBody>
|
||||
</CardContainer>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Feature269 };
|
||||
|
||||
@@ -0,0 +1,324 @@
|
||||
"use client";
|
||||
import { motion } from "motion/react";
|
||||
import React, { useState } from "react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
const defaultFeatures = [
|
||||
{
|
||||
number: "01",
|
||||
title: "Instant Implementation",
|
||||
description:
|
||||
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et",
|
||||
image: "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/guri3/img11.jpeg",
|
||||
imageOrder: "order-1",
|
||||
contentOrder: "order-2",
|
||||
},
|
||||
{
|
||||
number: "02",
|
||||
title: "One time payment",
|
||||
description:
|
||||
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et",
|
||||
image: "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/guri3/img12.jpeg",
|
||||
imageOrder: "order-2",
|
||||
contentOrder: "order-1",
|
||||
},
|
||||
{
|
||||
number: "03",
|
||||
title: "Developer Friendly",
|
||||
description:
|
||||
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et",
|
||||
image: "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/guri3/img14.jpeg",
|
||||
imageOrder: "order-1",
|
||||
contentOrder: "order-2",
|
||||
},
|
||||
];
|
||||
|
||||
interface Feature270Item {
|
||||
number: string;
|
||||
title: string;
|
||||
description: string;
|
||||
image: string;
|
||||
imageOrder: string;
|
||||
contentOrder: string;
|
||||
}
|
||||
|
||||
interface Feature270Props {
|
||||
className?: string;
|
||||
heading?: string;
|
||||
features?: Feature270Item[];
|
||||
headingAlign?: "left" | "right" | "center";
|
||||
contentAlign?: "left" | "center" | "right";
|
||||
showNumbers?: boolean;
|
||||
/** وقتی false باشد، دکمه/لینک «Learn More» روی کارتها نمایش داده نمیشود. */
|
||||
showLearnMore?: boolean;
|
||||
}
|
||||
|
||||
const Feature270 = ({
|
||||
className,
|
||||
heading = "Why Choose Shadcn Blocks?",
|
||||
features = defaultFeatures,
|
||||
headingAlign = "left",
|
||||
contentAlign = "left",
|
||||
showNumbers = true,
|
||||
showLearnMore = true,
|
||||
}: Feature270Props) => {
|
||||
const headingClass = {
|
||||
left: "text-left",
|
||||
right: "text-right",
|
||||
center: "text-center",
|
||||
}[headingAlign];
|
||||
const contentClass = {
|
||||
left: "text-left",
|
||||
center: "text-center",
|
||||
right: "text-right",
|
||||
}[contentAlign];
|
||||
|
||||
return (
|
||||
<section className={cn("relative w-full py-32", className)}>
|
||||
<div className="container mx-auto px-4 md:px-6">
|
||||
<div className={cn("w-full space-y-5 lg:w-3/5 mb-12", headingAlign === "right" && "lg:mr-0 lg:ml-auto")}>
|
||||
<h2 className={cn("text-heading-2 mb-6 w-full max-w-lg font-semibold tracking-tight", headingClass)}>
|
||||
{heading}
|
||||
</h2>
|
||||
</div>
|
||||
<div className="relative grid grid-cols-1 auto-rows-auto items-stretch gap-6 md:gap-3 md:min-h-[68rem] md:grid-cols-2 lg:min-h-[32rem] lg:grid-cols-3">
|
||||
{features.map((feature, index) => {
|
||||
const cardContent = (
|
||||
<div className="flex flex-col h-full min-h-[26rem]">
|
||||
<div className={feature.imageOrder}>
|
||||
<img
|
||||
src={feature.image}
|
||||
height="1000"
|
||||
width="1000"
|
||||
className="h-70 w-full rounded-3xl object-cover group-hover/card:shadow-xl"
|
||||
alt="thumbnail"
|
||||
/>
|
||||
</div>
|
||||
<div className={cn("mt-4 w-full p-3 flex-1 flex flex-col min-h-[8rem] gap-0", feature.contentOrder, contentClass)}>
|
||||
{showNumbers && (
|
||||
<p className="text-caption font-medium text-muted-foreground tracking-tighter">
|
||||
{feature.number}
|
||||
</p>
|
||||
)}
|
||||
<h3 className="text-heading-3 mt-3 mb-2 font-semibold leading-tight tracking-tight text-foreground">
|
||||
{feature.title}
|
||||
</h3>
|
||||
<p className="text-caption leading-relaxed text-muted-foreground flex-1">
|
||||
{feature.description}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
const cardClassName = "w-full h-full min-h-[28rem] rounded-3xl !bg-muted/70 p-4 flex flex-col";
|
||||
return (
|
||||
<PinContainer
|
||||
key={index}
|
||||
title={showLearnMore ? "Learn More" : undefined}
|
||||
href={showLearnMore ? "https://www.shadcnblocks.com/blocks" : undefined}
|
||||
className={cardClassName}
|
||||
showPerspective={showLearnMore}
|
||||
>
|
||||
{cardContent}
|
||||
</PinContainer>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Feature270 };
|
||||
|
||||
// Below is the modified component from Aceternity UI
|
||||
// Original source: npx shadcn@latest add https://ui.aceternity.com/registry/3d-pin.json
|
||||
// Modified to follow our coding standards and design system
|
||||
// We respect copyright and attribution to the original creators
|
||||
|
||||
export const PinContainer = ({
|
||||
children,
|
||||
title,
|
||||
href,
|
||||
className,
|
||||
containerClassName,
|
||||
showPerspective = true,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
title?: string;
|
||||
href?: string;
|
||||
className?: string;
|
||||
containerClassName?: string;
|
||||
/** وقتی false باشد، دکمه/برچسب «Learn More» روی هاور نمایش داده نمیشود. افکت سهبعدی هاور حفظ میشود. */
|
||||
showPerspective?: boolean;
|
||||
}) => {
|
||||
const [transform, setTransform] = useState(
|
||||
"translate(-50%,-50%) rotateX(0deg)",
|
||||
);
|
||||
|
||||
const onMouseEnter = () => {
|
||||
setTransform("translate(-50%,-50%) rotateX(40deg) scale(0.8)");
|
||||
};
|
||||
const onMouseLeave = () => {
|
||||
setTransform("translate(-50%,-50%) rotateX(0deg) scale(1)");
|
||||
};
|
||||
|
||||
const wrapperClassName = cn(
|
||||
"group/pin relative z-10",
|
||||
href ? "cursor-pointer" : "cursor-default",
|
||||
containerClassName,
|
||||
);
|
||||
|
||||
const outerTransform = showPerspective
|
||||
? "rotateX(70deg) translateZ(0deg)"
|
||||
: "rotateX(0deg) translateZ(0deg)";
|
||||
|
||||
const content = showPerspective ? (
|
||||
<>
|
||||
<div
|
||||
style={{
|
||||
perspective: "1000px",
|
||||
transform: outerTransform,
|
||||
}}
|
||||
className="absolute top-1/2 left-1/2 mt-4 ml-[0.09375rem] w-full -translate-x-1/2 -translate-y-1/2"
|
||||
>
|
||||
<div
|
||||
style={{
|
||||
transform: transform,
|
||||
}}
|
||||
className="absolute top-1/2 left-1/2 flex w-full items-start justify-start overflow-hidden rounded-2xl transition duration-700"
|
||||
>
|
||||
<div className={cn("relative z-10", className)}>{children}</div>
|
||||
</div>
|
||||
</div>
|
||||
{title != null && <PinPerspective title={title} />}
|
||||
</>
|
||||
) : (
|
||||
<div className={cn("relative z-10", className)}>{children}</div>
|
||||
);
|
||||
|
||||
if (href) {
|
||||
return (
|
||||
<a
|
||||
className={wrapperClassName}
|
||||
onMouseEnter={onMouseEnter}
|
||||
onMouseLeave={onMouseLeave}
|
||||
href={href}
|
||||
>
|
||||
{content}
|
||||
</a>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<div
|
||||
className={wrapperClassName}
|
||||
onMouseEnter={onMouseEnter}
|
||||
onMouseLeave={onMouseLeave}
|
||||
>
|
||||
{content}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export const PinPerspective = ({
|
||||
title,
|
||||
}: {
|
||||
title?: string;
|
||||
href?: string;
|
||||
}) => {
|
||||
return (
|
||||
<motion.div className="pointer-events-none z-20 flex h-80 w-96 items-center justify-center opacity-0 transition duration-500 group-hover/pin:opacity-100">
|
||||
<div className="inset-0 -mt-7 h-full w-full flex-none">
|
||||
<div className="absolute inset-x-0 top-0 flex justify-center">
|
||||
<span className="relative z-10 flex items-center space-x-2 rounded-full bg-foreground px-4 py-0.5 ring-1 ring-border">
|
||||
<span className="text-caption relative z-20 inline-block py-0.5 font-bold text-background">
|
||||
{title}
|
||||
</span>
|
||||
|
||||
<span className="absolute -bottom-0 left-[1.125rem] h-px w-[calc(100%-2.25rem)] bg-gradient-to-r from-secondary/0 via-secondary to-secondary/0 transition-opacity duration-500 group-hover/btn:opacity-40"></span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div
|
||||
style={{
|
||||
perspective: "1000px",
|
||||
transform: "rotateX(70deg) translateZ(0)",
|
||||
}}
|
||||
className="absolute top-1/2 left-1/2 mt-4 ml-[0.09375rem] -translate-x-1/2 -translate-y-1/2"
|
||||
>
|
||||
<>
|
||||
<motion.div
|
||||
initial={{
|
||||
opacity: 0,
|
||||
scale: 0,
|
||||
x: "-50%",
|
||||
y: "-50%",
|
||||
}}
|
||||
animate={{
|
||||
opacity: [0, 1, 0.5, 0],
|
||||
scale: 1,
|
||||
|
||||
z: 0,
|
||||
}}
|
||||
transition={{
|
||||
duration: 6,
|
||||
repeat: Infinity,
|
||||
delay: 0,
|
||||
}}
|
||||
className="absolute top-1/2 left-1/2 h-[11.25rem] w-[11.25rem] rounded-[50%] bg-primary/[0.08] shadow-lg"
|
||||
></motion.div>
|
||||
<motion.div
|
||||
initial={{
|
||||
opacity: 0,
|
||||
scale: 0,
|
||||
x: "-50%",
|
||||
y: "-50%",
|
||||
}}
|
||||
animate={{
|
||||
opacity: [0, 1, 0.5, 0],
|
||||
scale: 1,
|
||||
|
||||
z: 0,
|
||||
}}
|
||||
transition={{
|
||||
duration: 6,
|
||||
repeat: Infinity,
|
||||
delay: 2,
|
||||
}}
|
||||
className="absolute top-1/2 left-1/2 h-[11.25rem] w-[11.25rem] rounded-[50%] bg-primary/[0.08] shadow-lg"
|
||||
></motion.div>
|
||||
<motion.div
|
||||
initial={{
|
||||
opacity: 0,
|
||||
scale: 0,
|
||||
x: "-50%",
|
||||
y: "-50%",
|
||||
}}
|
||||
animate={{
|
||||
opacity: [0, 1, 0.5, 0],
|
||||
scale: 1,
|
||||
|
||||
z: 0,
|
||||
}}
|
||||
transition={{
|
||||
duration: 6,
|
||||
repeat: Infinity,
|
||||
delay: 4,
|
||||
}}
|
||||
className="absolute top-1/2 left-1/2 h-[11.25rem] w-[11.25rem] rounded-[50%] bg-primary/[0.08] shadow-lg"
|
||||
></motion.div>
|
||||
</>
|
||||
</div>
|
||||
|
||||
<>
|
||||
<motion.div className="absolute right-1/2 bottom-1/2 h-20 w-px translate-y-[14px] bg-gradient-to-b from-transparent to-secondary blur-[2px] group-hover/pin:h-40" />
|
||||
<motion.div className="absolute right-1/2 bottom-1/2 h-20 w-px translate-y-[14px] bg-gradient-to-b from-transparent to-secondary group-hover/pin:h-40" />
|
||||
<motion.div className="absolute right-1/2 bottom-1/2 z-40 h-[4px] w-[4px] translate-x-[1.5px] translate-y-[14px] rounded-full bg-secondary blur-[3px]" />
|
||||
<motion.div className="absolute right-1/2 bottom-1/2 z-40 h-[2px] w-[2px] translate-x-[0.5px] translate-y-[14px] rounded-full bg-secondary" />
|
||||
</>
|
||||
</div>
|
||||
</motion.div>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -0,0 +1,115 @@
|
||||
"use client";
|
||||
|
||||
import { AudioLines, Box, Globe, LayoutDashboard, ShieldUser, Users } from "lucide-react";
|
||||
import React from "react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import { SparklesCore } from "@/components/shadcnblocks/sparkles";
|
||||
|
||||
const features = [
|
||||
{
|
||||
icon: Globe,
|
||||
title: "یکپارچهسازی آسان",
|
||||
description: "ساختهشده با فناوریهای روز و APIهای تمیز برای ادغام بیدردسر با سامانههای شما.",
|
||||
},
|
||||
{
|
||||
icon: Box,
|
||||
title: "عملکرد سریع",
|
||||
description: "بهینهسازی شده برای بارگذاری فوری و حداقل مصرف منابع.",
|
||||
},
|
||||
{
|
||||
icon: ShieldUser,
|
||||
title: "امنیت پیشفرض",
|
||||
description: "امنیت در سطح سازمان با حفاظت داخلی و رعایت استانداردها.",
|
||||
},
|
||||
{
|
||||
icon: Users,
|
||||
title: "همکاری تیمی",
|
||||
description: "طراحیشده برای تیمها با همکاری لحظهای و کنترل دسترسی.",
|
||||
},
|
||||
{
|
||||
icon: AudioLines,
|
||||
title: "یکپارچگی صوتی",
|
||||
description: "پردازش پیشرفته با پشتیبانی از درک زبان طبیعی.",
|
||||
},
|
||||
{
|
||||
icon: LayoutDashboard,
|
||||
title: "امکانات جامع پلتفرم",
|
||||
description: "قیمت لحظهای، مدیریت سفارش و مانده حساب آنلاین، ریز معاملات ۲۴/۷، کنترل وضعیت بازار و پنل ادمین.",
|
||||
},
|
||||
];
|
||||
|
||||
interface Feature294Props {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Feature294 = ({ className }: Feature294Props) => {
|
||||
return (
|
||||
<section
|
||||
className={cn(
|
||||
"dark relative w-full max-w-full overflow-x-hidden overflow-y-hidden bg-background py-32 text-foreground",
|
||||
className,
|
||||
)}
|
||||
>
|
||||
<div className="relative container mx-auto flex h-full flex-col items-center justify-center px-6" dir="rtl">
|
||||
<div className="w-full max-w-lg text-center">
|
||||
<p className="text-caption relative z-20 font-medium leading-[var(--line-height-body)] tracking-wide text-muted-foreground/80">
|
||||
راهکار
|
||||
</p>
|
||||
<h2 className="text-heading-2 relative z-20 mt-2 text-center font-semibold leading-[var(--line-height-heading)] tracking-tight text-foreground">
|
||||
یک پلتفرم اختصاصی
|
||||
<br />
|
||||
برای مدیریت کامل معاملات
|
||||
</h2>
|
||||
</div>
|
||||
<div className="relative mt-5 mb-10 h-40 w-[40rem]">
|
||||
{/* Gradients */}
|
||||
<div className="absolute inset-x-20 top-0 h-[2px] w-3/4 bg-gradient-to-r from-transparent via-primary to-transparent blur-sm" />
|
||||
<div className="absolute inset-x-20 top-0 h-px w-3/4 bg-gradient-to-r from-transparent via-primary to-transparent" />
|
||||
<div className="absolute inset-x-60 top-0 h-[5px] w-1/4 bg-gradient-to-r from-transparent via-secondary to-transparent blur-sm" />
|
||||
<div className="absolute inset-x-60 top-0 h-px w-1/4 bg-gradient-to-r from-transparent via-secondary to-transparent" />
|
||||
|
||||
{/* Core component */}
|
||||
<SparklesCore
|
||||
background="transparent"
|
||||
minSize={0.4}
|
||||
maxSize={1}
|
||||
particleDensity={500}
|
||||
className="h-full w-full"
|
||||
particleColor="#FFFFFF"
|
||||
/>
|
||||
|
||||
{/* Radial Gradient to prevent sharp edges */}
|
||||
<div className="absolute inset-0 h-full w-full bg-background [mask-image:radial-gradient(350px_130px_at_top,transparent_20%,white)]"></div>
|
||||
</div>
|
||||
|
||||
<p className="text-body-sm mb-6 text-center font-medium leading-[var(--line-height-body)] text-muted-foreground">
|
||||
ویژگیهای کلیدی:
|
||||
</p>
|
||||
|
||||
<div className="mx-auto grid w-full max-w-5xl grid-cols-1 gap-15 text-right md:grid-cols-2 md:text-start lg:grid-cols-3">
|
||||
{features.map((feature, index) => {
|
||||
const IconComponent = feature.icon;
|
||||
return (
|
||||
<div
|
||||
key={index}
|
||||
className="flex min-h-[140px] flex-row-reverse gap-4 rounded-lg border border-border/50 bg-card/30 p-4 transition-colors hover:bg-card/50 dark:border-primary/10 dark:bg-card/20 dark:hover:bg-card/30 md:flex-row"
|
||||
>
|
||||
<IconComponent className="mt-0.5 w-12 shrink-0 stroke-1 text-primary" />
|
||||
<div className="min-w-0 space-y-2">
|
||||
<h4 className="text-heading-4 font-medium leading-[var(--line-height-heading)] text-foreground">{feature.title}</h4>
|
||||
<p className="text-body-sm leading-[var(--line-height-body)] text-muted-foreground">
|
||||
{feature.description}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Feature294 };
|
||||
@@ -0,0 +1,136 @@
|
||||
"use client";
|
||||
|
||||
import { ArrowRight, ChevronDown } from "lucide-react";
|
||||
import { useEffect, useState } from "react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import type { CarouselApi } from "@/components/ui/carousel";
|
||||
import {
|
||||
Carousel,
|
||||
CarouselContent,
|
||||
CarouselItem,
|
||||
} from "@/components/ui/carousel";
|
||||
|
||||
const features = [
|
||||
{
|
||||
id: "feature-1",
|
||||
title: "Feature 1",
|
||||
description:
|
||||
"Nam vitae molestie arcu. Quisque eu libero orci. Aliquam imperdiet magna nec massa consectetur, id interdum ante congue.",
|
||||
href: "#",
|
||||
image: "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/placeholder-1.svg",
|
||||
},
|
||||
{
|
||||
id: "feature-2",
|
||||
title: "Feature 2",
|
||||
description:
|
||||
"Nam vitae molestie arcu. Quisque eu libero orci. Aliquam imperdiet magna nec massa consectetur, id interdum ante congue.",
|
||||
href: "#",
|
||||
image: "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/placeholder-2.svg",
|
||||
},
|
||||
{
|
||||
id: "feature-3",
|
||||
title: "Feature 3",
|
||||
description:
|
||||
"Nam vitae molestie arcu. Quisque eu libero orci. Aliquam imperdiet magna nec massa consectetur, id interdum ante congue.",
|
||||
href: "#",
|
||||
image: "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/placeholder-3.svg",
|
||||
},
|
||||
];
|
||||
|
||||
interface FeatureCarouselGridProps {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const FeatureCarouselGrid = ({ className }: FeatureCarouselGridProps) => {
|
||||
const [selection, setSelection] = useState(0);
|
||||
const [carouselApi, setCarouselApi] = useState<CarouselApi>();
|
||||
useEffect(() => {
|
||||
if (!carouselApi) {
|
||||
return;
|
||||
}
|
||||
carouselApi.scrollTo(selection);
|
||||
}, [carouselApi, selection]);
|
||||
useEffect(() => {
|
||||
if (!carouselApi) {
|
||||
return;
|
||||
}
|
||||
const updateSelection = () => {
|
||||
setSelection(carouselApi.selectedScrollSnap());
|
||||
};
|
||||
carouselApi.on("select", updateSelection);
|
||||
return () => {
|
||||
carouselApi.off("select", updateSelection);
|
||||
};
|
||||
}, [carouselApi]);
|
||||
return (
|
||||
<section className={cn("py-32", className)}>
|
||||
<div className="container mx-auto">
|
||||
<div className="flex flex-col gap-8 md:flex-row-reverse">
|
||||
<div className="aspect-5/6 overflow-clip rounded-3xl bg-accent">
|
||||
<Carousel
|
||||
setApi={setCarouselApi}
|
||||
className="h-full w-full [&>div]:h-full"
|
||||
>
|
||||
<CarouselContent className="mx-0 h-full w-full">
|
||||
{features.map((feature) => (
|
||||
<CarouselItem key={feature.id} className="px-0">
|
||||
<img
|
||||
src={feature.image}
|
||||
alt={feature.title}
|
||||
className="h-full w-full object-cover object-center"
|
||||
/>
|
||||
</CarouselItem>
|
||||
))}
|
||||
</CarouselContent>
|
||||
</Carousel>
|
||||
</div>
|
||||
<div className="flex shrink-0 flex-col md:w-1/2 md:pr-8 lg:pr-24 lg:text-left 2xl:pr-32">
|
||||
<h2 className="text-heading-2 mb-6 font-semibold text-pretty">
|
||||
Features
|
||||
</h2>
|
||||
<p className="text-body mb-16 leading-relaxed text-muted-foreground">
|
||||
Lorem ipsum dolor sit amet consectetur adipisicing elit. Elig
|
||||
doloremque mollitia fugiat omnis! Porro facilis quo animi
|
||||
consequatur. Explicabo.
|
||||
</p>
|
||||
<ul className="space-y-2">
|
||||
{features.map((feature, i) => (
|
||||
<li
|
||||
key={feature.id}
|
||||
className="group relative w-full cursor-pointer px-6 py-3 transition data-open:bg-accent"
|
||||
data-open={selection === i ? "true" : undefined}
|
||||
onClick={() => setSelection(i)}
|
||||
>
|
||||
<div className="flex items-center justify-between gap-x-2">
|
||||
<div className="text-body-sm font-semibold text-accent-foreground">
|
||||
{feature.title}
|
||||
</div>
|
||||
<div className="flex size-8 items-center justify-center rounded-full bg-accent text-accent-foreground group-hover:bg-primary group-hover:text-primary-foreground group-data-open:bg-primary group-data-open:text-primary-foreground">
|
||||
<ChevronDown className="size-4 shrink-0 transition-transform duration-200 group-data-open:rotate-180" />
|
||||
</div>
|
||||
</div>
|
||||
<div className="text-body-sm hidden font-medium group-data-open:block">
|
||||
<p className="my-4 text-muted-foreground lg:my-6">
|
||||
{feature.description}
|
||||
</p>
|
||||
<a
|
||||
href="#"
|
||||
className="group/link text-body-sm flex items-center pb-3 text-accent-foreground"
|
||||
>
|
||||
Learn more{" "}
|
||||
<ArrowRight className="ml-2 size-4 transition-transform group-hover/link:translate-x-1" />
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { FeatureCarouselGrid };
|
||||
@@ -0,0 +1,170 @@
|
||||
"use client";
|
||||
|
||||
import { ChevronUp } from "lucide-react";
|
||||
import React, { useState, useEffect } from "react";
|
||||
import Link from "next/link";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
import { useContent } from "@/components/layout/content-provider";
|
||||
|
||||
import type { CarouselApi } from "@/components/ui/carousel";
|
||||
import {
|
||||
Carousel,
|
||||
CarouselContent,
|
||||
CarouselItem,
|
||||
CarouselNext,
|
||||
CarouselPrevious,
|
||||
} from "@/components/ui/carousel";
|
||||
|
||||
const MOBILE_BREAKPOINT = 768;
|
||||
const AUTOPLAY_DELAY_MS = 3200;
|
||||
|
||||
const FeatureCarousel = () => {
|
||||
const content = useContent();
|
||||
const { featureCarousel } = content.pages.home;
|
||||
const carouselItems = featureCarousel.items;
|
||||
|
||||
const [openCardIndex, setOpenCardIndex] = useState<number | null>(null);
|
||||
const [isMobile, setIsMobile] = useState(false);
|
||||
const [carouselApi, setCarouselApi] = useState<CarouselApi | null>(null);
|
||||
|
||||
useEffect(() => {
|
||||
const mq = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
||||
const handler = () => setIsMobile(mq.matches);
|
||||
handler();
|
||||
mq.addEventListener("change", handler);
|
||||
return () => mq.removeEventListener("change", handler);
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
if (!isMobile || !carouselApi) return;
|
||||
const timer = setInterval(() => {
|
||||
carouselApi.scrollNext();
|
||||
}, AUTOPLAY_DELAY_MS);
|
||||
return () => clearInterval(timer);
|
||||
}, [isMobile, carouselApi]);
|
||||
|
||||
const handleCardClick = (index: number) => {
|
||||
if (!isMobile) return;
|
||||
setOpenCardIndex((prev) => (prev === index ? null : index));
|
||||
};
|
||||
|
||||
return (
|
||||
<section id="rahavarha" className="py-32">
|
||||
<div className="relative container mx-auto max-w-7xl px-6">
|
||||
<h2 className="text-heading-2 z-10 mb-10 text-center font-semibold tracking-tight text-foreground">
|
||||
{featureCarousel.heading}
|
||||
</h2>
|
||||
|
||||
<Carousel
|
||||
opts={{
|
||||
align: "center",
|
||||
loop: true,
|
||||
duration: 20,
|
||||
}}
|
||||
setApi={setCarouselApi}
|
||||
className="w-full"
|
||||
dir="ltr"
|
||||
>
|
||||
<CarouselContent className="py-5">
|
||||
{carouselItems.map((item, index) => (
|
||||
<CarouselItem
|
||||
key={index}
|
||||
className="text-background select-none md:basis-1/2 lg:basis-1/3 dark:text-foreground"
|
||||
>
|
||||
<DottedDiv className="group h-150 w-full mx-auto p-4">
|
||||
<div
|
||||
className={cn(
|
||||
"group/card relative h-full w-full bg-muted/50 p-4 transition-colors duration-300 ease-out group-hover:bg-muted",
|
||||
isMobile && "cursor-pointer"
|
||||
)}
|
||||
data-open={openCardIndex === index}
|
||||
onClick={() => handleCardClick(index)}
|
||||
role={isMobile ? "button" : undefined}
|
||||
aria-expanded={isMobile ? openCardIndex === index : undefined}
|
||||
>
|
||||
<div className="relative h-full w-full overflow-hidden rounded-3xl">
|
||||
<img
|
||||
src={item.imageSrc}
|
||||
alt={item.title}
|
||||
className="h-full w-full object-cover transition-transform duration-500 ease-out group-hover:scale-105 group-active:scale-105 md:group-hover:scale-105 md:group-active:scale-105"
|
||||
/>
|
||||
{/* Overlay: hover on desktop, open state on mobile */}
|
||||
<div
|
||||
className={cn(
|
||||
"absolute inset-0 bg-black/0 backdrop-blur-none transition-all duration-300 ease-out",
|
||||
"md:group-hover:bg-black/50 md:group-hover:backdrop-blur-md md:group-active:bg-black/50 md:group-active:backdrop-blur-md",
|
||||
"max-md:group-data-[open=true]/card:bg-black/50 max-md:group-data-[open=true]/card:backdrop-blur-md"
|
||||
)}
|
||||
aria-hidden
|
||||
/>
|
||||
|
||||
{/* Text overlay */}
|
||||
<div
|
||||
className={cn(
|
||||
"absolute inset-4 -ml-4 flex flex-col items-center justify-between p-6 sm:p-8 opacity-0 translate-y-4 transition-all duration-300 ease-out",
|
||||
"md:group-hover:opacity-100 md:group-hover:translate-y-0 md:group-active:opacity-100 md:group-active:translate-y-0",
|
||||
"max-md:group-data-[open=true]/card:opacity-100 max-md:group-data-[open=true]/card:translate-y-0"
|
||||
)}
|
||||
>
|
||||
<div className="flex flex-1 flex-col items-center justify-center pointer-events-none">
|
||||
<h3 className="text-heading-3 text-center font-semibold tracking-tight text-background dark:text-foreground">
|
||||
{item.title}
|
||||
</h3>
|
||||
<div className="mx-auto mt-2 h-1 w-6 rounded-full bg-background/90 dark:bg-foreground/90" />
|
||||
<p className="text-body-sm mt-6 max-w-sm px-1 text-center leading-relaxed tracking-tight text-background/90 dark:text-foreground/90">
|
||||
{item.description}
|
||||
</p>
|
||||
</div>
|
||||
<Link
|
||||
href={item.link}
|
||||
onClick={(e) => e.stopPropagation()}
|
||||
className="pointer-events-auto group/cta mb-2 flex cursor-pointer flex-col items-center justify-center transition-transform duration-300 ease-out group-hover/cta:-translate-y-1"
|
||||
>
|
||||
<ChevronUp
|
||||
size={28}
|
||||
className="text-background dark:text-foreground"
|
||||
/>
|
||||
<p className="text-body mt-1 font-medium tracking-tight text-background dark:text-foreground">
|
||||
{featureCarousel.viewDetails}
|
||||
</p>
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</DottedDiv>
|
||||
</CarouselItem>
|
||||
))}
|
||||
</CarouselContent>
|
||||
|
||||
<div className="mt-5 flex justify-end gap-3">
|
||||
<CarouselPrevious className="static size-12" />
|
||||
<CarouselNext variant="default" className="static size-12" />
|
||||
</div>
|
||||
</Carousel>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { FeatureCarousel };
|
||||
|
||||
const DottedDiv = ({
|
||||
children,
|
||||
className,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
className?: string;
|
||||
}) => (
|
||||
<div className={cn("relative", className)}>
|
||||
<div className="absolute top-4 -left-[28px] h-[1.5px] w-[100%] bg-muted" />
|
||||
<div className="absolute bottom-4 -left-[28px] h-[1.5px] w-[100%] bg-muted" />
|
||||
<div className="absolute -top-25 left-4 h-[130%] w-[1.5px] bg-muted" />
|
||||
<div className="absolute -top-25 right-4 h-[130%] w-[1.5px] bg-muted" />
|
||||
<div className="absolute top-[12.5px] left-[12.5px] z-10 size-2 rounded-full bg-foreground" />
|
||||
<div className="absolute top-[12.5px] right-[12.5px] z-10 size-2 rounded-full bg-foreground" />
|
||||
<div className="absolute bottom-[12.5px] left-[12.5px] z-10 size-2 rounded-full bg-foreground" />
|
||||
<div className="absolute right-[12.5px] bottom-[12.5px] z-10 size-2 rounded-full bg-foreground" />
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
@@ -0,0 +1,64 @@
|
||||
import {
|
||||
ShoppingCart,
|
||||
FileText,
|
||||
Settings,
|
||||
} from "lucide-react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
const features = [
|
||||
{
|
||||
id: "feature-1",
|
||||
title: "ثبت و مدیریت سفارش ها",
|
||||
description: "ثبت و پیگیری سفارشها",
|
||||
icon: ShoppingCart,
|
||||
},
|
||||
{
|
||||
id: "feature-2",
|
||||
title: "دسترسی کامل به گزارش گیری و معاملات",
|
||||
description: "گزارش گیری کامل و معاملات ۲۴ ساعته",
|
||||
icon: FileText,
|
||||
},
|
||||
{
|
||||
id: "feature-3",
|
||||
title: "پنل مدیریت با ابزارهای پیشرفته",
|
||||
description: "ابزارهای پیشرفته برای مدیریت ادمین و کنترل سیستم",
|
||||
icon: Settings,
|
||||
},
|
||||
];
|
||||
|
||||
interface FeatureGridWithIconsProps {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const FeatureGridWithIcons = ({ className }: FeatureGridWithIconsProps) => {
|
||||
return (
|
||||
<section className={cn("py-32", className)}>
|
||||
<div className="container mx-auto flex flex-col items-start gap-8 lg:gap-12 lg:px-16 xl:gap-32">
|
||||
<h2 className="text-heading-2 font-semibold md:shrink-0 lg:max-w-1/3 lg:max-w-3xl">
|
||||
یک پلتفرم اختصاصی برای مدیریت کامل معاملات
|
||||
</h3>
|
||||
<div className="grid w-full gap-6">
|
||||
{features.map((feature) => (
|
||||
<div
|
||||
key={feature.id}
|
||||
className="flex rounded-lg border border-border bg-accent p-6 md:p-8"
|
||||
>
|
||||
<feature.icon className="ml-3 size-6 shrink-0 lg:ml-6 lg:size-7 text-primary" />
|
||||
<div className="flex-1">
|
||||
<h4 className="text-heading-4 mb-2 font-medium text-accent-foreground">
|
||||
{feature.title}
|
||||
</h4>
|
||||
<p className="text-body-sm font-medium text-muted-foreground">
|
||||
{feature.description}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { FeatureGridWithIcons };
|
||||
@@ -0,0 +1,85 @@
|
||||
import {
|
||||
Infinity as InfinityIcon,
|
||||
MessagesSquare,
|
||||
Zap,
|
||||
ZoomIn,
|
||||
} from "lucide-react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
const feature = [
|
||||
{
|
||||
title: "Quality",
|
||||
description:
|
||||
"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quasi necessitatibus, culpa at vitae molestias tenetur explicabo.",
|
||||
icon: <ZoomIn className="size-6" />,
|
||||
},
|
||||
{
|
||||
title: "Innovation",
|
||||
description:
|
||||
"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quasi necessitatibus, culpa at vitae molestias tenetur explicabo.",
|
||||
icon: <Zap className="size-6" />,
|
||||
},
|
||||
{
|
||||
title: "Customer Support",
|
||||
description:
|
||||
"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quasi necessitatibus, culpa at vitae molestias tenetur explicabo.",
|
||||
icon: <MessagesSquare className="size-6" />,
|
||||
},
|
||||
{
|
||||
title: "Reliability",
|
||||
description:
|
||||
"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quasi necessitatibus, culpa at vitae molestias tenetur explicabo.",
|
||||
icon: <InfinityIcon className="size-6" />,
|
||||
},
|
||||
];
|
||||
|
||||
interface FeatureListSectionProps {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const FeatureListSection = ({ className }: FeatureListSectionProps) => {
|
||||
return (
|
||||
<section className={cn("py-32", className)}>
|
||||
<div className="container mx-auto">
|
||||
<div className="flex w-full flex-col items-center">
|
||||
<div className="flex flex-col items-center space-y-4 text-center sm:space-y-6 md:max-w-3xl md:text-center">
|
||||
<p className="text-caption font-medium text-muted-foreground">WHY WE ARE UNIQUE</p>
|
||||
<h2 className="text-heading-2 font-semibold">
|
||||
Bringing the best to you by the best in the industry
|
||||
</h2>
|
||||
|
||||
<p className="text-muted-foreground md:max-w-2xl">
|
||||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quasi
|
||||
necessitatibus, culpa at vitae molestias tenetur explicabo.
|
||||
Voluptatum amet architecto suscipit pariatur eligendi repellendus
|
||||
mollitia dolore unde sint?
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div className="mx-auto mt-20 grid max-w-5xl gap-6 md:grid-cols-2">
|
||||
{feature.map((feature, idx) => (
|
||||
<div
|
||||
className="flex flex-col justify-between rounded-lg bg-accent p-6 md:min-h-[300px] md:p-8"
|
||||
key={idx}
|
||||
>
|
||||
<span className="mb-6 flex size-11 items-center justify-center rounded-full bg-background">
|
||||
{feature.icon}
|
||||
</span>
|
||||
<div>
|
||||
<h3 className="text-heading-3 font-semibold">
|
||||
{feature.title}
|
||||
</h3>
|
||||
<p className="text-body-sm mt-2 leading-relaxed text-muted-foreground">
|
||||
{feature.description}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { FeatureListSection };
|
||||
@@ -0,0 +1,160 @@
|
||||
"use client";
|
||||
|
||||
import {
|
||||
ChartArea,
|
||||
ChartNoAxesCombined,
|
||||
Layout,
|
||||
Medal,
|
||||
Monitor,
|
||||
Target,
|
||||
TrendingUp,
|
||||
} from "lucide-react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
|
||||
interface FeaturePartnershipHighlightsProps {
|
||||
className?: string;
|
||||
/** مسیر تصویر وسط سکشن (مثلاً برای صفحه آبشده همکار) */
|
||||
centerImageSrc?: string;
|
||||
/** متن alt تصویر وسط */
|
||||
centerImageAlt?: string;
|
||||
}
|
||||
|
||||
const defaultCenterImage =
|
||||
"https://deifkwefumgah.cloudfront.net/shadcnblocks/block/placeholder-1.svg";
|
||||
|
||||
const FeaturePartnershipHighlights = ({
|
||||
className,
|
||||
centerImageSrc,
|
||||
centerImageAlt = "",
|
||||
}: FeaturePartnershipHighlightsProps) => {
|
||||
const leftCards = [
|
||||
{
|
||||
icon: Target,
|
||||
title: "راهکارهای هدفمند",
|
||||
description:
|
||||
"امکانات متناسب با چالشهای خاص پروژه شما برای رسیدن به نتیجه دقیق.",
|
||||
},
|
||||
{
|
||||
icon: Layout,
|
||||
title: "یکپارچهسازی روان",
|
||||
description:
|
||||
"ادغام بیدردسر با سامانههای موجود برای حفظ تداوم و عملکرد.",
|
||||
},
|
||||
{
|
||||
icon: ChartArea,
|
||||
title: "بینش داده لحظهای",
|
||||
description:
|
||||
"مانیتورینگ داده در زمان واقعی برای تصمیمگیری بهتر و تنظیم سریعتر.",
|
||||
},
|
||||
];
|
||||
|
||||
const rightCards = [
|
||||
{
|
||||
icon: TrendingUp,
|
||||
title: "رشد راهبردی",
|
||||
description:
|
||||
"ابزارهای راهبردی برای مقیاسپذیری کسبوکار و پاسخ به نیازهای در حال تحول بازار.",
|
||||
},
|
||||
{
|
||||
icon: ChartNoAxesCombined,
|
||||
title: "تحلیلهای پیشرفته",
|
||||
description:
|
||||
"بینش عمیقتر با تحلیلهای پیشرفته برای پیشتازی در تصمیمگیری.",
|
||||
},
|
||||
{
|
||||
icon: Monitor,
|
||||
title: "مدیریت یکپارچه",
|
||||
description:
|
||||
"مدیریت و کنترل متمرکز همه جنبههای گردش کار از یک پلتفرم.",
|
||||
},
|
||||
];
|
||||
|
||||
return (
|
||||
<section
|
||||
className={cn(
|
||||
"border-t border-border/50 bg-background py-16 sm:py-24 md:py-32",
|
||||
className
|
||||
)}
|
||||
dir="rtl"
|
||||
>
|
||||
<div className="container mx-auto flex flex-col items-center px-4 sm:px-6">
|
||||
<div className="mx-auto flex max-w-3xl flex-col items-center gap-4 text-center">
|
||||
<Badge
|
||||
variant="outline"
|
||||
className="flex items-center gap-1.5 px-2.5 py-1.5 text-caption font-medium"
|
||||
>
|
||||
<Medal className="h-auto w-4" />
|
||||
برجستهها
|
||||
</Badge>
|
||||
<h2 className="text-heading-2 font-semibold text-foreground">
|
||||
توانایی همکاری خود را آزاد کنید
|
||||
</h2>
|
||||
<p className="text-body text-muted-foreground">
|
||||
مزایای فرآیند سادهشده را تجربه کنید؛ طراحیشده برای بهرهوری و
|
||||
موفقیت بیشتر.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="mx-auto mt-10 w-full max-w-6xl grid gap-2.5 sm:mt-14 lg:grid-cols-3 lg:gap-4">
|
||||
{/* ستون چپ — موبایل: اول */}
|
||||
<div className="flex flex-col gap-2.5 lg:gap-3">
|
||||
{leftCards.map((card, index) => (
|
||||
<div
|
||||
key={index}
|
||||
className="flex flex-col gap-3 rounded-lg border border-border bg-card p-4 sm:p-6"
|
||||
>
|
||||
<div className="flex items-center gap-2.5">
|
||||
<span className="flex size-10 shrink-0 items-center justify-center rounded-md bg-muted sm:size-12">
|
||||
<card.icon className="h-5 w-5 sm:h-6 sm:w-6" />
|
||||
</span>
|
||||
<h3 className="text-heading-4 font-medium text-foreground">
|
||||
{card.title}
|
||||
</h3>
|
||||
</div>
|
||||
<p className="text-body-sm text-muted-foreground sm:text-body">
|
||||
{card.description}
|
||||
</p>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
|
||||
{/* تصویر وسط — فقط دسکتاپ */}
|
||||
<div className="hidden items-center justify-center py-4 lg:flex lg:py-0">
|
||||
<img
|
||||
src={centerImageSrc ?? defaultCenterImage}
|
||||
alt={centerImageAlt}
|
||||
className="h-full w-full rounded-lg object-cover opacity-90"
|
||||
/>
|
||||
</div>
|
||||
|
||||
{/* ستون راست — موبایل: دوم */}
|
||||
<div className="flex flex-col gap-2.5 lg:gap-3">
|
||||
{rightCards.map((card, index) => (
|
||||
<div
|
||||
key={index}
|
||||
className="flex flex-col gap-3 rounded-lg border border-border bg-card p-4 sm:p-6"
|
||||
>
|
||||
<div className="flex items-center gap-2.5">
|
||||
<span className="flex size-10 shrink-0 items-center justify-center rounded-md bg-muted sm:size-12">
|
||||
<card.icon className="h-5 w-5 sm:h-6 sm:w-6" />
|
||||
</span>
|
||||
<h3 className="text-heading-4 font-medium text-foreground">
|
||||
{card.title}
|
||||
</h3>
|
||||
</div>
|
||||
<p className="text-body-sm text-muted-foreground sm:text-body">
|
||||
{card.description}
|
||||
</p>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { FeaturePartnershipHighlights };
|
||||
@@ -0,0 +1,105 @@
|
||||
"use client";
|
||||
|
||||
import Image from "next/image";
|
||||
import { Circle } from "lucide-react";
|
||||
|
||||
import {
|
||||
Accordion,
|
||||
AccordionContent,
|
||||
AccordionItem,
|
||||
AccordionTrigger,
|
||||
} from "@/components/ui/accordion";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
interface FeatureProductDetailShowcaseProps {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const productDetails = {
|
||||
brand: "مستر دکور",
|
||||
name: "ویترین طلا",
|
||||
description:
|
||||
"نمایش حرفه ای محصولات طلا با تجربه کاربری روان، تمرکز بر اعتماد مشتری و مدیریت یکپارچه در یک صفحه محصول کامل.",
|
||||
image: "/assets/main-pic/product/sampleghaleb.png",
|
||||
features: [
|
||||
"نمایش شفاف اطلاعات محصول با ساختار خوانا",
|
||||
"هماهنگ با رابط کاربری مدرن و واکنش گرا",
|
||||
"تمرکز بر تجربه مشتری در تصمیم خرید",
|
||||
"آماده اتصال به جریان های فروش و مشاوره",
|
||||
],
|
||||
info: [
|
||||
{
|
||||
title: "معرفی محصول",
|
||||
content:
|
||||
"این قالب برای نمایش یک محصول به صورت کامل طراحی شده است تا مخاطب در همان نگاه اول، تصویر دقیق، ویژگی ها و ارزش پیشنهادی محصول را درک کند.",
|
||||
},
|
||||
{
|
||||
title: "مخاطب هدف",
|
||||
content:
|
||||
"مناسب فروشگاه ها و کسب وکارهای فعال در بازار طلا که به دنبال نمایش حرفه ای محصولات و افزایش اعتماد کاربران در صفحه محصول هستند.",
|
||||
},
|
||||
{
|
||||
title: "مزیت برای کسب وکار",
|
||||
content:
|
||||
"ساختار ساده و تمیز این بخش باعث می شود تمرکز کاربر روی ارزش محصول باقی بماند و فرآیند آشنایی تا اقدام کاربر کوتاه تر شود.",
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
const FeatureProductDetailShowcase = ({
|
||||
className,
|
||||
}: FeatureProductDetailShowcaseProps) => {
|
||||
return (
|
||||
<section className={cn("py-20 md:py-28", className)} dir="rtl">
|
||||
<div className="mx-auto w-full max-w-7xl px-4 sm:px-6">
|
||||
<div className="grid gap-8 rounded-3xl border border-border bg-card p-4 md:p-6 lg:grid-cols-2 lg:gap-12 lg:p-8">
|
||||
<div className="overflow-hidden rounded-2xl border border-border bg-muted/40">
|
||||
<Image
|
||||
src={productDetails.image}
|
||||
alt={productDetails.name}
|
||||
width={1200}
|
||||
height={900}
|
||||
className="h-full max-h-[560px] w-full object-cover"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="flex flex-col">
|
||||
<p className="text-caption font-medium text-muted-foreground">
|
||||
{productDetails.brand}
|
||||
</p>
|
||||
<h2 className="mt-2 text-heading-2 font-semibold text-foreground">
|
||||
{productDetails.name}
|
||||
</h2>
|
||||
<p className="mt-4 text-body text-muted-foreground">
|
||||
{productDetails.description}
|
||||
</p>
|
||||
|
||||
<ul className="mt-6 space-y-2">
|
||||
{productDetails.features.map((feature) => (
|
||||
<li key={feature} className="flex items-start gap-3 text-body-sm text-foreground">
|
||||
<Circle className="mt-1 h-2.5 w-2.5 fill-foreground stroke-foreground" />
|
||||
<span>{feature}</span>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
|
||||
<Accordion type="multiple" className="mt-8 w-full border-t border-border">
|
||||
{productDetails.info.map((item) => (
|
||||
<AccordionItem key={item.title} value={item.title}>
|
||||
<AccordionTrigger className="text-heading-4 font-medium text-foreground hover:no-underline">
|
||||
{item.title}
|
||||
</AccordionTrigger>
|
||||
<AccordionContent className="text-body-sm text-muted-foreground">
|
||||
{item.content}
|
||||
</AccordionContent>
|
||||
</AccordionItem>
|
||||
))}
|
||||
</Accordion>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { FeatureProductDetailShowcase };
|
||||
@@ -0,0 +1,28 @@
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
|
||||
interface FeatureTextSectionProps {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const FeatureTextSection = ({ className }: FeatureTextSectionProps) => {
|
||||
return (
|
||||
<section className={cn("py-32", className)}>
|
||||
<div className="container mx-auto">
|
||||
<div className="flex flex-col items-center text-center">
|
||||
<h2 className="text-heading-2 my-6 font-semibold text-pretty lg:max-w-3xl">
|
||||
روش سنتی، سرعت بازار امروز را ندارد
|
||||
</h2>
|
||||
<p className="text-body mb-8 leading-relaxed text-muted-foreground lg:max-w-3xl">
|
||||
در معاملات آبشده، تماسهای مکرر برای دریافت قیمت، هماهنگی خرید و فروش و ارسال مانده حساب به مشتریان، زمانبر و پرریسک است.
|
||||
ثبت دستی یا پراکنده اطلاعات، احتمال اختلاف حساب و سوءتفاهم را افزایش میدهد.
|
||||
</p>
|
||||
<Button variant="outline">بازاری که بر سرعت و دقت استوار است، نیاز به زیرساخت دقیق دارد.</Button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { FeatureTextSection };
|
||||
@@ -0,0 +1,149 @@
|
||||
"use client";
|
||||
|
||||
import { AnimatePresence, motion } from "framer-motion";
|
||||
import Image from "next/image";
|
||||
import { useMemo, useState } from "react";
|
||||
|
||||
import { ScrollableTabsList } from "@/components/shadcnblocks/scrollable-tabslist";
|
||||
import { ScrollBar } from "@/components/ui/scroll-area";
|
||||
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
interface FeatureWorkspaceTabsProps {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const tabItems = [
|
||||
{
|
||||
value: "display",
|
||||
label: "نمایش حرفهای",
|
||||
eyebrow: "ویترین و استند",
|
||||
title: "ویترینی بسازید که فروش را سریع تر می کند",
|
||||
description:
|
||||
"چیدمان اصولی استندها باعث می شود سرویس های طلا و جواهر بهتر دیده شوند، تصمیم خرید سریع تر گرفته شود ",
|
||||
image: "/assets/main-pic/feature/feature1.webp",
|
||||
stats: [
|
||||
{ value: "۳۵۰+", label: "پروژه اجراشده در فروشگاه" },
|
||||
{ value: "۱۵+", label: "سال تجربه در دکور طلافروشی" },
|
||||
],
|
||||
},
|
||||
{
|
||||
value: "identity",
|
||||
label: "هماهنگ با برند",
|
||||
eyebrow: "دکور مجموعه شما",
|
||||
title: "دکور هماهنگ با هویت برند طلافروشی شما",
|
||||
description:
|
||||
"روکش، متریال و جزئیات اجرایی را بر اساس سبک فروشگاه شما انتخاب می کنیم تا هر استند بخشی از هویت برندتان باشد و در ذهن مشتری ماندگار بماند.",
|
||||
image: "/assets/main-pic/feature/feature1.webp",
|
||||
stats: [
|
||||
{ value: "۹۳٪", label: "رضایت مشتریان در نظرسنجیها" },
|
||||
{ value: "۴۸ ساعت", label: "شروع پشتیبانی پس از تحویل" },
|
||||
],
|
||||
},
|
||||
{
|
||||
value: "lifecycle",
|
||||
label: "از مشاوره تا پس از فروش",
|
||||
eyebrow: "همراهی مستر دکور",
|
||||
title: "از مشاوره تا نصب، یک مسیر شفاف و قابل اتکا",
|
||||
description:
|
||||
"از بازدید و نیازسنجی تا تولید و نصب، برنامه زمان بندی مشخص ارائه می کنیم و بعد از تحویل نیز با خدمات پس از فروش کنار شما می مانیم .",
|
||||
image: "/assets/main-pic/feature/feature1.webp",
|
||||
stats: [
|
||||
{ value: "۱۰۰٪", label: "هماهنگی با ابعاد واقعی فضا" },
|
||||
{ value: "گارانتی", label: "تعهد کیفی روی اجرای سازه" },
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
const FeatureWorkspaceTabs = ({ className }: FeatureWorkspaceTabsProps) => {
|
||||
const [activeTab, setActiveTab] = useState("display");
|
||||
const activeItem = useMemo(
|
||||
() => tabItems.find((item) => item.value === activeTab) ?? tabItems[0],
|
||||
[activeTab],
|
||||
);
|
||||
|
||||
return (
|
||||
<section className={cn("section-blur-separator py-20 md:py-28", className)} dir="rtl">
|
||||
<div className="mx-auto flex w-full max-w-7xl justify-center px-4 sm:px-6">
|
||||
<Tabs
|
||||
value={activeTab}
|
||||
onValueChange={setActiveTab}
|
||||
defaultValue="display"
|
||||
className="mx-auto grid w-full max-w-6xl grid-cols-1 gap-8 lg:grid-cols-2 lg:items-center xl:gap-20"
|
||||
>
|
||||
<div className="flex flex-col-reverse items-center justify-between gap-8 text-center lg:flex-col lg:text-center">
|
||||
<div>
|
||||
<AnimatePresence mode="wait" initial={false}>
|
||||
<motion.div
|
||||
key={activeItem.value}
|
||||
initial={{ opacity: 0, y: 12 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
exit={{ opacity: 0, y: -10 }}
|
||||
transition={{ duration: 0.35, ease: "easeOut" }}
|
||||
>
|
||||
<TabsContent
|
||||
value={activeItem.value}
|
||||
forceMount
|
||||
className="mt-0 flex flex-col items-center gap-6"
|
||||
>
|
||||
<span className="text-caption font-medium text-muted-foreground">
|
||||
{activeItem.eyebrow}
|
||||
</span>
|
||||
<div className="flex max-w-xl flex-col gap-4">
|
||||
<h2 className="text-heading-2 font-semibold text-foreground">
|
||||
{activeItem.title}
|
||||
</h2>
|
||||
<div className="tone-gradient-line" aria-hidden />
|
||||
<p className="text-body text-muted-foreground">{activeItem.description}</p>
|
||||
</div>
|
||||
</TabsContent>
|
||||
</motion.div>
|
||||
</AnimatePresence>
|
||||
</div>
|
||||
|
||||
<ScrollableTabsList className="w-full">
|
||||
<TabsList className="mx-auto h-12 overflow-y-hidden rounded-full">
|
||||
{tabItems.map((item) => (
|
||||
<TabsTrigger
|
||||
key={item.value}
|
||||
value={item.value}
|
||||
className="h-full rounded-full px-4 py-2 transition-all duration-300"
|
||||
>
|
||||
{item.label}
|
||||
</TabsTrigger>
|
||||
))}
|
||||
</TabsList>
|
||||
<ScrollBar orientation="horizontal" className="h-2" />
|
||||
</ScrollableTabsList>
|
||||
</div>
|
||||
|
||||
<div className="relative">
|
||||
<AnimatePresence mode="wait" initial={false}>
|
||||
<motion.div
|
||||
key={activeItem.value}
|
||||
initial={{ opacity: 0, scale: 0.985 }}
|
||||
animate={{ opacity: 1, scale: 1 }}
|
||||
exit={{ opacity: 0, scale: 1.01 }}
|
||||
transition={{ duration: 0.4, ease: "easeOut" }}
|
||||
>
|
||||
<TabsContent value={activeItem.value} forceMount className="mt-0">
|
||||
<div className="relative overflow-hidden rounded-3xl">
|
||||
<Image
|
||||
src={activeItem.image}
|
||||
alt={activeItem.title}
|
||||
width={1200}
|
||||
height={900}
|
||||
className="h-[440px] w-full object-cover lg:h-[540px]"
|
||||
/>
|
||||
</div>
|
||||
</TabsContent>
|
||||
</motion.div>
|
||||
</AnimatePresence>
|
||||
</div>
|
||||
</Tabs>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { FeatureWorkspaceTabs };
|
||||
@@ -0,0 +1,74 @@
|
||||
"use client";
|
||||
|
||||
import { Card, CardHeader } from "@/components/ui/card";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { Settings2, Sparkles, Zap } from "lucide-react";
|
||||
import { ReactNode } from "react";
|
||||
import { useContent } from "@/components/layout/content-provider";
|
||||
|
||||
const featureIcons = [Zap, Settings2, Sparkles];
|
||||
|
||||
export default function FeaturesCardGrid() {
|
||||
const content = useContent();
|
||||
const { featuresCardGrid } = content.pages.home;
|
||||
const features = featuresCardGrid.items.map((item, i) => ({
|
||||
...item,
|
||||
icon: featureIcons[i] ?? Zap,
|
||||
}));
|
||||
|
||||
return (
|
||||
<section
|
||||
className="py-16 md:py-24 lg:py-32 border-t border-border/50"
|
||||
aria-labelledby="features-heading"
|
||||
>
|
||||
<div className="@container mx-auto max-w-5xl px-6" dir="rtl">
|
||||
<div className="text-center">
|
||||
<h2
|
||||
id="features-heading"
|
||||
className="text-heading-2 font-semibold leading-tight text-foreground"
|
||||
>
|
||||
{featuresCardGrid.heading}
|
||||
</h2>
|
||||
</div>
|
||||
<div className="@min-4xl:max-w-full @min-4xl:grid-cols-3 mx-auto mt-10 grid max-w-sm gap-6 md:mt-14 lg:gap-8">
|
||||
{features.map((item) => {
|
||||
const Icon = item.icon;
|
||||
return (
|
||||
<Card
|
||||
key={item.title}
|
||||
className="group border-border/80 bg-card text-center shadow-sm transition-shadow hover:shadow-md hover:border-primary/20"
|
||||
>
|
||||
<CardHeader className="pb-4">
|
||||
<CardDecorator>
|
||||
<Icon
|
||||
className="size-6 text-primary"
|
||||
aria-hidden
|
||||
/>
|
||||
</CardDecorator>
|
||||
<h3 className="mt-5 text-heading-5 font-medium text-foreground">
|
||||
{item.title}
|
||||
</h3>
|
||||
<p className="mt-2 text-body-sm leading-relaxed text-muted-foreground">
|
||||
{item.description}
|
||||
</p>
|
||||
</CardHeader>
|
||||
</Card>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
||||
const CardDecorator = ({ children }: { children: ReactNode }) => (
|
||||
<div className="mask-radial-from-40% mask-radial-to-60% relative mx-auto size-36 duration-200 [--color-border:color-mix(in_oklab,var(--color-primary)_0.12,transparent)] group-hover:[--color-border:color-mix(in_oklab,var(--color-primary)_0.2,transparent)]">
|
||||
<div
|
||||
aria-hidden
|
||||
className="absolute inset-0 bg-[linear-gradient(to_right,var(--color-border)_1px,transparent_1px),linear-gradient(to_bottom,var(--color-border)_1px,transparent_1px)] bg-[size:24px_24px] opacity-80"
|
||||
/>
|
||||
<div className="bg-card border-border/60 absolute inset-0 m-auto flex size-12 items-center justify-center rounded-lg border shadow-sm">
|
||||
{children}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
@@ -0,0 +1,38 @@
|
||||
'use client'
|
||||
|
||||
import { Target, CheckCircle, Shield, Briefcase, Headphones, TrendingUp } from 'lucide-react'
|
||||
import { useContent } from '@/components/layout/content-provider'
|
||||
|
||||
const icons = [Target, CheckCircle, Shield, Briefcase, Headphones, TrendingUp]
|
||||
|
||||
export default function FeaturesIconGrid() {
|
||||
const content = useContent()
|
||||
const { featuresIconGrid } = content.pages.home
|
||||
|
||||
return (
|
||||
<section className="py-12 md:py-16 lg:py-20 border-t border-border/50">
|
||||
<div className="mx-auto max-w-5xl space-y-6 px-6 md:space-y-10">
|
||||
<div className="relative z-10 mx-auto max-w-xl space-y-4 text-center md:space-y-6">
|
||||
<h2 className="text-heading-2 text-balance font-semibold">{featuresIconGrid.heading}</h2>
|
||||
<p className="text-body leading-relaxed text-muted-foreground">{featuresIconGrid.description}</p>
|
||||
</div>
|
||||
|
||||
<div className="relative mx-auto grid max-w-4xl divide-x divide-y border border-border dark:border-primary/20 dark:divide-primary/10 *:p-12 sm:grid-cols-2 lg:grid-cols-3 *:transition-colors *:hover:bg-primary/5 dark:*:hover:bg-primary/5">
|
||||
{featuresIconGrid.items.map((item, index) => {
|
||||
const Icon = icons[index] ?? Target
|
||||
return (
|
||||
<div key={index} className="space-y-3">
|
||||
<div className="flex items-center gap-2">
|
||||
<Icon className="size-4 text-primary dark:text-primary" />
|
||||
<h4 className="text-heading-5 font-medium">{item}</h4>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
export default function FeaturesPrimary() {
|
||||
|
||||
return (
|
||||
<>
|
||||
<section className="relative py-12 md:py-16 lg:py-20">
|
||||
<div className="relative z-0 mx-auto max-w-5xl space-y-6 px-6 md:space-y-10 lg:space-y-12 dark:[--color-border:color-mix(in_oklab,var(--color-white)_10%,transparent)]">
|
||||
<div className="relative z-10 mx-auto max-w-2xl space-y-4 text-center">
|
||||
<h2 className="text-heading-2 font-semibold leading-tight">
|
||||
ما چه میکنیم؟
|
||||
</h2>
|
||||
<p className="text-body leading-relaxed text-muted-foreground">ما بهصورت تخصصی برای فعالان بازار طلا و فلزات گرانبها نرمافزار طراحی میکنیم.محصولات ما بر اساس نیاز عملیاتی این بازار توسعه یافتهاند، نه صرفاً بر اساس الگوهای عمومی نرمافزاری. سامانههای ما در حال حاضر توسط مجموعههای فعال بازار مورد استفاده قرار میگیرند و در شرایط واقعی معامله آزموده شدهاند.</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,127 @@
|
||||
"use client";
|
||||
|
||||
import Link from "next/link";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
type ProductCategory = {
|
||||
title: string;
|
||||
image: {
|
||||
src: string;
|
||||
alt: string;
|
||||
};
|
||||
summary: string;
|
||||
link: string;
|
||||
};
|
||||
|
||||
type ProductCategories2Props = {
|
||||
title?: string;
|
||||
productCategories?: ProductCategory[];
|
||||
className?: string;
|
||||
};
|
||||
|
||||
const PRODUCT_CATEGORIES = {
|
||||
title: "ما چه خدماتی ارائه میدیم؟",
|
||||
productCategories: [
|
||||
{
|
||||
title: "ویترین طلا",
|
||||
summary: "استندها و ملزوماتی برای نمایش لوکس سرویس های طلا با چیدمان حرفه ای",
|
||||
image: {
|
||||
src: "/assets/main-pic/service 1.png",
|
||||
alt: "",
|
||||
},
|
||||
link: "/product?category=vitrin-tala",
|
||||
},
|
||||
{
|
||||
title: "ویترین خردسال",
|
||||
summary: "چیدمان هدفمند برای نمایش امن و منظم محصولات خردسال",
|
||||
image: {
|
||||
src: "/assets/main-pic/service 2.jpeg",
|
||||
alt: "",
|
||||
},
|
||||
link: "/product?category=vitrin-khorde-sal",
|
||||
},
|
||||
{
|
||||
title: "ویترین جواهر",
|
||||
summary: "طراحی ویترین جواهر با تاکید بر درخشش، جزئیات و تجربه بصری مشتری",
|
||||
image: {
|
||||
src: "/assets/main-pic/service 3.jpeg",
|
||||
alt: "",
|
||||
},
|
||||
link: "/product?category=vitrin-javaher",
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
const ProductCategories2 = ({
|
||||
title = PRODUCT_CATEGORIES.title,
|
||||
productCategories = PRODUCT_CATEGORIES.productCategories,
|
||||
className,
|
||||
}: ProductCategories2Props) => {
|
||||
return (
|
||||
<section className={cn("py-20 md:py-24 lg:py-28", className)}>
|
||||
<div className="mx-auto w-full max-w-7xl px-4 sm:px-6">
|
||||
<div className="flex flex-col gap-10">
|
||||
<h2 className="text-heading-2 animate-in text-center font-semibold text-foreground duration-600 fade-in slide-in-from-bottom-6">
|
||||
{title}
|
||||
</h2>
|
||||
<div className="grid grid-cols-2 gap-x-2.5 gap-y-10 lg:grid-cols-3">
|
||||
{productCategories?.map((item, index) => (
|
||||
<div
|
||||
key={item.title}
|
||||
style={{
|
||||
animationDelay: `${100 * index}ms`,
|
||||
}}
|
||||
className="animate-out opacity-0 duration-700 fade-in-100 fill-mode-forwards"
|
||||
>
|
||||
<ProductCategoryCard {...item} />
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
const ProductCategoryCard = ({
|
||||
title,
|
||||
image,
|
||||
summary,
|
||||
link,
|
||||
}: ProductCategory) => {
|
||||
return (
|
||||
<div className="relative isolate h-full">
|
||||
<div className="relative h-full overflow-hidden rounded-2xl border border-primary/30 bg-overlay/25 shadow-2xl backdrop-blur-2xl backdrop-saturate-150">
|
||||
<div
|
||||
aria-hidden
|
||||
className="pointer-events-none absolute -right-10 -top-10 z-0 h-36 w-36 rounded-full bg-primary/8 blur-3xl sm:h-44 sm:w-44"
|
||||
/>
|
||||
<div
|
||||
aria-hidden
|
||||
className="pointer-events-none absolute -bottom-10 -left-10 z-0 h-36 w-36 rounded-full bg-primary/8 blur-3xl sm:h-44 sm:w-44"
|
||||
/>
|
||||
<div className="relative z-10">
|
||||
<Link href={link} className="group/card flex flex-col gap-0">
|
||||
<div className="relative aspect-[1.363277259] w-full overflow-hidden rounded-t-2xl">
|
||||
<img
|
||||
src={image.src}
|
||||
alt={image.alt}
|
||||
className="absolute inset-0 h-full w-full origin-center object-cover object-center transition-transform duration-300 ease-out group-hover/card:scale-110 motion-reduce:transition-none motion-reduce:group-hover/card:scale-100"
|
||||
/>
|
||||
</div>
|
||||
<div className="space-y-1 px-3 py-4 sm:px-4 sm:pb-5">
|
||||
<h3 className="text-heading-4 text-center font-medium text-gold-300">
|
||||
{title}
|
||||
</h3>
|
||||
<p className="text-body-sm text-center text-muted-foreground">
|
||||
{summary}
|
||||
</p>
|
||||
</div>
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export { ProductCategories2 };
|
||||
@@ -0,0 +1,113 @@
|
||||
"use client";
|
||||
|
||||
import Image from "next/image";
|
||||
import { useState } from "react";
|
||||
|
||||
import {
|
||||
Carousel,
|
||||
CarouselContent,
|
||||
CarouselItem,
|
||||
CarouselNext,
|
||||
CarouselPrevious,
|
||||
} from "@/components/ui/carousel";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
export interface ProductDetailGalleryProps {
|
||||
images: { src: string; alt: string }[];
|
||||
className?: string;
|
||||
}
|
||||
|
||||
/** موبایل: کاروسل با زوم هاور. دسکتاپ: تصویر بزرگ + ردیف بندانگشتی؛ کلیک بندانگشتی → جابهجایی به نمای بزرگ */
|
||||
export function ProductDetailGallery({ images, className }: ProductDetailGalleryProps) {
|
||||
const [activeIndex, setActiveIndex] = useState(0);
|
||||
|
||||
if (!images.length) return null;
|
||||
|
||||
const safeIndex = Math.min(activeIndex, images.length - 1);
|
||||
const main = images[safeIndex] ?? images[0]!;
|
||||
|
||||
const zoomImageClass =
|
||||
"object-cover object-center transition-transform duration-500 ease-out motion-safe:group-hover:scale-[1.04]";
|
||||
|
||||
return (
|
||||
<div className={cn("w-full min-w-0", className)} dir="rtl">
|
||||
{/* موبایل: کاروسل */}
|
||||
<div className="md:hidden">
|
||||
<Carousel
|
||||
opts={{
|
||||
breakpoints: {
|
||||
"(min-width: 768px)": {
|
||||
active: false,
|
||||
},
|
||||
},
|
||||
}}
|
||||
>
|
||||
<CarouselContent className="gap-4">
|
||||
{images.map((img, index) => (
|
||||
<CarouselItem className="md:p-0" key={`${img.src}-m-${index}`}>
|
||||
<div className="group relative aspect-square overflow-hidden rounded-lg bg-muted/40">
|
||||
<Image
|
||||
src={img.src}
|
||||
alt={img.alt}
|
||||
fill
|
||||
sizes="100vw"
|
||||
className={zoomImageClass}
|
||||
priority={index === 0}
|
||||
/>
|
||||
</div>
|
||||
</CarouselItem>
|
||||
))}
|
||||
</CarouselContent>
|
||||
<div className="md:hidden">
|
||||
<CarouselPrevious className="start-4" />
|
||||
<CarouselNext className="end-4" />
|
||||
</div>
|
||||
</Carousel>
|
||||
</div>
|
||||
|
||||
{/* دسکتاپ: بزرگ + بندانگشتیها */}
|
||||
<div className="hidden flex-col gap-4 md:flex xl:gap-5">
|
||||
<div className="group relative aspect-square w-full overflow-hidden rounded-lg bg-muted/40">
|
||||
<Image
|
||||
src={main.src}
|
||||
alt={main.alt}
|
||||
fill
|
||||
sizes="(min-width: 1280px) 40vw, (min-width: 768px) 45vw, 50vw"
|
||||
className={zoomImageClass}
|
||||
priority={safeIndex === 0}
|
||||
/>
|
||||
</div>
|
||||
|
||||
{images.length > 1 ? (
|
||||
<div className="grid grid-cols-3 gap-4 xl:gap-5">
|
||||
{images.map((img, index) => {
|
||||
if (index === safeIndex) return null;
|
||||
return (
|
||||
<button
|
||||
type="button"
|
||||
key={`thumb-${img.src}-${index}`}
|
||||
onClick={() => setActiveIndex(index)}
|
||||
className={cn(
|
||||
"group/thumb relative aspect-square w-full overflow-hidden rounded-lg bg-muted",
|
||||
"ring-offset-2 ring-offset-background transition-[box-shadow,transform]",
|
||||
"hover:ring-2 hover:ring-primary/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary",
|
||||
"active:scale-[0.98]",
|
||||
)}
|
||||
aria-label={`نمایش تصویر ${index + 1} در اندازه بزرگ`}
|
||||
>
|
||||
<Image
|
||||
src={img.src}
|
||||
alt=""
|
||||
fill
|
||||
sizes="(min-width: 1280px) 14vw, 18vw"
|
||||
className="object-cover object-center transition-transform duration-500 ease-out motion-safe:group-hover/thumb:scale-[1.03]"
|
||||
/>
|
||||
</button>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
) : null}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
"use client";
|
||||
|
||||
import type { ProductDetail } from "@/lib/catalog-products";
|
||||
import {
|
||||
Accordion,
|
||||
AccordionContent,
|
||||
AccordionItem,
|
||||
AccordionTrigger,
|
||||
} from "@/components/ui/accordion";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
export interface ProductDetailSpecsProps {
|
||||
product: ProductDetail;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* بلوک توضیحات محصول: نام، رنگ، متریال، توضیح و ویژگیها
|
||||
* (الهام از product-detail2 بدون قیمت، فرم، تعداد و دکمه خرید)
|
||||
*/
|
||||
export function ProductDetailSpecs({ product, className }: ProductDetailSpecsProps) {
|
||||
return (
|
||||
<div className={cn("flex min-w-0 flex-col gap-5", className)} dir="rtl">
|
||||
<h1 className="text-heading-1 font-bold text-2xl text-foreground">{product.name}</h1>
|
||||
|
||||
<div className="flex flex-col gap-1">
|
||||
<span className="text-caption font-medium text-muted-foreground">رنگ</span>
|
||||
<span className="text-body text-foreground">{product.color}</span>
|
||||
</div>
|
||||
|
||||
<div className="flex flex-col gap-1">
|
||||
<span className="text-caption font-medium text-muted-foreground">متریال</span>
|
||||
<span className="text-body text-foreground">{product.material}</span>
|
||||
</div>
|
||||
|
||||
<p className="text-body text-muted-foreground leading-relaxed">{product.description}</p>
|
||||
|
||||
<div className="flex flex-col gap-3">
|
||||
<h2 className="text-heading-2 font-semibold text-foreground text-xl">ویژگیهای محصول</h2>
|
||||
<Accordion type="multiple" className="w-full">
|
||||
{product.features.map((item, index) => (
|
||||
<AccordionItem key={`${item.title}-${index}`} value={`feature-${index}`}>
|
||||
<AccordionTrigger className="text-start hover:no-underline">
|
||||
<h3 className="text-heading-4 font-medium text-foreground text-lg">{item.title}</h3>
|
||||
</AccordionTrigger>
|
||||
<AccordionContent>
|
||||
<p className="text-body text-muted-foreground leading-relaxed">{item.content}</p>
|
||||
</AccordionContent>
|
||||
</AccordionItem>
|
||||
))}
|
||||
</Accordion>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
"use client";
|
||||
|
||||
import type { ProductDetail } from "@/lib/catalog-products";
|
||||
import { ProductDetailGallery } from "@/components/sections/feature/product-detail-gallery";
|
||||
import { ProductDetailSpecs } from "@/components/sections/feature/product-detail-specs";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
export interface ProductDetailViewProps {
|
||||
product: ProductDetail;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export function ProductDetailView({ product, className }: ProductDetailViewProps) {
|
||||
return (
|
||||
<section className={cn("py-16 md:py-24 lg:py-28", className)} dir="rtl">
|
||||
<div className="mx-auto w-full max-w-7xl px-4 sm:px-6">
|
||||
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2 lg:gap-12 lg:items-start">
|
||||
<ProductDetailGallery key={product.id} images={product.gallery} />
|
||||
<div className="lg:sticky lg:top-24">
|
||||
<ProductDetailSpecs product={product} />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,355 @@
|
||||
"use client";
|
||||
|
||||
import Image from "next/image";
|
||||
import Link from "next/link";
|
||||
import { Eye } from "lucide-react";
|
||||
import { useEffect, useMemo, useState } from "react";
|
||||
|
||||
import { AspectRatio } from "@/components/ui/aspect-ratio";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { Card, CardContent, CardHeader } from "@/components/ui/card";
|
||||
import type { ProductCategory, ProductItem } from "@/lib/catalog-products";
|
||||
import { CATALOG_PRODUCTS } from "@/lib/catalog-products";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
interface CategorySectionMeta {
|
||||
category: ProductCategory;
|
||||
categoryHeading: string;
|
||||
promo: {
|
||||
kicker: string;
|
||||
title: string;
|
||||
ctaLabel: string;
|
||||
href: string;
|
||||
image: string;
|
||||
imageAlt: string;
|
||||
};
|
||||
}
|
||||
|
||||
interface ProductList10CatalogProps {
|
||||
initialCategory?: string;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const CATEGORY_OPTIONS: Array<{ value: ProductCategory; label: string }> = [
|
||||
{ value: "vitrin-tala", label: "ویترین طلا" },
|
||||
{ value: "vitrin-khorde-sal", label: "ویترین خردسال" },
|
||||
{ value: "vitrin-javaher", label: "ویترین جواهر" },
|
||||
{ value: "mankan-service", label: "مانکن سرویس" },
|
||||
{ value: "mankan-ring", label: "مانکن انگشتر" },
|
||||
{ value: "mankan-earring", label: "مانکن گوشواره" },
|
||||
];
|
||||
|
||||
const CATEGORY_SECTIONS: CategorySectionMeta[] = [
|
||||
{
|
||||
category: "vitrin-tala",
|
||||
categoryHeading: "ویترین طلا",
|
||||
promo: {
|
||||
kicker: "خط ویترین طلا",
|
||||
title: "استندها و ویترین هایی برای نمایش حرفه ای سرویس های طلا با چیدمان لوکس و منظم.",
|
||||
ctaLabel: "مشاهده این دسته",
|
||||
href: "/product?category=vitrin-tala",
|
||||
image: "/assets/main-pic/product/card-header/محصول 1.jpg",
|
||||
imageAlt: "نمونه ویترین طلا",
|
||||
},
|
||||
},
|
||||
{
|
||||
category: "vitrin-khorde-sal",
|
||||
categoryHeading: "ویترین خردسال",
|
||||
promo: {
|
||||
kicker: "ویترین خردسال",
|
||||
title: "چیدمان امن، کاربردی و چشم نواز برای بخش خردسال.",
|
||||
ctaLabel: "مشاهده این دسته",
|
||||
href: "/product?category=vitrin-khorde-sal",
|
||||
image: "/assets/main-pic/product/card-header/محصول 2.jpg",
|
||||
imageAlt: "نمونه ویترین خردسال",
|
||||
},
|
||||
},
|
||||
{
|
||||
category: "vitrin-javaher",
|
||||
categoryHeading: "ویترین جواهر",
|
||||
promo: {
|
||||
kicker: "ویترین جواهر",
|
||||
title: "نمایش جواهر با تاکید بر درخشش سنگ ها و ظرافت جزئیات.",
|
||||
ctaLabel: "مشاهده این دسته",
|
||||
href: "/product?category=vitrin-javaher",
|
||||
image: "/assets/main-pic/product/card-header/محصول 3.jpg",
|
||||
imageAlt: "نمونه ویترین جواهر",
|
||||
},
|
||||
},
|
||||
{
|
||||
category: "mankan-service",
|
||||
categoryHeading: "مانکن سرویس",
|
||||
promo: {
|
||||
kicker: "مانکن سرویس",
|
||||
title: "مانکن های تخصصی برای ارائه کامل سرویس و افزایش جذابیت ویترین.",
|
||||
ctaLabel: "مشاهده این دسته",
|
||||
href: "/product?category=mankan-service",
|
||||
image: "/assets/main-pic/product/card-header/2محصول 4.jpg",
|
||||
imageAlt: "نمونه مانکن سرویس",
|
||||
},
|
||||
},
|
||||
{
|
||||
category: "mankan-ring",
|
||||
categoryHeading: "مانکن انگشتر",
|
||||
promo: {
|
||||
kicker: "مانکن انگشتر",
|
||||
title: "مانکن انگشتر با زاویه دید درست برای نمایش بهتر نگین و فرم رکاب.",
|
||||
ctaLabel: "مشاهده این دسته",
|
||||
href: "/product?category=mankan-ring",
|
||||
image: "/assets/main-pic/product/card-header/محصول 2.jpg",
|
||||
imageAlt: "نمونه مانکن انگشتر",
|
||||
},
|
||||
},
|
||||
{
|
||||
category: "mankan-earring",
|
||||
categoryHeading: "مانکن گوشواره",
|
||||
promo: {
|
||||
kicker: "مانکن گوشواره",
|
||||
title: "مانکن گوشواره برای نمایش واضح تر مدل ها در ویترین های پرتعداد.",
|
||||
ctaLabel: "مشاهده این دسته",
|
||||
href: "/product?category=mankan-earring",
|
||||
image: "/assets/main-pic/product/card-header/محصول 1.jpg",
|
||||
imageAlt: "نمونه مانکن گوشواره",
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
const PRODUCTS: ProductItem[] = CATALOG_PRODUCTS;
|
||||
|
||||
/** هر ۶ محصول = دو ردیف × سه ستون در گرید ۵ ستونه کنار پروموی ۲×۲ */
|
||||
const PRODUCTS_PER_PROMO_CHUNK = 6;
|
||||
|
||||
function chunkItems<T>(items: T[], chunkSize: number): T[][] {
|
||||
if (chunkSize <= 0) return items.length ? [items] : [];
|
||||
const chunks: T[][] = [];
|
||||
for (let i = 0; i < items.length; i += chunkSize) {
|
||||
chunks.push(items.slice(i, i + chunkSize));
|
||||
}
|
||||
return chunks;
|
||||
}
|
||||
|
||||
function CatalogProductCard({ product }: { product: ProductItem }) {
|
||||
const href = `/product/${product.id}`;
|
||||
const quickViewHref = href;
|
||||
|
||||
return (
|
||||
<Card
|
||||
id={`p-${product.id}`}
|
||||
className="group relative block scroll-mt-28 rounded-none border-none bg-background p-0 shadow-none"
|
||||
>
|
||||
<CardContent className="p-0">
|
||||
<div className="relative overflow-hidden">
|
||||
<AspectRatio ratio={1} className="overflow-hidden rounded-xl border border-border bg-muted/30">
|
||||
<Image
|
||||
src={product.image}
|
||||
alt={product.name}
|
||||
fill
|
||||
sizes="(min-width: 1280px) 22vw, (min-width: 768px) 25vw, 50vw"
|
||||
className="object-cover object-center transition-transform duration-500 group-hover:scale-105"
|
||||
/>
|
||||
</AspectRatio>
|
||||
<div className="absolute inset-x-5 top-1/2 z-[60] hidden -translate-y-1/2 md:block">
|
||||
<div className="flex flex-col gap-2 opacity-0 duration-700 lg:translate-y-4 lg:group-hover:translate-y-0 lg:group-hover:opacity-100">
|
||||
<Button size="lg" variant="primary" className="relative z-20 w-full" asChild>
|
||||
<Link href={quickViewHref}>
|
||||
<Eye className="size-4 shrink-0" aria-hidden />
|
||||
<span>مشاهده سریع</span>
|
||||
</Link>
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<Link
|
||||
href={href}
|
||||
className="relative z-10 flex flex-col gap-1 pt-3 underline-offset-4 transition-colors hover:text-primary"
|
||||
aria-label={product.name}
|
||||
>
|
||||
<span className="text-caption font-medium text-primary">{product.categoryLabel}</span>
|
||||
<h3 className="text-heading-5 text-sm text-foreground group-hover:text-primary group-hover:underline">
|
||||
{product.name}
|
||||
</h3>
|
||||
</Link>
|
||||
</CardContent>
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
|
||||
function FeaturedPromotionCard({
|
||||
className,
|
||||
categoryHeading,
|
||||
kicker,
|
||||
title,
|
||||
ctaLabel,
|
||||
href,
|
||||
image,
|
||||
imageAlt,
|
||||
}: CategorySectionMeta["promo"] & { categoryHeading: string; className?: string }) {
|
||||
return (
|
||||
<Card
|
||||
className={cn(
|
||||
"relative flex w-full min-w-0 flex-col overflow-hidden rounded-xl border-none bg-muted bg-cover bg-center bg-no-repeat p-0 shadow-none",
|
||||
"lg:h-full lg:min-h-0",
|
||||
className,
|
||||
)}
|
||||
>
|
||||
<Image
|
||||
src={image}
|
||||
alt={imageAlt}
|
||||
fill
|
||||
className="object-cover object-center"
|
||||
sizes="(min-width: 1024px) 33vw, 100vw"
|
||||
/>
|
||||
<div className="absolute inset-0 bg-gradient-to-t from-background/95 via-background/55 to-transparent" />
|
||||
<CardHeader className="relative z-20 flex h-full min-h-0 flex-1 flex-col justify-end gap-2.5 p-10">
|
||||
<h2 className="text-heading-2 font-semibold text-foreground">{categoryHeading}</h2>
|
||||
<p className="text-caption font-medium text-primary">{kicker}</p>
|
||||
<p className="text-heading-3 font-semibold text-foreground">{title}</p>
|
||||
<div className="relative z-20 mt-5">
|
||||
<Button size="lg" variant="primary" asChild>
|
||||
<Link href={href}>{ctaLabel}</Link>
|
||||
</Button>
|
||||
</div>
|
||||
</CardHeader>
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
|
||||
export function ProductList10Catalog({ initialCategory, className }: ProductList10CatalogProps) {
|
||||
const validInitialCategory = CATEGORY_OPTIONS.some((item) => item.value === initialCategory)
|
||||
? (initialCategory as ProductCategory)
|
||||
: undefined;
|
||||
|
||||
const [selectedCategories, setSelectedCategories] = useState<ProductCategory[]>(
|
||||
validInitialCategory ? [validInitialCategory] : [],
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
if (validInitialCategory) {
|
||||
setSelectedCategories([validInitialCategory]);
|
||||
return;
|
||||
}
|
||||
setSelectedCategories([]);
|
||||
}, [validInitialCategory]);
|
||||
|
||||
const toggleCategory = (value: ProductCategory) => {
|
||||
setSelectedCategories((prev) =>
|
||||
prev.includes(value) ? prev.filter((item) => item !== value) : [...prev, value],
|
||||
);
|
||||
};
|
||||
|
||||
const visibleSections = useMemo(() => {
|
||||
return CATEGORY_SECTIONS.map((section) => {
|
||||
const items = PRODUCTS.filter((p) => {
|
||||
if (p.category !== section.category) return false;
|
||||
if (selectedCategories.length === 0) return true;
|
||||
return selectedCategories.includes(p.category);
|
||||
});
|
||||
return { ...section, items };
|
||||
}).filter((s) => s.items.length > 0);
|
||||
}, [selectedCategories]);
|
||||
|
||||
return (
|
||||
<section className={cn("py-16 md:py-24 lg:py-28", className)} dir="rtl">
|
||||
<div className="mx-auto w-full max-w-7xl px-4 sm:px-6">
|
||||
<div className="mb-10 text-center md:mb-14">
|
||||
<h1 className="text-heading-1 font-bold text-foreground">محصولات</h1>
|
||||
<p className="mx-auto mt-4 max-w-3xl text-body text-muted-foreground">
|
||||
مجموعه استندها و ملزومات دکور ویترین طلافروشی را بر اساس دسته بندی بررسی کنید و متناسب با نیاز فروشگاه خود،
|
||||
بهترین گزینه را برای نمایش حرفه ای سرویس های طلا و جواهر انتخاب کنید.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div
|
||||
className="border-border bg-card/40 rounded-2xl border p-4 sm:p-5"
|
||||
role="region"
|
||||
aria-label="فیلتر دستهبندی محصولات"
|
||||
>
|
||||
<div
|
||||
className="flex gap-2 overflow-x-auto pb-1 [-ms-overflow-style:none] [scrollbar-width:none] sm:flex-wrap sm:justify-center [&::-webkit-scrollbar]:hidden"
|
||||
dir="rtl"
|
||||
role="group"
|
||||
aria-label="انتخاب دسته برای فیلتر محصولات"
|
||||
>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setSelectedCategories([])}
|
||||
className={cn(
|
||||
"shrink-0 rounded-full border px-4 py-2 text-body-sm font-medium transition-colors",
|
||||
selectedCategories.length === 0
|
||||
? "border-primary bg-primary/15 text-foreground"
|
||||
: "border-border bg-background text-muted-foreground hover:border-primary/40 hover:text-foreground",
|
||||
)}
|
||||
>
|
||||
همه دستهها
|
||||
</button>
|
||||
{CATEGORY_OPTIONS.map((item) => {
|
||||
const active = selectedCategories.includes(item.value);
|
||||
return (
|
||||
<button
|
||||
key={item.value}
|
||||
type="button"
|
||||
onClick={() => toggleCategory(item.value)}
|
||||
className={cn(
|
||||
"shrink-0 rounded-full border px-4 py-2 text-body-sm font-medium transition-colors",
|
||||
active
|
||||
? "border-primary bg-primary/15 text-foreground"
|
||||
: "border-border bg-background text-muted-foreground hover:border-primary/40 hover:text-foreground",
|
||||
)}
|
||||
>
|
||||
{item.label}
|
||||
</button>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="mt-10 w-full min-w-0 md:mt-12">
|
||||
<div className="flex flex-col gap-5">
|
||||
{visibleSections.map((section) => {
|
||||
const itemChunks = chunkItems(section.items, PRODUCTS_PER_PROMO_CHUNK);
|
||||
return (
|
||||
<div key={section.category} className="flex flex-col gap-5">
|
||||
{itemChunks.map((chunk, chunkIndex) => {
|
||||
/* RTL: ستونهای ۱–۲ = سمت راست گرید، ۴–۵ = سمت چپ */
|
||||
const promoOnVisualRight = chunkIndex % 2 === 0;
|
||||
return (
|
||||
<div
|
||||
key={`${section.category}-chunk-${chunkIndex}`}
|
||||
className={cn(
|
||||
"flex flex-col gap-5",
|
||||
"lg:grid lg:grid-flow-dense lg:auto-rows-min lg:grid-cols-5 lg:items-stretch lg:gap-5",
|
||||
)}
|
||||
>
|
||||
<FeaturedPromotionCard
|
||||
className={cn(
|
||||
"w-full shrink-0 min-h-[18rem] sm:min-h-[20rem]",
|
||||
"lg:col-span-2 lg:row-span-2 lg:h-full lg:min-h-0 lg:w-auto",
|
||||
promoOnVisualRight ? "lg:col-start-1" : "lg:col-start-4",
|
||||
)}
|
||||
categoryHeading={section.categoryHeading}
|
||||
{...section.promo}
|
||||
/>
|
||||
<div className="grid min-w-0 grid-cols-2 gap-5 md:grid-cols-3 lg:contents">
|
||||
{chunk.map((product) => (
|
||||
<CatalogProductCard key={product.id} product={product} />
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
|
||||
{visibleSections.length === 0 ? (
|
||||
<div className="mt-8 rounded-2xl border border-border bg-card p-8 text-center">
|
||||
<h3 className="text-heading-4 font-medium text-foreground">محصولی پیدا نشد</h3>
|
||||
<p className="mt-2 text-body-sm text-muted-foreground">فیلتر دستهبندی را تغییر دهید یا همه دستهها را نمایش دهید.</p>
|
||||
</div>
|
||||
) : null}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
import { cn } from "@/lib/utils";
|
||||
import { Clock, ShoppingCart, Eye, FileText, ToggleLeft, Settings } from "lucide-react";
|
||||
|
||||
interface SolutionSectionProps {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export default function SolutionSection({ className }: SolutionSectionProps) {
|
||||
const features = [
|
||||
{
|
||||
icon: Clock,
|
||||
title: "نمایش قیمت لحظهای به مشتریان",
|
||||
description: "دسترسی آنی به آخرین قیمتهای بازار"
|
||||
},
|
||||
{
|
||||
icon: ShoppingCart,
|
||||
title: "ثبت و مدیریت سفارشها",
|
||||
description: "سیستم جامع ثبت و پیگیری سفارشها"
|
||||
},
|
||||
{
|
||||
icon: Eye,
|
||||
title: "مشاهده آنلاین مانده حساب هر مشتری",
|
||||
description: "دسترسی لحظهای به وضعیت حساب مشتریان"
|
||||
},
|
||||
{
|
||||
icon: FileText,
|
||||
title: "دسترسی به ریز کامل معاملات در هر ساعت از شبانهروز",
|
||||
description: "گزارشگیری دقیق و کامل از تمام معاملات"
|
||||
},
|
||||
{
|
||||
icon: ToggleLeft,
|
||||
title: "کنترل وضعیت بازار (باز / بسته)",
|
||||
description: "مدیریت وضعیت بازار به صورت لحظهای"
|
||||
},
|
||||
{
|
||||
icon: Settings,
|
||||
title: "پنل مدیریت پیشرفته برای ادمین",
|
||||
description: "ابزارهای کامل مدیریت و کنترل سیستم"
|
||||
}
|
||||
];
|
||||
|
||||
return (
|
||||
<section className={cn("py-16 md:py-24 lg:py-32", className)}>
|
||||
<div className="container mx-auto max-w-6xl px-6">
|
||||
<div className="flex flex-col items-start gap-8 lg:gap-12 lg:px-16 xl:gap-32">
|
||||
<h2 className="text-heading-2 font-semibold md:shrink-0 lg:max-w-1/3 lg:max-w-3xl">
|
||||
یک پلتفرم اختصاصی برای مدیریت کامل معاملات
|
||||
</h2>
|
||||
<div className="grid w-full gap-6 md:grid-cols-2">
|
||||
{features.map((feature, index) => {
|
||||
const Icon = feature.icon;
|
||||
return (
|
||||
<div
|
||||
key={index}
|
||||
className="flex rounded-lg border border-border bg-accent p-6 md:p-8"
|
||||
>
|
||||
<Icon className="mr-3 size-5 shrink-0 lg:mr-6 lg:size-6 text-primary" />
|
||||
<div>
|
||||
<div className="text-body-sm mb-3 h-5 font-semibold text-accent-foreground">
|
||||
{feature.title}
|
||||
</div>
|
||||
<div className="text-body-sm font-medium text-muted-foreground">
|
||||
{feature.description}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,76 @@
|
||||
import Image from "next/image";
|
||||
import Link from "next/link";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
|
||||
interface Hero174Props {
|
||||
pageHeading?: string;
|
||||
title?: string;
|
||||
description?: string;
|
||||
imageSrc?: string;
|
||||
imageAlt?: string;
|
||||
ctaLabel?: string;
|
||||
ctaHref?: string;
|
||||
}
|
||||
|
||||
const defaultProps: Required<Hero174Props> = {
|
||||
pageHeading: "مستر دکور",
|
||||
title: "طراحی و تولید استند ویترین طلافروشی برای فروش بیشتر",
|
||||
description:
|
||||
"مستر دکور، تامین کننده تخصصی استند و ملزومات دکور ویترین طلا و جواهر است؛ راهکاری که چیدمان فروشگاه شما را حرفه ای تر می کند و توجه مشتری را دقیقاً روی سرویس های شما نگه می دارد.",
|
||||
imageSrc: "/assets/main-pic/mr_decor-mainpic.jpg",
|
||||
imageAlt: "نمونه ویترین و دکور فروشگاهی",
|
||||
ctaLabel: "مشاهده محصولات",
|
||||
ctaHref: "/product",
|
||||
};
|
||||
|
||||
export function Hero174(props: Hero174Props) {
|
||||
const {
|
||||
pageHeading,
|
||||
title,
|
||||
description,
|
||||
imageSrc,
|
||||
imageAlt,
|
||||
ctaLabel,
|
||||
ctaHref,
|
||||
} = {
|
||||
...defaultProps,
|
||||
...props,
|
||||
};
|
||||
|
||||
return (
|
||||
<section className="relative min-h-screen w-full" aria-labelledby="home-hero-page-heading">
|
||||
<h1 id="home-hero-page-heading" className="sr-only">
|
||||
{pageHeading}
|
||||
</h1>
|
||||
|
||||
<div className="absolute inset-0">
|
||||
<Image
|
||||
src={imageSrc}
|
||||
alt={imageAlt}
|
||||
fill
|
||||
priority
|
||||
quality={100}
|
||||
sizes="100vw"
|
||||
className="object-cover object-[center_58%]"
|
||||
/>
|
||||
<div className="absolute inset-0 bg-black/62" />
|
||||
<div className="absolute inset-0 bg-[radial-gradient(ellipse_at_top,rgba(0,0,0,0.34),transparent_60%)]" />
|
||||
<div className="absolute inset-0 bg-[radial-gradient(ellipse_at_bottom,rgba(0,0,0,0.3),transparent_62%)]" />
|
||||
</div>
|
||||
|
||||
<div className="relative z-10 flex min-h-screen flex-col">
|
||||
<div className="flex flex-1 items-center justify-center px-6 pt-24 pb-14 text-center md:px-10">
|
||||
<div className="flex max-w-4xl flex-col items-center gap-5">
|
||||
<h2 className="text-heading-1 font-bold text-overlay-foreground">{title}</h2>
|
||||
<p className="max-w-2xl text-body text-overlay-foreground/90">{description}</p>
|
||||
<Button asChild size="lg" className="rounded-full">
|
||||
<Link href={ctaHref}>{ctaLabel}</Link>
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
import { Sparkles } from "lucide-react";
|
||||
import Link from "next/link";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
import { Button } from "@/components/ui/button";
|
||||
|
||||
interface Hero197Props {
|
||||
className?: string;
|
||||
badge?: string;
|
||||
title?: string;
|
||||
description?: string;
|
||||
showButtons?: boolean;
|
||||
}
|
||||
|
||||
const Hero197 = ({
|
||||
className,
|
||||
badge = "Launching Soon",
|
||||
title = "Accelerate your development workflow",
|
||||
description = "Our intelligent platform helps teams automate routine tasks, streamline collaboration, and deliver higher quality code faster.",
|
||||
showButtons = true,
|
||||
}: Hero197Props) => {
|
||||
return (
|
||||
<section className={cn("relative overflow-hidden py-32", className)}>
|
||||
<div className="container mx-auto px-4 md:px-6">
|
||||
{/* Background pattern with dots */}
|
||||
<div className="absolute inset-0 -z-10 h-full w-full bg-[radial-gradient(var(--primary)_1px,transparent_1px)] [background-size:20px_20px] opacity-25"></div>
|
||||
|
||||
<div className="relative z-10 flex flex-col gap-6 md:flex-row md:items-center md:justify-center">
|
||||
<div className="max-w-2xl w-full flex flex-col items-center text-center">
|
||||
<Badge
|
||||
variant="outline"
|
||||
className="mb-6 bg-background px-4 py-1.5 text-sm"
|
||||
>
|
||||
{badge} <Sparkles className="ml-1 size-3.5" />
|
||||
</Badge>
|
||||
|
||||
<h1 className="text-heading-1 pt-4 font-bold leading-tight bg-linear-to-r from-foreground to-foreground/70 bg-clip-text text-transparent">
|
||||
{title}
|
||||
</h1>
|
||||
|
||||
<p className="text-body mt-6 max-w-xl leading-relaxed text-muted-foreground">
|
||||
{description}
|
||||
</p>
|
||||
|
||||
{showButtons && (
|
||||
<div className="mt-8 flex flex-col gap-6 sm:flex-row sm:items-center justify-center">
|
||||
<Button size="lg" variant="primary" className="w-full sm:w-auto">
|
||||
شروع مشاوره
|
||||
</Button>
|
||||
<Button size="lg" variant="secondary" className="w-full sm:w-auto" asChild>
|
||||
<Link href="/consultation">درخواست مشاوره</Link>
|
||||
</Button>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Hero197 };
|
||||
|
||||
@@ -0,0 +1,95 @@
|
||||
"use client";
|
||||
|
||||
import { motion } from "framer-motion";
|
||||
import Link from "next/link";
|
||||
import React from "react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { useContent } from "@/components/layout/content-provider";
|
||||
|
||||
interface Hero200Props {
|
||||
className?: string;
|
||||
/** تصویر داخل قاب موبایل (پیشنمایش اپ) */
|
||||
phoneImage?: { src: string; alt: string };
|
||||
}
|
||||
|
||||
const Hero200 = ({ className, phoneImage }: Hero200Props) => {
|
||||
const content = useContent();
|
||||
const hero = content.pages.product.forushgahSazTala.hero200;
|
||||
const appPreviewSrc = phoneImage?.src ?? "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/block-white-1.svg";
|
||||
const appPreviewAlt = phoneImage?.alt ?? "Gold store app";
|
||||
return (
|
||||
<section className={cn("bg-background pt-24 md:pt-32 lg:pt-40 pb-8 md:pb-12 lg:pb-16", className)}>
|
||||
<div className="border-b border-foreground/40">
|
||||
<div className="container mx-auto flex max-w-7xl flex-col items-center justify-center gap-4 px-6 text-center">
|
||||
<h2 className="text-heading-2 font-semibold leading-snug tracking-tight text-foreground/80" dir="rtl">
|
||||
{hero.subtitle}
|
||||
</h2>
|
||||
<div className="w-full overflow-hidden" dir="rtl">
|
||||
<h1 className="text-heading-1 font-bold leading-snug tracking-tight text-foreground">
|
||||
{hero.titleLine1}
|
||||
<br />
|
||||
{hero.titleLine2}
|
||||
<br />
|
||||
{hero.titleLine3}
|
||||
</h1>
|
||||
</div>
|
||||
<Button size="lg" variant="primary" className="my-10" dir="rtl" asChild>
|
||||
<Link href="/consultation">{hero.button}</Link>
|
||||
</Button>
|
||||
|
||||
{/* Iphone mockup with content */}
|
||||
<div className="h-[500px] w-full overflow-hidden">
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 200, scale: 0.8 }}
|
||||
animate={{ opacity: 1, y: 0, scale: 1 }}
|
||||
transition={{ ease: [0, 0.71, 0.2, 1.01], duration: 0.8 }}
|
||||
className="relative mx-auto mt-6 flex h-[850px] w-[400px] items-center justify-center rounded-[75px] bg-black md:mt-12 md:h-[920px] md:w-[450px]"
|
||||
>
|
||||
<img
|
||||
className="absolute z-[2] scale-105 object-cover"
|
||||
alt="Gold phone frame"
|
||||
src="https://deifkwefumgah.cloudfront.net/shadcnblocks/block/mockups/phone-5.png"
|
||||
/>
|
||||
<div className="relative z-[1] h-full w-full overflow-hidden rounded-[3.25rem]">
|
||||
{phoneImage ? (
|
||||
<img
|
||||
className="h-full w-full object-cover object-top"
|
||||
alt={appPreviewAlt}
|
||||
src={appPreviewSrc}
|
||||
/>
|
||||
) : (
|
||||
<>
|
||||
<div className="mt-20 flex justify-between px-0">
|
||||
<div className="flex items-end gap-2 px-12 text-heading-1 font-bold leading-snug tracking-tight text-background" dir="rtl" aria-hidden>
|
||||
طلا
|
||||
<div className="mb-2 size-3 rounded-full bg-primary md:size-5" />
|
||||
</div>
|
||||
<div className="mt-2 mr-8 flex flex-col items-end">
|
||||
<p className="text-body-sm leading-normal tracking-tight text-muted-foreground md:text-body">
|
||||
{hero.dateLabel}
|
||||
</p>
|
||||
<p className="-mt-1 text-heading-5 font-semibold leading-snug tracking-tight text-muted-foreground/50">
|
||||
{hero.appLabel}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<img
|
||||
className="z-2 mx-auto mt-20 size-40 object-cover"
|
||||
alt={appPreviewAlt}
|
||||
src={appPreviewSrc}
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
</motion.div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Hero200 };
|
||||
@@ -0,0 +1,71 @@
|
||||
"use client";
|
||||
|
||||
import { motion } from "framer-motion";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
interface Hero201Props {
|
||||
className?: string;
|
||||
smallTitle?: string;
|
||||
mainTitle?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
const Hero201 = ({
|
||||
className,
|
||||
smallTitle = "Just Copy Paste",
|
||||
mainTitle = "Amazing components",
|
||||
description = "Discover our collection of beautifully designed, ready-to-use components that you can easily integrate into your projects.",
|
||||
}: Hero201Props) => {
|
||||
return (
|
||||
<section className={cn("py-16 md:py-24 lg:py-32", className)} dir="rtl">
|
||||
<div className="relative container mx-auto flex flex-col items-center overflow-hidden px-6">
|
||||
{/* دایرههای تزئینی پشت متن تا لرزش ایجاد نکنند */}
|
||||
<div className="pointer-events-none absolute inset-0 z-0 hidden overflow-hidden md:block" aria-hidden>
|
||||
<motion.div
|
||||
initial={{ opacity: 0, scale: 0.6 }}
|
||||
animate={{ opacity: 1, scale: 1 }}
|
||||
transition={{ ease: "easeInOut", duration: 0.6 }}
|
||||
className="absolute -top-80 -right-80 h-240 w-240 will-change-transform"
|
||||
style={{ contain: "layout paint" }}
|
||||
>
|
||||
<img
|
||||
className="h-full w-full rotate-12 opacity-30 dark:invert animate-[spin_15s_linear_infinite]"
|
||||
src="https://deifkwefumgah.cloudfront.net/shadcnblocks/block/illustrations/tokyo-solar-system-around-a-smiley.svg"
|
||||
alt=""
|
||||
/>
|
||||
</motion.div>
|
||||
<motion.div
|
||||
initial={{ opacity: 0, scale: 0.6 }}
|
||||
animate={{ opacity: 1, scale: 1 }}
|
||||
transition={{ ease: "easeInOut", duration: 0.6 }}
|
||||
className="absolute -bottom-80 -left-80 h-240 w-240 will-change-transform"
|
||||
style={{ contain: "layout paint" }}
|
||||
>
|
||||
<img
|
||||
className="h-full w-full rotate-12 opacity-30 dark:invert animate-[spin_15s_linear_infinite]"
|
||||
src="https://deifkwefumgah.cloudfront.net/shadcnblocks/block/illustrations/tokyo-solar-system-around-a-smiley.svg"
|
||||
alt=""
|
||||
/>
|
||||
</motion.div>
|
||||
</div>
|
||||
|
||||
<div className="relative z-10 flex flex-col items-center">
|
||||
<p className="text-heading-5 mb-4 text-center font-semibold leading-[var(--line-height-heading)] tracking-tight text-foreground">
|
||||
{smallTitle}
|
||||
</p>
|
||||
|
||||
<h2 className="text-heading-2 mx-auto max-w-4xl text-center font-bold leading-[var(--line-height-heading)] tracking-tight text-foreground">
|
||||
{mainTitle}
|
||||
</h2>
|
||||
|
||||
<p className="text-body mx-auto mt-6 max-w-3xl text-center leading-[var(--line-height-body)] text-muted-foreground">
|
||||
{description}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Hero201 };
|
||||
@@ -0,0 +1,42 @@
|
||||
"use client";
|
||||
|
||||
import { motion } from "framer-motion";
|
||||
import React from "react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
interface Hero204Props {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Hero204 = ({ className }: Hero204Props) => {
|
||||
return (
|
||||
<section
|
||||
className={cn(
|
||||
"flex min-h-[50vh] flex-col items-center justify-center bg-background pt-24 pb-16 md:pt-32 md:pb-20 lg:pt-36 lg:pb-24",
|
||||
className
|
||||
)}
|
||||
>
|
||||
<div className="container mx-auto flex w-full max-w-7xl flex-col items-center justify-center gap-4 px-6 text-center">
|
||||
<motion.h1
|
||||
initial={{ opacity: 0, y: 16 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
transition={{ duration: 0.4 }}
|
||||
className="max-w-2xl text-heading-1 font-bold tracking-tighter text-foreground"
|
||||
>
|
||||
درخواست دمو
|
||||
</motion.h1>
|
||||
<motion.p
|
||||
initial={{ opacity: 0, y: 16 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
transition={{ duration: 0.4, delay: 0.1 }}
|
||||
className="mt-4 max-w-xl text-body text-muted-foreground"
|
||||
>
|
||||
سامانههای تخصصی مستر دکور را قبل از تصمیمگیری از نزدیک ببینید. فرم را پر کنید تا در اسرع وقت برای هماهنگی جلسه دمو و نمایش امکانات با شما تماس بگیریم.
|
||||
</motion.p>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Hero204 };
|
||||
@@ -0,0 +1,235 @@
|
||||
"use client";
|
||||
|
||||
import { motion } from "framer-motion";
|
||||
import { ArrowRight } from "lucide-react";
|
||||
import Image from "next/image";
|
||||
import Link from "next/link";
|
||||
import { useEffect, useState } from "react";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
import {
|
||||
Carousel,
|
||||
type CarouselApi,
|
||||
CarouselContent,
|
||||
CarouselItem,
|
||||
} from "@/components/ui/carousel";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
export interface HeroCarouselSlide {
|
||||
src: string;
|
||||
alt: string;
|
||||
name?: string;
|
||||
title?: string;
|
||||
description?: string;
|
||||
href?: string;
|
||||
}
|
||||
|
||||
export interface Hero226Props {
|
||||
slides: HeroCarouselSlide[];
|
||||
slideCtaLabel: string;
|
||||
/** برای دسترسیپذیری: تنها h1 معنادار صفحه (معمولاً نام برند) */
|
||||
pageHeading: string;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
type Props = Partial<Hero226Props>;
|
||||
|
||||
const defaultSlides: HeroCarouselSlide[] = [
|
||||
{
|
||||
src: "/assets/main-pic/banner-master-decoor.jpg",
|
||||
alt: "نمونه ویترین و دکور",
|
||||
title: "ویترین طلا",
|
||||
description: "نمایش حرفهای و مدیریت ویترین محصولات طلا.",
|
||||
href: "/product?category=vitrin-tala",
|
||||
},
|
||||
{
|
||||
src: "/assets/main-pic/banner-master-decoor.jpg",
|
||||
alt: "نمونه ویترین خردسال",
|
||||
title: "ویترین خردسال",
|
||||
description: "راهکار ویترین و فرایندهای مرتبط با خردسال.",
|
||||
href: "/product?category=vitrin-khorde-sal",
|
||||
},
|
||||
{
|
||||
src: "/assets/main-pic/banner-master-decoor.jpg",
|
||||
alt: "نمونه ویترین جواهر",
|
||||
title: "ویترین جواهر",
|
||||
description: "ویترین تخصصی برای جواهر و اقلام پرارزش.",
|
||||
href: "/product?category=vitrin-javaher",
|
||||
},
|
||||
{
|
||||
src: "/assets/main-pic/banner-master-decoor.jpg",
|
||||
alt: "نمونه دکور فروشگاه",
|
||||
title: "دکور و جعبه",
|
||||
description: "ترکیبی از تنوع، ظرافت و کیفیت برای فضای فروش شما.",
|
||||
href: "/about",
|
||||
},
|
||||
{
|
||||
src: "/assets/main-pic/banner-master-decoor.jpg",
|
||||
alt: "نمونه راهکار سفارشی",
|
||||
title: "راهکار سفارشی",
|
||||
description: "طراحی و تولید متناسب با مدل کاری مجموعه شما.",
|
||||
href: "/consultation",
|
||||
},
|
||||
];
|
||||
|
||||
const defaultProps: Required<Pick<Hero226Props, "slides" | "slideCtaLabel" | "pageHeading">> = {
|
||||
slides: defaultSlides,
|
||||
slideCtaLabel: "مشاهده",
|
||||
pageHeading: "مستر دکور",
|
||||
};
|
||||
|
||||
function isExternalHref(href: string) {
|
||||
return href.startsWith("http://") || href.startsWith("https://");
|
||||
}
|
||||
|
||||
function SlideCtaLink({
|
||||
href,
|
||||
slideCtaLabel,
|
||||
}: {
|
||||
href: string;
|
||||
slideCtaLabel: string;
|
||||
}) {
|
||||
const className =
|
||||
"group gap-2 rounded-full border border-gold-400/55 bg-background/15 px-4 py-2 text-body font-medium tracking-tight text-gold-300 backdrop-blur-sm hover:border-gold-400/75 hover:bg-gold-950/35 hover:text-gold-200";
|
||||
|
||||
const icon = (
|
||||
<ArrowRight
|
||||
className="size-4 shrink-0 transition-transform ease-out group-hover:translate-x-0.5 rtl:rotate-180"
|
||||
aria-hidden
|
||||
/>
|
||||
);
|
||||
|
||||
if (isExternalHref(href)) {
|
||||
return (
|
||||
<Button variant="outline" className={className} asChild>
|
||||
<a href={href} target="_blank" rel="noopener noreferrer" className="inline-flex items-center">
|
||||
{slideCtaLabel}
|
||||
{icon}
|
||||
</a>
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<Button variant="outline" className={className} asChild>
|
||||
<Link href={href} className="inline-flex items-center">
|
||||
{slideCtaLabel}
|
||||
{icon}
|
||||
</Link>
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
|
||||
export function Hero226(props: Props) {
|
||||
const [api, setApi] = useState<CarouselApi>();
|
||||
const [current, setCurrent] = useState(0);
|
||||
|
||||
const { slides, slideCtaLabel, pageHeading, className } = {
|
||||
...defaultProps,
|
||||
...props,
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
if (!api) return;
|
||||
const onSelect = () => setCurrent(api.selectedScrollSnap());
|
||||
onSelect();
|
||||
api.on("select", onSelect);
|
||||
return () => {
|
||||
api.off("select", onSelect);
|
||||
};
|
||||
}, [api]);
|
||||
|
||||
return (
|
||||
<section
|
||||
className={cn(
|
||||
"scroll-mt-20 pt-20 pb-16 md:scroll-mt-24 md:pt-24 md:pb-20 lg:pb-28",
|
||||
className,
|
||||
)}
|
||||
aria-labelledby="home-hero-page-heading">
|
||||
<h1 id="home-hero-page-heading" className="sr-only">
|
||||
{pageHeading}
|
||||
</h1>
|
||||
<div className="mx-auto w-full max-w-7xl px-4 sm:px-6">
|
||||
<motion.div
|
||||
initial={{ opacity: 0 }}
|
||||
animate={{ opacity: 1 }}
|
||||
transition={{ duration: 0.5 }}
|
||||
>
|
||||
<Carousel
|
||||
setApi={setApi}
|
||||
className="w-full"
|
||||
opts={{
|
||||
loop: true,
|
||||
slidesToScroll: 1,
|
||||
direction: "rtl",
|
||||
align: "center",
|
||||
}}
|
||||
>
|
||||
<CarouselContent className="flex w-full gap-2 sm:gap-4">
|
||||
{slides.map((img, index) => (
|
||||
<CarouselItem
|
||||
key={`${img.src}-${index}`}
|
||||
className="basis-full"
|
||||
>
|
||||
<div className="p-0.5 sm:p-1">
|
||||
<div
|
||||
className={cn(
|
||||
"relative flex min-h-[min(70vh,28rem)] flex-col justify-end overflow-hidden !rounded-xl sm:min-h-[32rem] md:min-h-[36rem] lg:min-h-[42rem] lg:rounded-2xl",
|
||||
"border border-border/40 bg-muted animated-gradient-border p-6 sm:p-8",
|
||||
)}
|
||||
>
|
||||
<div className="pointer-events-none absolute inset-0">
|
||||
<Image
|
||||
src={img.src}
|
||||
alt={img.alt}
|
||||
fill
|
||||
className="object-cover object-center"
|
||||
sizes="(max-width: 768px) 90vw, (max-width: 1200px) 80vw, 1200px"
|
||||
priority={index === 0}
|
||||
draggable={false}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="relative z-10 flex w-full flex-col gap-4 text-start">
|
||||
<div className="max-w-full space-y-3 sm:max-w-2xl lg:max-w-3xl">
|
||||
{/*
|
||||
هر اسلاید h2 است؛ h1 فقط sr-only بالای سکشن (استاندارد تایپوگرافی)
|
||||
*/}
|
||||
<h2 className="text-balance text-heading-1 font-bold tracking-tight text-foreground">
|
||||
{img.title ?? ""}
|
||||
</h2>
|
||||
<p className="text-balance text-body leading-relaxed text-foreground/90">
|
||||
{img.description ?? ""}
|
||||
</p>
|
||||
</div>
|
||||
<div className="flex w-full flex-wrap items-center justify-between gap-3 bg-transparent pt-1">
|
||||
<SlideCtaLink href={img.href ?? "/"} slideCtaLabel={slideCtaLabel} />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</CarouselItem>
|
||||
))}
|
||||
</CarouselContent>
|
||||
|
||||
<div className="mt-4 flex flex-wrap justify-center gap-2 sm:mt-6">
|
||||
{slides.map((_, index) => (
|
||||
<button
|
||||
key={index}
|
||||
type="button"
|
||||
onClick={() => api?.scrollTo(index)}
|
||||
className={cn(
|
||||
"h-2.5 min-h-2.5 min-w-2.5 rounded-full transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
||||
current === index ? "w-8 bg-primary" : "bg-muted-foreground/50 hover:bg-muted-foreground/70",
|
||||
)}
|
||||
aria-label={`رفتن به اسلاید ${index + 1}`}
|
||||
aria-current={current === index ? "true" : undefined}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
</Carousel>
|
||||
</motion.div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
"use client";
|
||||
|
||||
import Link from "next/link";
|
||||
import { motion } from "framer-motion";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { useContent } from "@/components/layout/content-provider";
|
||||
|
||||
interface ButtonItem {
|
||||
text: string;
|
||||
url: string;
|
||||
}
|
||||
|
||||
interface Hero247Props {
|
||||
heading?: string;
|
||||
description?: string;
|
||||
secondaryButton?: ButtonItem;
|
||||
primaryButton?: ButtonItem;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Hero247 = ({
|
||||
className,
|
||||
heading,
|
||||
description,
|
||||
secondaryButton: secondaryButtonProp,
|
||||
primaryButton: primaryButtonProp,
|
||||
}: Hero247Props) => {
|
||||
const content = useContent()
|
||||
const defaults = content.pages.home.hero247
|
||||
const headingText = heading ?? defaults.heading
|
||||
const descriptionText = description ?? defaults.description
|
||||
const secondaryButton = secondaryButtonProp ?? { text: defaults.secondaryButton, url: "#rahavarha" }
|
||||
const primaryButton = primaryButtonProp ?? { text: defaults.primaryButton, url: "#mozakerat" }
|
||||
return (
|
||||
<section className={cn("py-32", className)} dir="rtl">
|
||||
<div className="container mx-auto flex flex-col items-center px-6">
|
||||
<div className="flex flex-col items-center gap-6">
|
||||
<motion.h2
|
||||
initial={{ y: 100, opacity: 0 }}
|
||||
animate={{ y: 0, opacity: 1 }}
|
||||
transition={{
|
||||
duration: 1.5,
|
||||
ease: [0.16, 1, 0.3, 1],
|
||||
}}
|
||||
className="text-heading-2 max-w-3xl text-center font-semibold text-foreground dark:text-foreground"
|
||||
>
|
||||
{headingText}
|
||||
</motion.h2>
|
||||
<motion.p
|
||||
initial={{ y: 60, opacity: 0 }}
|
||||
animate={{ y: 0, opacity: 1 }}
|
||||
transition={{
|
||||
duration: 1.2,
|
||||
ease: [0.16, 1, 0.3, 1],
|
||||
delay: 0.2,
|
||||
}}
|
||||
className="text-body max-w-2xl whitespace-pre-line text-center leading-relaxed text-muted-foreground dark:text-muted-foreground"
|
||||
>
|
||||
{descriptionText}
|
||||
</motion.p>
|
||||
<div className="flex flex-col gap-4 font-medium md:flex-row md:gap-4">
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 60 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
transition={{
|
||||
duration: 1.2,
|
||||
ease: [0.16, 1, 0.3, 1],
|
||||
delay: 0.25,
|
||||
}}
|
||||
>
|
||||
<Button asChild size="lg" variant="primary">
|
||||
<Link href={primaryButton.url}>{primaryButton.text}</Link>
|
||||
</Button>
|
||||
</motion.div>
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 60 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
transition={{
|
||||
duration: 1.2,
|
||||
ease: [0.16, 1, 0.3, 1],
|
||||
delay: 0.4,
|
||||
}}
|
||||
>
|
||||
<Button asChild size="lg" variant="secondary">
|
||||
<Link href={secondaryButton.url}>{secondaryButton.text}</Link>
|
||||
</Button>
|
||||
</motion.div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Hero247 };
|
||||
@@ -0,0 +1,169 @@
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
|
||||
interface Hero28Props {
|
||||
className?: string;
|
||||
title?: string;
|
||||
description?: string;
|
||||
showButton?: boolean;
|
||||
}
|
||||
|
||||
const Hero28 = ({
|
||||
className,
|
||||
title = "Welcome to Our Website",
|
||||
description = "Elig doloremque mollitia fugiat omnis! Porro facilis quo animi consequatur.",
|
||||
showButton = true,
|
||||
}: Hero28Props) => {
|
||||
return (
|
||||
<section className={cn("relative py-32 overflow-visible", className)}>
|
||||
{/* Background pattern */}
|
||||
<div className="absolute inset-x-0 top-0 container mx-auto hidden h-full overflow-visible lg:block pointer-events-none">
|
||||
<div className="flex flex-col items-center justify-center">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1400 520" className="w-full h-auto">
|
||||
<defs>
|
||||
<radialGradient id="text-backgroud" cx="50%" cy="50%" r={0.6}>
|
||||
<stop stopColor="black" offset={0.4} />
|
||||
<stop stopColor="black" offset={1} stopOpacity={0} />
|
||||
</radialGradient>
|
||||
<linearGradient id="icon-backgroud" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop stopColor="var(--color-accent)" offset={0} />
|
||||
<stop stopColor="var(--color-background)" offset={1} />
|
||||
</linearGradient>
|
||||
<linearGradient id="gold-coin-grad" x1="0%" y1="0%" x2="100%" y2="100%">
|
||||
<stop offset="0%" stopColor="var(--gold-300)" />
|
||||
<stop offset="50%" stopColor="var(--gold-500)" />
|
||||
<stop offset="100%" stopColor="var(--gold-700)" />
|
||||
</linearGradient>
|
||||
<linearGradient id="gold-bar-grad" x1="0%" y1="0%" x2="100%" y2="100%">
|
||||
<stop offset="0%" stopColor="var(--gold-300)" />
|
||||
<stop offset="50%" stopColor="var(--gold-500)" />
|
||||
<stop offset="100%" stopColor="var(--gold-700)" />
|
||||
</linearGradient>
|
||||
<mask id="mask">
|
||||
<rect
|
||||
x="0"
|
||||
y="0"
|
||||
width="100%"
|
||||
height="100%"
|
||||
stroke="none"
|
||||
fill="black"
|
||||
/>
|
||||
<rect
|
||||
x="80"
|
||||
y="40"
|
||||
width="1260"
|
||||
height="380"
|
||||
rx="140"
|
||||
stroke="none"
|
||||
filter="url(#blur)"
|
||||
fill="white"
|
||||
/>
|
||||
<rect
|
||||
x="40"
|
||||
y="-120"
|
||||
width="1320"
|
||||
height="600"
|
||||
stroke="none"
|
||||
fill="url(#text-backgroud)"
|
||||
/>
|
||||
</mask>
|
||||
<filter id="blur" x="-50%" y="-50%" width="200%" height="200%">
|
||||
<feGaussianBlur in="SourceGraphic" stdDeviation="40" />
|
||||
</filter>
|
||||
</defs>
|
||||
<path
|
||||
stroke="var(--border)"
|
||||
strokeWidth={1}
|
||||
d="M0,40H1400M0,120H1400M0,200H1400M0,280H1400M0,360H1400M0,440H1400M60,0V520M140,0V520M220,0V520M300,0V520M380,0V520M460,0V520M540,0V520M620,0V520M700,0V520M780,0V520M860,0V520M940,0V520M1020,0V520M1100,0V520M1180,0V520M1260,0V520M1340,0V520"
|
||||
mask="url(#mask)"
|
||||
/>
|
||||
{/* سکه طلا */}
|
||||
<rect
|
||||
x={140}
|
||||
y={120}
|
||||
width={80}
|
||||
height={80}
|
||||
stroke="var(--border)"
|
||||
fill="url(#icon-backgroud)"
|
||||
/>
|
||||
<svg x={160} y={140} width={40} height={40} viewBox="0 0 40 40" className="overflow-visible">
|
||||
<circle cx={20} cy={20} r={16} fill="url(#gold-coin-grad)" stroke="var(--gold-700)" strokeWidth={1.5} />
|
||||
<circle cx={20} cy={20} r={10} fill="none" stroke="var(--gold-700)" strokeWidth={1} opacity={0.8} />
|
||||
</svg>
|
||||
{/* شمش طلا */}
|
||||
<rect
|
||||
x={60}
|
||||
y={280}
|
||||
width={80}
|
||||
height={80}
|
||||
stroke="var(--border)"
|
||||
fill="url(#icon-backgroud)"
|
||||
/>
|
||||
<svg x={80} y={300} width={40} height={40} viewBox="0 0 40 40" className="overflow-visible">
|
||||
<rect x={6} y={12} width={28} height={16} rx={3} fill="url(#gold-bar-grad)" stroke="var(--gold-700)" strokeWidth={1.5} />
|
||||
<rect x={10} y={14} width={4} height={12} rx={1} fill="var(--gold-600)" opacity={0.6} />
|
||||
<rect x={26} y={14} width={4} height={12} rx={1} fill="var(--gold-600)" opacity={0.6} />
|
||||
</svg>
|
||||
{/* سکه طلا */}
|
||||
<rect
|
||||
x={300}
|
||||
y={360}
|
||||
width={80}
|
||||
height={80}
|
||||
stroke="var(--border)"
|
||||
fill="url(#icon-backgroud)"
|
||||
/>
|
||||
<svg x={320} y={380} width={40} height={40} viewBox="0 0 40 40" className="overflow-visible">
|
||||
<circle cx={20} cy={20} r={16} fill="url(#gold-coin-grad)" stroke="var(--gold-700)" strokeWidth={1.5} />
|
||||
<circle cx={20} cy={20} r={10} fill="none" stroke="var(--gold-700)" strokeWidth={1} opacity={0.8} />
|
||||
</svg>
|
||||
{/* شمش طلا */}
|
||||
<rect
|
||||
x={1180}
|
||||
y={40}
|
||||
width={80}
|
||||
height={80}
|
||||
stroke="var(--border)"
|
||||
fill="url(#icon-backgroud)"
|
||||
/>
|
||||
<svg x={1200} y={60} width={40} height={40} viewBox="0 0 40 40" className="overflow-visible">
|
||||
<rect x={6} y={12} width={28} height={16} rx={3} fill="url(#gold-bar-grad)" stroke="var(--gold-700)" strokeWidth={1.5} />
|
||||
<rect x={10} y={14} width={4} height={12} rx={1} fill="var(--gold-600)" opacity={0.6} />
|
||||
<rect x={26} y={14} width={4} height={12} rx={1} fill="var(--gold-600)" opacity={0.6} />
|
||||
</svg>
|
||||
{/* سکه طلا */}
|
||||
<rect
|
||||
x={1260}
|
||||
y={280}
|
||||
width={80}
|
||||
height={80}
|
||||
stroke="var(--border)"
|
||||
fill="url(#icon-backgroud)"
|
||||
/>
|
||||
<svg x={1280} y={300} width={40} height={40} viewBox="0 0 40 40" className="overflow-visible">
|
||||
<circle cx={20} cy={20} r={16} fill="url(#gold-coin-grad)" stroke="var(--gold-700)" strokeWidth={1.5} />
|
||||
<circle cx={20} cy={20} r={10} fill="none" stroke="var(--gold-700)" strokeWidth={1} opacity={0.8} />
|
||||
</svg>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
<div className="relative z-10 container mx-auto flex flex-col items-center text-center px-4 md:px-6 min-h-[400px]">
|
||||
<h1 className="text-heading-1 my-6 font-bold text-pretty">
|
||||
{title}
|
||||
</h1>
|
||||
<p className="text-body mb-8 max-w-3xl leading-relaxed text-muted-foreground">
|
||||
{description}
|
||||
</p>
|
||||
{showButton && (
|
||||
<div className="mb-8">
|
||||
<Button variant="primary">Primary</Button>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Hero28 };
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
|
||||
interface Hero49Props {
|
||||
className?: string;
|
||||
title?: string;
|
||||
description?: string;
|
||||
showButton?: boolean;
|
||||
/** تصویر داخل فریم موبایل (مثلاً اسکرینشات اپ) */
|
||||
phoneImage?: string;
|
||||
}
|
||||
|
||||
const Hero49 = ({
|
||||
className,
|
||||
title = "Master your monetary matters",
|
||||
description = "Minimize financial stress and build wealth with our intuitive, AI-enhanced budgeting tool. Our platform analyzes your spending and offers insights for smarter financial decisions.",
|
||||
showButton = true,
|
||||
phoneImage,
|
||||
}: Hero49Props) => {
|
||||
const phoneImageSrc =
|
||||
phoneImage ?? "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/placeholder-dark-7-tall.svg";
|
||||
return (
|
||||
<section className={cn("bg-background py-32", className)}>
|
||||
<div className="container mx-auto flex flex-col items-center px-4 pt-24 md:pt-32 lg:pt-40">
|
||||
<div className="flex max-w-3xl flex-col items-center gap-8 text-center">
|
||||
<h1 className="text-heading-1 font-bold text-foreground">
|
||||
{title}
|
||||
</h1>
|
||||
<p className="text-body max-w-xl leading-relaxed tracking-tight text-muted-foreground">
|
||||
{description}
|
||||
</p>
|
||||
{showButton && (
|
||||
<Button variant="primary" size="lg" className="gap-2">
|
||||
<img
|
||||
alt="google play and app store download icons"
|
||||
loading="lazy"
|
||||
width="44"
|
||||
height="18"
|
||||
decoding="async"
|
||||
data-nimg="1"
|
||||
src="https://deifkwefumgah.cloudfront.net/shadcnblocks/block/hero49/download.svg"
|
||||
/>
|
||||
<p>Get started now</p>
|
||||
</Button>
|
||||
)}
|
||||
</div>
|
||||
<div className="relative translate-x-[14.7%]">
|
||||
{/* Image inside Iphone */}
|
||||
<div className="absolute top-[12%] left-[36.5%]! h-[67%]! w-[31%]! -translate-x-[52%] overflow-hidden rounded-[10px] bg-muted">
|
||||
<img
|
||||
className="min-h-full min-w-full object-cover"
|
||||
src={phoneImageSrc}
|
||||
alt=""
|
||||
/>
|
||||
</div>
|
||||
{/* Iphone Image */}
|
||||
<img
|
||||
alt=""
|
||||
src="https://deifkwefumgah.cloudfront.net/shadcnblocks/block/hero49/iphone.png"
|
||||
className="relative z-10"
|
||||
loading="lazy"
|
||||
width="1008.71"
|
||||
height="857"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Hero49 };
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
"use client";
|
||||
|
||||
import Link from "next/link";
|
||||
import Image from "next/image";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { useContent } from "@/components/layout/content-provider";
|
||||
|
||||
interface Hero91Props {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Hero91 = ({ className }: Hero91Props) => {
|
||||
const content = useContent();
|
||||
const { hero91 } = content.pages.home;
|
||||
const heroImageSrc = content.images.hero91.image;
|
||||
const heroVideoSrc = content.images.hero91.video;
|
||||
|
||||
return (
|
||||
<section
|
||||
className={cn(
|
||||
"py-24 md:py-32 lg:py-40",
|
||||
className,
|
||||
)}
|
||||
>
|
||||
<div className="container mx-auto flex max-w-7xl flex-col items-center gap-8 px-6 lg:flex-row lg:items-center lg:justify-between lg:gap-12">
|
||||
<div className="flex flex-col gap-6 lg:w-1/2" dir="rtl">
|
||||
<h1 className="text-heading-1 font-bold leading-tight text-foreground whitespace-pre-line">
|
||||
{hero91.title}
|
||||
</h1>
|
||||
<p className="text-body leading-relaxed text-muted-foreground">
|
||||
{hero91.description}
|
||||
</p>
|
||||
<div className="flex flex-col gap-4 font-medium md:flex-row md:gap-4">
|
||||
<Button asChild size="lg" variant="primary">
|
||||
<Link href="/contact">{hero91.primaryButton}</Link>
|
||||
</Button>
|
||||
<Button asChild size="lg" variant="secondary">
|
||||
<Link href="/consultation">{hero91.secondaryButton}</Link>
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
className={cn(
|
||||
"relative w-full max-w-full overflow-hidden rounded-2xl bg-black lg:w-1/2 lg:max-w-[640px] aspect-square",
|
||||
"shadow-[0_0_50px_rgba(37,102,90,0.28),0_0_90px_rgba(37,102,90,0.12)] dark:shadow-[0_0_50px_rgba(201,157,77,0.28),0_0_90px_rgba(201,157,77,0.12)]",
|
||||
)}
|
||||
>
|
||||
<div className="absolute inset-0">
|
||||
{heroVideoSrc ? (
|
||||
<video
|
||||
src={heroVideoSrc}
|
||||
className="h-full w-full object-cover"
|
||||
autoPlay
|
||||
muted
|
||||
loop
|
||||
playsInline
|
||||
preload="metadata"
|
||||
/>
|
||||
) : (
|
||||
<Image
|
||||
src={heroImageSrc}
|
||||
alt=""
|
||||
fill
|
||||
className="object-cover"
|
||||
priority
|
||||
unoptimized
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Hero91 };
|
||||
@@ -0,0 +1,79 @@
|
||||
"use client";
|
||||
|
||||
import { motion } from "framer-motion";
|
||||
import { ArrowRight } from "lucide-react";
|
||||
import React from "react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
import { useIsMobile } from "@/hooks/use-mobile";
|
||||
|
||||
import { LineShadowText } from "@/components/ui/line-shadow-text";
|
||||
import { Button } from "@/components/ui/button";
|
||||
|
||||
interface Hero233Props {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Hero233 = ({ className }: Hero233Props) => {
|
||||
const isMobile = useIsMobile();
|
||||
|
||||
return (
|
||||
<section
|
||||
className={cn(
|
||||
"relative h-screen w-screen overflow-hidden bg-background py-32",
|
||||
className,
|
||||
)}
|
||||
>
|
||||
<div className="relative z-20 container flex flex-col items-center justify-center gap-4 py-10 text-center md:mt-22">
|
||||
<div className="absolute -z-1 size-full max-w-3xl bg-background blur-xl" />
|
||||
<Button variant="outline" className="my-16 w-fit gap-2 md:my-5">
|
||||
<span className="size-2 rounded-full bg-current" />
|
||||
<span>Flexible Plan customized for you</span>
|
||||
</Button>
|
||||
<div className="relative flex max-w-4xl items-center justify-center text-center">
|
||||
<h1 className="text-heading-1 relative z-10 font-bold tracking-tight">
|
||||
<span className="mr-3 text-muted-foreground/50">
|
||||
The only app you Need to Stay
|
||||
</span>
|
||||
<LineShadowText> Productive </LineShadowText>
|
||||
<span className="text-muted-foreground/50"> ever</span>
|
||||
<span>.</span>
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
<p className="text-body mt-5 max-w-xl bg-background leading-relaxed text-muted-foreground/80">
|
||||
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Ipsum animi,
|
||||
ipsam provident optio delectus neque aliquid cumque. Beatae, odio!
|
||||
</p>
|
||||
<div className="my-5 flex flex-wrap justify-center gap-4">
|
||||
<Button variant="secondary" className="w-fit gap-2">
|
||||
<span>Documentation</span>
|
||||
<ArrowRight className="size-4 -rotate-45 transition-all ease-out group-hover:ml-3 group-hover:rotate-0" />
|
||||
</Button>
|
||||
<Button variant="primary" className="w-fit gap-2">
|
||||
<span>Get Started</span>
|
||||
<ArrowRight className="size-4 -rotate-45 transition-all ease-out group-hover:ml-3 group-hover:rotate-0" />
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="absolute top-0 flex size-full justify-center">
|
||||
{Array.from({ length: isMobile ? 7 : 18 }).map((_, i) => (
|
||||
<motion.div
|
||||
key={i}
|
||||
initial={{ opacity: 0, height: 0 }}
|
||||
animate={{ opacity: 1, height: "100%" }}
|
||||
transition={{
|
||||
duration: 0.8,
|
||||
delay: i * 0.05,
|
||||
ease: "easeOut",
|
||||
}}
|
||||
className="w-24 border-l bg-gradient-to-b to-transparent transition-all ease-in-out hover:scale-110 hover:from-black/2"
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Hero233 };
|
||||
@@ -0,0 +1,188 @@
|
||||
"use client";
|
||||
|
||||
import { Fragment, useState } from "react";
|
||||
import { Play } from "lucide-react";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { AspectRatio } from "@/components/ui/aspect-ratio";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
} from "@/components/ui/dialog";
|
||||
|
||||
export interface HeroContactProps {
|
||||
className?: string;
|
||||
/** برچسب بالای عنوان (مثلاً نام شرکت) */
|
||||
eyebrow?: string;
|
||||
/** عنوان اصلی - فقط یک h1 در صفحه */
|
||||
heading: string;
|
||||
/** توضیح زیر عنوان */
|
||||
description: string;
|
||||
/** متن دکمه اصلی (مثلاً «فرم تماس») */
|
||||
ctaLabel?: string;
|
||||
/** آدرس اسکرول به فرم (مثلاً #contact-form) */
|
||||
ctaHref?: string;
|
||||
/** مسیر تصویر هیرو (مثلاً /assets/contact-us/contact-us.jpg) */
|
||||
imageSrc?: string;
|
||||
/** متن جایگزین تصویر */
|
||||
imageAlt?: string;
|
||||
/** متن دکمه ویدیو (اختیاری - در صورت خالی بودن دکمه ویدیو نمایش داده نمیشود) */
|
||||
videoLabel?: string;
|
||||
/** آیدی ویدیو یوتیوب برای embed (اختیاری) */
|
||||
videoId?: string;
|
||||
}
|
||||
|
||||
const HeroContact = ({
|
||||
className,
|
||||
eyebrow,
|
||||
heading,
|
||||
description,
|
||||
ctaLabel = "فرم تماس",
|
||||
ctaHref = "#contact-form",
|
||||
imageSrc,
|
||||
imageAlt = "تماس با ما",
|
||||
videoLabel,
|
||||
videoId,
|
||||
}: HeroContactProps) => {
|
||||
const [isVideoOpen, setIsVideoOpen] = useState(false);
|
||||
|
||||
const handleCtaClick = (e: React.MouseEvent) => {
|
||||
if (ctaHref.startsWith("#")) {
|
||||
e.preventDefault();
|
||||
const el = document.getElementById(ctaHref.slice(1));
|
||||
el?.scrollIntoView({ behavior: "smooth" });
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<Fragment>
|
||||
<section
|
||||
className={cn(
|
||||
"flex min-h-[60vh] flex-col justify-center pt-28 pb-16 md:pt-36 md:pb-24",
|
||||
className
|
||||
)}
|
||||
aria-labelledby="hero-contact-heading"
|
||||
>
|
||||
<div className="container mx-auto w-full max-w-7xl px-4 md:px-6">
|
||||
<div className="grid grid-cols-1 items-center justify-items-center gap-10 lg:grid-cols-2 lg:justify-items-stretch">
|
||||
<div className="flex w-full max-w-xl flex-col gap-6 lg:max-w-[40rem]">
|
||||
{eyebrow && (
|
||||
<p className="text-caption font-medium tracking-wider text-muted-foreground uppercase">
|
||||
{eyebrow}
|
||||
</p>
|
||||
)}
|
||||
<div className="flex flex-col gap-6 text-center lg:text-right">
|
||||
<h1
|
||||
id="hero-contact-heading"
|
||||
className="text-heading-1 font-bold leading-tight text-foreground"
|
||||
>
|
||||
{heading}
|
||||
</h1>
|
||||
<p className="text-body text-balance text-muted-foreground">
|
||||
{description}
|
||||
</p>
|
||||
</div>
|
||||
<div className="flex flex-wrap justify-center gap-4 py-4 lg:justify-start">
|
||||
<Button
|
||||
asChild
|
||||
className="h-fit w-fit rounded-sm px-5 py-3.5 text-body-sm font-medium tracking-wider uppercase text-foreground"
|
||||
>
|
||||
<a
|
||||
href={ctaHref}
|
||||
onClick={ctaHref.startsWith("#") ? handleCtaClick : undefined}
|
||||
className="inline-flex items-center justify-center"
|
||||
>
|
||||
<span className="text-inherit">{ctaLabel}</span>
|
||||
</a>
|
||||
</Button>
|
||||
{videoLabel && videoId && (
|
||||
<Button
|
||||
type="button"
|
||||
variant="ghost"
|
||||
onClick={() => setIsVideoOpen(true)}
|
||||
className="flex h-fit w-fit flex-nowrap items-center gap-2 rounded-sm bg-transparent px-5 py-3.5 text-body-sm font-medium tracking-wider uppercase text-foreground"
|
||||
>
|
||||
<Play className="h-4 w-4 fill-foreground" aria-hidden />
|
||||
<span>{videoLabel}</span>
|
||||
</Button>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
<div className="flex w-full justify-center">
|
||||
{imageSrc ? (
|
||||
<div className="relative mx-auto aspect-[4/3] w-full max-w-[25rem] overflow-hidden rounded-[35px]">
|
||||
<img
|
||||
src={imageSrc}
|
||||
alt={imageAlt}
|
||||
className="size-full object-cover object-center"
|
||||
/>
|
||||
</div>
|
||||
) : (
|
||||
<div className="relative mx-auto aspect-[0.789340102/1] w-full max-w-[25rem]">
|
||||
<div className="absolute bottom-0 left-0 z-30 w-[63%]">
|
||||
<AspectRatio
|
||||
ratio={0.724137931 / 1}
|
||||
className="overflow-hidden rounded-lg"
|
||||
>
|
||||
<img
|
||||
src="https://deifkwefumgah.cloudfront.net/shadcnblocks/block/placeholder-1.svg"
|
||||
alt=""
|
||||
className="size-full object-cover object-center"
|
||||
/>
|
||||
</AspectRatio>
|
||||
</div>
|
||||
<div className="absolute top-1/2 left-1/2 z-20 w-[63%] -translate-x-1/2 -translate-y-1/2">
|
||||
<AspectRatio
|
||||
ratio={0.724137931 / 1}
|
||||
className="overflow-hidden rounded-lg"
|
||||
>
|
||||
<img
|
||||
src="https://deifkwefumgah.cloudfront.net/shadcnblocks/block/placeholder-dark-1.svg"
|
||||
alt=""
|
||||
className="size-full object-cover object-center"
|
||||
/>
|
||||
</AspectRatio>
|
||||
</div>
|
||||
<div className="absolute top-0 right-0 z-10 w-[63%]">
|
||||
<AspectRatio
|
||||
ratio={0.724137931 / 1}
|
||||
className="overflow-hidden rounded-lg"
|
||||
>
|
||||
<img
|
||||
src="https://deifkwefumgah.cloudfront.net/shadcnblocks/block/placeholder-1.svg"
|
||||
alt=""
|
||||
className="size-full object-cover object-center"
|
||||
/>
|
||||
</AspectRatio>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{videoId && (
|
||||
<Dialog open={isVideoOpen} onOpenChange={setIsVideoOpen}>
|
||||
<DialogContent className="sm:max-w-[800px]" dir="rtl">
|
||||
<DialogHeader>
|
||||
<DialogTitle>ویدیو معرفی</DialogTitle>
|
||||
</DialogHeader>
|
||||
<div className="aspect-video">
|
||||
<iframe
|
||||
className="h-full w-full"
|
||||
src={`https://www.youtube.com/embed/${videoId}`}
|
||||
title="ویدیو معرفی"
|
||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
||||
allowFullScreen
|
||||
/>
|
||||
</div>
|
||||
</DialogContent>
|
||||
</Dialog>
|
||||
)}
|
||||
</Fragment>
|
||||
);
|
||||
};
|
||||
|
||||
export { HeroContact };
|
||||
@@ -0,0 +1,244 @@
|
||||
import React from "react";
|
||||
import Link from "next/link";
|
||||
import { ArrowLeft, ArrowRight, ChevronRight } from "lucide-react";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import Image from "next/image";
|
||||
import { TextEffect } from "@/components/ui/text-effect";
|
||||
import { AnimatedGroup } from "@/components/ui/animated-group";
|
||||
import { HeroHeader } from "./header";
|
||||
import { LogoItem } from "@/components/ui/logo-item";
|
||||
|
||||
const transitionVariants = {
|
||||
item: {
|
||||
hidden: {
|
||||
opacity: 0,
|
||||
filter: "blur(12px)",
|
||||
y: 12,
|
||||
},
|
||||
visible: {
|
||||
opacity: 1,
|
||||
filter: "blur(0px)",
|
||||
y: 0,
|
||||
transition: {
|
||||
type: "spring",
|
||||
bounce: 0.3,
|
||||
duration: 1.5,
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default function HeroSection() {
|
||||
return (
|
||||
<>
|
||||
<main className="overflow-hidden">
|
||||
<div
|
||||
aria-hidden
|
||||
className="absolute inset-0 isolate hidden opacity-65 contain-strict lg:block"
|
||||
>
|
||||
<div className="w-140 h-320 -translate-y-87.5 absolute left-0 top-0 -rotate-45 rounded-full bg-[radial-gradient(68.54%_68.72%_at_55.02%_31.46%,hsla(0,0%,85%,.08)_0,hsla(0,0%,55%,.02)_50%,hsla(0,0%,45%,0)_80%)]" />
|
||||
<div className="h-320 absolute left-0 top-0 w-60 -rotate-45 rounded-full bg-[radial-gradient(50%_50%_at_50%_50%,hsla(0,0%,85%,.06)_0,hsla(0,0%,45%,.02)_80%,transparent_100%)] [translate:5%_-50%]" />
|
||||
<div className="h-320 -translate-y-87.5 absolute left-0 top-0 w-60 -rotate-45 bg-[radial-gradient(50%_50%_at_50%_50%,hsla(0,0%,85%,.04)_0,hsla(0,0%,45%,.02)_80%,transparent_100%)]" />
|
||||
</div>
|
||||
<section className="bg-background">
|
||||
<div className="relative pt-24 md:pt-36">
|
||||
<AnimatedGroup
|
||||
variants={{
|
||||
container: {
|
||||
visible: {
|
||||
transition: {
|
||||
delayChildren: 1,
|
||||
},
|
||||
},
|
||||
},
|
||||
item: {
|
||||
hidden: {
|
||||
opacity: 0,
|
||||
y: 20,
|
||||
},
|
||||
visible: {
|
||||
opacity: 1,
|
||||
y: 0,
|
||||
transition: {
|
||||
type: "spring",
|
||||
bounce: 0.3,
|
||||
duration: 2,
|
||||
},
|
||||
},
|
||||
},
|
||||
}}
|
||||
className="mask-b-from-35% mask-b-to-90% absolute inset-0 top-56 -z-20 lg:top-32"
|
||||
>
|
||||
<Image
|
||||
src="/assets/main-pic/main-pic.jpg"
|
||||
alt="background"
|
||||
className="hidden size-full lg:block"
|
||||
width="1150"
|
||||
height="613"
|
||||
/>
|
||||
</AnimatedGroup>
|
||||
|
||||
|
||||
<div className="mx-auto max-w-7xl px-6">
|
||||
<div className="text-center sm:mx-auto lg:mr-auto lg:mt-0">
|
||||
<AnimatedGroup variants={transitionVariants}>
|
||||
<Link
|
||||
href="/contact"
|
||||
className="hover:bg-background dark:hover:border-t-border bg-muted group mx-auto flex w-fit items-center gap-4 rounded-full border border-border p-1 ps-4 shadow-md transition-colors duration-300 dark:border-border dark:shadow-lg"
|
||||
>
|
||||
<span className="text-body-sm text-foreground">
|
||||
معرفی نسل جدید یکپارچهسازی و ارتباطات هوشمند
|
||||
</span>
|
||||
<span className="dark:border-background block h-4 w-0.5 border-s bg-card dark:bg-muted"></span>
|
||||
|
||||
<div className="bg-background group-hover:bg-muted size-6 overflow-hidden rounded-full duration-500">
|
||||
<div className="flex w-12 translate-x-1/2 duration-500 ease-in-out group-hover:translate-x-0">
|
||||
<span className="flex size-6">
|
||||
<ArrowRight className="m-auto size-3" />
|
||||
</span>
|
||||
<span className="flex size-6">
|
||||
<ArrowLeft className="m-auto size-3" />
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</Link>
|
||||
</AnimatedGroup>
|
||||
|
||||
<TextEffect
|
||||
preset="fade-in-blur"
|
||||
speedSegment={0.3}
|
||||
as="h1"
|
||||
className="text-heading-1 mx-auto mt-8 max-w-4xl font-bold text-balance leading-relaxed tracking-normal lg:mt-16"
|
||||
>
|
||||
راهحلهای مدرن برای تعامل هوشمند با مشتری و سیستمهای شما
|
||||
</TextEffect>
|
||||
<TextEffect
|
||||
per="line"
|
||||
preset="fade-in-blur"
|
||||
speedSegment={0.3}
|
||||
delay={0.5}
|
||||
as="p"
|
||||
className="text-body mx-auto mt-8 max-w-2xl text-balance leading-relaxed tracking-normal"
|
||||
>
|
||||
ما مجموعهای از ابزارهای یکپارچهسازی، اتوماسیون و ارتباطات ارائه میکنیم که به شما کمک میکند دادهها، کاربران و فرآیندهای کسبوکارتان را از هر سیستم یا پلتفرمی — از وبسایت و CRM گرفته تا تلگرام و سرویسهای سفارشی — به شکلی دقیق، سریع و قابلاعتماد بهم متصل کنید.
|
||||
</TextEffect>
|
||||
|
||||
<AnimatedGroup
|
||||
variants={{
|
||||
container: {
|
||||
visible: {
|
||||
transition: {
|
||||
staggerChildren: 0.05,
|
||||
delayChildren: 0.75,
|
||||
},
|
||||
},
|
||||
},
|
||||
...transitionVariants,
|
||||
}}
|
||||
className="mt-12 flex flex-col items-center justify-center gap-4 md:flex-row"
|
||||
>
|
||||
<Button asChild size="lg" variant="primary">
|
||||
<Link href="/contact">
|
||||
<span className="text-nowrap">شروع کنید</span>
|
||||
</Link>
|
||||
</Button>
|
||||
</AnimatedGroup>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<AnimatedGroup
|
||||
variants={{
|
||||
container: {
|
||||
visible: {
|
||||
transition: {
|
||||
staggerChildren: 0.05,
|
||||
delayChildren: 0.75,
|
||||
},
|
||||
},
|
||||
},
|
||||
...transitionVariants,
|
||||
}}
|
||||
>
|
||||
<div className="relative mt-8 overflow-hidden px-2 sm:mt-12 md:mt-20 p-2">
|
||||
<div className="ring-background bg-background relative max-w-5xl mx-auto overflow-hidden rounded-2xl border ring-1 aspect-[3/2]">
|
||||
<Image
|
||||
src="/assets/main-pic/Untitled-1 copy-min.jpg"
|
||||
alt="یکپارچهسازی سیستمها و شبکه دیجیتال"
|
||||
fill
|
||||
className="object-cover rounded-2xl inline-block my-0"
|
||||
quality={100}
|
||||
priority
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</AnimatedGroup>
|
||||
</div>
|
||||
</section>
|
||||
<section className="bg-background pb-16 pt-16 md:pb-32">
|
||||
<div className="group relative m-auto max-w-5xl px-6">
|
||||
<div className="absolute inset-0 z-10 flex scale-95 items-center justify-center opacity-0 duration-500 group-hover:scale-100 group-hover:opacity-100">
|
||||
<Link
|
||||
href="/"
|
||||
className="block text-sm duration-150 hover:text-accent transition-colors"
|
||||
>
|
||||
<span> اتصال به سایر سیستم ها </span>
|
||||
|
||||
<ChevronRight className="ml-1 inline-block size-3" />
|
||||
</Link>
|
||||
</div>
|
||||
<div className="group-hover:blur-xs mx-auto mt-12 grid max-w-4xl grid-cols-4 gap-x-12 gap-y-8 transition-all duration-500 group-hover:opacity-50 sm:gap-x-16 sm:gap-y-14">
|
||||
<LogoItem
|
||||
icon="logos:telegram"
|
||||
alt="Telegram Logo"
|
||||
size="md"
|
||||
className="translate-x-1"
|
||||
/>
|
||||
<LogoItem
|
||||
icon="simple-icons:n8n"
|
||||
alt="n8n Logo"
|
||||
size="lg"
|
||||
className="translate-x-4 "
|
||||
/>
|
||||
<LogoItem
|
||||
icon="skill-icons:wordpress"
|
||||
alt="WordPress Logo"
|
||||
size="md"
|
||||
className="-translate-x-2"
|
||||
/>
|
||||
<LogoItem
|
||||
icon="logos:google-icon"
|
||||
alt="Google Logo"
|
||||
size="md"
|
||||
className="translate-x-5"
|
||||
/>
|
||||
<div className="col-span-4 flex justify-center gap-x-12 sm:gap-x-40">
|
||||
<LogoItem
|
||||
icon="logos:whatsapp-icon"
|
||||
alt="WhatsApp Logo"
|
||||
size="md"
|
||||
className="translate-x-2"
|
||||
/>
|
||||
<LogoItem
|
||||
icon="logos:microsoft-windows-icon"
|
||||
alt="Microsoft Windows Logo"
|
||||
size="md"
|
||||
className="translate-x-2"
|
||||
/>
|
||||
<LogoItem
|
||||
icon="skill-icons:github-dark"
|
||||
alt="github Logo"
|
||||
size="md"
|
||||
className="translate-x-4"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,161 @@
|
||||
"use client";
|
||||
|
||||
import { motion } from "framer-motion";
|
||||
import { Autoplay, EffectCoverflow } from "swiper/modules";
|
||||
import { Swiper, SwiperSlide } from "swiper/react";
|
||||
import "swiper/css/effect-coverflow";
|
||||
import "swiper/css/pagination";
|
||||
import "swiper/css/navigation";
|
||||
import "swiper/css";
|
||||
import "swiper/css/effect-cards";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
|
||||
interface HeroPartnersProps {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const HeroPartners = ({ className }: HeroPartnersProps) => {
|
||||
const images = [
|
||||
{
|
||||
src: "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/lummi/random11.jpeg",
|
||||
alt: "لوگوی شرکت همکار و تیم",
|
||||
name: "شرکت راهکارهای فناوری",
|
||||
},
|
||||
{
|
||||
src: "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/lummi/random1.jpeg",
|
||||
alt: "دفتر مرکزی شرکت همکار",
|
||||
name: "آزمایشگاههای نوآوری",
|
||||
},
|
||||
{
|
||||
src: "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/lummi/random2.jpeg",
|
||||
alt: "جلسه همکاری همکاران",
|
||||
name: "همکاران جهانی",
|
||||
},
|
||||
{
|
||||
src: "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/lummi/random11.jpeg",
|
||||
alt: "لوگوی شرکت همکار و تیم",
|
||||
name: "شرکت راهکارهای فناوری",
|
||||
},
|
||||
{
|
||||
src: "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/lummi/random1.jpeg",
|
||||
alt: "دفتر مرکزی شرکت همکار",
|
||||
name: "آزمایشگاههای نوآوری",
|
||||
},
|
||||
{
|
||||
src: "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/lummi/random2.jpeg",
|
||||
alt: "جلسه همکاری همکاران",
|
||||
name: "همکاران جهانی",
|
||||
},
|
||||
{
|
||||
src: "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/lummi/random11.jpeg",
|
||||
alt: "لوگوی شرکت همکار و تیم",
|
||||
name: "شرکت راهکارهای فناوری",
|
||||
},
|
||||
{
|
||||
src: "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/lummi/random1.jpeg",
|
||||
alt: "دفتر مرکزی شرکت همکار",
|
||||
name: "آزمایشگاههای نوآوری",
|
||||
},
|
||||
{
|
||||
src: "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/lummi/random2.jpeg",
|
||||
alt: "جلسه همکاری همکاران",
|
||||
name: "همکاران جهانی",
|
||||
},
|
||||
];
|
||||
|
||||
const css = `
|
||||
.mySwiperHeroAbshodeHamkar {
|
||||
width: 100%;
|
||||
height: 420px;
|
||||
padding-bottom: 50px;
|
||||
}
|
||||
|
||||
.mySwiperHeroAbshodeHamkar .swiper-slide {
|
||||
background-position: center;
|
||||
background-size: cover;
|
||||
width: 300px;
|
||||
}
|
||||
|
||||
.mySwiperHeroAbshodeHamkar .swiper-slide img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.swiper-3d .swiper-slide-shadow-left {
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
.swiper-3d .swiper-slide-shadow-right{
|
||||
background: none;
|
||||
}
|
||||
`;
|
||||
return (
|
||||
<section className={cn("py-32 mx-auto", className)}>
|
||||
<style>{css}</style>
|
||||
<div className="container px-0 sm:px-8 mx-auto">
|
||||
<div className="mx-auto flex max-w-2xl flex-col items-center justify-center gap-4 px-8 sm:px-0">
|
||||
<h1 className="text-center text-heading-1 font-bold">
|
||||
همکاران ما
|
||||
</h1>
|
||||
<p className="text-center text-body text-muted-foreground">
|
||||
مدیریت معاملات بین همکاران صنف طلا با تمرکز بر امنیت، دقت و سرعت در مقیاس واقعی بازار.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="relative mt-12 h-[420px] w-full lg:px-20">
|
||||
<div className="absolute left-0 z-10 h-full w-12 bg-gradient-to-r from-background to-transparent sm:via-background md:w-58 lg:left-16" />
|
||||
<div className="absolute right-0 z-10 h-full w-12 bg-gradient-to-l from-background to-transparent sm:via-background md:w-58 lg:right-16" />
|
||||
<motion.div
|
||||
initial={{ opacity: 0 }}
|
||||
animate={{ opacity: 1 }}
|
||||
transition={{ duration: 0.3 }}
|
||||
className="w-full"
|
||||
>
|
||||
<Swiper
|
||||
autoplay={{
|
||||
delay: 1500,
|
||||
disableOnInteraction: false,
|
||||
}}
|
||||
effect="coverflow"
|
||||
grabCursor={true}
|
||||
slidesPerView="auto"
|
||||
centeredSlides={true}
|
||||
loop={true}
|
||||
coverflowEffect={{
|
||||
rotate: 50,
|
||||
stretch: 0,
|
||||
depth: 100,
|
||||
modifier: 1,
|
||||
slideShadows: true,
|
||||
}}
|
||||
className="mySwiperHeroAbshodeHamkar"
|
||||
modules={[EffectCoverflow, Autoplay]}
|
||||
>
|
||||
{images.map((image, index) => (
|
||||
<SwiperSlide key={index}>
|
||||
<img
|
||||
className="h-full w-full overflow-hidden rounded-3xl object-cover shadow-lg"
|
||||
src={image.src}
|
||||
alt={image.alt}
|
||||
/>
|
||||
</SwiperSlide>
|
||||
))}
|
||||
</Swiper>
|
||||
</motion.div>
|
||||
</div>
|
||||
|
||||
<div className="relative mx-auto mt-4 flex w-fit justify-center">
|
||||
<Button size="lg" variant="primary">
|
||||
همکار شوید
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { HeroPartners };
|
||||
|
||||
@@ -0,0 +1,100 @@
|
||||
import { ArrowUpRight } from "lucide-react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
|
||||
interface HeroProductProps {
|
||||
heading?: string;
|
||||
headingLine2?: string;
|
||||
subheading?: string;
|
||||
description?: string;
|
||||
image?: {
|
||||
src: string;
|
||||
alt: string;
|
||||
};
|
||||
buttons?: {
|
||||
primary?: {
|
||||
text: string;
|
||||
url: string;
|
||||
};
|
||||
secondary?: {
|
||||
text: string;
|
||||
url: string;
|
||||
};
|
||||
};
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const HeroProduct = ({
|
||||
subheading = "",
|
||||
heading = " سامانه معاملات آبشده همکاران",
|
||||
headingLine2,
|
||||
description = "سامانه تخصصی ثبت، مدیریت و تسویه معاملات آبشده برای فعالان حرفهای بازار.\nبدون تماسهای مکرر، بدون اختلاف حساب، با دسترسی لحظهای به مانده و ریز معاملات.",
|
||||
buttons = {
|
||||
primary: {
|
||||
text: "درخواست جلسه معرفی",
|
||||
url: "#",
|
||||
}
|
||||
},
|
||||
image = {
|
||||
src: "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/placeholder-dark-7-tall.svg",
|
||||
alt: "Placeholder",
|
||||
},
|
||||
className,
|
||||
}: HeroProductProps) => {
|
||||
return (
|
||||
<section className={cn("pt-24 pb-16 md:py-24 lg:py-32", className)}>
|
||||
<div className="container mx-auto flex flex-col items-center gap-10 px-6 lg:my-0 lg:flex-row">
|
||||
<div className="flex flex-col gap-7 text-center lg:w-2/3 lg:text-start">
|
||||
<h1 className="text-heading-1 font-bold leading-[var(--line-height-heading)] text-foreground">
|
||||
<span>{heading}</span>
|
||||
{headingLine2 != null && headingLine2 !== "" && (
|
||||
<>
|
||||
<br />
|
||||
<span>{headingLine2}</span>
|
||||
</>
|
||||
)}
|
||||
{!headingLine2 && subheading ? (
|
||||
<span className="text-muted-foreground">{subheading}</span>
|
||||
) : null}
|
||||
</h1>
|
||||
<p className="max-w-2xl text-body leading-[var(--line-height-body)] text-justify text-muted-foreground whitespace-pre-line">
|
||||
{description}
|
||||
</p>
|
||||
<div className="flex flex-wrap items-center justify-center gap-4 lg:justify-start">
|
||||
<Button asChild size="lg" variant="primary">
|
||||
<a href={buttons.primary?.url}>
|
||||
<ArrowUpRight className="size-4" />
|
||||
<span className="whitespace-nowrap">{buttons.primary?.text}</span>
|
||||
</a>
|
||||
</Button>
|
||||
{buttons.secondary?.url && buttons.secondary?.text && (
|
||||
<Button asChild size="lg" variant="secondary">
|
||||
<a href={buttons.secondary.url}>{buttons.secondary.text}</a>
|
||||
</Button>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
<div className="relative z-10">
|
||||
<div className="absolute top-2.5 left-1/2! h-[92%]! w-[69%]! -translate-x-[52%] overflow-hidden rounded-[35px]">
|
||||
<img
|
||||
src={image.src}
|
||||
alt={image.alt}
|
||||
className="size-full object-cover object-[50%_0%]"
|
||||
/>
|
||||
</div>
|
||||
<img
|
||||
className="relative z-10"
|
||||
src="https://deifkwefumgah.cloudfront.net/shadcnblocks/block/mockups/phone-2.png"
|
||||
width={450}
|
||||
height={889}
|
||||
alt="iphone"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { HeroProduct };
|
||||
@@ -0,0 +1,12 @@
|
||||
|
||||
import Footer5 from './footer'
|
||||
|
||||
|
||||
export default function HeroSectionTailark() {
|
||||
return (
|
||||
<>
|
||||
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -0,0 +1,120 @@
|
||||
'use client'
|
||||
|
||||
import { CircleArrowRight, Files, Settings } from 'lucide-react'
|
||||
import { cn } from '@/lib/utils'
|
||||
|
||||
export interface AboutCompanySectionProps {
|
||||
className?: string
|
||||
mainHeading: string
|
||||
description?: string
|
||||
title: string
|
||||
subtitle: string
|
||||
bio: string
|
||||
vision: string
|
||||
philosophyHeading: string
|
||||
outro: string
|
||||
imageLogo?: { src: string; alt: string }
|
||||
imageOffice?: { src: string; alt: string }
|
||||
}
|
||||
|
||||
export function AboutCompanySection({
|
||||
className,
|
||||
mainHeading,
|
||||
description,
|
||||
title,
|
||||
subtitle,
|
||||
bio,
|
||||
vision,
|
||||
philosophyHeading,
|
||||
outro,
|
||||
imageLogo,
|
||||
imageOffice,
|
||||
}: AboutCompanySectionProps) {
|
||||
const valueCards = [
|
||||
{
|
||||
icon: Files,
|
||||
heading: philosophyHeading,
|
||||
body: vision,
|
||||
},
|
||||
{
|
||||
icon: CircleArrowRight,
|
||||
heading: 'همراهی تخصصی',
|
||||
body: 'تیم ما با تمرکز بر کیفیت اجرا، پاسخگویی سریع و توسعه مستمر کنار کسبوکار شما است.',
|
||||
},
|
||||
{
|
||||
icon: Settings,
|
||||
heading: 'رویکرد اجرایی',
|
||||
body: outro,
|
||||
},
|
||||
]
|
||||
|
||||
return (
|
||||
<section className={cn('py-20 md:py-24 lg:py-32', className)} dir="rtl">
|
||||
<div className="mx-auto w-full max-w-7xl px-4 sm:px-6 flex flex-col gap-14 lg:gap-24">
|
||||
<div className="flex flex-col items-center gap-4 text-center md:gap-6">
|
||||
<h1 className="text-heading-1 font-bold text-foreground">{mainHeading}</h1>
|
||||
<p className="text-body mx-auto max-w-3xl text-muted-foreground md:text-body-sm">
|
||||
{description ?? bio}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="grid gap-6 md:grid-cols-2">
|
||||
<div className="overflow-hidden rounded-2xl border border-border bg-card">
|
||||
{imageOffice ? (
|
||||
<img
|
||||
src={imageOffice.src}
|
||||
alt={imageOffice.alt}
|
||||
className="h-auto w-full object-contain"
|
||||
/>
|
||||
) : (
|
||||
<div className="flex h-full min-h-64 items-center justify-center bg-muted p-8">
|
||||
<div className="text-center">
|
||||
<p className="text-heading-3 font-semibold text-foreground">{title}</p>
|
||||
<p className="mt-2 text-body-sm text-muted-foreground">{subtitle}</p>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className="flex flex-col justify-between gap-8 rounded-2xl border border-border bg-accent/30 p-8 md:p-10">
|
||||
<div className="flex items-center gap-4">
|
||||
{imageLogo ? (
|
||||
<img src={imageLogo.src} alt={imageLogo.alt} className="h-14 w-14 rounded-xl object-cover" />
|
||||
) : (
|
||||
<div className="flex h-14 w-14 items-center justify-center rounded-xl bg-muted text-heading-4 font-semibold text-muted-foreground">
|
||||
{title.slice(0, 1)}
|
||||
</div>
|
||||
)}
|
||||
<div>
|
||||
<p className="text-caption font-medium text-muted-foreground">معرفی برند</p>
|
||||
<h2 className="text-heading-3 font-semibold text-foreground">{title}</h2>
|
||||
</div>
|
||||
</div>
|
||||
<p className="text-body leading-[var(--line-height-relaxed)] text-foreground">{bio}</p>
|
||||
<p className="text-body-sm text-muted-foreground">{vision}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="flex flex-col gap-8 md:gap-14">
|
||||
<div className="max-w-3xl">
|
||||
<h2 className="text-heading-2 mb-4 font-semibold text-foreground">{philosophyHeading}</h2>
|
||||
<p className="text-body text-muted-foreground">{outro}</p>
|
||||
</div>
|
||||
|
||||
<div className="grid gap-8 md:grid-cols-3">
|
||||
{valueCards.map(({ icon: Icon, heading, body }, idx) => (
|
||||
<div key={idx} className="flex flex-col rounded-2xl border border-border bg-card p-6">
|
||||
<div className="mb-4 flex h-12 w-12 items-center justify-center rounded-xl bg-accent">
|
||||
<Icon className="h-5 w-5 text-primary" />
|
||||
</div>
|
||||
<h3 className="text-heading-4 mb-3 font-medium text-foreground">{heading}</h3>
|
||||
<p className="text-body-sm text-muted-foreground">{body}</p>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,200 @@
|
||||
"use client";
|
||||
|
||||
import React, { useEffect, useRef, useState } from "react";
|
||||
import {
|
||||
motion,
|
||||
useAnimationFrame,
|
||||
useMotionTemplate,
|
||||
useMotionValue,
|
||||
useTransform,
|
||||
animate,
|
||||
} from "motion/react";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { ChevronLeft, ChevronRight } from "lucide-react";
|
||||
import { Button } from "@/components/ui/button";
|
||||
|
||||
export function AppleCardsCarousel({
|
||||
items,
|
||||
direction = "left",
|
||||
speed = "fast",
|
||||
pauseOnHover = true,
|
||||
className,
|
||||
}: {
|
||||
items: {
|
||||
title: string;
|
||||
description: string;
|
||||
icon: React.ReactNode;
|
||||
src?: string;
|
||||
}[];
|
||||
direction?: "left" | "right";
|
||||
speed?: "fast" | "normal" | "slow";
|
||||
pauseOnHover?: boolean;
|
||||
className?: string;
|
||||
}) {
|
||||
const containerRef = useRef<HTMLDivElement>(null);
|
||||
const scrollRef = useRef<HTMLDivElement>(null);
|
||||
|
||||
const [start, setStart] = useState(false);
|
||||
useEffect(() => {
|
||||
setStart(true);
|
||||
}, []);
|
||||
|
||||
const baseVelocity = {
|
||||
fast: 50,
|
||||
normal: 35,
|
||||
slow: 20,
|
||||
};
|
||||
|
||||
const baseX = useMotionValue(0);
|
||||
const directionFactor = React.useRef<number>(1);
|
||||
const [hovered, setHovered] = useState(false);
|
||||
|
||||
useAnimationFrame((t, delta) => {
|
||||
if (hovered) return;
|
||||
|
||||
let moveBy = directionFactor.current * baseVelocity[speed] * (delta / 1000);
|
||||
|
||||
if (direction === "left") {
|
||||
directionFactor.current = -1;
|
||||
} else {
|
||||
directionFactor.current = 1;
|
||||
}
|
||||
|
||||
moveBy += directionFactor.current * moveBy * 0.5;
|
||||
|
||||
baseX.set(baseX.get() + moveBy);
|
||||
});
|
||||
|
||||
const scrollLeft = () => {
|
||||
if (scrollRef.current) {
|
||||
// Calculate responsive card width + gap
|
||||
const cardWidth = window.innerWidth < 640 ? 280 : window.innerWidth < 768 ? 320 : 350;
|
||||
const scrollAmount = cardWidth + 16; // card width + gap
|
||||
const newX = baseX.get() + scrollAmount;
|
||||
animate(baseX, newX, { duration: 0.5, ease: "easeOut" });
|
||||
}
|
||||
};
|
||||
|
||||
const scrollRight = () => {
|
||||
if (scrollRef.current) {
|
||||
// Calculate responsive card width + gap
|
||||
const cardWidth = window.innerWidth < 640 ? 280 : window.innerWidth < 768 ? 320 : 350;
|
||||
const scrollAmount = cardWidth + 16; // card width + gap
|
||||
const newX = baseX.get() - scrollAmount;
|
||||
animate(baseX, newX, { duration: 0.5, ease: "easeOut" });
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
<div
|
||||
ref={containerRef}
|
||||
className={cn(
|
||||
"relative w-full overflow-hidden [mask-image:linear-gradient(to_right,transparent_0%,white_10%,white_90%,transparent_100%)]",
|
||||
className
|
||||
)}
|
||||
onMouseEnter={() => pauseOnHover && setHovered(true)}
|
||||
onMouseLeave={() => pauseOnHover && setHovered(false)}
|
||||
>
|
||||
<div className="flex justify-center">
|
||||
<motion.div
|
||||
ref={scrollRef}
|
||||
style={{
|
||||
x: baseX,
|
||||
willChange: "transform",
|
||||
}}
|
||||
className="flex flex-nowrap gap-4 items-center"
|
||||
>
|
||||
{start &&
|
||||
items.map((item, idx) => (
|
||||
<div
|
||||
key={`item-${idx}`}
|
||||
className="relative shrink-0 w-[280px] sm:w-[320px] md:w-[350px]"
|
||||
>
|
||||
<div className="group relative h-[400px] sm:h-[420px] md:h-[450px] w-full overflow-hidden rounded-3xl p-6 sm:p-7 md:p-8">
|
||||
{item.src && (
|
||||
<div className="absolute inset-0">
|
||||
<img
|
||||
src={item.src}
|
||||
alt={item.title}
|
||||
className="h-full w-full object-cover"
|
||||
/>
|
||||
<div className="absolute inset-0 bg-gradient-to-br from-black/60 via-black/40 to-black/60" />
|
||||
</div>
|
||||
)}
|
||||
<div className="absolute inset-0 bg-[linear-gradient(to_bottom_right,var(--background)_0%,rgba(255,255,255,0.08)_50%,transparent_60%)] opacity-0 group-hover:opacity-100 transition-opacity duration-500" />
|
||||
<div className="relative z-10">
|
||||
<div className="mb-4 flex items-center gap-4">
|
||||
{item.icon}
|
||||
<div>
|
||||
<h3 className="text-heading-3 font-semibold text-overlay-foreground">
|
||||
{item.title}
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
<p className="text-body-sm text-overlay-foreground/90">
|
||||
{item.description}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
{start &&
|
||||
items.map((item, idx) => (
|
||||
<div
|
||||
key={`item-duplicate-${idx}`}
|
||||
className="relative shrink-0 w-[280px] sm:w-[320px] md:w-[350px]"
|
||||
>
|
||||
<div className="group relative h-[400px] sm:h-[420px] md:h-[450px] w-full overflow-hidden rounded-3xl p-6 sm:p-7 md:p-8">
|
||||
{item.src && (
|
||||
<div className="absolute inset-0">
|
||||
<img
|
||||
src={item.src}
|
||||
alt={item.title}
|
||||
className="h-full w-full object-cover"
|
||||
/>
|
||||
<div className="absolute inset-0 bg-gradient-to-br from-black/60 via-black/40 to-black/60" />
|
||||
</div>
|
||||
)}
|
||||
<div className="absolute inset-0 bg-[linear-gradient(to_bottom_right,var(--background)_0%,rgba(255,255,255,0.08)_50%,transparent_60%)] opacity-0 group-hover:opacity-100 transition-opacity duration-500" />
|
||||
<div className="relative z-10">
|
||||
<div className="mb-4 flex items-center gap-4">
|
||||
{item.icon}
|
||||
<div>
|
||||
<h3 className="text-heading-3 font-semibold text-overlay-foreground">
|
||||
{item.title}
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
<p className="text-body-sm text-overlay-foreground/90">
|
||||
{item.description}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
</motion.div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="flex justify-center gap-4">
|
||||
<Button
|
||||
variant="outline"
|
||||
size="icon-lg"
|
||||
onClick={scrollRight}
|
||||
aria-label="Scroll left"
|
||||
>
|
||||
<ChevronRight className="h-5 w-5" />
|
||||
</Button>
|
||||
<Button
|
||||
variant="outline"
|
||||
size="icon-lg"
|
||||
onClick={scrollLeft}
|
||||
aria-label="Scroll right"
|
||||
>
|
||||
<ChevronLeft className="h-5 w-5" />
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,96 @@
|
||||
"use client";
|
||||
|
||||
import { Card, CardContent } from "@/components/ui/card";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
interface BusinessStatsSectionProps {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const statsData = [
|
||||
{
|
||||
heading: "۱۵+",
|
||||
label: "سال تجربه تخصصی",
|
||||
text: "تجربه مستمر در طراحی و تولید استند و دکور ویترین ویژه صنف طلا و جواهر.",
|
||||
},
|
||||
{
|
||||
heading: "۳۵۰+",
|
||||
label: "پروژه اجراشده",
|
||||
text: "همکاری با طلافروشی هایی که دنبال ویترین منظم، حرفه ای و تاثیرگذار برای جذب مشتری هستند.",
|
||||
},
|
||||
{
|
||||
heading: "۹۳٪",
|
||||
label: "رضایت مشتریان",
|
||||
text: "اعتماد مشتریان ما نتیجه کیفیت ساخت، تحویل دقیق و اثر واقعی روی ظاهر فروشگاه است.",
|
||||
},
|
||||
{
|
||||
heading: "۴۸ ساعت",
|
||||
label: "شروع پشتیبانی",
|
||||
text: "پس از تحویل پروژه، فرآیند پشتیبانی و پاسخگویی سریع برای حفظ کیفیت اجرا آغاز می شود.",
|
||||
},
|
||||
];
|
||||
|
||||
const BusinessStatsSection = ({ className }: BusinessStatsSectionProps) => {
|
||||
return (
|
||||
<section
|
||||
className={cn("section-blur-separator relative py-16 md:py-24", className)}
|
||||
dir="rtl"
|
||||
aria-labelledby="business-stats-heading"
|
||||
>
|
||||
<div
|
||||
className="pointer-events-none absolute left-1/2 top-1/2 flex h-full min-h-[28rem] w-full min-w-0 -translate-x-1/2 -translate-y-1/2 items-center justify-center"
|
||||
aria-hidden
|
||||
>
|
||||
<div
|
||||
className="aspect-square w-[min(125vmin,58rem)] max-w-[200%] shrink-0 rounded-full bg-[radial-gradient(circle_at_center,color-mix(in_srgb,var(--primary)_22%,transparent)_0%,transparent_72%)] blur-[4.5rem] md:blur-[6rem]"
|
||||
/>
|
||||
</div>
|
||||
<div className="relative z-10 mx-auto w-full max-w-7xl px-4 sm:px-6">
|
||||
<div className="relative isolate">
|
||||
<div className="relative overflow-hidden rounded-3xl border border-primary/30 bg-overlay/25 px-5 py-8 shadow-2xl backdrop-blur-2xl backdrop-saturate-150 sm:px-8 sm:py-10">
|
||||
<div
|
||||
aria-hidden
|
||||
className="pointer-events-none absolute -right-24 -top-24 z-0 h-80 w-80 rounded-full bg-primary/8 blur-3xl sm:h-[24rem] sm:w-[24rem]"
|
||||
/>
|
||||
<div
|
||||
aria-hidden
|
||||
className="pointer-events-none absolute -bottom-24 -left-24 z-0 h-80 w-80 rounded-full bg-primary/8 blur-3xl sm:h-[24rem] sm:w-[24rem]"
|
||||
/>
|
||||
<div className="relative z-10">
|
||||
<div className="mx-auto max-w-3xl text-center">
|
||||
<p className="text-caption font-medium text-muted-foreground">مستر دکور در یک نگاه</p>
|
||||
<h2 id="business-stats-heading" className="mt-3 text-heading-2 font-semibold text-foreground">
|
||||
عملکرد ما با مشتریان
|
||||
</h2>
|
||||
<div className="mt-3">
|
||||
<div className="tone-gradient-line" aria-hidden />
|
||||
</div>
|
||||
<p className="mt-4 text-body text-muted-foreground">
|
||||
این آمار نشان می دهد اجرای اصولی استند و دکور ویترین چطور به جذابیت فروشگاه، تجربه خرید بهتر و فروش موثرتر
|
||||
کمک می کند.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="mt-8 grid grid-cols-1 gap-4 sm:mt-10 sm:gap-5 md:grid-cols-2 lg:grid-cols-4">
|
||||
{statsData.map((stat) => (
|
||||
<Card
|
||||
key={stat.label}
|
||||
className="section-unified-block frosted-panel h-full rounded-2xl bg-card/70 transition-transform duration-300 hover:-translate-y-1"
|
||||
>
|
||||
<CardContent className="flex h-full flex-col p-6 sm:p-7">
|
||||
<p className="text-heading-2 font-bold leading-none text-primary">{stat.heading}</p>
|
||||
<p className="mt-3 text-heading-5 font-medium text-foreground">{stat.label}</p>
|
||||
<p className="mt-2 text-caption font-normal text-primary">{stat.text}</p>
|
||||
</CardContent>
|
||||
</Card>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { BusinessStatsSection };
|
||||
@@ -0,0 +1,123 @@
|
||||
"use client";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
import {
|
||||
Accordion,
|
||||
AccordionContent,
|
||||
AccordionItem,
|
||||
AccordionTrigger,
|
||||
} from "@/components/ui/accordion";
|
||||
import {
|
||||
Server,
|
||||
Settings2,
|
||||
Headphones,
|
||||
Gift,
|
||||
Users,
|
||||
type LucideIcon,
|
||||
} from "lucide-react";
|
||||
|
||||
interface AdvantageItem {
|
||||
id: string;
|
||||
title: string;
|
||||
description: string;
|
||||
icon: LucideIcon;
|
||||
}
|
||||
|
||||
const advantages: AdvantageItem[] = [
|
||||
{
|
||||
id: "advantage-1",
|
||||
title: "نصب نسخه اختصاصی برای هر مجموعه",
|
||||
description:
|
||||
"هر سازمان نسخهٔ جداگانه و مستقل از سامانه را روی سرور خود دریافت میکند. دادهها کاملاً در اختیار شما میمانند و امنیت و کنترل کامل بر اطلاعات خود دارید؛ بدون وابستگی به سرورهای اشتراکی.",
|
||||
icon: Server,
|
||||
},
|
||||
{
|
||||
id: "advantage-2",
|
||||
title: "امکان شخصیسازی کامل بر اساس مدل کاری",
|
||||
description:
|
||||
"ماژولها، فیلدها و گردشکارها متناسب با فرایندهای داخلی مجموعهٔ شما تنظیم میشوند. سامانه دقیقاً با نیاز و مدل کاری شما هماهنگ میشود و نیازی به تغییر فرایندها برای تطبیق با نرمافزار نیست.",
|
||||
icon: Settings2,
|
||||
},
|
||||
{
|
||||
id: "advantage-3",
|
||||
title: "پشتیبانی مستقیم و توسعه مستمر",
|
||||
description:
|
||||
"تیم فنی ما بهصورت مستقیم پاسخگوی سوالات و مشکلات شماست. بهطور منظم امکانات جدید و بهروزرسانیهای امنیتی و عملکردی ارائه میشود تا سامانه همیشه بهروز و پایدار بماند.",
|
||||
icon: Headphones,
|
||||
},
|
||||
{
|
||||
id: "advantage-4",
|
||||
title: "۶ ماه پشتیبانی رایگان پس از نصب",
|
||||
description:
|
||||
"پس از راهاندازی، بهمدت شش ماه از پشتیبانی فنی، رفع باگ و پاسخگویی به سوالات بهصورت رایگان بهرهمند میشوید تا با اطمینان خاطر از سامانه استفاده کنید و در صورت نیاز راهنمایی بگیرید.",
|
||||
icon: Gift,
|
||||
},
|
||||
{
|
||||
id: "advantage-5",
|
||||
title: "بیش از ۳۰ مشتری فعال در حال استفاده",
|
||||
description:
|
||||
"مجموعههای مختلف در حال حاضر از این سامانه استفاده میکنند. این اعتماد نشاندهندهٔ پایداری، کارایی و رضایت مشتریان است و میتوانید با خیال راحت به راهحل ما تکیه کنید.",
|
||||
icon: Users,
|
||||
},
|
||||
];
|
||||
|
||||
interface CompetitiveAdvantageSectionProps {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export default function CompetitiveAdvantageSection({
|
||||
className,
|
||||
}: CompetitiveAdvantageSectionProps) {
|
||||
return (
|
||||
<section
|
||||
dir="rtl"
|
||||
className={cn(
|
||||
"relative w-full overflow-visible border-t border-border/50 bg-background py-16 md:py-24 lg:py-32",
|
||||
className
|
||||
)}
|
||||
>
|
||||
<div className="container mx-auto max-w-3xl px-4 sm:px-6">
|
||||
<div className="flex min-h-0 min-w-0 flex-col items-center justify-center text-center">
|
||||
<h2 className="text-heading-2 font-semibold leading-[var(--line-height-heading)] text-foreground">
|
||||
چرا این سامانه انتخاب مجموعههای حرفهای است؟
|
||||
</h2>
|
||||
<p className="text-body mt-4 max-w-xl leading-[var(--line-height-body)] text-muted-foreground">
|
||||
مزایایی که باعث میشود مجموعههای حرفهای ما را انتخاب کنند؛ روی هر مورد کلیک کنید تا جزئیات را ببینید.
|
||||
</p>
|
||||
<Accordion
|
||||
type="single"
|
||||
collapsible
|
||||
className="mx-auto mt-10 w-full max-w-2xl rounded-2xl border border-border bg-background p-2 shadow-sm"
|
||||
>
|
||||
{advantages.map((item) => {
|
||||
const Icon = item.icon;
|
||||
return (
|
||||
<AccordionItem
|
||||
key={item.id}
|
||||
value={item.id}
|
||||
className="rounded-xl border-none px-3 data-[state=open]:bg-muted/50 data-[state=open]:rounded-xl transition-colors"
|
||||
>
|
||||
<AccordionTrigger className="py-4 hover:no-underline [&[data-state=open]>svg]:rotate-180">
|
||||
<span className="flex min-w-0 flex-1 items-center justify-center gap-2.5 sm:justify-start">
|
||||
<span className="flex size-6 shrink-0 items-center justify-center rounded-md bg-primary/10 text-primary">
|
||||
<Icon className="size-3.5" />
|
||||
</span>
|
||||
<span className="min-w-0 shrink text-heading-4 font-medium leading-[var(--line-height-heading)] text-foreground break-words">
|
||||
{item.title}
|
||||
</span>
|
||||
</span>
|
||||
</AccordionTrigger>
|
||||
<AccordionContent className="pb-4">
|
||||
<p className="text-body ps-8 leading-[var(--line-height-body)] text-muted-foreground text-start min-[480px]:ps-9">
|
||||
{item.description}
|
||||
</p>
|
||||
</AccordionContent>
|
||||
</AccordionItem>
|
||||
);
|
||||
})}
|
||||
</Accordion>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,218 @@
|
||||
'use client'
|
||||
|
||||
import React, { useMemo, useState } from 'react'
|
||||
import { useForm } from 'react-hook-form'
|
||||
import { z } from 'zod'
|
||||
import { zodResolver } from '@hookform/resolvers/zod'
|
||||
|
||||
import { Button } from '@/components/ui/button'
|
||||
import { Input } from '@/components/ui/input'
|
||||
import { Label } from '@/components/ui/label'
|
||||
import { Textarea } from '@/components/ui/textarea'
|
||||
import {
|
||||
Select,
|
||||
SelectContent,
|
||||
SelectItem,
|
||||
SelectTrigger,
|
||||
SelectValue,
|
||||
} from '@/components/ui/select'
|
||||
import { useContent } from '@/components/layout/content-provider'
|
||||
|
||||
import { submitConsultation } from '@/app/consultation/actions'
|
||||
import type { ConsultationFormData } from '@/app/consultation/actions'
|
||||
|
||||
export function ConsultationForm() {
|
||||
const content = useContent()
|
||||
const formContent = content.forms.consultation
|
||||
const schema = useMemo(
|
||||
() =>
|
||||
z.object({
|
||||
name: z.string().min(2, { message: formContent.validation.nameMin }),
|
||||
phone: z
|
||||
.string()
|
||||
.min(10, { message: formContent.validation.phoneValid })
|
||||
.regex(/^[\d\s۰-۹]+$/, { message: formContent.validation.phoneNumbers }),
|
||||
email: z.string().email({ message: formContent.validation.emailValid }).optional().or(z.literal('')),
|
||||
subject: z.string().optional(),
|
||||
message: z.string().max(1000).optional(),
|
||||
}),
|
||||
[formContent.validation]
|
||||
)
|
||||
type FormValues = z.infer<typeof schema>
|
||||
|
||||
const [status, setStatus] = useState<'idle' | 'loading' | 'success' | 'error'>('idle')
|
||||
const [errorMessage, setErrorMessage] = useState<string | null>(null)
|
||||
|
||||
const {
|
||||
register,
|
||||
handleSubmit,
|
||||
formState: { errors },
|
||||
setValue,
|
||||
watch,
|
||||
reset,
|
||||
} = useForm<FormValues>({
|
||||
resolver: zodResolver(schema),
|
||||
defaultValues: {
|
||||
name: '',
|
||||
phone: '',
|
||||
email: '',
|
||||
subject: '',
|
||||
message: '',
|
||||
},
|
||||
})
|
||||
|
||||
const subjectValue = watch('subject')
|
||||
|
||||
const onSubmit = async (data: FormValues) => {
|
||||
setStatus('loading')
|
||||
setErrorMessage(null)
|
||||
const subject = data.subject?.trim()
|
||||
const payload: ConsultationFormData = {
|
||||
name: data.name.trim(),
|
||||
phone: data.phone.replace(/\s/g, ''),
|
||||
email: data.email?.trim() || undefined,
|
||||
subject: subject && subject !== '__empty__' ? subject : undefined,
|
||||
message: data.message?.trim() || undefined,
|
||||
}
|
||||
const result = await submitConsultation(payload)
|
||||
if (result.success) {
|
||||
setStatus('success')
|
||||
reset()
|
||||
} else {
|
||||
setStatus('error')
|
||||
setErrorMessage(result.error ?? formContent.errorDefault)
|
||||
}
|
||||
}
|
||||
|
||||
if (status === 'success') {
|
||||
return (
|
||||
<div
|
||||
className="rounded-xl border border-primary/20 bg-primary/5 p-8 text-center"
|
||||
role="alert"
|
||||
>
|
||||
<h3 className="text-heading-3 font-semibold text-foreground">
|
||||
{formContent.success.title}
|
||||
</h3>
|
||||
<p className="mt-2 text-body text-muted-foreground">
|
||||
{formContent.success.description}
|
||||
</p>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
return (
|
||||
<form
|
||||
onSubmit={handleSubmit(onSubmit)}
|
||||
className="mx-auto max-w-xl space-y-6 rounded-xl border bg-card p-6 shadow-sm md:p-8"
|
||||
noValidate
|
||||
>
|
||||
<div className="grid gap-2 md:grid-cols-2">
|
||||
<div className="space-y-2">
|
||||
<Label htmlFor="consultation-name" className="text-body-sm font-medium">
|
||||
{formContent.labels.name} <span className="text-destructive">*</span>
|
||||
</Label>
|
||||
<Input
|
||||
id="consultation-name"
|
||||
type="text"
|
||||
placeholder={formContent.placeholders.name}
|
||||
className="w-full"
|
||||
autoComplete="name"
|
||||
aria-invalid={!!errors.name}
|
||||
{...register('name')}
|
||||
/>
|
||||
{errors.name && (
|
||||
<p className="text-caption text-destructive">{errors.name.message}</p>
|
||||
)}
|
||||
</div>
|
||||
<div className="space-y-2">
|
||||
<Label htmlFor="consultation-phone" className="text-body-sm font-medium">
|
||||
{formContent.labels.phone} <span className="text-destructive">*</span>
|
||||
</Label>
|
||||
<Input
|
||||
id="consultation-phone"
|
||||
type="tel"
|
||||
placeholder={formContent.placeholders.phone}
|
||||
className="w-full"
|
||||
autoComplete="tel"
|
||||
aria-invalid={!!errors.phone}
|
||||
{...register('phone')}
|
||||
/>
|
||||
{errors.phone && (
|
||||
<p className="text-caption text-destructive">{errors.phone.message}</p>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="space-y-2">
|
||||
<Label htmlFor="consultation-email" className="text-body-sm font-medium">
|
||||
{formContent.labels.email}
|
||||
</Label>
|
||||
<Input
|
||||
id="consultation-email"
|
||||
type="email"
|
||||
placeholder={formContent.placeholders.email}
|
||||
className="w-full"
|
||||
autoComplete="email"
|
||||
aria-invalid={!!errors.email}
|
||||
{...register('email')}
|
||||
/>
|
||||
{errors.email && (
|
||||
<p className="text-caption text-destructive">{errors.email.message}</p>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className="space-y-2">
|
||||
<Label className="text-body-sm font-medium">{formContent.labels.subject}</Label>
|
||||
<Select
|
||||
value={subjectValue || '__empty__'}
|
||||
onValueChange={(v) => setValue('subject', v === '__empty__' ? '' : v)}
|
||||
>
|
||||
<SelectTrigger className="w-full" dir="rtl">
|
||||
<SelectValue placeholder={formContent.placeholders.subject} />
|
||||
</SelectTrigger>
|
||||
<SelectContent>
|
||||
<SelectItem value="__empty__">{formContent.placeholders.subject}</SelectItem>
|
||||
{formContent.subjectOptions.map((opt) => (
|
||||
<SelectItem key={opt.value} value={opt.value}>
|
||||
{opt.label}
|
||||
</SelectItem>
|
||||
))}
|
||||
</SelectContent>
|
||||
</Select>
|
||||
</div>
|
||||
|
||||
<div className="space-y-2">
|
||||
<Label htmlFor="consultation-message" className="text-body-sm font-medium">
|
||||
{formContent.labels.message}
|
||||
</Label>
|
||||
<Textarea
|
||||
id="consultation-message"
|
||||
placeholder={formContent.placeholders.message}
|
||||
rows={4}
|
||||
className="resize-none"
|
||||
aria-invalid={!!errors.message}
|
||||
{...register('message')}
|
||||
/>
|
||||
{errors.message && (
|
||||
<p className="text-caption text-destructive">{errors.message.message}</p>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{status === 'error' && errorMessage && (
|
||||
<p className="rounded-md bg-destructive/10 p-3 text-body-sm text-destructive">
|
||||
{errorMessage}
|
||||
</p>
|
||||
)}
|
||||
|
||||
<Button
|
||||
type="submit"
|
||||
size="lg"
|
||||
variant="primary"
|
||||
className="w-full"
|
||||
disabled={status === 'loading'}
|
||||
>
|
||||
{status === 'loading' ? formContent.labels.submitting : formContent.labels.submit}
|
||||
</Button>
|
||||
</form>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,218 @@
|
||||
'use client'
|
||||
|
||||
import React, { useMemo, useState } from 'react'
|
||||
import { useForm } from 'react-hook-form'
|
||||
import { z } from 'zod'
|
||||
import { zodResolver } from '@hookform/resolvers/zod'
|
||||
|
||||
import { Button } from '@/components/ui/button'
|
||||
import { Input } from '@/components/ui/input'
|
||||
import { Label } from '@/components/ui/label'
|
||||
import {
|
||||
Select,
|
||||
SelectContent,
|
||||
SelectItem,
|
||||
SelectTrigger,
|
||||
SelectValue,
|
||||
} from '@/components/ui/select'
|
||||
import { Textarea } from '@/components/ui/textarea'
|
||||
import { useContent } from '@/components/layout/content-provider'
|
||||
|
||||
import { submitContact } from '@/app/contact/actions'
|
||||
import type { ContactFormData } from '@/app/contact/actions'
|
||||
|
||||
export function ContactForm() {
|
||||
const content = useContent()
|
||||
const formContent = content.forms.contact
|
||||
const schema = useMemo(
|
||||
() =>
|
||||
z.object({
|
||||
name: z.string().min(2, { message: formContent.validation.nameMin }),
|
||||
phone: z
|
||||
.string()
|
||||
.min(10, { message: formContent.validation.phoneValid })
|
||||
.regex(/^[\d\s۰-۹]+$/, { message: formContent.validation.phoneNumbers }),
|
||||
email: z.string().email({ message: formContent.validation.emailValid }).optional().or(z.literal('')),
|
||||
subject: z.string().optional(),
|
||||
message: z.string().max(1000).optional(),
|
||||
}),
|
||||
[formContent.validation]
|
||||
)
|
||||
type FormValues = z.infer<typeof schema>
|
||||
|
||||
const [status, setStatus] = useState<'idle' | 'loading' | 'success' | 'error'>('idle')
|
||||
const [errorMessage, setErrorMessage] = useState<string | null>(null)
|
||||
|
||||
const {
|
||||
register,
|
||||
handleSubmit,
|
||||
formState: { errors },
|
||||
setValue,
|
||||
watch,
|
||||
reset,
|
||||
} = useForm<FormValues>({
|
||||
resolver: zodResolver(schema),
|
||||
defaultValues: {
|
||||
name: '',
|
||||
phone: '',
|
||||
email: '',
|
||||
subject: '',
|
||||
message: '',
|
||||
},
|
||||
})
|
||||
|
||||
const subjectValue = watch('subject')
|
||||
|
||||
const onSubmit = async (data: FormValues) => {
|
||||
setStatus('loading')
|
||||
setErrorMessage(null)
|
||||
const subject = data.subject?.trim() && data.subject !== '__empty__' ? data.subject : undefined
|
||||
const payload: ContactFormData = {
|
||||
name: data.name.trim(),
|
||||
phone: data.phone.replace(/\s/g, ''),
|
||||
email: data.email?.trim() || undefined,
|
||||
subject,
|
||||
message: data.message?.trim() || undefined,
|
||||
}
|
||||
const result = await submitContact(payload)
|
||||
if (result.success) {
|
||||
setStatus('success')
|
||||
reset()
|
||||
} else {
|
||||
setStatus('error')
|
||||
setErrorMessage(result.error ?? formContent.errorDefault)
|
||||
}
|
||||
}
|
||||
|
||||
if (status === 'success') {
|
||||
return (
|
||||
<div
|
||||
className="rounded-xl border border-primary/20 bg-primary/5 p-8 text-center"
|
||||
role="alert"
|
||||
>
|
||||
<h3 className="text-heading-3 font-semibold text-foreground">
|
||||
{formContent.success.title}
|
||||
</h3>
|
||||
<p className="mt-2 text-body text-muted-foreground">
|
||||
{formContent.success.description}
|
||||
</p>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
return (
|
||||
<form
|
||||
onSubmit={handleSubmit(onSubmit)}
|
||||
className="mx-auto max-w-xl space-y-6 rounded-xl border bg-card p-6 shadow-sm md:p-8"
|
||||
noValidate
|
||||
>
|
||||
<div className="grid gap-2 md:grid-cols-2">
|
||||
<div className="space-y-2">
|
||||
<Label htmlFor="contact-name" className="text-body-sm font-medium">
|
||||
{formContent.labels.name} <span className="text-destructive">*</span>
|
||||
</Label>
|
||||
<Input
|
||||
id="contact-name"
|
||||
type="text"
|
||||
placeholder={formContent.placeholders.name}
|
||||
className="w-full"
|
||||
autoComplete="name"
|
||||
aria-invalid={!!errors.name}
|
||||
{...register('name')}
|
||||
/>
|
||||
{errors.name && (
|
||||
<p className="text-caption text-destructive">{errors.name.message}</p>
|
||||
)}
|
||||
</div>
|
||||
<div className="space-y-2">
|
||||
<Label htmlFor="contact-phone" className="text-body-sm font-medium">
|
||||
{formContent.labels.phone} <span className="text-destructive">*</span>
|
||||
</Label>
|
||||
<Input
|
||||
id="contact-phone"
|
||||
type="tel"
|
||||
placeholder={formContent.placeholders.phone}
|
||||
className="w-full"
|
||||
autoComplete="tel"
|
||||
aria-invalid={!!errors.phone}
|
||||
{...register('phone')}
|
||||
/>
|
||||
{errors.phone && (
|
||||
<p className="text-caption text-destructive">{errors.phone.message}</p>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="space-y-2">
|
||||
<Label htmlFor="contact-email" className="text-body-sm font-medium">
|
||||
{formContent.labels.email}
|
||||
</Label>
|
||||
<Input
|
||||
id="contact-email"
|
||||
type="email"
|
||||
placeholder={formContent.placeholders.email}
|
||||
className="w-full"
|
||||
autoComplete="email"
|
||||
aria-invalid={!!errors.email}
|
||||
{...register('email')}
|
||||
/>
|
||||
{errors.email && (
|
||||
<p className="text-caption text-destructive">{errors.email.message}</p>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className="space-y-2">
|
||||
<Label className="text-body-sm font-medium">{formContent.labels.subject}</Label>
|
||||
<Select
|
||||
value={subjectValue || '__empty__'}
|
||||
onValueChange={(v) => setValue('subject', v === '__empty__' ? '' : v)}
|
||||
>
|
||||
<SelectTrigger className="w-full">
|
||||
<SelectValue placeholder={formContent.placeholders.subject} />
|
||||
</SelectTrigger>
|
||||
<SelectContent>
|
||||
<SelectItem value="__empty__">{formContent.placeholders.subject}</SelectItem>
|
||||
{formContent.subjectOptions.map((opt) => (
|
||||
<SelectItem key={opt.value} value={opt.value}>
|
||||
{opt.label}
|
||||
</SelectItem>
|
||||
))}
|
||||
</SelectContent>
|
||||
</Select>
|
||||
</div>
|
||||
|
||||
<div className="space-y-2">
|
||||
<Label htmlFor="contact-message" className="text-body-sm font-medium">
|
||||
{formContent.labels.message}
|
||||
</Label>
|
||||
<Textarea
|
||||
id="contact-message"
|
||||
placeholder={formContent.placeholders.message}
|
||||
rows={4}
|
||||
className="resize-none"
|
||||
aria-invalid={!!errors.message}
|
||||
{...register('message')}
|
||||
/>
|
||||
{errors.message && (
|
||||
<p className="text-caption text-destructive">{errors.message.message}</p>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{status === 'error' && errorMessage && (
|
||||
<p className="rounded-md bg-destructive/10 p-3 text-body-sm text-destructive">
|
||||
{errorMessage}
|
||||
</p>
|
||||
)}
|
||||
|
||||
<Button
|
||||
type="submit"
|
||||
size="lg"
|
||||
variant="primary"
|
||||
className="w-full"
|
||||
disabled={status === 'loading'}
|
||||
>
|
||||
{status === 'loading' ? formContent.labels.submitting : formContent.labels.submit}
|
||||
</Button>
|
||||
</form>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
"use client";
|
||||
|
||||
import { Mail, MapPin, MessageCircle, Phone } from "lucide-react";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
interface ContactInfoItem {
|
||||
label: string;
|
||||
description: string;
|
||||
value: string;
|
||||
href: string;
|
||||
icon: "mail" | "map" | "phone" | "chat";
|
||||
}
|
||||
|
||||
interface ContactInfoGridProps {
|
||||
title: string;
|
||||
description: string;
|
||||
items: ContactInfoItem[];
|
||||
className?: string;
|
||||
}
|
||||
|
||||
function getIcon(icon: ContactInfoItem["icon"]) {
|
||||
switch (icon) {
|
||||
case "mail":
|
||||
return Mail;
|
||||
case "map":
|
||||
return MapPin;
|
||||
case "phone":
|
||||
return Phone;
|
||||
case "chat":
|
||||
return MessageCircle;
|
||||
default:
|
||||
return MessageCircle;
|
||||
}
|
||||
}
|
||||
|
||||
export function ContactInfoGrid({
|
||||
title,
|
||||
description,
|
||||
items,
|
||||
className,
|
||||
}: ContactInfoGridProps) {
|
||||
return (
|
||||
<section className={cn("py-16 md:py-24", className)} dir="rtl" aria-labelledby="contact-info-heading">
|
||||
<div className="mx-auto w-full max-w-7xl px-4 sm:px-6">
|
||||
<div className="mx-auto max-w-3xl text-center">
|
||||
<h1 id="contact-info-heading" className="text-heading-1 font-bold text-foreground">
|
||||
{title}
|
||||
</h1>
|
||||
<p className="mt-4 text-body text-muted-foreground">{description}</p>
|
||||
</div>
|
||||
|
||||
<div className="mt-10 grid gap-4 md:grid-cols-2 lg:gap-6">
|
||||
{items.map((item) => {
|
||||
const Icon = getIcon(item.icon);
|
||||
|
||||
return (
|
||||
<div key={item.label} className="rounded-2xl border border-border bg-muted/40 p-6 md:p-8">
|
||||
<Icon className="mb-4 size-5 text-muted-foreground" aria-hidden />
|
||||
<h2 className="text-heading-4 font-medium text-foreground">{item.label}</h2>
|
||||
<p className="mt-2 text-body-sm text-muted-foreground">{item.description}</p>
|
||||
<a
|
||||
href={item.href}
|
||||
target={item.icon === "map" ? "_blank" : undefined}
|
||||
rel={item.icon === "map" ? "noopener noreferrer" : undefined}
|
||||
className="mt-4 inline-block text-body font-medium text-primary hover:opacity-90"
|
||||
>
|
||||
{item.value}
|
||||
</a>
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
import Image from "next/image";
|
||||
|
||||
export default function ContentSection() {
|
||||
return (
|
||||
<section className="py-16 md:py-32">
|
||||
<div className="mx-auto max-w-5xl space-y-8 px-6 md:space-y-16">
|
||||
<h2 className="text-heading-2 relative z-10 max-w-xl font-semibold leading-relaxed tracking-normal text-foreground">
|
||||
راهکارهای یکپارچه برای کسبوکارهای هوشمند
|
||||
</h2>
|
||||
<div className="grid gap-6 sm:grid-cols-2 md:gap-12 lg:gap-24">
|
||||
<div className="relative mb-6 sm:mb-0">
|
||||
<div className="bg-linear-to-b aspect-76/59 relative rounded-2xl from-border to-transparent p-px dark:from-border">
|
||||
<Image
|
||||
src="/assets/Echosystem.png"
|
||||
className="rounded-[15px] object-cover dark:invert"
|
||||
alt="اکوسیستم یکپارچه"
|
||||
width={1207}
|
||||
height={929}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="relative space-y-4">
|
||||
<p className="text-body text-muted-foreground leading-relaxed tracking-normal">
|
||||
ما یک گروه متخصص هستیم که در حوزه اینتگریشن و روشهای نوین یکپارچهسازی فعالیت میکنیم.{" "}
|
||||
<span className="text-primary font-semibold">
|
||||
ما با استفاده از تکنولوژیهای پیشرفته و رویکردهای نوآورانه
|
||||
</span>{" "}
|
||||
به کسبوکارها کمک میکنیم تا سیستمهای خود را به شکلی کارآمد و قابلاعتماد بهم متصل کنند.
|
||||
</p>
|
||||
<p className="text-body text-muted-foreground leading-relaxed tracking-normal">
|
||||
ما در زمینه یکپارچهسازی سیستمها، اتوماسیون فرآیندها، ارتباطات چندکاناله و مدیریت دادهها تخصص داریم. با استفاده از روشهای نوین و ابزارهای پیشرفته، راهکارهای سفارشی برای هر کسبوکار طراحی و پیادهسازی میکنیم که به آنها امکان میدهد تا از قدرت اتوماسیون و ارتباطات هوشمند بهرهمند شوند.
|
||||
</p>
|
||||
|
||||
<div className="pt-6">
|
||||
<blockquote className="border-s-4 border-primary/30 ps-4">
|
||||
<p className="text-body leading-relaxed tracking-normal text-foreground">
|
||||
ماموریت ما این است که با استفاده از روشهای نوین اینتگریشن، به کسبوکارها کمک کنیم تا
|
||||
بدون پیچیدگیهای فنی، سیستمهای خود را بهم متصل کنند و به اهداف خود برسند.
|
||||
</p>
|
||||
|
||||
<div className="mt-6 space-y-3">
|
||||
<div className="block font-medium not-italic text-foreground">ماموریت ما</div>
|
||||
</div>
|
||||
</blockquote>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
"use client";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
import { CheckCircle2 } from "lucide-react";
|
||||
|
||||
interface CooperationProcessSectionProps {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export default function CooperationProcessSection({ className }: CooperationProcessSectionProps) {
|
||||
const steps = [
|
||||
"برگزاری جلسه معرفی و نیازسنجی",
|
||||
"نصب نسخه اختصاصی",
|
||||
"آموزش و راهاندازی",
|
||||
"۶ ماه پشتیبانی رایگان",
|
||||
"ادامه پشتیبانی و توسعه ماهانه"
|
||||
];
|
||||
|
||||
return (
|
||||
<section className={cn("py-16 md:py-24 lg:py-32 border-t border-border/50", className)}>
|
||||
<div className="container mx-auto max-w-4xl px-6">
|
||||
<div className="flex flex-col items-center space-y-8">
|
||||
<h2 className="text-heading-2 font-semibold text-center">
|
||||
فرآیند همکاری
|
||||
</h2>
|
||||
<div className="w-full space-y-4">
|
||||
{steps.map((step, index) => (
|
||||
<div key={index} className="flex items-start gap-4 p-6 rounded-lg bg-card border border-border shadow-sm">
|
||||
<div className="flex size-8 items-center justify-center rounded-full bg-primary text-primary-foreground font-semibold shrink-0">
|
||||
{index + 1}
|
||||
</div>
|
||||
<p className="text-base leading-relaxed text-foreground md:text-lg pt-1">
|
||||
{step}
|
||||
</p>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,227 @@
|
||||
'use client'
|
||||
|
||||
import React, { useState } from 'react'
|
||||
import { useForm } from 'react-hook-form'
|
||||
import { z } from 'zod'
|
||||
import { zodResolver } from '@hookform/resolvers/zod'
|
||||
|
||||
import { Button } from '@/components/ui/button'
|
||||
import { Input } from '@/components/ui/input'
|
||||
import { Label } from '@/components/ui/label'
|
||||
import {
|
||||
Select,
|
||||
SelectContent,
|
||||
SelectItem,
|
||||
SelectTrigger,
|
||||
SelectValue,
|
||||
} from '@/components/ui/select'
|
||||
import { Textarea } from '@/components/ui/textarea'
|
||||
|
||||
import { submitDemoRequest } from '@/app/demo/actions'
|
||||
import type { DemoRequestFormData } from '@/app/demo/actions'
|
||||
|
||||
const PRODUCT_OPTIONS = [
|
||||
{ value: 'آبشده همکار', label: 'آبشده همکار' },
|
||||
{ value: 'آبشده خانگی', label: 'آبشده خانگی' },
|
||||
{ value: 'فروشگاهساز طلا', label: 'فروشگاهساز طلا' },
|
||||
{ value: 'قیمتدهی طلا', label: 'قیمتدهی طلا' },
|
||||
{ value: 'سایر', label: 'سایر' },
|
||||
]
|
||||
|
||||
const schema = z.object({
|
||||
name: z.string().min(2, { message: 'نام و نام خانوادگی حداقل ۲ کاراکتر باشد.' }),
|
||||
phone: z
|
||||
.string()
|
||||
.min(10, { message: 'شماره تماس معتبر وارد کنید.' })
|
||||
.regex(/^[\d\s۰-۹]+$/, { message: 'فقط اعداد وارد کنید.' }),
|
||||
product: z
|
||||
.string()
|
||||
.refine((v) => v && v !== '__empty__', { message: 'نرمافزار مورد نظر را انتخاب کنید.' }),
|
||||
email: z.string().email({ message: 'ایمیل معتبر وارد کنید.' }).optional().or(z.literal('')),
|
||||
message: z.string().max(1000).optional(),
|
||||
})
|
||||
|
||||
type FormValues = z.infer<typeof schema>
|
||||
|
||||
export function DemoRequestForm() {
|
||||
const [status, setStatus] = useState<'idle' | 'loading' | 'success' | 'error'>('idle')
|
||||
const [errorMessage, setErrorMessage] = useState<string | null>(null)
|
||||
|
||||
const {
|
||||
register,
|
||||
handleSubmit,
|
||||
formState: { errors },
|
||||
setValue,
|
||||
watch,
|
||||
reset,
|
||||
} = useForm<FormValues>({
|
||||
resolver: zodResolver(schema),
|
||||
defaultValues: {
|
||||
name: '',
|
||||
phone: '',
|
||||
product: '',
|
||||
email: '',
|
||||
message: '',
|
||||
},
|
||||
})
|
||||
|
||||
const productValue = watch('product')
|
||||
|
||||
const onSubmit = async (data: FormValues) => {
|
||||
setStatus('loading')
|
||||
setErrorMessage(null)
|
||||
const product = data.product?.trim() && data.product !== '__empty__' ? data.product : ''
|
||||
const payload: DemoRequestFormData = {
|
||||
name: data.name.trim(),
|
||||
phone: data.phone.replace(/\s/g, ''),
|
||||
product,
|
||||
email: data.email?.trim() || undefined,
|
||||
message: data.message?.trim() || undefined,
|
||||
}
|
||||
const result = await submitDemoRequest(payload)
|
||||
if (result.success) {
|
||||
setStatus('success')
|
||||
reset()
|
||||
} else {
|
||||
setStatus('error')
|
||||
setErrorMessage(result.error ?? 'خطایی رخ داد.')
|
||||
}
|
||||
}
|
||||
|
||||
if (status === 'success') {
|
||||
return (
|
||||
<div
|
||||
className="rounded-xl border border-primary/20 bg-primary/5 p-8 text-center"
|
||||
role="alert"
|
||||
>
|
||||
<h3 className="text-heading-3 font-semibold text-foreground">
|
||||
درخواست دمو شما ثبت شد
|
||||
</h3>
|
||||
<p className="mt-2 text-body text-muted-foreground">
|
||||
کارشناسان مستر دکور در اسرع وقت با شما تماس میگیرند تا زمان جلسه دمو و نمایش امکانات سامانه را هماهنگ کنند.
|
||||
</p>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
return (
|
||||
<form
|
||||
onSubmit={handleSubmit(onSubmit)}
|
||||
className="mx-auto max-w-xl space-y-6 rounded-xl border bg-card p-6 shadow-sm md:p-8"
|
||||
noValidate
|
||||
>
|
||||
<div className="grid gap-2 md:grid-cols-2">
|
||||
<div className="space-y-2">
|
||||
<Label htmlFor="demo-name" className="text-body-sm font-medium">
|
||||
نام و نام خانوادگی <span className="text-destructive">*</span>
|
||||
</Label>
|
||||
<Input
|
||||
id="demo-name"
|
||||
type="text"
|
||||
placeholder="مثال: علی محمدی"
|
||||
className="w-full"
|
||||
autoComplete="name"
|
||||
aria-invalid={!!errors.name}
|
||||
{...register('name')}
|
||||
/>
|
||||
{errors.name && (
|
||||
<p className="text-caption text-destructive">{errors.name.message}</p>
|
||||
)}
|
||||
</div>
|
||||
<div className="space-y-2">
|
||||
<Label htmlFor="demo-phone" className="text-body-sm font-medium">
|
||||
شماره تماس <span className="text-destructive">*</span>
|
||||
</Label>
|
||||
<Input
|
||||
id="demo-phone"
|
||||
type="tel"
|
||||
placeholder="۰۹۱۲۳۴۵۶۷۸۹"
|
||||
className="w-full"
|
||||
autoComplete="tel"
|
||||
aria-invalid={!!errors.phone}
|
||||
{...register('phone')}
|
||||
/>
|
||||
{errors.phone && (
|
||||
<p className="text-caption text-destructive">{errors.phone.message}</p>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="space-y-2">
|
||||
<Label className="text-body-sm font-medium">
|
||||
نرمافزار مورد نظر <span className="text-destructive">*</span>
|
||||
</Label>
|
||||
<Select
|
||||
value={productValue || '__empty__'}
|
||||
onValueChange={(v) => setValue('product', v === '__empty__' ? '' : v)}
|
||||
>
|
||||
<SelectTrigger className="w-full">
|
||||
<SelectValue placeholder="انتخاب نرمافزار" />
|
||||
</SelectTrigger>
|
||||
<SelectContent>
|
||||
<SelectItem value="__empty__">انتخاب نرمافزار</SelectItem>
|
||||
{PRODUCT_OPTIONS.map((opt) => (
|
||||
<SelectItem key={opt.value} value={opt.value}>
|
||||
{opt.label}
|
||||
</SelectItem>
|
||||
))}
|
||||
</SelectContent>
|
||||
</Select>
|
||||
{errors.product && (
|
||||
<p className="text-caption text-destructive">{errors.product.message}</p>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className="space-y-2">
|
||||
<Label htmlFor="demo-email" className="text-body-sm font-medium">
|
||||
ایمیل (اختیاری)
|
||||
</Label>
|
||||
<Input
|
||||
id="demo-email"
|
||||
type="email"
|
||||
placeholder="نمونه@example.com"
|
||||
className="w-full"
|
||||
autoComplete="email"
|
||||
aria-invalid={!!errors.email}
|
||||
{...register('email')}
|
||||
/>
|
||||
{errors.email && (
|
||||
<p className="text-caption text-destructive">{errors.email.message}</p>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className="space-y-2">
|
||||
<Label htmlFor="demo-message" className="text-body-sm font-medium">
|
||||
توضیحات (اختیاری)
|
||||
</Label>
|
||||
<Textarea
|
||||
id="demo-message"
|
||||
placeholder="در صورت نیاز توضیح دهید؛ مثلاً تعداد شعبه، نوع استفاده یا سوال خاص."
|
||||
rows={4}
|
||||
className="resize-none"
|
||||
aria-invalid={!!errors.message}
|
||||
{...register('message')}
|
||||
/>
|
||||
{errors.message && (
|
||||
<p className="text-caption text-destructive">{errors.message.message}</p>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{status === 'error' && errorMessage && (
|
||||
<p className="rounded-md bg-destructive/10 p-3 text-body-sm text-destructive">
|
||||
{errorMessage}
|
||||
</p>
|
||||
)}
|
||||
|
||||
<Button
|
||||
type="submit"
|
||||
size="lg"
|
||||
variant="primary"
|
||||
className="w-full"
|
||||
disabled={status === 'loading'}
|
||||
>
|
||||
{status === 'loading' ? 'در حال ارسال...' : 'ثبت درخواست دمو'}
|
||||
</Button>
|
||||
</form>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,122 @@
|
||||
"use client";
|
||||
|
||||
import { CircleHelp } from "lucide-react";
|
||||
|
||||
import {
|
||||
Accordion,
|
||||
AccordionContent,
|
||||
AccordionItem,
|
||||
AccordionTrigger,
|
||||
} from "@/components/ui/accordion";
|
||||
import { MeteorTitleBackground } from "@/components/utilities/meteor-title-background";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
const FAQ_QUESTIONS = [
|
||||
{
|
||||
question: "زمان تحویل پروژه های دکور چقدر است؟",
|
||||
answer:
|
||||
"مدت زمان تحویل به ابعاد فروشگاه، تعداد استندها و سطح سفارشی سازی بستگی دارد؛ پس از نیازسنجی، برنامه زمانی شفاف به شما اعلام می شود.",
|
||||
},
|
||||
{
|
||||
question: "آیا امکان طراحی اختصاصی برای فروشگاه من وجود دارد؟",
|
||||
answer:
|
||||
"بله. همه محصولات می توانند متناسب با هویت برند، سبک چیدمان و فضای واقعی طلافروشی شما به صورت اختصاصی طراحی و تولید شوند.",
|
||||
},
|
||||
{
|
||||
question: "آیا برای انتخاب مدل مناسب مشاوره ارائه می دهید؟",
|
||||
answer:
|
||||
"بله. قبل از ثبت سفارش، تیم ما با بررسی بودجه، نوع محصولات و مدل فروش شما، مناسب ترین گزینه ها را پیشنهاد می دهد.",
|
||||
},
|
||||
{
|
||||
question: "امکان ثبت سفارش برای شهرهای دیگر هم وجود دارد؟",
|
||||
answer:
|
||||
"بله. خدمات طراحی و هماهنگی اجرای پروژه برای مشتریان خارج از تهران نیز ارائه می شود و شرایط ارسال یا اجرا به صورت شفاف اعلام خواهد شد.",
|
||||
},
|
||||
{
|
||||
question: "آیا بعد از اجرا پشتیبانی هم دارید؟",
|
||||
answer:
|
||||
"بله. پس از تحویل پروژه، پشتیبانی لازم برای رفع مسائل احتمالی و راهنمایی در نگهداری یا بهبود چیدمان ارائه می شود.",
|
||||
},
|
||||
{
|
||||
question: "چطور می توانم قیمت دقیق دریافت کنم؟",
|
||||
answer:
|
||||
"برای دریافت قیمت دقیق، کافی است ابعاد تقریبی، نوع استندهای موردنیاز و عکس فضای ویترین را ارسال کنید تا برآورد تخصصی ارائه شود.",
|
||||
},
|
||||
{
|
||||
question: "آیا امکان بازدید حضوری قبل از ثبت سفارش وجود دارد؟",
|
||||
answer:
|
||||
"بله. در صورت نیاز، امکان بازدید حضوری و بررسی دقیق فضا قبل از نهایی شدن سفارش فراهم است تا انتخاب ها با اطمینان بیشتری انجام شود.",
|
||||
},
|
||||
{
|
||||
question: "آیا طراحی بر اساس بودجه مشخص هم انجام می شود؟",
|
||||
answer:
|
||||
"بله. در فرآیند مشاوره، گزینه های متناسب با بودجه شما پیشنهاد می شود تا بهترین تعادل بین کیفیت، زیبایی و هزینه ایجاد شود.",
|
||||
},
|
||||
{
|
||||
question: "برای شروع همکاری چه اطلاعاتی باید ارسال کنم؟",
|
||||
answer:
|
||||
"ابعاد تقریبی فضا، نوع محصولات، سبک مدنظر و محدودیت های اجرایی مهم ترین اطلاعات اولیه هستند که به برآورد سریع تر و دقیق تر کمک می کنند.",
|
||||
},
|
||||
{
|
||||
question: "آیا امکان تغییرات بعد از تایید طرح وجود دارد؟",
|
||||
answer:
|
||||
"بله. تا قبل از ورود پروژه به مرحله اجرای نهایی، امکان اعمال اصلاحات وجود دارد و جزئیات آن بر اساس نوع تغییر با شما هماهنگ می شود.",
|
||||
},
|
||||
{
|
||||
question: "نحوه پشتیبانی بعد از تحویل پروژه چگونه است؟",
|
||||
answer:
|
||||
"پس از تحویل، تیم پشتیبانی مستر دکور برای پاسخگویی فنی، راهنمایی نگهداری و پیگیری کیفیت اجرا در دسترس شما خواهد بود.",
|
||||
},
|
||||
];
|
||||
|
||||
interface Faq16Props {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Faq16 = ({ className }: Faq16Props) => {
|
||||
return (
|
||||
<section className={cn("bg-background py-16 md:py-24 lg:py-28", className)} dir="rtl">
|
||||
<div className="mx-auto w-full max-w-7xl px-4 sm:px-6">
|
||||
<header className="mb-8 text-center md:mb-10">
|
||||
<div className="relative mx-auto max-w-4xl overflow-hidden rounded-2xl px-4 py-6 sm:px-8">
|
||||
<MeteorTitleBackground className="opacity-75" />
|
||||
<div className="relative z-10 space-y-2">
|
||||
<h1 className="flex flex-wrap items-center justify-center gap-2 text-heading-2 font-bold text-foreground sm:gap-3">
|
||||
<CircleHelp className="size-8 shrink-0 text-primary sm:size-9" aria-hidden />
|
||||
<span>سوالات متداول</span>
|
||||
</h1>
|
||||
<p className="mx-auto max-w-xl text-caption font-medium text-muted-foreground">
|
||||
پاسخ کوتاه به سوالات پرتکرار درباره انتخاب، سفارش، اجرا و پشتیبانی استندهای ویترین طلافروشی.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div className="mx-auto max-w-3xl rounded-2xl border border-border bg-card p-3 sm:p-4">
|
||||
<Accordion
|
||||
type="single"
|
||||
collapsible
|
||||
className="flex w-full flex-col items-center justify-center gap-3"
|
||||
>
|
||||
{FAQ_QUESTIONS.map((item, index) => (
|
||||
<AccordionItem
|
||||
value={index.toString()}
|
||||
key={index}
|
||||
className="m-0 w-full rounded-xl bg-muted px-4 py-2"
|
||||
>
|
||||
<AccordionTrigger className="flex flex-1 justify-between text-heading-5 font-medium text-foreground transition-all hover:no-underline">
|
||||
{item.question}
|
||||
</AccordionTrigger>
|
||||
<AccordionContent className="mt-2 text-body-sm text-muted-foreground">
|
||||
{item.answer}
|
||||
</AccordionContent>
|
||||
</AccordionItem>
|
||||
))}
|
||||
</Accordion>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Faq16 };
|
||||
@@ -0,0 +1,85 @@
|
||||
'use client'
|
||||
|
||||
import {
|
||||
Accordion,
|
||||
AccordionContent,
|
||||
AccordionItem,
|
||||
AccordionTrigger,
|
||||
} from '@/components/ui/accordion'
|
||||
import Link from 'next/link'
|
||||
|
||||
export interface FaqProductItem {
|
||||
id: string
|
||||
question: string
|
||||
answer: string
|
||||
}
|
||||
|
||||
interface FaqProductProps {
|
||||
title?: string
|
||||
description?: string
|
||||
items: FaqProductItem[]
|
||||
contactLink?: string
|
||||
contactLabel?: string
|
||||
}
|
||||
|
||||
export function FaqProduct({
|
||||
title = 'سوالات متداول',
|
||||
description = 'پاسخ سوالات رایج درباره این سامانه و امکانات آن را در اینجا بخوانید.',
|
||||
items,
|
||||
contactLink = '/contact',
|
||||
contactLabel = 'پشتیبانی',
|
||||
}: FaqProductProps) {
|
||||
return (
|
||||
<section className="py-16 md:py-24">
|
||||
<div className="mx-auto max-w-5xl px-4 md:px-6">
|
||||
<div className="mx-auto max-w-xl text-center">
|
||||
<h2 className="text-heading-2 font-semibold text-foreground text-balance">
|
||||
{title}
|
||||
</h2>
|
||||
<p className="text-body text-muted-foreground mt-4 text-balance">
|
||||
{description}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="mx-auto mt-12 max-w-xl">
|
||||
<Accordion
|
||||
type="single"
|
||||
collapsible
|
||||
className="w-full rounded-2xl bg-muted p-1 dark:bg-muted/50"
|
||||
>
|
||||
{items.map((item) => (
|
||||
<div className="group" key={item.id}>
|
||||
<AccordionItem
|
||||
value={item.id}
|
||||
className="peer rounded-xl border-none px-7 py-1 data-[state=open]:border-none data-[state=open]:bg-card data-[state=open]:shadow-sm dark:data-[state=open]:bg-muted"
|
||||
>
|
||||
<AccordionTrigger className="cursor-pointer text-base hover:no-underline text-foreground text-right">
|
||||
{item.question}
|
||||
</AccordionTrigger>
|
||||
<AccordionContent>
|
||||
<p className="text-body text-muted-foreground text-right">
|
||||
{item.answer}
|
||||
</p>
|
||||
</AccordionContent>
|
||||
</AccordionItem>
|
||||
<hr className="mx-7 border-dashed group-last:hidden peer-data-[state=open]:opacity-0" />
|
||||
</div>
|
||||
))}
|
||||
</Accordion>
|
||||
|
||||
<p className="text-body-sm text-muted-foreground mt-6 px-8 text-center">
|
||||
جواب سوال خود را نیافتید؟{' '}
|
||||
<Link
|
||||
href={contactLink}
|
||||
className="font-medium text-primary hover:underline"
|
||||
>
|
||||
{contactLabel}
|
||||
</Link>
|
||||
{' '}
|
||||
با ما در تماس باشید.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
"use client";
|
||||
|
||||
import Link from "next/link";
|
||||
|
||||
import {
|
||||
Accordion,
|
||||
AccordionContent,
|
||||
AccordionItem,
|
||||
AccordionTrigger,
|
||||
} from "@/components/ui/accordion";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
const faqItems = [
|
||||
{
|
||||
id: "item-1",
|
||||
question: "زمان تحویل استند یا ویترین سفارشی چقدر است؟",
|
||||
answer:
|
||||
"بسته به ابعاد، متریال و میزان سفارشیسازی متفاوت است؛ پس از نیازسنجی و تایید طرح، زمان دقیق اجرا و تحویل بهصورت شفاف اعلام میشود.",
|
||||
},
|
||||
{
|
||||
id: "item-2",
|
||||
question: "شرایط پرداخت و پیشپرداخت چگونه است؟",
|
||||
answer:
|
||||
"مراحل پرداخت با توجه به حجم سفارش و توافق قرارداد تعیین میشود؛ معمولاً پیشپرداخت برای شروع تولید و تسویه مرحلهای تا تحویل نهایی در نظر گرفته میشود.",
|
||||
},
|
||||
{
|
||||
id: "item-3",
|
||||
question: "آیا میتوانم بعد از تایید طرح تغییر بدهم؟",
|
||||
answer:
|
||||
"تا قبل از ورود به مرحلهٔ تولید نهایی، امکان اصلاح طرح وجود دارد؛ برای تغییرات پس از شروع ساخت، بسته به مرحلهٔ کار با شما هماهنگ میشود.",
|
||||
},
|
||||
{
|
||||
id: "item-4",
|
||||
question: "ارسال به شهرهای دیگر دارید؟",
|
||||
answer:
|
||||
"بله؛ بستهبندی حمل و نصب در مقصد با هماهنگی از قبل انجام میشود و هزینه و زمان ارسال قبل از عقد قرارداد شفاف است.",
|
||||
},
|
||||
{
|
||||
id: "item-5",
|
||||
question: "گارانتی و خدمات پس از فروش شامل چیست؟",
|
||||
answer:
|
||||
"تعهد روی کیفیت اجرای سازه و یراقآلات؛ پس از تحویل برای تعمیر، تعویض روکش و راهنمایی نگهداری طبق شرایط گارانتی و صفحهٔ خدمات پس از فروش در دسترس است.",
|
||||
},
|
||||
];
|
||||
|
||||
export default function FAQsFour({ className }: { className?: string }) {
|
||||
return (
|
||||
<section className={cn("py-16 md:py-24", className)} dir="rtl">
|
||||
<div className="mx-auto max-w-5xl px-4 md:px-6">
|
||||
<div className="mx-auto max-w-xl text-center">
|
||||
<h2 className="text-heading-2 text-balance font-semibold text-foreground">سوالات پرتکرار</h2>
|
||||
<p className="mt-4 text-balance text-body text-muted-foreground">
|
||||
پاسخ کوتاه به پرسشهای رایج دربارهٔ سفارش استند، ویترین و دکور طلافروشی با مستر دکور.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="mx-auto mt-12 max-w-xl">
|
||||
<Accordion type="single" collapsible className="w-full rounded-2xl bg-muted p-1">
|
||||
{faqItems.map((item) => (
|
||||
<div className="group" key={item.id}>
|
||||
<AccordionItem
|
||||
value={item.id}
|
||||
className="rounded-xl border-none px-7 py-1 data-[state=open]:border-none data-[state=open]:bg-card data-[state=open]:shadow-sm"
|
||||
>
|
||||
<AccordionTrigger className="cursor-pointer text-heading-5 font-medium text-foreground hover:no-underline">
|
||||
{item.question}
|
||||
</AccordionTrigger>
|
||||
<AccordionContent>
|
||||
<p className="text-body-sm text-muted-foreground">{item.answer}</p>
|
||||
</AccordionContent>
|
||||
</AccordionItem>
|
||||
<hr className="mx-7 border-dashed border-border group-last:hidden peer-data-[state=open]:opacity-0" />
|
||||
</div>
|
||||
))}
|
||||
</Accordion>
|
||||
|
||||
<p className="mt-6 px-8 text-body-sm text-muted-foreground">
|
||||
جواب سوالتان را پیدا نکردید؟ از صفحهٔ{" "}
|
||||
<Link href="/contact" className="font-medium text-primary hover:underline">
|
||||
تماس با ما
|
||||
</Link>{" "}
|
||||
یا{" "}
|
||||
<Link href="/faq" className="font-medium text-primary hover:underline">
|
||||
سوالات متداول
|
||||
</Link>{" "}
|
||||
اقدام کنید.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
'use client'
|
||||
|
||||
import { InfiniteSlider } from '@/components/motion-primitives/infinite-slider'
|
||||
import { ProgressiveBlur } from '@/components/motion-primitives/progressive-blur'
|
||||
import { useContent } from '@/components/layout/content-provider'
|
||||
|
||||
export default function LogoCloud() {
|
||||
const content = useContent()
|
||||
const { logoCloud } = content.pages.home
|
||||
const baseLogo = content.images.logo
|
||||
const logoItems = Array.from({ length: 18 }, (_, index) => ({
|
||||
src: baseLogo,
|
||||
alt: `مستر دکور ${index + 1}`,
|
||||
}))
|
||||
|
||||
return (
|
||||
<section className="relative overflow-hidden border-t border-b border-border/80 dark:border-primary/20 py-12 md:py-16">
|
||||
<div className="group relative m-auto max-w-7xl px-6">
|
||||
<div className="flex flex-col items-center justify-center text-center">
|
||||
<div className="mb-4">
|
||||
<p className="text-sm font-semibold text-foreground dark:text-foreground">{logoCloud.title}</p>
|
||||
</div>
|
||||
<div className="relative w-full max-w-6xl py-6" dir="ltr">
|
||||
<InfiniteSlider
|
||||
speedOnHover={20}
|
||||
speed={40}
|
||||
gap={101}
|
||||
direction="horizontal"
|
||||
reverse={false}>
|
||||
{logoItems.map((logo, index) => (
|
||||
<div
|
||||
key={`${logo.src}-${index}`}
|
||||
className="flex h-16 w-32 shrink-0 items-center justify-center px-2 md:h-20 md:w-40"
|
||||
>
|
||||
<img
|
||||
className="max-h-[64px] w-auto object-contain opacity-70 grayscale dark:invert dark:brightness-75 transition-all duration-300 hover:opacity-100 hover:grayscale-0 dark:hover:invert-0 dark:hover:brightness-100 md:max-h-[76px]"
|
||||
src={logo.src}
|
||||
alt={logo.alt}
|
||||
height={64}
|
||||
width="auto"
|
||||
/>
|
||||
</div>
|
||||
))}
|
||||
</InfiniteSlider>
|
||||
<ProgressiveBlur
|
||||
className="pointer-events-none absolute right-0 top-0 h-full w-20 dark:opacity-50"
|
||||
direction="right"
|
||||
blurIntensity={0.8}
|
||||
/>
|
||||
<ProgressiveBlur
|
||||
className="pointer-events-none absolute right-0 top-0 h-full w-20 dark:opacity-0"
|
||||
direction="left"
|
||||
blurIntensity={0.5}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -0,0 +1,123 @@
|
||||
"use client";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
type LogosSimpleStaticLogo = Logo & {
|
||||
href?: string;
|
||||
};
|
||||
interface Logo {
|
||||
src: string;
|
||||
alt: string;
|
||||
srcDark?: string;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
interface LogosSimpleStaticProps {
|
||||
heading: string;
|
||||
subtitle?: string;
|
||||
logos: LogosSimpleStaticLogo[];
|
||||
className?: string;
|
||||
}
|
||||
|
||||
type Props = Partial<LogosSimpleStaticProps>;
|
||||
|
||||
const defaultProps: LogosSimpleStaticProps = {
|
||||
heading: "همراهان ما در طلافروشی و جواهر",
|
||||
subtitle: "فروشگاهها و برندهایی که برای ویترین و دکور به مستر دکور اعتماد کردهاند",
|
||||
logos: [
|
||||
{
|
||||
src: "/assets/main-pic/logoHam/garoosyLogo.svg",
|
||||
alt: "لوگوی همکار ۱",
|
||||
className: "h-20 w-auto",
|
||||
},
|
||||
{
|
||||
src: "/assets/main-pic/logoHam/garoosyLogo.svg",
|
||||
alt: "لوگوی همکار ۲",
|
||||
className: "h-20 w-auto",
|
||||
},
|
||||
{
|
||||
src: "/assets/main-pic/logoHam/garoosyLogo.svg",
|
||||
alt: "لوگوی همکار ۳",
|
||||
className: "h-20 w-auto",
|
||||
},
|
||||
{
|
||||
src: "/assets/main-pic/logoHam/garoosyLogo.svg",
|
||||
alt: "لوگوی همکار ۴",
|
||||
className: "h-20 w-auto",
|
||||
},
|
||||
{
|
||||
src: "/assets/main-pic/logoHam/garoosyLogo.svg",
|
||||
alt: "لوگوی همکار ۵",
|
||||
className: "h-20 w-auto",
|
||||
},
|
||||
{
|
||||
src: "/assets/main-pic/logoHam/garoosyLogo.svg",
|
||||
alt: "لوگوی همکار ۶",
|
||||
className: "h-20 w-auto",
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
const Logos21 = (props: Props) => {
|
||||
const { heading, subtitle, logos, className } = {
|
||||
...defaultProps,
|
||||
...props,
|
||||
};
|
||||
|
||||
const MAX_LOGOS = 6;
|
||||
const DARK_LOGO_KEYWORDS = ["kalantari", "bakhtar"];
|
||||
const lightLogos = logos.filter(
|
||||
(logo) => !DARK_LOGO_KEYWORDS.some((keyword) => logo.src.toLowerCase().includes(keyword)),
|
||||
);
|
||||
const darkLogos = logos.filter((logo) =>
|
||||
DARK_LOGO_KEYWORDS.some((keyword) => logo.src.toLowerCase().includes(keyword)),
|
||||
);
|
||||
|
||||
const visibleLogos = [...lightLogos, ...darkLogos].slice(0, MAX_LOGOS);
|
||||
|
||||
return (
|
||||
<section className={cn("section-blur-separator py-20 md:py-24 lg:py-28", className)} dir="rtl">
|
||||
<div className="mx-auto w-full max-w-7xl px-4 sm:px-6">
|
||||
<div className="relative isolate">
|
||||
<div className="relative overflow-hidden rounded-3xl border border-primary/30 bg-overlay/25 px-5 py-8 shadow-2xl backdrop-blur-2xl backdrop-saturate-150 sm:px-8 sm:py-10">
|
||||
<div
|
||||
aria-hidden
|
||||
className="pointer-events-none absolute -right-24 -top-24 z-0 h-80 w-80 rounded-full bg-primary/8 blur-3xl sm:h-[24rem] sm:w-[24rem]"
|
||||
/>
|
||||
<div
|
||||
aria-hidden
|
||||
className="pointer-events-none absolute -bottom-24 -left-24 z-0 h-80 w-80 rounded-full bg-primary/8 blur-3xl sm:h-[24rem] sm:w-[24rem]"
|
||||
/>
|
||||
<div className="relative z-10 flex flex-col items-center text-center">
|
||||
<h2 className="text-heading-2 font-semibold text-foreground">
|
||||
{heading}
|
||||
</h2>
|
||||
{subtitle ? (
|
||||
<p className="mt-3 text-body text-muted-foreground">{subtitle}</p>
|
||||
) : null}
|
||||
<div className="mx-auto mt-8 grid w-full max-w-4xl grid-cols-2 gap-x-6 gap-y-6 sm:grid-cols-3 sm:gap-x-8 sm:gap-y-7 lg:gap-x-10 lg:gap-y-8">
|
||||
{visibleLogos.map((logo, index) => (
|
||||
<div
|
||||
key={`${logo.src}-${logo.alt}-${index}`}
|
||||
className="group flex min-h-40 items-center justify-center px-3 py-4"
|
||||
>
|
||||
<img
|
||||
src={logo.src}
|
||||
alt={logo.alt}
|
||||
className={cn(
|
||||
logo.className,
|
||||
"h-auto max-h-24 w-full object-contain object-center grayscale saturate-0 brightness-[2.1] contrast-75 opacity-95 transition duration-300 group-hover:brightness-100 group-hover:contrast-100 group-hover:opacity-100 group-hover:grayscale-0 group-hover:saturate-100 sm:max-h-28",
|
||||
)}
|
||||
/>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Logos21 };
|
||||
@@ -0,0 +1,237 @@
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { Cpu, Sparkles } from "lucide-react";
|
||||
import Link from "next/link";
|
||||
|
||||
const tableData = [
|
||||
{
|
||||
feature: "ویژگی ۱",
|
||||
free: true,
|
||||
pro: true,
|
||||
startup: true,
|
||||
},
|
||||
{
|
||||
feature: "ویژگی ۲",
|
||||
free: true,
|
||||
pro: true,
|
||||
startup: true,
|
||||
},
|
||||
{
|
||||
feature: "ویژگی ۳",
|
||||
free: false,
|
||||
pro: true,
|
||||
startup: true,
|
||||
},
|
||||
{
|
||||
feature: "توکنها",
|
||||
free: "",
|
||||
pro: "۲۰ کاربر",
|
||||
startup: "نامحدود",
|
||||
},
|
||||
{
|
||||
feature: "تماس ویدیویی",
|
||||
free: "",
|
||||
pro: "۱۲ هفته",
|
||||
startup: "۵۶",
|
||||
},
|
||||
{
|
||||
feature: "پشتیبانی",
|
||||
free: "",
|
||||
pro: "ثانیهها",
|
||||
startup: "نامحدود",
|
||||
},
|
||||
{
|
||||
feature: "امنیت",
|
||||
free: "",
|
||||
pro: "۲۰ کاربر",
|
||||
startup: "نامحدود",
|
||||
},
|
||||
];
|
||||
|
||||
export default function PricingComparator() {
|
||||
return (
|
||||
<section className="py-16 md:py-32">
|
||||
<div className="mx-auto max-w-5xl px-6">
|
||||
<div className="w-full overflow-auto lg:overflow-visible">
|
||||
<table className="w-[200vw] border-separate border-spacing-x-3 md:w-full">
|
||||
<thead className="bg-background sticky top-0 z-10">
|
||||
<tr className="*:py-4 *:text-start *:font-medium">
|
||||
<th className="lg:w-2/5"></th>
|
||||
<th className="space-y-3">
|
||||
<span className="block">رایگان</span>
|
||||
|
||||
<Button asChild variant="secondary" size="sm">
|
||||
<Link href="/contact?utm_source=pricing-free">شروع کنید</Link>
|
||||
</Button>
|
||||
</th>
|
||||
<th className="bg-muted rounded-t-xl space-y-3 px-4 border dark:border-transparent border-border">
|
||||
<span className="block">حرفهای</span>
|
||||
<Button asChild size="sm" variant="primary">
|
||||
<Link href="/contact?utm_source=pricing-professional">
|
||||
شروع کنید
|
||||
</Link>
|
||||
</Button>
|
||||
</th>
|
||||
<th className="space-y-3">
|
||||
<span className="block">استارتاپ</span>
|
||||
<Button asChild variant="secondary" size="sm">
|
||||
<Link href="/contact?utm_source=pricing-startup">
|
||||
شروع کنید
|
||||
</Link>
|
||||
</Button>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody className="text-caption text-sm">
|
||||
<tr className="*:py-3">
|
||||
<td className="flex items-center gap-2 font-medium">
|
||||
<Cpu className="size-4" />
|
||||
<span>ویژگیها</span>
|
||||
</td>
|
||||
<td></td>
|
||||
<td className="bg-muted border-x dark:border-x-transparent border-border px-4"></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
{tableData.slice(-4).map((row, index) => (
|
||||
<tr key={index} className="*:border-b *:dark:border-b-transparent *:border-border *:py-3">
|
||||
<td className="text-muted-foreground">{row.feature}</td>
|
||||
<td className="text-foreground">
|
||||
{row.free === true ? (
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 24 24"
|
||||
fill="currentColor"
|
||||
className="size-4 text-primary"
|
||||
>
|
||||
<path
|
||||
fillRule="evenodd"
|
||||
d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z"
|
||||
clipRule="evenodd"
|
||||
/>
|
||||
</svg>
|
||||
) : (
|
||||
row.free
|
||||
)}
|
||||
</td>
|
||||
<td className="bg-muted border-x border-border px-4">
|
||||
<div className="-mb-3 border-b dark:border-b-transparent border-border py-3">
|
||||
{row.pro === true ? (
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 24 24"
|
||||
fill="currentColor"
|
||||
className="size-4 text-primary"
|
||||
>
|
||||
<path
|
||||
fillRule="evenodd"
|
||||
d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z"
|
||||
clipRule="evenodd"
|
||||
/>
|
||||
</svg>
|
||||
) : (
|
||||
<span className="text-foreground">{row.pro}</span>
|
||||
)}
|
||||
</div>
|
||||
</td>
|
||||
<td className="text-foreground">
|
||||
{row.startup === true ? (
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 24 24"
|
||||
fill="currentColor"
|
||||
className="size-4 text-primary"
|
||||
>
|
||||
<path
|
||||
fillRule="evenodd"
|
||||
d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z"
|
||||
clipRule="evenodd"
|
||||
/>
|
||||
</svg>
|
||||
) : (
|
||||
row.startup
|
||||
)}
|
||||
</td>
|
||||
</tr>
|
||||
))}
|
||||
<tr className="*:pb-3 *:pt-8">
|
||||
<td className="flex items-center gap-2 font-medium">
|
||||
<Sparkles className="size-4" />
|
||||
<span>مدلهای هوش مصنوعی</span>
|
||||
</td>
|
||||
<td></td>
|
||||
<td className="bg-muted border-x dark:border-x-transparent border-border px-4"></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
{tableData.map((row, index) => (
|
||||
<tr key={index} className="*:border-b *:dark:border-b-transparent *:border-border *:py-3">
|
||||
<td className="text-muted-foreground">{row.feature}</td>
|
||||
<td className="text-foreground">
|
||||
{row.free === true ? (
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 24 24"
|
||||
fill="currentColor"
|
||||
className="size-4 text-primary"
|
||||
>
|
||||
<path
|
||||
fillRule="evenodd"
|
||||
d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z"
|
||||
clipRule="evenodd"
|
||||
/>
|
||||
</svg>
|
||||
) : (
|
||||
row.free
|
||||
)}
|
||||
</td>
|
||||
<td className="bg-muted border-x border-border px-4">
|
||||
<div className="-mb-3 border-b dark:border-b-transparent border-border py-3">
|
||||
{row.pro === true ? (
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 24 24"
|
||||
fill="currentColor"
|
||||
className="size-4 text-primary"
|
||||
>
|
||||
<path
|
||||
fillRule="evenodd"
|
||||
d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z"
|
||||
clipRule="evenodd"
|
||||
/>
|
||||
</svg>
|
||||
) : (
|
||||
<span className="text-foreground">{row.pro}</span>
|
||||
)}
|
||||
</div>
|
||||
</td>
|
||||
<td className="text-foreground">
|
||||
{row.startup === true ? (
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 24 24"
|
||||
fill="currentColor"
|
||||
className="size-4 text-primary"
|
||||
>
|
||||
<path
|
||||
fillRule="evenodd"
|
||||
d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z"
|
||||
clipRule="evenodd"
|
||||
/>
|
||||
</svg>
|
||||
) : (
|
||||
row.startup
|
||||
)}
|
||||
</td>
|
||||
</tr>
|
||||
))}
|
||||
<tr className="*:py-6">
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td className="bg-muted rounded-b-xl border-x border-b dark:border-x-transparent dark:border-b-transparent border-border px-4"></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,189 @@
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { Check, FileText, Code, Settings, Users, Clock } from "lucide-react";
|
||||
import Link from "next/link";
|
||||
|
||||
export default function Pricing() {
|
||||
return (
|
||||
<>
|
||||
{/* Hero Section */}
|
||||
<section className="pt-32 pb-20 md:pt-40 md:pb-28">
|
||||
<div className="mx-auto max-w-4xl px-6">
|
||||
<div className="text-center space-y-6">
|
||||
<h1 className="text-heading-1 font-bold leading-tight tracking-normal">
|
||||
قیمتگذاری
|
||||
</h1>
|
||||
<div className="text-body space-y-4 max-w-3xl mx-auto leading-relaxed">
|
||||
<p className="text-muted-foreground">
|
||||
هر راهحل با توجه به پیچیدگی، شرایط اجرا و نیازمندیهای خاص شما طراحی میشود. به همین دلیل، قیمتگذاری ما کاملاً سفارشی و متناسب با شرایط واقعی کسبوکار شماست.
|
||||
</p>
|
||||
<p className="text-body leading-relaxed text-foreground font-medium">
|
||||
راهحلهای ما از <span className="text-primary font-bold">۲ میلیون تومان</span> شروع میشوند و بر اساس نیازهای دقیق شما محاسبه میگردند.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{/* Pricing Factors - بخش اصلی توضیحات */}
|
||||
<section className="py-20 md:py-28 border-t border-border/50">
|
||||
<div className="mx-auto max-w-6xl px-6">
|
||||
<div className="space-y-12">
|
||||
<div className="text-center space-y-4 max-w-3xl mx-auto">
|
||||
<h2 className="text-heading-2 font-semibold leading-tight tracking-normal">
|
||||
راهحلها بر اساس چه عواملی قیمتگذاری میشوند؟
|
||||
</h2>
|
||||
<p className="text-body leading-relaxed text-muted-foreground">
|
||||
ما متعهد هستیم که راهحلهای شما را در <strong className="text-foreground">کمترین زمان ممکن</strong> و با <strong className="text-foreground">بهترین قیمت</strong> ارائه دهیم.
|
||||
قیمتگذاری ما بر اساس نیازهای خاص شما انجام میشود و عوامل مختلفی در تعیین قیمت نهایی نقش دارند.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="grid gap-8 md:grid-cols-2 lg:grid-cols-3">
|
||||
<div className="space-y-4 p-8 rounded-2xl border dark:border-transparent bg-card transition-all duration-300 hover:shadow-lg hover:-translate-y-1">
|
||||
<div className="flex items-center gap-4">
|
||||
<div className="flex size-14 items-center justify-center rounded-xl bg-primary/10 text-primary shrink-0 transition-transform duration-300 group-hover:scale-110">
|
||||
<FileText className="size-7" />
|
||||
</div>
|
||||
<h3 className="text-heading-4 font-semibold leading-tight">نوع سرویس</h3>
|
||||
</div>
|
||||
<p className="leading-relaxed tracking-normal text-muted-foreground">
|
||||
نوع سرویس شما یکی از مهمترین عوامل در تعیین قیمت است. سرویسهای یکپارچهسازی،
|
||||
اتوماسیون، ارتباطات چندکاناله و مدیریت دادهها هر کدام نیازمندیها و پیچیدگیهای خاص خود را دارند.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="space-y-4 p-8 rounded-2xl border dark:border-transparent bg-card transition-all duration-300 hover:shadow-lg hover:-translate-y-1">
|
||||
<div className="flex items-center gap-4">
|
||||
<div className="flex size-14 items-center justify-center rounded-xl bg-primary/10 text-primary shrink-0 transition-transform duration-300 group-hover:scale-110">
|
||||
<Code className="size-7" />
|
||||
</div>
|
||||
<h3 className="text-heading-4 font-semibold leading-tight">پیچیدگی راهحل</h3>
|
||||
</div>
|
||||
<p className="leading-relaxed tracking-normal text-muted-foreground">
|
||||
میزان پیچیدگی فنی راهحل، تعداد سیستمهای متصل، حجم دادهها و نیاز به سفارشیسازی
|
||||
از عوامل مهم در تعیین قیمت هستند. راهحلهای پیچیدهتر نیاز به زمان و تخصص بیشتری دارند.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="space-y-4 p-8 rounded-2xl border dark:border-transparent bg-card transition-all duration-300 hover:shadow-lg hover:-translate-y-1">
|
||||
<div className="flex items-center gap-4">
|
||||
<div className="flex size-14 items-center justify-center rounded-xl bg-primary/10 text-primary shrink-0 transition-transform duration-300 group-hover:scale-110">
|
||||
<Settings className="size-7" />
|
||||
</div>
|
||||
<h3 className="text-heading-4 font-semibold leading-tight">اجرا و پیادهسازی</h3>
|
||||
</div>
|
||||
<p className="leading-relaxed tracking-normal text-muted-foreground">
|
||||
مراحل اجرا و پیادهسازی شامل طراحی، توسعه، تست و استقرار میشود.
|
||||
میزان زمان و منابع مورد نیاز برای هر مرحله در قیمت نهایی تاثیر دارد.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="space-y-4 p-8 rounded-2xl border dark:border-transparent bg-card transition-all duration-300 hover:shadow-lg hover:-translate-y-1">
|
||||
<div className="flex items-center gap-4">
|
||||
<div className="flex size-14 items-center justify-center rounded-xl bg-primary/10 text-primary shrink-0 transition-transform duration-300 group-hover:scale-110">
|
||||
<Users className="size-7" />
|
||||
</div>
|
||||
<h3 className="text-heading-4 font-semibold leading-tight">تعداد کاربران</h3>
|
||||
</div>
|
||||
<p className="leading-relaxed tracking-normal text-muted-foreground">
|
||||
تعداد کاربرانی که از سیستم استفاده میکنند و حجم ترافیک مورد انتظار
|
||||
در تعیین قیمت موثر است. سیستمهای با کاربران بیشتر نیاز به زیرساخت قویتری دارند.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="space-y-4 p-8 rounded-2xl border dark:border-transparent bg-card transition-all duration-300 hover:shadow-lg hover:-translate-y-1">
|
||||
<div className="flex items-center gap-4">
|
||||
<div className="flex size-14 items-center justify-center rounded-xl bg-primary/10 text-primary shrink-0 transition-transform duration-300 group-hover:scale-110">
|
||||
<Clock className="size-7" />
|
||||
</div>
|
||||
<h3 className="text-heading-4 font-semibold leading-tight">بازه زمانی</h3>
|
||||
</div>
|
||||
<p className="leading-relaxed tracking-normal text-muted-foreground">
|
||||
بازه زمانی استفاده از سرویس (ماهانه، سالانه) و مدت زمان مورد نیاز برای پیادهسازی راهحل
|
||||
در قیمتگذاری تاثیر دارد. قراردادهای بلندمدت معمولاً شامل تخفیفهای ویژه میشوند.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="space-y-4 p-8 rounded-2xl border dark:border-transparent bg-card transition-all duration-300 hover:shadow-lg hover:-translate-y-1">
|
||||
<div className="flex items-center gap-4">
|
||||
<div className="flex size-14 items-center justify-center rounded-xl bg-primary/10 text-primary shrink-0 transition-transform duration-300 group-hover:scale-110">
|
||||
<Settings className="size-7" />
|
||||
</div>
|
||||
<h3 className="text-heading-4 font-semibold leading-tight">پشتیبانی و نگهداری</h3>
|
||||
</div>
|
||||
<p className="leading-relaxed tracking-normal text-muted-foreground">
|
||||
نیاز به پشتیبانی فنی، بهروزرسانیها، نگهداری و مستندات کامل
|
||||
از عوامل مهم در تعیین قیمت هستند. پشتیبانی ۲۴/۷ و نگهداری مستمر نیاز به منابع بیشتری دارد.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{/* Package Details */}
|
||||
<section className="py-20 md:py-28 border-t border-border/50">
|
||||
<div className="mx-auto max-w-6xl px-6">
|
||||
<div className="bg-card relative rounded-3xl border border-border shadow-lg">
|
||||
<div className="grid items-center gap-12 p-12 md:grid-cols-2">
|
||||
<div className="pb-12 text-center md:pb-0 md:pe-12">
|
||||
<h3 className="text-heading-3 font-semibold leading-tight tracking-normal mb-4">راهحل سازمانی</h3>
|
||||
<p className="text-body leading-relaxed text-muted-foreground mb-8">
|
||||
برای شرکت شما با هر اندازهای
|
||||
</p>
|
||||
|
||||
<p className="text-muted-foreground leading-relaxed tracking-normal mb-8">
|
||||
ما راهکارهای سفارشی برای کسبوکارهای مختلف ارائه میدهیم.
|
||||
تیم ما آماده است تا بر اساس نیازهای خاص شما، بهترین راهحل را طراحی کند.
|
||||
</p>
|
||||
</div>
|
||||
<div className="relative">
|
||||
<h4 className="text-heading-4 font-semibold mb-6 leading-tight">ویژگیهای راهحل سازمانی</h4>
|
||||
<ul role="list" className="space-y-4">
|
||||
{[
|
||||
"تجمیع پایگاه داده و یکپارچهسازی",
|
||||
"احراز هویت و مدیریت هویت پیشرفته",
|
||||
"داشبورد تحلیل و گزارشگیری",
|
||||
"ارتباطات چندکاناله (تلگرام، واتساپ و ...)",
|
||||
"اتوماسیون فرآیندها و workflow",
|
||||
"پشتیبانی ۲۴/۷ و مستندات کامل",
|
||||
"ذخیرهسازی نامحدود",
|
||||
"API و Webhooks نامحدود"
|
||||
].map((item, index) => (
|
||||
<li key={index} className="flex items-center gap-3 leading-relaxed tracking-normal">
|
||||
<Check className="size-5 text-primary shrink-0" />
|
||||
<span className="text-base">{item}</span>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{/* CTA Section - اطلاع از قیمت */}
|
||||
<section className="py-20 md:py-28 border-t border-border/50">
|
||||
<div className="mx-auto max-w-4xl px-6">
|
||||
<div className="text-center space-y-8 p-12 rounded-2xl border border-border bg-card shadow-sm">
|
||||
<h2 className="text-heading-2 font-semibold leading-tight tracking-normal">
|
||||
برای اطلاع از قیمت با ما تماس بگیرید
|
||||
</h2>
|
||||
<p className="text-body text-muted-foreground max-w-2xl mx-auto leading-relaxed">
|
||||
برای دریافت قیمت دقیق و مشاوره رایگان، با تیم ما در تماس باشید.
|
||||
ما آمادهایم تا بر اساس نیازهای شما بهترین پیشنهاد را ارائه دهیم.
|
||||
</p>
|
||||
<div className="flex flex-col sm:flex-row gap-4 justify-center">
|
||||
<Button asChild size="lg" variant="primary">
|
||||
<Link href="/contact">شروع گفتگو با تیم</Link>
|
||||
</Button>
|
||||
<Button asChild size="lg" variant="secondary">
|
||||
<Link href="/about">درباره ما</Link>
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
interface ProblemSectionProps {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export default function ProblemSection({ className }: ProblemSectionProps) {
|
||||
return (
|
||||
<section className={cn("py-16 md:py-24 lg:py-32", className)}>
|
||||
<div className="container mx-auto max-w-4xl px-6">
|
||||
<div className="flex flex-col items-center text-center space-y-6">
|
||||
<h2 className="text-heading-2 font-semibold">
|
||||
روش سنتی، سرعت بازار امروز را ندارد
|
||||
</h2>
|
||||
<div className="text-body space-y-4 leading-relaxed text-muted-foreground">
|
||||
<p>
|
||||
در معاملات آبشده، تماسهای مکرر برای دریافت قیمت، هماهنگی خرید و فروش و ارسال مانده حساب به مشتریان، زمانبر و پرریسک است.
|
||||
</p>
|
||||
<p>
|
||||
ثبت دستی یا پراکنده اطلاعات، احتمال اختلاف حساب و سوءتفاهم را افزایش میدهد.
|
||||
</p>
|
||||
<p className="font-medium text-foreground">
|
||||
بازاری که بر سرعت و دقت استوار است، نیاز به زیرساخت دقیق دارد.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
import { cn } from "@/lib/utils";
|
||||
import { Shield, Lock, FileText, Server } from "lucide-react";
|
||||
|
||||
interface SecuritySectionProps {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export default function SecuritySection({ className }: SecuritySectionProps) {
|
||||
const features = [
|
||||
{
|
||||
icon: Shield,
|
||||
title: "دسترسی تفکیکشده کاربران",
|
||||
description: "کنترل دسترسی دقیق برای هر کاربر"
|
||||
},
|
||||
{
|
||||
icon: FileText,
|
||||
title: "ثبت کامل سوابق",
|
||||
description: "ذخیرهسازی و نگهداری تمامی معاملات"
|
||||
},
|
||||
{
|
||||
icon: Lock,
|
||||
title: "امکان مدیریت اعتبار مشتریان",
|
||||
description: "کنترل و مدیریت اعتبارات به صورت دقیق"
|
||||
},
|
||||
{
|
||||
icon: Server,
|
||||
title: "زیرساخت پایدار و قابل توسعه",
|
||||
description: "سیستم پایدار و مقیاسپذیر برای رشد کسبوکار"
|
||||
}
|
||||
];
|
||||
|
||||
return (
|
||||
<section className={cn("py-16 md:py-24 lg:py-32", className)}>
|
||||
<div className="container mx-auto max-w-6xl px-6">
|
||||
<div className="flex flex-col items-center space-y-12">
|
||||
<h2 className="text-heading-2 font-semibold leading-[var(--line-height-heading)] text-center text-foreground">
|
||||
اطلاعات مالی، نیازمند زیرساخت امن
|
||||
</h2>
|
||||
<div className="grid gap-6 md:grid-cols-2 lg:grid-cols-4">
|
||||
{features.map((feature, index) => {
|
||||
const Icon = feature.icon;
|
||||
return (
|
||||
<div key={index} className="flex flex-col items-center space-y-4 rounded-lg border border-border bg-card p-6 text-center shadow-sm">
|
||||
<div className="flex size-12 items-center justify-center rounded-full bg-primary/10">
|
||||
<Icon className="size-6 text-primary" />
|
||||
</div>
|
||||
<h3 className="text-heading-4 font-semibold leading-[var(--line-height-heading)] text-foreground">{feature.title}</h3>
|
||||
<p className="text-body-sm leading-[var(--line-height-body)] text-muted-foreground">
|
||||
{feature.description}
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,178 @@
|
||||
'use client'
|
||||
|
||||
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from '@/components/ui/card'
|
||||
import { Button } from '@/components/ui/button'
|
||||
import { Check } from 'lucide-react'
|
||||
import Image from 'next/image'
|
||||
import Link from 'next/link'
|
||||
import { cn } from '@/lib/utils'
|
||||
|
||||
interface Solution {
|
||||
id: number
|
||||
title: string
|
||||
description: string
|
||||
features: string[]
|
||||
suitableFor?: string
|
||||
buttonText: string
|
||||
buttonLink: string
|
||||
image: string
|
||||
emoji: string
|
||||
}
|
||||
|
||||
const solutions: Solution[] = [
|
||||
{
|
||||
id: 1,
|
||||
emoji: '1️⃣',
|
||||
title: 'سامانه معاملات آبشده همکاران',
|
||||
description: 'پلتفرم حرفهای ثبت و مدیریت معاملات آبشده برای فعالان عمده بازار.',
|
||||
features: [
|
||||
'نمایش قیمت لحظهای',
|
||||
'ثبت سفارش سریع',
|
||||
'مدیریت اعتبار مشتریان',
|
||||
'کنترل وضعیت بازار',
|
||||
'گزارشگیری دقیق معاملات'
|
||||
],
|
||||
suitableFor: 'بنکداران و مجموعههای دارای حجم بالای معامله',
|
||||
buttonText: 'مشاهده محصول',
|
||||
buttonLink: '/product/abeshde-hamkar',
|
||||
image: '/assets/apps-pic/app1.jpg'
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
emoji: '2️⃣',
|
||||
title: 'سامانه خرید آبشده خانگی',
|
||||
description: 'راهکار اختصاصی برای طلافروشان جهت خرید خرد آبشده از مشتریان با محاسبه دقیق و لحظهای.',
|
||||
features: [
|
||||
'محاسبه خودکار بر اساس قیمت لحظهای',
|
||||
'ثبت اطلاعات مشتری',
|
||||
'گزارشگیری و مدیریت سوابق',
|
||||
'کاهش خطای محاسباتی'
|
||||
],
|
||||
buttonText: 'مشاهده محصول',
|
||||
buttonLink: '/product/abeshde-khaneghi',
|
||||
image: '/assets/apps-pic/app2.jpg'
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
emoji: '3️⃣',
|
||||
title: 'فروشگاهساز تخصصی طلا',
|
||||
description: 'راهاندازی فروشگاه آنلاین طلا با طراحی مدرن و سازگار با رفتار کاربران شبکههای اجتماعی.',
|
||||
features: [
|
||||
'طراحی کاربرپسند',
|
||||
'مدیریت محصولات و موجودی',
|
||||
'اتصال به سامانه قیمت لحظهای',
|
||||
'سازگار با موبایل'
|
||||
],
|
||||
buttonText: 'مشاهده محصول',
|
||||
buttonLink: '/product/forushgah-saz-tala',
|
||||
image: '/assets/apps-pic/app3.jpg'
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
emoji: '4️⃣',
|
||||
title: 'سامانه قیمتدهی آنلاین طلا و نقره',
|
||||
description: 'ارائه قیمت لحظهای طلا و نقره از طریق وبسایت، اپلیکیشن، ویجت یا API.',
|
||||
features: [
|
||||
'بروزرسانی لحظهای',
|
||||
'امکان استفاده در سایتها و پنلها',
|
||||
'نمایش حرفهای و قابل سفارشیسازی'
|
||||
],
|
||||
buttonText: 'مشاهده محصول',
|
||||
buttonLink: '/product/gheymat-dehi-tala',
|
||||
image: '/assets/apps-pic/app1.jpg'
|
||||
}
|
||||
]
|
||||
|
||||
export default function SolutionsShowcase() {
|
||||
return (
|
||||
<section className="relative py-16 md:py-24 lg:py-32">
|
||||
<div className="mx-auto max-w-7xl px-6">
|
||||
{/* Header */}
|
||||
<div className="mx-auto max-w-2xl text-center mb-12 md:mb-16">
|
||||
<h2 className="text-heading-2 font-semibold leading-tight mb-4 text-foreground">
|
||||
راهکارهای ما
|
||||
</h2>
|
||||
<p className="text-body leading-relaxed text-muted-foreground">
|
||||
سامانههای تخصصی برای معاملات آبشده، مدیریت فروشگاههای طلا و قیمتدهی آنلاین
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{/* Solutions Grid */}
|
||||
<div className="grid gap-6 md:grid-cols-2 lg:gap-8">
|
||||
{solutions.map((solution, index) => (
|
||||
<Card
|
||||
key={solution.id}
|
||||
className={cn(
|
||||
"group relative overflow-hidden transition-all duration-300 hover:shadow-lg hover:border-primary/20",
|
||||
"flex flex-col"
|
||||
)}
|
||||
>
|
||||
{/* Image Section */}
|
||||
<div className="relative h-64 w-full overflow-hidden bg-muted">
|
||||
<Image
|
||||
src={solution.image}
|
||||
alt={solution.title}
|
||||
fill
|
||||
className="object-contain transition-transform duration-500 group-hover:scale-105"
|
||||
sizes="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"
|
||||
/>
|
||||
<div className="absolute inset-0 bg-gradient-to-t from-background/80 via-background/40 to-transparent" />
|
||||
|
||||
{/* Emoji Badge */}
|
||||
<div className="absolute top-4 right-4">
|
||||
<div className="flex h-10 w-10 items-center justify-center rounded-full bg-background/90 backdrop-blur-sm text-xl shadow-sm">
|
||||
{solution.emoji}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Content */}
|
||||
<CardHeader className="flex-1">
|
||||
<CardTitle className="text-heading-3 mb-2 font-semibold text-foreground">
|
||||
{solution.title}
|
||||
</CardTitle>
|
||||
<CardDescription className="text-body leading-relaxed text-muted-foreground">
|
||||
{solution.description}
|
||||
</CardDescription>
|
||||
</CardHeader>
|
||||
|
||||
<CardContent className="flex-1 space-y-4">
|
||||
{/* Features List */}
|
||||
<div className="space-y-2">
|
||||
<h4 className="text-heading-5 font-semibold text-foreground mb-3">ویژگیها:</h4>
|
||||
<ul className="space-y-2">
|
||||
{solution.features.map((feature, idx) => (
|
||||
<li key={idx} className="flex items-start gap-2 text-body-sm text-muted-foreground">
|
||||
<Check className="size-4 text-primary mt-0.5 shrink-0" />
|
||||
<span>{feature}</span>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
{/* Suitable For */}
|
||||
{solution.suitableFor && (
|
||||
<div className="pt-2 border-t">
|
||||
<p className="text-body-sm">
|
||||
<span className="font-semibold text-foreground">مناسب برای:</span>{' '}
|
||||
<span className="text-muted-foreground">{solution.suitableFor}</span>
|
||||
</p>
|
||||
</div>
|
||||
)}
|
||||
</CardContent>
|
||||
|
||||
<CardFooter>
|
||||
<Button asChild className="w-full" variant="primary">
|
||||
<Link href={solution.buttonLink}>
|
||||
{solution.buttonText}
|
||||
</Link>
|
||||
</Button>
|
||||
</CardFooter>
|
||||
</Card>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -0,0 +1,173 @@
|
||||
"use client";
|
||||
|
||||
import { motion } from "framer-motion";
|
||||
import { Check, ChevronLeft, ChevronRight, Circle } from "lucide-react";
|
||||
import React, { useState } from "react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
|
||||
interface TimelineSectionProps {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
interface StepProps {
|
||||
title: string;
|
||||
imageSrc: string;
|
||||
description: string;
|
||||
}
|
||||
|
||||
const steps: StepProps[] = [
|
||||
{
|
||||
title: "Introduction",
|
||||
imageSrc: "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/placeholder-1.svg",
|
||||
description:
|
||||
"Welcome to our step-by-step guide. This introduction will help you get started with the process and understand what to expect.",
|
||||
},
|
||||
{
|
||||
title: "Personal Information",
|
||||
imageSrc: "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/placeholder-2.svg",
|
||||
description:
|
||||
"In this section, we'll collect some basic information about you to personalize your experience and provide better recommendations.",
|
||||
},
|
||||
{
|
||||
title: "Address Details",
|
||||
imageSrc: "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/placeholder-3.svg",
|
||||
description:
|
||||
"Please provide your address details so we can deliver your products to the right location and calculate shipping costs.",
|
||||
},
|
||||
{
|
||||
title: "Review & Submit",
|
||||
imageSrc: "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/placeholder-4.svg",
|
||||
description:
|
||||
"Take a moment to review all the information you've provided before finalizing your submission. You can go back to any step.",
|
||||
},
|
||||
];
|
||||
|
||||
const ProcessBar: React.FC<{
|
||||
currentStep: number;
|
||||
steps: StepProps[];
|
||||
}> = ({ currentStep, steps }) => (
|
||||
<div className="relative w-full scale-75">
|
||||
<div className="flex items-center justify-between">
|
||||
{steps.map((step, index) => (
|
||||
<React.Fragment key={step.title}>
|
||||
<div className="flex flex-col items-center">
|
||||
<motion.div
|
||||
className={cn(
|
||||
"z-10 flex h-8 w-8 items-center justify-center rounded-full",
|
||||
index <= currentStep
|
||||
? "bg-primary text-primary-foreground"
|
||||
: "bg-muted text-muted-foreground"
|
||||
)}
|
||||
animate={{ scale: 1.02 }}
|
||||
>
|
||||
{index < currentStep ? (
|
||||
<Check size={17} />
|
||||
) : (
|
||||
<Circle size={17} className="text-current" />
|
||||
)}
|
||||
</motion.div>
|
||||
</div>
|
||||
{index < steps.length - 1 && (
|
||||
<div className="relative grow">
|
||||
<div className="absolute -top-1 h-1.5 w-full bg-muted" />
|
||||
<motion.div
|
||||
className="absolute -top-1 h-1.5 w-full bg-primary"
|
||||
initial={{ width: "0%" }}
|
||||
animate={{
|
||||
width: index < currentStep ? "100%" : "0%",
|
||||
}}
|
||||
transition={{ duration: 0.5, ease: "easeInOut" }}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
</React.Fragment>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
const StepperContent: React.FC<{ step: StepProps }> = ({ step }) => {
|
||||
return (
|
||||
<div className="my-4 flex min-h-[400px] w-full flex-col items-center justify-center overflow-hidden rounded-2xl bg-muted p-6 text-center">
|
||||
<motion.div
|
||||
key={step.imageSrc}
|
||||
initial={{ opacity: 0, y: -10 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
transition={{ duration: 0.3 }}
|
||||
className="flex h-[200px] w-[500px] items-center justify-center overflow-hidden"
|
||||
>
|
||||
<img
|
||||
src={step.imageSrc}
|
||||
alt={step.title}
|
||||
className="w-[500px]"
|
||||
onError={(e) => {
|
||||
e.currentTarget.src = "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/placeholder-1.svg";
|
||||
}}
|
||||
/>
|
||||
</motion.div>
|
||||
<p className="text-body mt-6 px-10 leading-snug tracking-tight text-muted-foreground">
|
||||
{step.description}
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
const NavButtons: React.FC<{
|
||||
currentStep: number;
|
||||
totalSteps: number;
|
||||
handlePrev: () => void;
|
||||
handleNext: () => void;
|
||||
}> = ({ handlePrev, handleNext }) => (
|
||||
<div className="flex w-full justify-end gap-3 tracking-tight">
|
||||
<Button
|
||||
onClick={handlePrev}
|
||||
variant="outline"
|
||||
>
|
||||
<ChevronLeft size={20} />
|
||||
Previous
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
onClick={handleNext}
|
||||
variant="outline"
|
||||
>
|
||||
Next
|
||||
<ChevronRight size={20} />
|
||||
</Button>
|
||||
</div>
|
||||
);
|
||||
|
||||
const TimelineSection: React.FC<TimelineSectionProps> = ({ className }) => {
|
||||
const [currentStep, setCurrentStep] = useState(1);
|
||||
|
||||
const handleNext = () => {
|
||||
setCurrentStep((prev) => Math.min(prev + 1, steps.length - 1));
|
||||
};
|
||||
|
||||
const handlePrev = () => {
|
||||
setCurrentStep((prev) => Math.max(prev - 1, 0));
|
||||
};
|
||||
|
||||
return (
|
||||
<section className={cn("py-32", className)}>
|
||||
<div className="container mx-auto flex max-w-2xl flex-col items-center gap-10 md:gap-0">
|
||||
<h2 className="text-heading-2 mb-10 text-center font-semibold tracking-tight text-foreground">
|
||||
Stepper
|
||||
</h2>
|
||||
<ProcessBar currentStep={currentStep} steps={steps} />
|
||||
<StepperContent step={steps[currentStep]} />
|
||||
<NavButtons
|
||||
handlePrev={handlePrev}
|
||||
handleNext={handleNext}
|
||||
currentStep={currentStep}
|
||||
totalSteps={steps.length}
|
||||
/>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { TimelineSection };
|
||||
Reference in New Issue
Block a user