first project version mrDecor
This commit is contained in:
@@ -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