first project version mrDecor
This commit is contained in:
@@ -0,0 +1,111 @@
|
||||
"use client";
|
||||
|
||||
import {
|
||||
Handshake,
|
||||
Download,
|
||||
GraduationCap,
|
||||
Headphones,
|
||||
RefreshCw,
|
||||
BarChart3,
|
||||
} from "lucide-react";
|
||||
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
const cooperationSteps = [
|
||||
{
|
||||
title: "برگزاری جلسه معرفی و نیازسنجی",
|
||||
description: "شناسایی نیازها و تعیین اهداف همکاری",
|
||||
icon: Handshake,
|
||||
},
|
||||
{
|
||||
title: "نصب نسخه اختصاصی",
|
||||
description: "راهاندازی سامانه متناسب با کسبوکار شما",
|
||||
icon: Download,
|
||||
},
|
||||
{
|
||||
title: "آموزش و راهاندازی",
|
||||
description: "آموزش تیم و راهاندازی عملیاتی",
|
||||
icon: GraduationCap,
|
||||
},
|
||||
{
|
||||
title: "۶ ماه پشتیبانی رایگان",
|
||||
description: "پشتیبانی فنی در ماههای اول همکاری",
|
||||
icon: Headphones,
|
||||
},
|
||||
{
|
||||
title: "ادامه پشتیبانی و توسعه ماهانه",
|
||||
description: "پشتیبانی مستمر و بهروزرسانیهای دورهای",
|
||||
icon: RefreshCw,
|
||||
},
|
||||
{
|
||||
title: "ارزیابی و بهینهسازی مستمر",
|
||||
description: "بررسی عملکرد و پیشنهاد بهبود",
|
||||
icon: BarChart3,
|
||||
},
|
||||
];
|
||||
|
||||
interface Feature104Props {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Feature104 = ({ className }: Feature104Props) => {
|
||||
return (
|
||||
<section
|
||||
className={cn(
|
||||
"overflow-visible border-t border-border/50 bg-background py-10 sm:py-16 md:py-24 lg:py-32",
|
||||
className
|
||||
)}
|
||||
dir="rtl"
|
||||
>
|
||||
<div className="container mx-auto px-4 sm:px-6">
|
||||
<div className="mx-auto max-w-3xl text-center">
|
||||
<Badge
|
||||
variant="outline"
|
||||
className="mb-3 sm:mb-4 border-primary/50 bg-background px-3 py-1 sm:px-4 sm:py-1.5 text-caption font-medium text-foreground"
|
||||
>
|
||||
مسیر همکاری
|
||||
</Badge>
|
||||
<h2 className="text-heading-2 font-semibold leading-[var(--line-height-heading)] tracking-tight text-foreground">
|
||||
فرآیند همکاری
|
||||
</h2>
|
||||
<p className="mt-3 text-body text-muted-foreground sm:mt-4">
|
||||
از اولین تماس تا راهاندازی و پشتیبانی، در هر مرحله همراه شما
|
||||
هستیم تا همکاری با مستر دکور ساده و شفاف باشد.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="mx-auto mt-8 max-w-5xl sm:mt-12">
|
||||
<div className="relative overflow-hidden rounded-lg border border-border bg-card sm:rounded-xl">
|
||||
<img
|
||||
src="https://deifkwefumgah.cloudfront.net/shadcnblocks/block/illustrations/tokyo-letters-and-arrows-flying-out-of-a-black-hole.svg"
|
||||
alt=""
|
||||
className="h-32 w-full scale-x-[-1] object-cover object-center opacity-60 sm:h-40 md:h-48"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="mx-auto mt-10 grid max-w-6xl gap-4 sm:mt-16 sm:gap-6 sm:grid-cols-2 lg:grid-cols-3">
|
||||
{cooperationSteps.map((step, index) => (
|
||||
<div
|
||||
key={index}
|
||||
className="flex flex-col gap-3 rounded-xl border border-border bg-card p-4 shadow-sm transition-colors hover:bg-accent/50 sm:gap-4 sm:p-6"
|
||||
>
|
||||
<div className="flex size-9 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary sm:size-10">
|
||||
<step.icon className="size-5" />
|
||||
</div>
|
||||
<h3 className="text-heading-4 font-semibold leading-tight text-foreground">
|
||||
{step.title}
|
||||
</h3>
|
||||
<p className="text-body-sm text-muted-foreground">
|
||||
{step.description}
|
||||
</p>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Feature104 };
|
||||
@@ -0,0 +1,109 @@
|
||||
"use client";
|
||||
|
||||
import { ArrowLeft } from "lucide-react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
interface Feature188Resource {
|
||||
title: string;
|
||||
description: string;
|
||||
href: string;
|
||||
imageSrc: string;
|
||||
}
|
||||
|
||||
interface Feature188Props {
|
||||
className?: string;
|
||||
title?: string;
|
||||
resources?: Feature188Resource[];
|
||||
}
|
||||
|
||||
const defaultResources: Feature188Resource[] = [
|
||||
{
|
||||
title: "نصب نسخه اختصاصی برای هر مجموعه",
|
||||
description:
|
||||
"هر سازمان نسخهٔ جداگانه و مستقل از سامانه را روی سرور خود دریافت میکند. دادهها کاملاً در اختیار شما میمانند و امنیت و کنترل کامل بر اطلاعات خود دارید.",
|
||||
href: "#",
|
||||
imageSrc:
|
||||
"https://deifkwefumgah.cloudfront.net/shadcnblocks/block/placeholder-8-wide.svg",
|
||||
},
|
||||
{
|
||||
title: "امکان شخصیسازی کامل بر اساس مدل کاری",
|
||||
description:
|
||||
"ماژولها، فیلدها و گردشکارها متناسب با فرایندهای داخلی مجموعهٔ شما تنظیم میشوند. سامانه دقیقاً با نیاز و مدل کاری شما هماهنگ میشود.",
|
||||
href: "#",
|
||||
imageSrc:
|
||||
"https://deifkwefumgah.cloudfront.net/shadcnblocks/block/placeholder-8-wide.svg",
|
||||
},
|
||||
{
|
||||
title: "پشتیبانی مستقیم و توسعه مستمر",
|
||||
description:
|
||||
"تیم فنی ما بهصورت مستقیم پاسخگوی سوالات و مشکلات شماست. امکانات جدید و بهروزرسانیهای امنیتی و عملکردی بهطور منظم ارائه میشود.",
|
||||
href: "#",
|
||||
imageSrc:
|
||||
"https://deifkwefumgah.cloudfront.net/shadcnblocks/block/placeholder-8-wide.svg",
|
||||
},
|
||||
];
|
||||
|
||||
const Feature188 = ({
|
||||
className,
|
||||
title = "چرا این سامانه انتخاب مجموعههای حرفهای است؟",
|
||||
resources = defaultResources,
|
||||
}: Feature188Props) => {
|
||||
return (
|
||||
<section
|
||||
dir="rtl"
|
||||
className={cn(
|
||||
"relative w-full overflow-hidden border-t border-border/50 bg-background py-16 md:py-24 lg:py-32",
|
||||
className,
|
||||
)}
|
||||
>
|
||||
<div className="container mx-auto max-w-5xl px-4 sm:px-6">
|
||||
<h2 className="text-center text-heading-2 font-semibold leading-[var(--line-height-heading)] text-foreground sm:text-heading-2 lg:text-heading-2">
|
||||
{title}
|
||||
</h2>
|
||||
|
||||
<div className="mx-auto mt-10 sm:mt-12 rounded-2xl border border-border bg-background overflow-hidden">
|
||||
{resources.map((resource, index) => (
|
||||
<div
|
||||
key={index}
|
||||
className={cn(
|
||||
index !== resources.length - 1 && "border-b border-border",
|
||||
)}
|
||||
>
|
||||
<a
|
||||
href={resource.href}
|
||||
className="flex flex-col gap-4 p-4 md:flex-row md:items-center md:justify-between md:gap-6 lg:p-6"
|
||||
>
|
||||
<div className="flex min-w-0 flex-1 items-start gap-4 sm:gap-5">
|
||||
<span className="flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-muted p-2 lg:h-14 lg:w-14">
|
||||
<ArrowLeft className="h-5 w-5 text-muted-foreground sm:h-6 sm:w-6" />
|
||||
</span>
|
||||
<div className="min-w-0 flex-1 space-y-1">
|
||||
<h3 className="text-heading-4 font-semibold leading-[var(--line-height-heading)] text-foreground sm:text-heading-3">
|
||||
{resource.title}
|
||||
</h3>
|
||||
<p className="text-body-sm leading-[var(--line-height-body)] text-muted-foreground sm:text-body">
|
||||
{resource.description}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="mt-4 w-full shrink-0 md:mt-0 md:w-52 lg:w-60">
|
||||
<div className="aspect-video w-full overflow-hidden rounded-lg bg-muted">
|
||||
<img
|
||||
src={resource.imageSrc}
|
||||
alt={resource.title}
|
||||
className="h-full w-full object-cover"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Feature188 };
|
||||
@@ -0,0 +1,107 @@
|
||||
"use client";
|
||||
|
||||
import Link from "next/link";
|
||||
import { ArrowRight } from "lucide-react";
|
||||
import React from "react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
|
||||
interface Feature189AbeshdeHamkarProps {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Feature189AbeshdeHamkar = ({ className }: Feature189AbeshdeHamkarProps) => {
|
||||
const features = [
|
||||
{
|
||||
title: "بهرهوری بیشتر",
|
||||
description:
|
||||
"ثبت و پیگیری معاملات آبشده بدون تماسهای مکرر؛ دسترسی لحظهای به مانده و ریز تراکنشها تا روی کار اصلی تمرکز کنید.",
|
||||
},
|
||||
{
|
||||
title: "همکاری و شفافیت",
|
||||
description:
|
||||
"همه طرفین معامله بهصورت شفاف به دادهها دسترسی دارند؛ همکاری بدون ابهام و تسویه بر اساس اعداد واقعی.",
|
||||
},
|
||||
{
|
||||
title: "گزارش و تحلیل",
|
||||
description:
|
||||
"گزارشهای تفصیلی و ابزارهای تحلیلی برای ارزیابی عملکرد و تصمیمگیری بر اساس داده.",
|
||||
},
|
||||
];
|
||||
|
||||
return (
|
||||
<section
|
||||
className={cn(
|
||||
"bg-background py-16 sm:py-24 md:py-28 lg:py-32",
|
||||
className
|
||||
)}
|
||||
dir="rtl"
|
||||
>
|
||||
<div className="container mx-auto max-w-6xl px-4 sm:px-6">
|
||||
<div className="grid items-center gap-10 sm:gap-12 lg:grid-cols-2 lg:gap-16">
|
||||
{/* تصاویر سکشن آبشده همکار */}
|
||||
<div className="relative mb-8 lg:mb-0">
|
||||
<div className="relative -top-8 z-10 mx-auto w-[55%] sm:-top-10 sm:w-[40%] lg:-top-12 lg:w-[35%]">
|
||||
<img
|
||||
alt="Professional Business Collaboration Meeting abshodeh-hamkar"
|
||||
src="/assets/abshode-hamkar/Professional Business Collaboration Meeting abshodeh-hamkar.jpg"
|
||||
className="h-[180px] rounded-xl object-cover shadow-lg sm:h-[260px] lg:h-[280px]"
|
||||
/>
|
||||
</div>
|
||||
<div className="absolute left-0 top-4 z-0 w-[50%] -rotate-12 sm:top-6 sm:w-[35%]">
|
||||
<img
|
||||
alt="Financial Management Productivity Workspace abshodeh-hamkar"
|
||||
src="/assets/abshode-hamkar/Financial Management Productivity Workspace abshodeh-hamkar.jpg"
|
||||
className="h-[160px] rounded-xl object-cover shadow-lg sm:h-[240px] lg:h-[260px]"
|
||||
/>
|
||||
</div>
|
||||
<div className="absolute right-0 top-4 z-20 w-[50%] rotate-12 sm:top-6 sm:w-[35%]">
|
||||
<img
|
||||
alt="Advanced Data Analysis Dashboard Office abshodeh-hamkar"
|
||||
src="/assets/abshode-hamkar/Advanced Data Analysis Dashboard Office abshodeh-hamkar.jpg"
|
||||
className="h-[160px] rounded-xl object-cover shadow-lg sm:h-[240px] lg:h-[260px]"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* محتوا */}
|
||||
<div className="max-w-xl lg:max-w-none lg:mr-auto">
|
||||
<h2 className="text-heading-2 font-semibold leading-[var(--line-height-heading)] tracking-tight text-foreground lg:max-w-[90%]">
|
||||
با ابزارهای حرفهای، کسبوکارتان را متحول کنید
|
||||
</h2>
|
||||
|
||||
<div className="mt-6 grid gap-6 sm:mt-10 sm:gap-8">
|
||||
{features.map((feature) => (
|
||||
<div key={feature.title} className="flex items-start gap-4">
|
||||
<div>
|
||||
<h3 className="text-heading-4 font-semibold leading-[var(--line-height-heading)] text-foreground">
|
||||
{feature.title}
|
||||
</h3>
|
||||
<p className="text-body mt-1.5 leading-[var(--line-height-body)] text-muted-foreground">
|
||||
{feature.description}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
|
||||
<Button
|
||||
asChild
|
||||
variant="secondary"
|
||||
className="mt-6 flex items-center gap-2 sm:mt-10"
|
||||
>
|
||||
<Link href="/contact">
|
||||
بیشتر بدانید
|
||||
<ArrowRight className="size-4" />
|
||||
</Link>
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Feature189AbeshdeHamkar };
|
||||
@@ -0,0 +1,87 @@
|
||||
"use client";
|
||||
|
||||
import { Layout, UserPlus, Users, Zap } from "lucide-react";
|
||||
import React from "react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import { useContent } from "@/components/layout/content-provider";
|
||||
import { Card, CardContent } from "@/components/ui/card";
|
||||
|
||||
const iconClass = "size-10 stroke-white transition-all ease-in-out group-hover:scale-105";
|
||||
const stepIcons = [
|
||||
<UserPlus key="0" className={iconClass} aria-hidden />,
|
||||
<Layout key="1" className={iconClass} aria-hidden />,
|
||||
<Zap key="2" className={iconClass} aria-hidden />,
|
||||
<Users key="3" className={iconClass} aria-hidden />,
|
||||
];
|
||||
|
||||
interface Feature243GoldStoreProps {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Feature243GoldStore = ({ className }: Feature243GoldStoreProps) => {
|
||||
const content = useContent();
|
||||
const { heading, steps: stepsContent } = content.pages.product.forushgahSazTala.feature243;
|
||||
const steps = stepsContent.map((step, index) => ({
|
||||
title: step.title,
|
||||
description: step.description,
|
||||
icon: stepIcons[index] ?? stepIcons[0],
|
||||
}));
|
||||
|
||||
return (
|
||||
<section className={cn("overflow-visible bg-background", className)} dir="rtl">
|
||||
<div className="container mx-auto max-w-7xl px-4 py-16 sm:px-6 sm:py-24 md:py-28 lg:py-32">
|
||||
<header className="relative z-10 flex flex-col items-center justify-center gap-6 bg-background text-center">
|
||||
<h2 className="text-heading-2 font-semibold leading-[var(--line-height-heading)] tracking-tight text-foreground">
|
||||
{heading}
|
||||
</h2>
|
||||
</header>
|
||||
|
||||
<div className="mt-44 flex flex-wrap items-stretch justify-center gap-6 sm:mt-48 md:mt-52 lg:gap-8">
|
||||
{steps.map((step, index) => (
|
||||
<div
|
||||
key={index}
|
||||
className="relative flex w-full max-w-[18rem] flex-col items-center overflow-visible sm:w-64 sm:max-w-none md:w-72"
|
||||
>
|
||||
<div
|
||||
className={cn(
|
||||
"absolute -top-[174px] left-1/2 h-0.5 w-[120%] -translate-x-1/2 rounded-full bg-muted",
|
||||
index === 3 ? "hidden" : "",
|
||||
index === 2 ? "hidden lg:block" : "",
|
||||
index === 1 ? "hidden lg:block" : "",
|
||||
index === 0 ? "hidden sm:block" : "",
|
||||
)}
|
||||
/>
|
||||
<div className="absolute -top-[174px] left-1/2 h-full w-0.5 -translate-x-1/2 rounded-full bg-muted" />
|
||||
<div className="relative z-10 flex h-8 w-5 flex-shrink-0 items-center justify-center rounded-full bg-background p-1 pb-5">
|
||||
<div className="relative z-10 size-3 rounded-full bg-foreground" />
|
||||
</div>
|
||||
|
||||
<Card className="group relative z-10 h-full w-full overflow-hidden rounded-4xl border-none bg-muted shadow-none">
|
||||
<CardContent className="flex h-full flex-col items-center gap-5 p-0 pt-10 pb-5">
|
||||
<div className="flex size-20 shrink-0 items-center justify-center rounded-3xl bg-foreground dark:bg-background">
|
||||
{step.icon}
|
||||
</div>
|
||||
|
||||
<div className="flex w-full flex-col items-center gap-4 px-4 pt-5 pb-3">
|
||||
<h3 className="text-heading-3 w-full text-center font-semibold leading-[var(--line-height-heading)] tracking-tight text-foreground">
|
||||
{step.title}
|
||||
</h3>
|
||||
{step.description ? (
|
||||
<p className="text-body w-full max-w-sm text-center text-muted-foreground/70">
|
||||
{step.description}
|
||||
</p>
|
||||
) : null}
|
||||
</div>
|
||||
</CardContent>
|
||||
</Card>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Feature243GoldStore };
|
||||
@@ -0,0 +1,53 @@
|
||||
"use client";
|
||||
|
||||
import { BadgeCheck } from "lucide-react";
|
||||
import React from "react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
interface Feature246Props {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Feature246 = ({ className }: Feature246Props) => {
|
||||
const benefits = [
|
||||
"برگزاری جلسه معرفی و نیازسنجی",
|
||||
"نصب نسخه اختصاصی",
|
||||
"آموزش و راهاندازی",
|
||||
"۶ ماه پشتیبانی رایگان",
|
||||
"ادامه پشتیبانی و توسعه ماهانه",
|
||||
];
|
||||
|
||||
return (
|
||||
<section className={cn("overflow-visible bg-background", className)} dir="rtl">
|
||||
<div className="container mx-auto flex flex-col items-center justify-between overflow-visible px-6 py-40 lg:flex-row">
|
||||
<div className="flex w-full max-w-4xl flex-col items-center gap-20 text-center lg:mr-2 lg:items-start lg:text-left">
|
||||
<h2 className="text-heading-2 font-semibold leading-[var(--line-height-heading)] tracking-tight text-foreground">
|
||||
بخش فرآیند همکاری
|
||||
</h2>
|
||||
<div className="flex flex-col space-y-5 lg:items-start">
|
||||
{benefits.map((benefit, index) => (
|
||||
<div key={index} className="flex items-center justify-center gap-4 lg:justify-start">
|
||||
<div className="flex h-7 w-7 items-center justify-center">
|
||||
<BadgeCheck className="h-20" />
|
||||
</div>
|
||||
<span className="text-heading-4 leading-[var(--line-height-heading)] tracking-tight text-foreground">
|
||||
{benefit}
|
||||
</span>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
<div className="relative flex min-h-[400px] w-full items-center justify-center overflow-visible rounded-none py-12 lg:min-h-[500px] lg:py-20">
|
||||
<img
|
||||
src="https://deifkwefumgah.cloudfront.net/shadcnblocks/block/illustrations/tokyo-letters-and-arrows-flying-out-of-a-black-hole.svg"
|
||||
className="h-full w-full scale-x-[-1] object-contain object-center"
|
||||
alt=""
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Feature246 };
|
||||
@@ -0,0 +1,107 @@
|
||||
"use client";
|
||||
|
||||
import { motion, MotionValue, useScroll, useTransform } from "motion/react";
|
||||
import React from "react";
|
||||
import { ComponentPropsWithoutRef, FC, ReactNode, useRef } from "react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
import { useContent } from "@/components/layout/content-provider";
|
||||
|
||||
const Feature247 = () => {
|
||||
const content = useContent();
|
||||
const { title, description } = content.pages.product.forushgahSazTala.feature247;
|
||||
return (
|
||||
<section className="py-32">
|
||||
<div className="container mx-auto flex flex-col items-center justify-center px-6">
|
||||
<div className="flex max-w-4xl justify-center">
|
||||
<TextReveal
|
||||
title={title}
|
||||
className="items-center justify-center text-center"
|
||||
>
|
||||
{description}
|
||||
</TextReveal>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Feature247 };
|
||||
|
||||
// Below is the modified component from Magic UI
|
||||
// Original source: https://magicui.design/docs/components/text-reveal
|
||||
// Modified to follow our coding standards and design system
|
||||
// We respect copyright and attribution to the original creators
|
||||
|
||||
interface TextRevealProps extends ComponentPropsWithoutRef<"div"> {
|
||||
children: string;
|
||||
title?: string;
|
||||
maxWidth?: string;
|
||||
}
|
||||
|
||||
const TextReveal: FC<TextRevealProps> = ({
|
||||
children,
|
||||
title,
|
||||
className,
|
||||
maxWidth,
|
||||
}) => {
|
||||
const targetRef = useRef<HTMLDivElement | null>(null);
|
||||
const { scrollYProgress } = useScroll({
|
||||
target: targetRef,
|
||||
});
|
||||
|
||||
const words = children.split(" ");
|
||||
|
||||
return (
|
||||
<div
|
||||
ref={targetRef}
|
||||
className={cn("relative z-0 h-[200vh]", className)}
|
||||
style={{ maxWidth: maxWidth || "56rem" }}
|
||||
>
|
||||
<div className="sticky top-0 mx-auto flex h-[50%] items-center bg-transparent px-[1rem] py-[5rem]">
|
||||
<div ref={targetRef} className="flex flex-col justify-center">
|
||||
<span className="text-heading-4 text-center font-medium leading-snug tracking-tight text-foreground">
|
||||
{title}
|
||||
</span>
|
||||
<span
|
||||
className={cn(
|
||||
"flex flex-wrap justify-center p-5 text-2xl font-semibold leading-relaxed text-black/20 md:p-8 md:text-3xl lg:p-10 lg:text-4xl xl:text-5xl dark:text-white/20",
|
||||
className,
|
||||
)}
|
||||
>
|
||||
{words.map((word, i) => {
|
||||
const start = i / words.length;
|
||||
const end = start + 1 / words.length;
|
||||
return (
|
||||
<Word key={i} progress={scrollYProgress} range={[start, end]}>
|
||||
{word}
|
||||
</Word>
|
||||
);
|
||||
})}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
interface WordProps {
|
||||
children: ReactNode;
|
||||
progress: MotionValue<number>;
|
||||
range: [number, number];
|
||||
}
|
||||
|
||||
const Word: FC<WordProps> = ({ children, progress, range }) => {
|
||||
const opacity = useTransform(progress, range, [0, 1]);
|
||||
return (
|
||||
<span className="relative mx-1 lg:mx-1.5">
|
||||
<span className="absolute opacity-30">{children}</span>
|
||||
<motion.span
|
||||
style={{ opacity: opacity }}
|
||||
className="text-black dark:text-white"
|
||||
>
|
||||
{children}
|
||||
</motion.span>
|
||||
</span>
|
||||
);
|
||||
};
|
||||
@@ -0,0 +1,138 @@
|
||||
import { ArrowRight, Check } from "lucide-react";
|
||||
import React from "react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import {
|
||||
CardBody,
|
||||
CardContainer,
|
||||
CardItem,
|
||||
} from "@/components/aceternity/3d-card";
|
||||
import { Button } from "@/components/ui/button";
|
||||
|
||||
const defaultFeatures = [
|
||||
{ title: "Instant Implementation", description: "Get access to your blocks the moment you pay." },
|
||||
{ title: "One-Time Payment", description: "No subscriptions. Just pay once and own it forever." },
|
||||
{ title: "Developer Friendly", description: "Clean, copy-paste-ready code with full Tailwind + shadcn support." },
|
||||
{ title: "Fully Responsive", description: "Every block looks perfect on all screen sizes, out of the box." },
|
||||
{ title: "Production Ready", description: "Battle-tested components you can drop into real projects today." },
|
||||
];
|
||||
|
||||
interface Feature268Props {
|
||||
className?: string;
|
||||
title?: string;
|
||||
description?: string;
|
||||
showButtons?: boolean;
|
||||
listTitle?: string;
|
||||
features?: { title: string; description?: string }[];
|
||||
cardTitle?: string;
|
||||
cardWelcome?: string;
|
||||
cardImage?: string;
|
||||
showTryNow?: boolean;
|
||||
}
|
||||
|
||||
const Feature268 = ({
|
||||
className,
|
||||
title = "Drop-In Ready Blocks to Supercharge Your App",
|
||||
description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad",
|
||||
showButtons = true,
|
||||
listTitle = "ShadcnBlocks Perks",
|
||||
features = defaultFeatures,
|
||||
cardTitle = "#1 Biggest Shadcn Blocks Collection",
|
||||
cardWelcome = "Welcome to SHADCN BLOCKS",
|
||||
cardImage,
|
||||
showTryNow = true,
|
||||
}: Feature268Props) => {
|
||||
const defaultCardImage = "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/guri3/img27.jpeg";
|
||||
return (
|
||||
<section className={cn("h-full w-full max-w-full overflow-x-hidden overflow-y-hidden py-32", className)}>
|
||||
<div className="relative container mx-auto px-4 md:px-6">
|
||||
<div className="flex h-full flex-col items-center justify-center gap-10 lg:flex-row lg:justify-center lg:max-w-7xl lg:mx-auto">
|
||||
<div className="w-full space-y-5 lg:w-3/5">
|
||||
<h2 className="text-heading-2 mt-3 w-full max-w-2xl font-semibold tracking-tight">
|
||||
{title}
|
||||
</h2>
|
||||
<p className="text-body max-w-xl leading-relaxed text-muted-foreground">
|
||||
{description}
|
||||
</p>
|
||||
{showButtons && (
|
||||
<div className="mt-10 mb-29 flex flex-wrap gap-4">
|
||||
<Button variant="primary">Get Started</Button>
|
||||
<Button variant="secondary">Learn More</Button>
|
||||
</div>
|
||||
)}
|
||||
<ul className="space-y-4">
|
||||
<li className="mb-3">
|
||||
<p className="text-caption font-medium text-muted-foreground">
|
||||
{listTitle}
|
||||
</p>
|
||||
</li>
|
||||
{features.map((feature) => (
|
||||
<li key={feature.title} className="flex gap-4 lg:items-center">
|
||||
<Check className="size-4 shrink-0" />
|
||||
<p className="text-body-sm font-normal tracking-tight">
|
||||
{feature.title}
|
||||
{feature.description != null && feature.description !== "" && (
|
||||
<span className="pl-2 opacity-30">{feature.description}</span>
|
||||
)}
|
||||
</p>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
<CardContainer
|
||||
className="w-full"
|
||||
containerClassName="h-full w-full p-0 m-0 lg:w-2/5"
|
||||
>
|
||||
<CardBody className="group/card flex h-full !w-full flex-col items-center justify-center rounded-3xl bg-muted/70 px-5 py-15">
|
||||
{cardTitle != null && cardTitle !== "" && (
|
||||
<CardItem
|
||||
translateZ="60"
|
||||
className="text-heading-3 mb-2 max-w-xs text-center font-semibold leading-none tracking-tight"
|
||||
>
|
||||
{cardTitle}
|
||||
</CardItem>
|
||||
)}
|
||||
{cardWelcome != null && cardWelcome !== "" && (
|
||||
<CardItem
|
||||
as="p"
|
||||
translateZ="25"
|
||||
className="text-body-sm my-4 flex w-full max-w-sm items-center justify-center font-medium tracking-tight"
|
||||
>
|
||||
<span className="mr-2 opacity-50">Welcome to</span>
|
||||
<span className="font-semibold">SHADCN BLOCKS</span>
|
||||
</CardItem>
|
||||
)}
|
||||
<CardItem translateZ="60" className="mt-4 w-full max-w-[1000px]">
|
||||
<img
|
||||
src={cardImage ?? defaultCardImage}
|
||||
height="1000"
|
||||
width="1000"
|
||||
className="h-82 w-full rounded-3xl object-cover group-hover/card:shadow-xl lg:h-60"
|
||||
alt="thumbnail"
|
||||
/>
|
||||
</CardItem>
|
||||
|
||||
<div className="flex w-full flex-col items-center justify-center">
|
||||
{showTryNow && (
|
||||
<CardItem translateZ="100">
|
||||
<Button variant="ghost" className="my-5 opacity-50">
|
||||
Try now <ArrowRight />
|
||||
</Button>
|
||||
</CardItem>
|
||||
)}
|
||||
<img
|
||||
className="w-30"
|
||||
src="/images/block/logos/ph-daily.svg"
|
||||
alt=""
|
||||
/>
|
||||
</div>
|
||||
</CardBody>
|
||||
</CardContainer>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Feature268 };
|
||||
@@ -0,0 +1,111 @@
|
||||
"use client";
|
||||
|
||||
import Link from "next/link";
|
||||
import { Check } from "lucide-react";
|
||||
import React from "react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import {
|
||||
CardBody,
|
||||
CardContainer,
|
||||
CardItem,
|
||||
} from "@/components/aceternity/3d-card";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { useContent } from "@/components/layout/content-provider";
|
||||
|
||||
interface Feature269GoldStoreProps {
|
||||
className?: string;
|
||||
cardImage?: string;
|
||||
}
|
||||
|
||||
const defaultCardImage =
|
||||
"https://deifkwefumgah.cloudfront.net/shadcnblocks/block/guri3/img7.jpeg";
|
||||
|
||||
const Feature269GoldStore = ({ className, cardImage }: Feature269GoldStoreProps) => {
|
||||
const content = useContent();
|
||||
const { heading, description, featuresLabel, cardTitle1, cardTitle2, cardWelcome, cardWelcomeBrand, features } = content.pages.product.forushgahSazTala.feature269;
|
||||
return (
|
||||
<section
|
||||
className={cn(
|
||||
"h-full w-full max-w-full overflow-x-hidden overflow-y-hidden py-16 sm:py-24 lg:py-32",
|
||||
className
|
||||
)}
|
||||
dir="rtl"
|
||||
>
|
||||
<div className="relative container mx-auto px-4 md:px-6">
|
||||
<div className="flex h-full flex-col items-center justify-center gap-10 lg:mx-auto lg:max-w-7xl lg:flex-row lg:justify-center">
|
||||
<div className="w-full space-y-5 lg:w-3/5">
|
||||
<h2 className="text-heading-2 mt-3 w-full max-w-2xl font-semibold leading-[var(--line-height-heading)] tracking-tight text-foreground">
|
||||
{heading}
|
||||
</h2>
|
||||
<p className="text-body max-w-xl leading-[var(--line-height-body)] text-muted-foreground">
|
||||
{description}
|
||||
</p>
|
||||
<div className="mb-6 mt-10 flex flex-wrap gap-4">
|
||||
<Button asChild variant="primary" className="rounded-full">
|
||||
<Link href="/contact">شروع کنید</Link>
|
||||
</Button>
|
||||
<Button asChild variant="secondary" className="rounded-full">
|
||||
<Link href="/contact">بیشتر بدانید</Link>
|
||||
</Button>
|
||||
</div>
|
||||
<ul className="space-y-4">
|
||||
<li className="mb-3">
|
||||
<p className="text-caption font-medium text-muted-foreground">{featuresLabel}</p>
|
||||
</li>
|
||||
{features.map((featureTitle) => (
|
||||
<li key={featureTitle} className="flex items-center gap-2">
|
||||
<Check className="size-4 shrink-0 text-primary" />
|
||||
<span className="text-body-sm font-medium text-foreground">
|
||||
{featureTitle}
|
||||
</span>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
<CardContainer
|
||||
className="w-full"
|
||||
containerClassName="h-full w-full p-0 m-0 lg:w-2/5"
|
||||
>
|
||||
<CardBody className="group/card flex h-full !w-full flex-col items-center justify-center rounded-3xl bg-muted/70 px-5 py-10 sm:py-15">
|
||||
<CardItem
|
||||
translateZ="60"
|
||||
className="text-heading-3 mb-2 max-w-xs text-center font-semibold leading-[var(--line-height-heading)] tracking-tight text-foreground"
|
||||
>
|
||||
<span className="block">{cardTitle1}</span>
|
||||
<span className="block">{cardTitle2}</span>
|
||||
</CardItem>
|
||||
<CardItem
|
||||
as="p"
|
||||
translateZ="25"
|
||||
className="my-4 flex w-full max-w-sm items-center justify-center gap-2 text-body-sm font-medium tracking-tight text-foreground"
|
||||
>
|
||||
<span className="opacity-50">{cardWelcome}</span>
|
||||
<span className="whitespace-nowrap font-semibold">{cardWelcomeBrand}</span>
|
||||
</CardItem>
|
||||
<CardItem translateZ="60" className="mt-4 w-full max-w-[1000px]">
|
||||
<img
|
||||
src={cardImage ?? defaultCardImage}
|
||||
height="1000"
|
||||
width="1000"
|
||||
className="h-70 w-full rounded-3xl object-cover group-hover/card:shadow-xl lg:h-60"
|
||||
alt="فروشگاه آنلاین طلا"
|
||||
/>
|
||||
</CardItem>
|
||||
<div className="flex w-full flex-col items-center justify-center">
|
||||
<img
|
||||
className="h-8 w-auto object-contain mt-4"
|
||||
src="/assets/mzLogo.png"
|
||||
alt="مستر دکور"
|
||||
/>
|
||||
</div>
|
||||
</CardBody>
|
||||
</CardContainer>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Feature269GoldStore };
|
||||
@@ -0,0 +1,93 @@
|
||||
import { BadgeCheck } from "lucide-react";
|
||||
import React from "react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import {
|
||||
CardBody,
|
||||
CardContainer,
|
||||
CardItem,
|
||||
} from "@/components/aceternity/3d-card";
|
||||
|
||||
interface Feature269Props {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Feature269 = ({ className }: Feature269Props) => {
|
||||
const features = [
|
||||
"Instant Implementation",
|
||||
"One-Time Payment",
|
||||
"Developer Friendly",
|
||||
"Fully Responsive",
|
||||
"Production Ready",
|
||||
"Premium Support",
|
||||
"Regular Updates",
|
||||
"Customizable Design",
|
||||
"Performance Optimized",
|
||||
"Accessibility Compliant",
|
||||
"Cross-Browser ",
|
||||
"Documentation Included",
|
||||
];
|
||||
|
||||
return (
|
||||
<section className={cn("relative w-full overflow-hidden py-32", className)}>
|
||||
<div className="container mx-auto px-4 md:px-6">
|
||||
<div className="relative flex h-full flex-col items-start justify-between gap-10 lg:flex-row">
|
||||
<div className="w-full space-y-5 lg:w-3/5">
|
||||
<h2 className="text-heading-2 mx-auto mb-15 w-full max-w-lg text-center font-semibold tracking-tight lg:mx-0 lg:text-left">
|
||||
Why Choose Shadcn Blocks?
|
||||
</h2>
|
||||
<div className="mb-18 flex items-center gap-4 px-5 lg:max-w-md">
|
||||
<span className="h-px w-full bg-muted-foreground/20" />
|
||||
<p className="text-caption font-medium text-muted-foreground/50">FEATURES</p>
|
||||
<span className="h-px w-full bg-muted-foreground/20" />
|
||||
</div>
|
||||
<ul className="grid grid-cols-2 gap-3 lg:max-w-md">
|
||||
{features.map((feature) => (
|
||||
<li key={feature} className="flex gap-2 lg:items-center">
|
||||
<BadgeCheck className="size-4 text-muted-foreground/80" />
|
||||
<p className="text-body-sm tracking-tight text-muted-foreground/80">
|
||||
{feature}
|
||||
</p>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
<CardContainer
|
||||
className="w-full"
|
||||
containerClassName="h-full w-full p-0 m-0 lg:w-2/5"
|
||||
>
|
||||
<CardBody className="group/card flex h-full !w-full flex-col items-center justify-center rounded-3xl bg-muted/70 p-5">
|
||||
<CardItem
|
||||
translateZ="60"
|
||||
className="text-heading-3 mt-10 mb-2 max-w-xs text-center font-semibold leading-none tracking-tight"
|
||||
>
|
||||
#1 Biggest Shadcn Blocks Collection
|
||||
</CardItem>
|
||||
<CardItem
|
||||
as="p"
|
||||
translateZ="25"
|
||||
className="text-body-sm my-4 flex w-full max-w-sm items-center justify-center font-medium tracking-tight"
|
||||
>
|
||||
<span className="mr-2 opacity-50">Welcome to</span>
|
||||
<span className="font-semibold">SHADCN BLOCKS</span>
|
||||
</CardItem>
|
||||
<CardItem translateZ="60" className="mt-4 w-full max-w-[1000px]">
|
||||
<img
|
||||
src="https://deifkwefumgah.cloudfront.net/shadcnblocks/block/guri3/img7.jpeg"
|
||||
height="1000"
|
||||
width="1000"
|
||||
className="h-70 w-full rounded-3xl object-cover group-hover/card:shadow-xl"
|
||||
alt="thumbnail"
|
||||
/>
|
||||
</CardItem>
|
||||
</CardBody>
|
||||
</CardContainer>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Feature269 };
|
||||
|
||||
@@ -0,0 +1,324 @@
|
||||
"use client";
|
||||
import { motion } from "motion/react";
|
||||
import React, { useState } from "react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
const defaultFeatures = [
|
||||
{
|
||||
number: "01",
|
||||
title: "Instant Implementation",
|
||||
description:
|
||||
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et",
|
||||
image: "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/guri3/img11.jpeg",
|
||||
imageOrder: "order-1",
|
||||
contentOrder: "order-2",
|
||||
},
|
||||
{
|
||||
number: "02",
|
||||
title: "One time payment",
|
||||
description:
|
||||
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et",
|
||||
image: "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/guri3/img12.jpeg",
|
||||
imageOrder: "order-2",
|
||||
contentOrder: "order-1",
|
||||
},
|
||||
{
|
||||
number: "03",
|
||||
title: "Developer Friendly",
|
||||
description:
|
||||
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et",
|
||||
image: "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/guri3/img14.jpeg",
|
||||
imageOrder: "order-1",
|
||||
contentOrder: "order-2",
|
||||
},
|
||||
];
|
||||
|
||||
interface Feature270Item {
|
||||
number: string;
|
||||
title: string;
|
||||
description: string;
|
||||
image: string;
|
||||
imageOrder: string;
|
||||
contentOrder: string;
|
||||
}
|
||||
|
||||
interface Feature270Props {
|
||||
className?: string;
|
||||
heading?: string;
|
||||
features?: Feature270Item[];
|
||||
headingAlign?: "left" | "right" | "center";
|
||||
contentAlign?: "left" | "center" | "right";
|
||||
showNumbers?: boolean;
|
||||
/** وقتی false باشد، دکمه/لینک «Learn More» روی کارتها نمایش داده نمیشود. */
|
||||
showLearnMore?: boolean;
|
||||
}
|
||||
|
||||
const Feature270 = ({
|
||||
className,
|
||||
heading = "Why Choose Shadcn Blocks?",
|
||||
features = defaultFeatures,
|
||||
headingAlign = "left",
|
||||
contentAlign = "left",
|
||||
showNumbers = true,
|
||||
showLearnMore = true,
|
||||
}: Feature270Props) => {
|
||||
const headingClass = {
|
||||
left: "text-left",
|
||||
right: "text-right",
|
||||
center: "text-center",
|
||||
}[headingAlign];
|
||||
const contentClass = {
|
||||
left: "text-left",
|
||||
center: "text-center",
|
||||
right: "text-right",
|
||||
}[contentAlign];
|
||||
|
||||
return (
|
||||
<section className={cn("relative w-full py-32", className)}>
|
||||
<div className="container mx-auto px-4 md:px-6">
|
||||
<div className={cn("w-full space-y-5 lg:w-3/5 mb-12", headingAlign === "right" && "lg:mr-0 lg:ml-auto")}>
|
||||
<h2 className={cn("text-heading-2 mb-6 w-full max-w-lg font-semibold tracking-tight", headingClass)}>
|
||||
{heading}
|
||||
</h2>
|
||||
</div>
|
||||
<div className="relative grid grid-cols-1 auto-rows-auto items-stretch gap-6 md:gap-3 md:min-h-[68rem] md:grid-cols-2 lg:min-h-[32rem] lg:grid-cols-3">
|
||||
{features.map((feature, index) => {
|
||||
const cardContent = (
|
||||
<div className="flex flex-col h-full min-h-[26rem]">
|
||||
<div className={feature.imageOrder}>
|
||||
<img
|
||||
src={feature.image}
|
||||
height="1000"
|
||||
width="1000"
|
||||
className="h-70 w-full rounded-3xl object-cover group-hover/card:shadow-xl"
|
||||
alt="thumbnail"
|
||||
/>
|
||||
</div>
|
||||
<div className={cn("mt-4 w-full p-3 flex-1 flex flex-col min-h-[8rem] gap-0", feature.contentOrder, contentClass)}>
|
||||
{showNumbers && (
|
||||
<p className="text-caption font-medium text-muted-foreground tracking-tighter">
|
||||
{feature.number}
|
||||
</p>
|
||||
)}
|
||||
<h3 className="text-heading-3 mt-3 mb-2 font-semibold leading-tight tracking-tight text-foreground">
|
||||
{feature.title}
|
||||
</h3>
|
||||
<p className="text-caption leading-relaxed text-muted-foreground flex-1">
|
||||
{feature.description}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
const cardClassName = "w-full h-full min-h-[28rem] rounded-3xl !bg-muted/70 p-4 flex flex-col";
|
||||
return (
|
||||
<PinContainer
|
||||
key={index}
|
||||
title={showLearnMore ? "Learn More" : undefined}
|
||||
href={showLearnMore ? "https://www.shadcnblocks.com/blocks" : undefined}
|
||||
className={cardClassName}
|
||||
showPerspective={showLearnMore}
|
||||
>
|
||||
{cardContent}
|
||||
</PinContainer>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Feature270 };
|
||||
|
||||
// Below is the modified component from Aceternity UI
|
||||
// Original source: npx shadcn@latest add https://ui.aceternity.com/registry/3d-pin.json
|
||||
// Modified to follow our coding standards and design system
|
||||
// We respect copyright and attribution to the original creators
|
||||
|
||||
export const PinContainer = ({
|
||||
children,
|
||||
title,
|
||||
href,
|
||||
className,
|
||||
containerClassName,
|
||||
showPerspective = true,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
title?: string;
|
||||
href?: string;
|
||||
className?: string;
|
||||
containerClassName?: string;
|
||||
/** وقتی false باشد، دکمه/برچسب «Learn More» روی هاور نمایش داده نمیشود. افکت سهبعدی هاور حفظ میشود. */
|
||||
showPerspective?: boolean;
|
||||
}) => {
|
||||
const [transform, setTransform] = useState(
|
||||
"translate(-50%,-50%) rotateX(0deg)",
|
||||
);
|
||||
|
||||
const onMouseEnter = () => {
|
||||
setTransform("translate(-50%,-50%) rotateX(40deg) scale(0.8)");
|
||||
};
|
||||
const onMouseLeave = () => {
|
||||
setTransform("translate(-50%,-50%) rotateX(0deg) scale(1)");
|
||||
};
|
||||
|
||||
const wrapperClassName = cn(
|
||||
"group/pin relative z-10",
|
||||
href ? "cursor-pointer" : "cursor-default",
|
||||
containerClassName,
|
||||
);
|
||||
|
||||
const outerTransform = showPerspective
|
||||
? "rotateX(70deg) translateZ(0deg)"
|
||||
: "rotateX(0deg) translateZ(0deg)";
|
||||
|
||||
const content = showPerspective ? (
|
||||
<>
|
||||
<div
|
||||
style={{
|
||||
perspective: "1000px",
|
||||
transform: outerTransform,
|
||||
}}
|
||||
className="absolute top-1/2 left-1/2 mt-4 ml-[0.09375rem] w-full -translate-x-1/2 -translate-y-1/2"
|
||||
>
|
||||
<div
|
||||
style={{
|
||||
transform: transform,
|
||||
}}
|
||||
className="absolute top-1/2 left-1/2 flex w-full items-start justify-start overflow-hidden rounded-2xl transition duration-700"
|
||||
>
|
||||
<div className={cn("relative z-10", className)}>{children}</div>
|
||||
</div>
|
||||
</div>
|
||||
{title != null && <PinPerspective title={title} />}
|
||||
</>
|
||||
) : (
|
||||
<div className={cn("relative z-10", className)}>{children}</div>
|
||||
);
|
||||
|
||||
if (href) {
|
||||
return (
|
||||
<a
|
||||
className={wrapperClassName}
|
||||
onMouseEnter={onMouseEnter}
|
||||
onMouseLeave={onMouseLeave}
|
||||
href={href}
|
||||
>
|
||||
{content}
|
||||
</a>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<div
|
||||
className={wrapperClassName}
|
||||
onMouseEnter={onMouseEnter}
|
||||
onMouseLeave={onMouseLeave}
|
||||
>
|
||||
{content}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export const PinPerspective = ({
|
||||
title,
|
||||
}: {
|
||||
title?: string;
|
||||
href?: string;
|
||||
}) => {
|
||||
return (
|
||||
<motion.div className="pointer-events-none z-20 flex h-80 w-96 items-center justify-center opacity-0 transition duration-500 group-hover/pin:opacity-100">
|
||||
<div className="inset-0 -mt-7 h-full w-full flex-none">
|
||||
<div className="absolute inset-x-0 top-0 flex justify-center">
|
||||
<span className="relative z-10 flex items-center space-x-2 rounded-full bg-foreground px-4 py-0.5 ring-1 ring-border">
|
||||
<span className="text-caption relative z-20 inline-block py-0.5 font-bold text-background">
|
||||
{title}
|
||||
</span>
|
||||
|
||||
<span className="absolute -bottom-0 left-[1.125rem] h-px w-[calc(100%-2.25rem)] bg-gradient-to-r from-secondary/0 via-secondary to-secondary/0 transition-opacity duration-500 group-hover/btn:opacity-40"></span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div
|
||||
style={{
|
||||
perspective: "1000px",
|
||||
transform: "rotateX(70deg) translateZ(0)",
|
||||
}}
|
||||
className="absolute top-1/2 left-1/2 mt-4 ml-[0.09375rem] -translate-x-1/2 -translate-y-1/2"
|
||||
>
|
||||
<>
|
||||
<motion.div
|
||||
initial={{
|
||||
opacity: 0,
|
||||
scale: 0,
|
||||
x: "-50%",
|
||||
y: "-50%",
|
||||
}}
|
||||
animate={{
|
||||
opacity: [0, 1, 0.5, 0],
|
||||
scale: 1,
|
||||
|
||||
z: 0,
|
||||
}}
|
||||
transition={{
|
||||
duration: 6,
|
||||
repeat: Infinity,
|
||||
delay: 0,
|
||||
}}
|
||||
className="absolute top-1/2 left-1/2 h-[11.25rem] w-[11.25rem] rounded-[50%] bg-primary/[0.08] shadow-lg"
|
||||
></motion.div>
|
||||
<motion.div
|
||||
initial={{
|
||||
opacity: 0,
|
||||
scale: 0,
|
||||
x: "-50%",
|
||||
y: "-50%",
|
||||
}}
|
||||
animate={{
|
||||
opacity: [0, 1, 0.5, 0],
|
||||
scale: 1,
|
||||
|
||||
z: 0,
|
||||
}}
|
||||
transition={{
|
||||
duration: 6,
|
||||
repeat: Infinity,
|
||||
delay: 2,
|
||||
}}
|
||||
className="absolute top-1/2 left-1/2 h-[11.25rem] w-[11.25rem] rounded-[50%] bg-primary/[0.08] shadow-lg"
|
||||
></motion.div>
|
||||
<motion.div
|
||||
initial={{
|
||||
opacity: 0,
|
||||
scale: 0,
|
||||
x: "-50%",
|
||||
y: "-50%",
|
||||
}}
|
||||
animate={{
|
||||
opacity: [0, 1, 0.5, 0],
|
||||
scale: 1,
|
||||
|
||||
z: 0,
|
||||
}}
|
||||
transition={{
|
||||
duration: 6,
|
||||
repeat: Infinity,
|
||||
delay: 4,
|
||||
}}
|
||||
className="absolute top-1/2 left-1/2 h-[11.25rem] w-[11.25rem] rounded-[50%] bg-primary/[0.08] shadow-lg"
|
||||
></motion.div>
|
||||
</>
|
||||
</div>
|
||||
|
||||
<>
|
||||
<motion.div className="absolute right-1/2 bottom-1/2 h-20 w-px translate-y-[14px] bg-gradient-to-b from-transparent to-secondary blur-[2px] group-hover/pin:h-40" />
|
||||
<motion.div className="absolute right-1/2 bottom-1/2 h-20 w-px translate-y-[14px] bg-gradient-to-b from-transparent to-secondary group-hover/pin:h-40" />
|
||||
<motion.div className="absolute right-1/2 bottom-1/2 z-40 h-[4px] w-[4px] translate-x-[1.5px] translate-y-[14px] rounded-full bg-secondary blur-[3px]" />
|
||||
<motion.div className="absolute right-1/2 bottom-1/2 z-40 h-[2px] w-[2px] translate-x-[0.5px] translate-y-[14px] rounded-full bg-secondary" />
|
||||
</>
|
||||
</div>
|
||||
</motion.div>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -0,0 +1,115 @@
|
||||
"use client";
|
||||
|
||||
import { AudioLines, Box, Globe, LayoutDashboard, ShieldUser, Users } from "lucide-react";
|
||||
import React from "react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import { SparklesCore } from "@/components/shadcnblocks/sparkles";
|
||||
|
||||
const features = [
|
||||
{
|
||||
icon: Globe,
|
||||
title: "یکپارچهسازی آسان",
|
||||
description: "ساختهشده با فناوریهای روز و APIهای تمیز برای ادغام بیدردسر با سامانههای شما.",
|
||||
},
|
||||
{
|
||||
icon: Box,
|
||||
title: "عملکرد سریع",
|
||||
description: "بهینهسازی شده برای بارگذاری فوری و حداقل مصرف منابع.",
|
||||
},
|
||||
{
|
||||
icon: ShieldUser,
|
||||
title: "امنیت پیشفرض",
|
||||
description: "امنیت در سطح سازمان با حفاظت داخلی و رعایت استانداردها.",
|
||||
},
|
||||
{
|
||||
icon: Users,
|
||||
title: "همکاری تیمی",
|
||||
description: "طراحیشده برای تیمها با همکاری لحظهای و کنترل دسترسی.",
|
||||
},
|
||||
{
|
||||
icon: AudioLines,
|
||||
title: "یکپارچگی صوتی",
|
||||
description: "پردازش پیشرفته با پشتیبانی از درک زبان طبیعی.",
|
||||
},
|
||||
{
|
||||
icon: LayoutDashboard,
|
||||
title: "امکانات جامع پلتفرم",
|
||||
description: "قیمت لحظهای، مدیریت سفارش و مانده حساب آنلاین، ریز معاملات ۲۴/۷، کنترل وضعیت بازار و پنل ادمین.",
|
||||
},
|
||||
];
|
||||
|
||||
interface Feature294Props {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Feature294 = ({ className }: Feature294Props) => {
|
||||
return (
|
||||
<section
|
||||
className={cn(
|
||||
"dark relative w-full max-w-full overflow-x-hidden overflow-y-hidden bg-background py-32 text-foreground",
|
||||
className,
|
||||
)}
|
||||
>
|
||||
<div className="relative container mx-auto flex h-full flex-col items-center justify-center px-6" dir="rtl">
|
||||
<div className="w-full max-w-lg text-center">
|
||||
<p className="text-caption relative z-20 font-medium leading-[var(--line-height-body)] tracking-wide text-muted-foreground/80">
|
||||
راهکار
|
||||
</p>
|
||||
<h2 className="text-heading-2 relative z-20 mt-2 text-center font-semibold leading-[var(--line-height-heading)] tracking-tight text-foreground">
|
||||
یک پلتفرم اختصاصی
|
||||
<br />
|
||||
برای مدیریت کامل معاملات
|
||||
</h2>
|
||||
</div>
|
||||
<div className="relative mt-5 mb-10 h-40 w-[40rem]">
|
||||
{/* Gradients */}
|
||||
<div className="absolute inset-x-20 top-0 h-[2px] w-3/4 bg-gradient-to-r from-transparent via-primary to-transparent blur-sm" />
|
||||
<div className="absolute inset-x-20 top-0 h-px w-3/4 bg-gradient-to-r from-transparent via-primary to-transparent" />
|
||||
<div className="absolute inset-x-60 top-0 h-[5px] w-1/4 bg-gradient-to-r from-transparent via-secondary to-transparent blur-sm" />
|
||||
<div className="absolute inset-x-60 top-0 h-px w-1/4 bg-gradient-to-r from-transparent via-secondary to-transparent" />
|
||||
|
||||
{/* Core component */}
|
||||
<SparklesCore
|
||||
background="transparent"
|
||||
minSize={0.4}
|
||||
maxSize={1}
|
||||
particleDensity={500}
|
||||
className="h-full w-full"
|
||||
particleColor="#FFFFFF"
|
||||
/>
|
||||
|
||||
{/* Radial Gradient to prevent sharp edges */}
|
||||
<div className="absolute inset-0 h-full w-full bg-background [mask-image:radial-gradient(350px_130px_at_top,transparent_20%,white)]"></div>
|
||||
</div>
|
||||
|
||||
<p className="text-body-sm mb-6 text-center font-medium leading-[var(--line-height-body)] text-muted-foreground">
|
||||
ویژگیهای کلیدی:
|
||||
</p>
|
||||
|
||||
<div className="mx-auto grid w-full max-w-5xl grid-cols-1 gap-15 text-right md:grid-cols-2 md:text-start lg:grid-cols-3">
|
||||
{features.map((feature, index) => {
|
||||
const IconComponent = feature.icon;
|
||||
return (
|
||||
<div
|
||||
key={index}
|
||||
className="flex min-h-[140px] flex-row-reverse gap-4 rounded-lg border border-border/50 bg-card/30 p-4 transition-colors hover:bg-card/50 dark:border-primary/10 dark:bg-card/20 dark:hover:bg-card/30 md:flex-row"
|
||||
>
|
||||
<IconComponent className="mt-0.5 w-12 shrink-0 stroke-1 text-primary" />
|
||||
<div className="min-w-0 space-y-2">
|
||||
<h4 className="text-heading-4 font-medium leading-[var(--line-height-heading)] text-foreground">{feature.title}</h4>
|
||||
<p className="text-body-sm leading-[var(--line-height-body)] text-muted-foreground">
|
||||
{feature.description}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Feature294 };
|
||||
@@ -0,0 +1,136 @@
|
||||
"use client";
|
||||
|
||||
import { ArrowRight, ChevronDown } from "lucide-react";
|
||||
import { useEffect, useState } from "react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import type { CarouselApi } from "@/components/ui/carousel";
|
||||
import {
|
||||
Carousel,
|
||||
CarouselContent,
|
||||
CarouselItem,
|
||||
} from "@/components/ui/carousel";
|
||||
|
||||
const features = [
|
||||
{
|
||||
id: "feature-1",
|
||||
title: "Feature 1",
|
||||
description:
|
||||
"Nam vitae molestie arcu. Quisque eu libero orci. Aliquam imperdiet magna nec massa consectetur, id interdum ante congue.",
|
||||
href: "#",
|
||||
image: "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/placeholder-1.svg",
|
||||
},
|
||||
{
|
||||
id: "feature-2",
|
||||
title: "Feature 2",
|
||||
description:
|
||||
"Nam vitae molestie arcu. Quisque eu libero orci. Aliquam imperdiet magna nec massa consectetur, id interdum ante congue.",
|
||||
href: "#",
|
||||
image: "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/placeholder-2.svg",
|
||||
},
|
||||
{
|
||||
id: "feature-3",
|
||||
title: "Feature 3",
|
||||
description:
|
||||
"Nam vitae molestie arcu. Quisque eu libero orci. Aliquam imperdiet magna nec massa consectetur, id interdum ante congue.",
|
||||
href: "#",
|
||||
image: "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/placeholder-3.svg",
|
||||
},
|
||||
];
|
||||
|
||||
interface FeatureCarouselGridProps {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const FeatureCarouselGrid = ({ className }: FeatureCarouselGridProps) => {
|
||||
const [selection, setSelection] = useState(0);
|
||||
const [carouselApi, setCarouselApi] = useState<CarouselApi>();
|
||||
useEffect(() => {
|
||||
if (!carouselApi) {
|
||||
return;
|
||||
}
|
||||
carouselApi.scrollTo(selection);
|
||||
}, [carouselApi, selection]);
|
||||
useEffect(() => {
|
||||
if (!carouselApi) {
|
||||
return;
|
||||
}
|
||||
const updateSelection = () => {
|
||||
setSelection(carouselApi.selectedScrollSnap());
|
||||
};
|
||||
carouselApi.on("select", updateSelection);
|
||||
return () => {
|
||||
carouselApi.off("select", updateSelection);
|
||||
};
|
||||
}, [carouselApi]);
|
||||
return (
|
||||
<section className={cn("py-32", className)}>
|
||||
<div className="container mx-auto">
|
||||
<div className="flex flex-col gap-8 md:flex-row-reverse">
|
||||
<div className="aspect-5/6 overflow-clip rounded-3xl bg-accent">
|
||||
<Carousel
|
||||
setApi={setCarouselApi}
|
||||
className="h-full w-full [&>div]:h-full"
|
||||
>
|
||||
<CarouselContent className="mx-0 h-full w-full">
|
||||
{features.map((feature) => (
|
||||
<CarouselItem key={feature.id} className="px-0">
|
||||
<img
|
||||
src={feature.image}
|
||||
alt={feature.title}
|
||||
className="h-full w-full object-cover object-center"
|
||||
/>
|
||||
</CarouselItem>
|
||||
))}
|
||||
</CarouselContent>
|
||||
</Carousel>
|
||||
</div>
|
||||
<div className="flex shrink-0 flex-col md:w-1/2 md:pr-8 lg:pr-24 lg:text-left 2xl:pr-32">
|
||||
<h2 className="text-heading-2 mb-6 font-semibold text-pretty">
|
||||
Features
|
||||
</h2>
|
||||
<p className="text-body mb-16 leading-relaxed text-muted-foreground">
|
||||
Lorem ipsum dolor sit amet consectetur adipisicing elit. Elig
|
||||
doloremque mollitia fugiat omnis! Porro facilis quo animi
|
||||
consequatur. Explicabo.
|
||||
</p>
|
||||
<ul className="space-y-2">
|
||||
{features.map((feature, i) => (
|
||||
<li
|
||||
key={feature.id}
|
||||
className="group relative w-full cursor-pointer px-6 py-3 transition data-open:bg-accent"
|
||||
data-open={selection === i ? "true" : undefined}
|
||||
onClick={() => setSelection(i)}
|
||||
>
|
||||
<div className="flex items-center justify-between gap-x-2">
|
||||
<div className="text-body-sm font-semibold text-accent-foreground">
|
||||
{feature.title}
|
||||
</div>
|
||||
<div className="flex size-8 items-center justify-center rounded-full bg-accent text-accent-foreground group-hover:bg-primary group-hover:text-primary-foreground group-data-open:bg-primary group-data-open:text-primary-foreground">
|
||||
<ChevronDown className="size-4 shrink-0 transition-transform duration-200 group-data-open:rotate-180" />
|
||||
</div>
|
||||
</div>
|
||||
<div className="text-body-sm hidden font-medium group-data-open:block">
|
||||
<p className="my-4 text-muted-foreground lg:my-6">
|
||||
{feature.description}
|
||||
</p>
|
||||
<a
|
||||
href="#"
|
||||
className="group/link text-body-sm flex items-center pb-3 text-accent-foreground"
|
||||
>
|
||||
Learn more{" "}
|
||||
<ArrowRight className="ml-2 size-4 transition-transform group-hover/link:translate-x-1" />
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { FeatureCarouselGrid };
|
||||
@@ -0,0 +1,170 @@
|
||||
"use client";
|
||||
|
||||
import { ChevronUp } from "lucide-react";
|
||||
import React, { useState, useEffect } from "react";
|
||||
import Link from "next/link";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
import { useContent } from "@/components/layout/content-provider";
|
||||
|
||||
import type { CarouselApi } from "@/components/ui/carousel";
|
||||
import {
|
||||
Carousel,
|
||||
CarouselContent,
|
||||
CarouselItem,
|
||||
CarouselNext,
|
||||
CarouselPrevious,
|
||||
} from "@/components/ui/carousel";
|
||||
|
||||
const MOBILE_BREAKPOINT = 768;
|
||||
const AUTOPLAY_DELAY_MS = 3200;
|
||||
|
||||
const FeatureCarousel = () => {
|
||||
const content = useContent();
|
||||
const { featureCarousel } = content.pages.home;
|
||||
const carouselItems = featureCarousel.items;
|
||||
|
||||
const [openCardIndex, setOpenCardIndex] = useState<number | null>(null);
|
||||
const [isMobile, setIsMobile] = useState(false);
|
||||
const [carouselApi, setCarouselApi] = useState<CarouselApi | null>(null);
|
||||
|
||||
useEffect(() => {
|
||||
const mq = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
||||
const handler = () => setIsMobile(mq.matches);
|
||||
handler();
|
||||
mq.addEventListener("change", handler);
|
||||
return () => mq.removeEventListener("change", handler);
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
if (!isMobile || !carouselApi) return;
|
||||
const timer = setInterval(() => {
|
||||
carouselApi.scrollNext();
|
||||
}, AUTOPLAY_DELAY_MS);
|
||||
return () => clearInterval(timer);
|
||||
}, [isMobile, carouselApi]);
|
||||
|
||||
const handleCardClick = (index: number) => {
|
||||
if (!isMobile) return;
|
||||
setOpenCardIndex((prev) => (prev === index ? null : index));
|
||||
};
|
||||
|
||||
return (
|
||||
<section id="rahavarha" className="py-32">
|
||||
<div className="relative container mx-auto max-w-7xl px-6">
|
||||
<h2 className="text-heading-2 z-10 mb-10 text-center font-semibold tracking-tight text-foreground">
|
||||
{featureCarousel.heading}
|
||||
</h2>
|
||||
|
||||
<Carousel
|
||||
opts={{
|
||||
align: "center",
|
||||
loop: true,
|
||||
duration: 20,
|
||||
}}
|
||||
setApi={setCarouselApi}
|
||||
className="w-full"
|
||||
dir="ltr"
|
||||
>
|
||||
<CarouselContent className="py-5">
|
||||
{carouselItems.map((item, index) => (
|
||||
<CarouselItem
|
||||
key={index}
|
||||
className="text-background select-none md:basis-1/2 lg:basis-1/3 dark:text-foreground"
|
||||
>
|
||||
<DottedDiv className="group h-150 w-full mx-auto p-4">
|
||||
<div
|
||||
className={cn(
|
||||
"group/card relative h-full w-full bg-muted/50 p-4 transition-colors duration-300 ease-out group-hover:bg-muted",
|
||||
isMobile && "cursor-pointer"
|
||||
)}
|
||||
data-open={openCardIndex === index}
|
||||
onClick={() => handleCardClick(index)}
|
||||
role={isMobile ? "button" : undefined}
|
||||
aria-expanded={isMobile ? openCardIndex === index : undefined}
|
||||
>
|
||||
<div className="relative h-full w-full overflow-hidden rounded-3xl">
|
||||
<img
|
||||
src={item.imageSrc}
|
||||
alt={item.title}
|
||||
className="h-full w-full object-cover transition-transform duration-500 ease-out group-hover:scale-105 group-active:scale-105 md:group-hover:scale-105 md:group-active:scale-105"
|
||||
/>
|
||||
{/* Overlay: hover on desktop, open state on mobile */}
|
||||
<div
|
||||
className={cn(
|
||||
"absolute inset-0 bg-black/0 backdrop-blur-none transition-all duration-300 ease-out",
|
||||
"md:group-hover:bg-black/50 md:group-hover:backdrop-blur-md md:group-active:bg-black/50 md:group-active:backdrop-blur-md",
|
||||
"max-md:group-data-[open=true]/card:bg-black/50 max-md:group-data-[open=true]/card:backdrop-blur-md"
|
||||
)}
|
||||
aria-hidden
|
||||
/>
|
||||
|
||||
{/* Text overlay */}
|
||||
<div
|
||||
className={cn(
|
||||
"absolute inset-4 -ml-4 flex flex-col items-center justify-between p-6 sm:p-8 opacity-0 translate-y-4 transition-all duration-300 ease-out",
|
||||
"md:group-hover:opacity-100 md:group-hover:translate-y-0 md:group-active:opacity-100 md:group-active:translate-y-0",
|
||||
"max-md:group-data-[open=true]/card:opacity-100 max-md:group-data-[open=true]/card:translate-y-0"
|
||||
)}
|
||||
>
|
||||
<div className="flex flex-1 flex-col items-center justify-center pointer-events-none">
|
||||
<h3 className="text-heading-3 text-center font-semibold tracking-tight text-background dark:text-foreground">
|
||||
{item.title}
|
||||
</h3>
|
||||
<div className="mx-auto mt-2 h-1 w-6 rounded-full bg-background/90 dark:bg-foreground/90" />
|
||||
<p className="text-body-sm mt-6 max-w-sm px-1 text-center leading-relaxed tracking-tight text-background/90 dark:text-foreground/90">
|
||||
{item.description}
|
||||
</p>
|
||||
</div>
|
||||
<Link
|
||||
href={item.link}
|
||||
onClick={(e) => e.stopPropagation()}
|
||||
className="pointer-events-auto group/cta mb-2 flex cursor-pointer flex-col items-center justify-center transition-transform duration-300 ease-out group-hover/cta:-translate-y-1"
|
||||
>
|
||||
<ChevronUp
|
||||
size={28}
|
||||
className="text-background dark:text-foreground"
|
||||
/>
|
||||
<p className="text-body mt-1 font-medium tracking-tight text-background dark:text-foreground">
|
||||
{featureCarousel.viewDetails}
|
||||
</p>
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</DottedDiv>
|
||||
</CarouselItem>
|
||||
))}
|
||||
</CarouselContent>
|
||||
|
||||
<div className="mt-5 flex justify-end gap-3">
|
||||
<CarouselPrevious className="static size-12" />
|
||||
<CarouselNext variant="default" className="static size-12" />
|
||||
</div>
|
||||
</Carousel>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { FeatureCarousel };
|
||||
|
||||
const DottedDiv = ({
|
||||
children,
|
||||
className,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
className?: string;
|
||||
}) => (
|
||||
<div className={cn("relative", className)}>
|
||||
<div className="absolute top-4 -left-[28px] h-[1.5px] w-[100%] bg-muted" />
|
||||
<div className="absolute bottom-4 -left-[28px] h-[1.5px] w-[100%] bg-muted" />
|
||||
<div className="absolute -top-25 left-4 h-[130%] w-[1.5px] bg-muted" />
|
||||
<div className="absolute -top-25 right-4 h-[130%] w-[1.5px] bg-muted" />
|
||||
<div className="absolute top-[12.5px] left-[12.5px] z-10 size-2 rounded-full bg-foreground" />
|
||||
<div className="absolute top-[12.5px] right-[12.5px] z-10 size-2 rounded-full bg-foreground" />
|
||||
<div className="absolute bottom-[12.5px] left-[12.5px] z-10 size-2 rounded-full bg-foreground" />
|
||||
<div className="absolute right-[12.5px] bottom-[12.5px] z-10 size-2 rounded-full bg-foreground" />
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
@@ -0,0 +1,64 @@
|
||||
import {
|
||||
ShoppingCart,
|
||||
FileText,
|
||||
Settings,
|
||||
} from "lucide-react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
const features = [
|
||||
{
|
||||
id: "feature-1",
|
||||
title: "ثبت و مدیریت سفارش ها",
|
||||
description: "ثبت و پیگیری سفارشها",
|
||||
icon: ShoppingCart,
|
||||
},
|
||||
{
|
||||
id: "feature-2",
|
||||
title: "دسترسی کامل به گزارش گیری و معاملات",
|
||||
description: "گزارش گیری کامل و معاملات ۲۴ ساعته",
|
||||
icon: FileText,
|
||||
},
|
||||
{
|
||||
id: "feature-3",
|
||||
title: "پنل مدیریت با ابزارهای پیشرفته",
|
||||
description: "ابزارهای پیشرفته برای مدیریت ادمین و کنترل سیستم",
|
||||
icon: Settings,
|
||||
},
|
||||
];
|
||||
|
||||
interface FeatureGridWithIconsProps {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const FeatureGridWithIcons = ({ className }: FeatureGridWithIconsProps) => {
|
||||
return (
|
||||
<section className={cn("py-32", className)}>
|
||||
<div className="container mx-auto flex flex-col items-start gap-8 lg:gap-12 lg:px-16 xl:gap-32">
|
||||
<h2 className="text-heading-2 font-semibold md:shrink-0 lg:max-w-1/3 lg:max-w-3xl">
|
||||
یک پلتفرم اختصاصی برای مدیریت کامل معاملات
|
||||
</h3>
|
||||
<div className="grid w-full gap-6">
|
||||
{features.map((feature) => (
|
||||
<div
|
||||
key={feature.id}
|
||||
className="flex rounded-lg border border-border bg-accent p-6 md:p-8"
|
||||
>
|
||||
<feature.icon className="ml-3 size-6 shrink-0 lg:ml-6 lg:size-7 text-primary" />
|
||||
<div className="flex-1">
|
||||
<h4 className="text-heading-4 mb-2 font-medium text-accent-foreground">
|
||||
{feature.title}
|
||||
</h4>
|
||||
<p className="text-body-sm font-medium text-muted-foreground">
|
||||
{feature.description}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { FeatureGridWithIcons };
|
||||
@@ -0,0 +1,85 @@
|
||||
import {
|
||||
Infinity as InfinityIcon,
|
||||
MessagesSquare,
|
||||
Zap,
|
||||
ZoomIn,
|
||||
} from "lucide-react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
const feature = [
|
||||
{
|
||||
title: "Quality",
|
||||
description:
|
||||
"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quasi necessitatibus, culpa at vitae molestias tenetur explicabo.",
|
||||
icon: <ZoomIn className="size-6" />,
|
||||
},
|
||||
{
|
||||
title: "Innovation",
|
||||
description:
|
||||
"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quasi necessitatibus, culpa at vitae molestias tenetur explicabo.",
|
||||
icon: <Zap className="size-6" />,
|
||||
},
|
||||
{
|
||||
title: "Customer Support",
|
||||
description:
|
||||
"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quasi necessitatibus, culpa at vitae molestias tenetur explicabo.",
|
||||
icon: <MessagesSquare className="size-6" />,
|
||||
},
|
||||
{
|
||||
title: "Reliability",
|
||||
description:
|
||||
"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quasi necessitatibus, culpa at vitae molestias tenetur explicabo.",
|
||||
icon: <InfinityIcon className="size-6" />,
|
||||
},
|
||||
];
|
||||
|
||||
interface FeatureListSectionProps {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const FeatureListSection = ({ className }: FeatureListSectionProps) => {
|
||||
return (
|
||||
<section className={cn("py-32", className)}>
|
||||
<div className="container mx-auto">
|
||||
<div className="flex w-full flex-col items-center">
|
||||
<div className="flex flex-col items-center space-y-4 text-center sm:space-y-6 md:max-w-3xl md:text-center">
|
||||
<p className="text-caption font-medium text-muted-foreground">WHY WE ARE UNIQUE</p>
|
||||
<h2 className="text-heading-2 font-semibold">
|
||||
Bringing the best to you by the best in the industry
|
||||
</h2>
|
||||
|
||||
<p className="text-muted-foreground md:max-w-2xl">
|
||||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quasi
|
||||
necessitatibus, culpa at vitae molestias tenetur explicabo.
|
||||
Voluptatum amet architecto suscipit pariatur eligendi repellendus
|
||||
mollitia dolore unde sint?
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div className="mx-auto mt-20 grid max-w-5xl gap-6 md:grid-cols-2">
|
||||
{feature.map((feature, idx) => (
|
||||
<div
|
||||
className="flex flex-col justify-between rounded-lg bg-accent p-6 md:min-h-[300px] md:p-8"
|
||||
key={idx}
|
||||
>
|
||||
<span className="mb-6 flex size-11 items-center justify-center rounded-full bg-background">
|
||||
{feature.icon}
|
||||
</span>
|
||||
<div>
|
||||
<h3 className="text-heading-3 font-semibold">
|
||||
{feature.title}
|
||||
</h3>
|
||||
<p className="text-body-sm mt-2 leading-relaxed text-muted-foreground">
|
||||
{feature.description}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { FeatureListSection };
|
||||
@@ -0,0 +1,160 @@
|
||||
"use client";
|
||||
|
||||
import {
|
||||
ChartArea,
|
||||
ChartNoAxesCombined,
|
||||
Layout,
|
||||
Medal,
|
||||
Monitor,
|
||||
Target,
|
||||
TrendingUp,
|
||||
} from "lucide-react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
|
||||
interface FeaturePartnershipHighlightsProps {
|
||||
className?: string;
|
||||
/** مسیر تصویر وسط سکشن (مثلاً برای صفحه آبشده همکار) */
|
||||
centerImageSrc?: string;
|
||||
/** متن alt تصویر وسط */
|
||||
centerImageAlt?: string;
|
||||
}
|
||||
|
||||
const defaultCenterImage =
|
||||
"https://deifkwefumgah.cloudfront.net/shadcnblocks/block/placeholder-1.svg";
|
||||
|
||||
const FeaturePartnershipHighlights = ({
|
||||
className,
|
||||
centerImageSrc,
|
||||
centerImageAlt = "",
|
||||
}: FeaturePartnershipHighlightsProps) => {
|
||||
const leftCards = [
|
||||
{
|
||||
icon: Target,
|
||||
title: "راهکارهای هدفمند",
|
||||
description:
|
||||
"امکانات متناسب با چالشهای خاص پروژه شما برای رسیدن به نتیجه دقیق.",
|
||||
},
|
||||
{
|
||||
icon: Layout,
|
||||
title: "یکپارچهسازی روان",
|
||||
description:
|
||||
"ادغام بیدردسر با سامانههای موجود برای حفظ تداوم و عملکرد.",
|
||||
},
|
||||
{
|
||||
icon: ChartArea,
|
||||
title: "بینش داده لحظهای",
|
||||
description:
|
||||
"مانیتورینگ داده در زمان واقعی برای تصمیمگیری بهتر و تنظیم سریعتر.",
|
||||
},
|
||||
];
|
||||
|
||||
const rightCards = [
|
||||
{
|
||||
icon: TrendingUp,
|
||||
title: "رشد راهبردی",
|
||||
description:
|
||||
"ابزارهای راهبردی برای مقیاسپذیری کسبوکار و پاسخ به نیازهای در حال تحول بازار.",
|
||||
},
|
||||
{
|
||||
icon: ChartNoAxesCombined,
|
||||
title: "تحلیلهای پیشرفته",
|
||||
description:
|
||||
"بینش عمیقتر با تحلیلهای پیشرفته برای پیشتازی در تصمیمگیری.",
|
||||
},
|
||||
{
|
||||
icon: Monitor,
|
||||
title: "مدیریت یکپارچه",
|
||||
description:
|
||||
"مدیریت و کنترل متمرکز همه جنبههای گردش کار از یک پلتفرم.",
|
||||
},
|
||||
];
|
||||
|
||||
return (
|
||||
<section
|
||||
className={cn(
|
||||
"border-t border-border/50 bg-background py-16 sm:py-24 md:py-32",
|
||||
className
|
||||
)}
|
||||
dir="rtl"
|
||||
>
|
||||
<div className="container mx-auto flex flex-col items-center px-4 sm:px-6">
|
||||
<div className="mx-auto flex max-w-3xl flex-col items-center gap-4 text-center">
|
||||
<Badge
|
||||
variant="outline"
|
||||
className="flex items-center gap-1.5 px-2.5 py-1.5 text-caption font-medium"
|
||||
>
|
||||
<Medal className="h-auto w-4" />
|
||||
برجستهها
|
||||
</Badge>
|
||||
<h2 className="text-heading-2 font-semibold text-foreground">
|
||||
توانایی همکاری خود را آزاد کنید
|
||||
</h2>
|
||||
<p className="text-body text-muted-foreground">
|
||||
مزایای فرآیند سادهشده را تجربه کنید؛ طراحیشده برای بهرهوری و
|
||||
موفقیت بیشتر.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="mx-auto mt-10 w-full max-w-6xl grid gap-2.5 sm:mt-14 lg:grid-cols-3 lg:gap-4">
|
||||
{/* ستون چپ — موبایل: اول */}
|
||||
<div className="flex flex-col gap-2.5 lg:gap-3">
|
||||
{leftCards.map((card, index) => (
|
||||
<div
|
||||
key={index}
|
||||
className="flex flex-col gap-3 rounded-lg border border-border bg-card p-4 sm:p-6"
|
||||
>
|
||||
<div className="flex items-center gap-2.5">
|
||||
<span className="flex size-10 shrink-0 items-center justify-center rounded-md bg-muted sm:size-12">
|
||||
<card.icon className="h-5 w-5 sm:h-6 sm:w-6" />
|
||||
</span>
|
||||
<h3 className="text-heading-4 font-medium text-foreground">
|
||||
{card.title}
|
||||
</h3>
|
||||
</div>
|
||||
<p className="text-body-sm text-muted-foreground sm:text-body">
|
||||
{card.description}
|
||||
</p>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
|
||||
{/* تصویر وسط — فقط دسکتاپ */}
|
||||
<div className="hidden items-center justify-center py-4 lg:flex lg:py-0">
|
||||
<img
|
||||
src={centerImageSrc ?? defaultCenterImage}
|
||||
alt={centerImageAlt}
|
||||
className="h-full w-full rounded-lg object-cover opacity-90"
|
||||
/>
|
||||
</div>
|
||||
|
||||
{/* ستون راست — موبایل: دوم */}
|
||||
<div className="flex flex-col gap-2.5 lg:gap-3">
|
||||
{rightCards.map((card, index) => (
|
||||
<div
|
||||
key={index}
|
||||
className="flex flex-col gap-3 rounded-lg border border-border bg-card p-4 sm:p-6"
|
||||
>
|
||||
<div className="flex items-center gap-2.5">
|
||||
<span className="flex size-10 shrink-0 items-center justify-center rounded-md bg-muted sm:size-12">
|
||||
<card.icon className="h-5 w-5 sm:h-6 sm:w-6" />
|
||||
</span>
|
||||
<h3 className="text-heading-4 font-medium text-foreground">
|
||||
{card.title}
|
||||
</h3>
|
||||
</div>
|
||||
<p className="text-body-sm text-muted-foreground sm:text-body">
|
||||
{card.description}
|
||||
</p>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { FeaturePartnershipHighlights };
|
||||
@@ -0,0 +1,105 @@
|
||||
"use client";
|
||||
|
||||
import Image from "next/image";
|
||||
import { Circle } from "lucide-react";
|
||||
|
||||
import {
|
||||
Accordion,
|
||||
AccordionContent,
|
||||
AccordionItem,
|
||||
AccordionTrigger,
|
||||
} from "@/components/ui/accordion";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
interface FeatureProductDetailShowcaseProps {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const productDetails = {
|
||||
brand: "مستر دکور",
|
||||
name: "ویترین طلا",
|
||||
description:
|
||||
"نمایش حرفه ای محصولات طلا با تجربه کاربری روان، تمرکز بر اعتماد مشتری و مدیریت یکپارچه در یک صفحه محصول کامل.",
|
||||
image: "/assets/main-pic/product/sampleghaleb.png",
|
||||
features: [
|
||||
"نمایش شفاف اطلاعات محصول با ساختار خوانا",
|
||||
"هماهنگ با رابط کاربری مدرن و واکنش گرا",
|
||||
"تمرکز بر تجربه مشتری در تصمیم خرید",
|
||||
"آماده اتصال به جریان های فروش و مشاوره",
|
||||
],
|
||||
info: [
|
||||
{
|
||||
title: "معرفی محصول",
|
||||
content:
|
||||
"این قالب برای نمایش یک محصول به صورت کامل طراحی شده است تا مخاطب در همان نگاه اول، تصویر دقیق، ویژگی ها و ارزش پیشنهادی محصول را درک کند.",
|
||||
},
|
||||
{
|
||||
title: "مخاطب هدف",
|
||||
content:
|
||||
"مناسب فروشگاه ها و کسب وکارهای فعال در بازار طلا که به دنبال نمایش حرفه ای محصولات و افزایش اعتماد کاربران در صفحه محصول هستند.",
|
||||
},
|
||||
{
|
||||
title: "مزیت برای کسب وکار",
|
||||
content:
|
||||
"ساختار ساده و تمیز این بخش باعث می شود تمرکز کاربر روی ارزش محصول باقی بماند و فرآیند آشنایی تا اقدام کاربر کوتاه تر شود.",
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
const FeatureProductDetailShowcase = ({
|
||||
className,
|
||||
}: FeatureProductDetailShowcaseProps) => {
|
||||
return (
|
||||
<section className={cn("py-20 md:py-28", className)} dir="rtl">
|
||||
<div className="mx-auto w-full max-w-7xl px-4 sm:px-6">
|
||||
<div className="grid gap-8 rounded-3xl border border-border bg-card p-4 md:p-6 lg:grid-cols-2 lg:gap-12 lg:p-8">
|
||||
<div className="overflow-hidden rounded-2xl border border-border bg-muted/40">
|
||||
<Image
|
||||
src={productDetails.image}
|
||||
alt={productDetails.name}
|
||||
width={1200}
|
||||
height={900}
|
||||
className="h-full max-h-[560px] w-full object-cover"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="flex flex-col">
|
||||
<p className="text-caption font-medium text-muted-foreground">
|
||||
{productDetails.brand}
|
||||
</p>
|
||||
<h2 className="mt-2 text-heading-2 font-semibold text-foreground">
|
||||
{productDetails.name}
|
||||
</h2>
|
||||
<p className="mt-4 text-body text-muted-foreground">
|
||||
{productDetails.description}
|
||||
</p>
|
||||
|
||||
<ul className="mt-6 space-y-2">
|
||||
{productDetails.features.map((feature) => (
|
||||
<li key={feature} className="flex items-start gap-3 text-body-sm text-foreground">
|
||||
<Circle className="mt-1 h-2.5 w-2.5 fill-foreground stroke-foreground" />
|
||||
<span>{feature}</span>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
|
||||
<Accordion type="multiple" className="mt-8 w-full border-t border-border">
|
||||
{productDetails.info.map((item) => (
|
||||
<AccordionItem key={item.title} value={item.title}>
|
||||
<AccordionTrigger className="text-heading-4 font-medium text-foreground hover:no-underline">
|
||||
{item.title}
|
||||
</AccordionTrigger>
|
||||
<AccordionContent className="text-body-sm text-muted-foreground">
|
||||
{item.content}
|
||||
</AccordionContent>
|
||||
</AccordionItem>
|
||||
))}
|
||||
</Accordion>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { FeatureProductDetailShowcase };
|
||||
@@ -0,0 +1,28 @@
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
|
||||
interface FeatureTextSectionProps {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const FeatureTextSection = ({ className }: FeatureTextSectionProps) => {
|
||||
return (
|
||||
<section className={cn("py-32", className)}>
|
||||
<div className="container mx-auto">
|
||||
<div className="flex flex-col items-center text-center">
|
||||
<h2 className="text-heading-2 my-6 font-semibold text-pretty lg:max-w-3xl">
|
||||
روش سنتی، سرعت بازار امروز را ندارد
|
||||
</h2>
|
||||
<p className="text-body mb-8 leading-relaxed text-muted-foreground lg:max-w-3xl">
|
||||
در معاملات آبشده، تماسهای مکرر برای دریافت قیمت، هماهنگی خرید و فروش و ارسال مانده حساب به مشتریان، زمانبر و پرریسک است.
|
||||
ثبت دستی یا پراکنده اطلاعات، احتمال اختلاف حساب و سوءتفاهم را افزایش میدهد.
|
||||
</p>
|
||||
<Button variant="outline">بازاری که بر سرعت و دقت استوار است، نیاز به زیرساخت دقیق دارد.</Button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { FeatureTextSection };
|
||||
@@ -0,0 +1,149 @@
|
||||
"use client";
|
||||
|
||||
import { AnimatePresence, motion } from "framer-motion";
|
||||
import Image from "next/image";
|
||||
import { useMemo, useState } from "react";
|
||||
|
||||
import { ScrollableTabsList } from "@/components/shadcnblocks/scrollable-tabslist";
|
||||
import { ScrollBar } from "@/components/ui/scroll-area";
|
||||
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
interface FeatureWorkspaceTabsProps {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const tabItems = [
|
||||
{
|
||||
value: "display",
|
||||
label: "نمایش حرفهای",
|
||||
eyebrow: "ویترین و استند",
|
||||
title: "ویترینی بسازید که فروش را سریع تر می کند",
|
||||
description:
|
||||
"چیدمان اصولی استندها باعث می شود سرویس های طلا و جواهر بهتر دیده شوند، تصمیم خرید سریع تر گرفته شود ",
|
||||
image: "/assets/main-pic/feature/feature1.webp",
|
||||
stats: [
|
||||
{ value: "۳۵۰+", label: "پروژه اجراشده در فروشگاه" },
|
||||
{ value: "۱۵+", label: "سال تجربه در دکور طلافروشی" },
|
||||
],
|
||||
},
|
||||
{
|
||||
value: "identity",
|
||||
label: "هماهنگ با برند",
|
||||
eyebrow: "دکور مجموعه شما",
|
||||
title: "دکور هماهنگ با هویت برند طلافروشی شما",
|
||||
description:
|
||||
"روکش، متریال و جزئیات اجرایی را بر اساس سبک فروشگاه شما انتخاب می کنیم تا هر استند بخشی از هویت برندتان باشد و در ذهن مشتری ماندگار بماند.",
|
||||
image: "/assets/main-pic/feature/feature1.webp",
|
||||
stats: [
|
||||
{ value: "۹۳٪", label: "رضایت مشتریان در نظرسنجیها" },
|
||||
{ value: "۴۸ ساعت", label: "شروع پشتیبانی پس از تحویل" },
|
||||
],
|
||||
},
|
||||
{
|
||||
value: "lifecycle",
|
||||
label: "از مشاوره تا پس از فروش",
|
||||
eyebrow: "همراهی مستر دکور",
|
||||
title: "از مشاوره تا نصب، یک مسیر شفاف و قابل اتکا",
|
||||
description:
|
||||
"از بازدید و نیازسنجی تا تولید و نصب، برنامه زمان بندی مشخص ارائه می کنیم و بعد از تحویل نیز با خدمات پس از فروش کنار شما می مانیم .",
|
||||
image: "/assets/main-pic/feature/feature1.webp",
|
||||
stats: [
|
||||
{ value: "۱۰۰٪", label: "هماهنگی با ابعاد واقعی فضا" },
|
||||
{ value: "گارانتی", label: "تعهد کیفی روی اجرای سازه" },
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
const FeatureWorkspaceTabs = ({ className }: FeatureWorkspaceTabsProps) => {
|
||||
const [activeTab, setActiveTab] = useState("display");
|
||||
const activeItem = useMemo(
|
||||
() => tabItems.find((item) => item.value === activeTab) ?? tabItems[0],
|
||||
[activeTab],
|
||||
);
|
||||
|
||||
return (
|
||||
<section className={cn("section-blur-separator py-20 md:py-28", className)} dir="rtl">
|
||||
<div className="mx-auto flex w-full max-w-7xl justify-center px-4 sm:px-6">
|
||||
<Tabs
|
||||
value={activeTab}
|
||||
onValueChange={setActiveTab}
|
||||
defaultValue="display"
|
||||
className="mx-auto grid w-full max-w-6xl grid-cols-1 gap-8 lg:grid-cols-2 lg:items-center xl:gap-20"
|
||||
>
|
||||
<div className="flex flex-col-reverse items-center justify-between gap-8 text-center lg:flex-col lg:text-center">
|
||||
<div>
|
||||
<AnimatePresence mode="wait" initial={false}>
|
||||
<motion.div
|
||||
key={activeItem.value}
|
||||
initial={{ opacity: 0, y: 12 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
exit={{ opacity: 0, y: -10 }}
|
||||
transition={{ duration: 0.35, ease: "easeOut" }}
|
||||
>
|
||||
<TabsContent
|
||||
value={activeItem.value}
|
||||
forceMount
|
||||
className="mt-0 flex flex-col items-center gap-6"
|
||||
>
|
||||
<span className="text-caption font-medium text-muted-foreground">
|
||||
{activeItem.eyebrow}
|
||||
</span>
|
||||
<div className="flex max-w-xl flex-col gap-4">
|
||||
<h2 className="text-heading-2 font-semibold text-foreground">
|
||||
{activeItem.title}
|
||||
</h2>
|
||||
<div className="tone-gradient-line" aria-hidden />
|
||||
<p className="text-body text-muted-foreground">{activeItem.description}</p>
|
||||
</div>
|
||||
</TabsContent>
|
||||
</motion.div>
|
||||
</AnimatePresence>
|
||||
</div>
|
||||
|
||||
<ScrollableTabsList className="w-full">
|
||||
<TabsList className="mx-auto h-12 overflow-y-hidden rounded-full">
|
||||
{tabItems.map((item) => (
|
||||
<TabsTrigger
|
||||
key={item.value}
|
||||
value={item.value}
|
||||
className="h-full rounded-full px-4 py-2 transition-all duration-300"
|
||||
>
|
||||
{item.label}
|
||||
</TabsTrigger>
|
||||
))}
|
||||
</TabsList>
|
||||
<ScrollBar orientation="horizontal" className="h-2" />
|
||||
</ScrollableTabsList>
|
||||
</div>
|
||||
|
||||
<div className="relative">
|
||||
<AnimatePresence mode="wait" initial={false}>
|
||||
<motion.div
|
||||
key={activeItem.value}
|
||||
initial={{ opacity: 0, scale: 0.985 }}
|
||||
animate={{ opacity: 1, scale: 1 }}
|
||||
exit={{ opacity: 0, scale: 1.01 }}
|
||||
transition={{ duration: 0.4, ease: "easeOut" }}
|
||||
>
|
||||
<TabsContent value={activeItem.value} forceMount className="mt-0">
|
||||
<div className="relative overflow-hidden rounded-3xl">
|
||||
<Image
|
||||
src={activeItem.image}
|
||||
alt={activeItem.title}
|
||||
width={1200}
|
||||
height={900}
|
||||
className="h-[440px] w-full object-cover lg:h-[540px]"
|
||||
/>
|
||||
</div>
|
||||
</TabsContent>
|
||||
</motion.div>
|
||||
</AnimatePresence>
|
||||
</div>
|
||||
</Tabs>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { FeatureWorkspaceTabs };
|
||||
@@ -0,0 +1,74 @@
|
||||
"use client";
|
||||
|
||||
import { Card, CardHeader } from "@/components/ui/card";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { Settings2, Sparkles, Zap } from "lucide-react";
|
||||
import { ReactNode } from "react";
|
||||
import { useContent } from "@/components/layout/content-provider";
|
||||
|
||||
const featureIcons = [Zap, Settings2, Sparkles];
|
||||
|
||||
export default function FeaturesCardGrid() {
|
||||
const content = useContent();
|
||||
const { featuresCardGrid } = content.pages.home;
|
||||
const features = featuresCardGrid.items.map((item, i) => ({
|
||||
...item,
|
||||
icon: featureIcons[i] ?? Zap,
|
||||
}));
|
||||
|
||||
return (
|
||||
<section
|
||||
className="py-16 md:py-24 lg:py-32 border-t border-border/50"
|
||||
aria-labelledby="features-heading"
|
||||
>
|
||||
<div className="@container mx-auto max-w-5xl px-6" dir="rtl">
|
||||
<div className="text-center">
|
||||
<h2
|
||||
id="features-heading"
|
||||
className="text-heading-2 font-semibold leading-tight text-foreground"
|
||||
>
|
||||
{featuresCardGrid.heading}
|
||||
</h2>
|
||||
</div>
|
||||
<div className="@min-4xl:max-w-full @min-4xl:grid-cols-3 mx-auto mt-10 grid max-w-sm gap-6 md:mt-14 lg:gap-8">
|
||||
{features.map((item) => {
|
||||
const Icon = item.icon;
|
||||
return (
|
||||
<Card
|
||||
key={item.title}
|
||||
className="group border-border/80 bg-card text-center shadow-sm transition-shadow hover:shadow-md hover:border-primary/20"
|
||||
>
|
||||
<CardHeader className="pb-4">
|
||||
<CardDecorator>
|
||||
<Icon
|
||||
className="size-6 text-primary"
|
||||
aria-hidden
|
||||
/>
|
||||
</CardDecorator>
|
||||
<h3 className="mt-5 text-heading-5 font-medium text-foreground">
|
||||
{item.title}
|
||||
</h3>
|
||||
<p className="mt-2 text-body-sm leading-relaxed text-muted-foreground">
|
||||
{item.description}
|
||||
</p>
|
||||
</CardHeader>
|
||||
</Card>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
||||
const CardDecorator = ({ children }: { children: ReactNode }) => (
|
||||
<div className="mask-radial-from-40% mask-radial-to-60% relative mx-auto size-36 duration-200 [--color-border:color-mix(in_oklab,var(--color-primary)_0.12,transparent)] group-hover:[--color-border:color-mix(in_oklab,var(--color-primary)_0.2,transparent)]">
|
||||
<div
|
||||
aria-hidden
|
||||
className="absolute inset-0 bg-[linear-gradient(to_right,var(--color-border)_1px,transparent_1px),linear-gradient(to_bottom,var(--color-border)_1px,transparent_1px)] bg-[size:24px_24px] opacity-80"
|
||||
/>
|
||||
<div className="bg-card border-border/60 absolute inset-0 m-auto flex size-12 items-center justify-center rounded-lg border shadow-sm">
|
||||
{children}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
@@ -0,0 +1,38 @@
|
||||
'use client'
|
||||
|
||||
import { Target, CheckCircle, Shield, Briefcase, Headphones, TrendingUp } from 'lucide-react'
|
||||
import { useContent } from '@/components/layout/content-provider'
|
||||
|
||||
const icons = [Target, CheckCircle, Shield, Briefcase, Headphones, TrendingUp]
|
||||
|
||||
export default function FeaturesIconGrid() {
|
||||
const content = useContent()
|
||||
const { featuresIconGrid } = content.pages.home
|
||||
|
||||
return (
|
||||
<section className="py-12 md:py-16 lg:py-20 border-t border-border/50">
|
||||
<div className="mx-auto max-w-5xl space-y-6 px-6 md:space-y-10">
|
||||
<div className="relative z-10 mx-auto max-w-xl space-y-4 text-center md:space-y-6">
|
||||
<h2 className="text-heading-2 text-balance font-semibold">{featuresIconGrid.heading}</h2>
|
||||
<p className="text-body leading-relaxed text-muted-foreground">{featuresIconGrid.description}</p>
|
||||
</div>
|
||||
|
||||
<div className="relative mx-auto grid max-w-4xl divide-x divide-y border border-border dark:border-primary/20 dark:divide-primary/10 *:p-12 sm:grid-cols-2 lg:grid-cols-3 *:transition-colors *:hover:bg-primary/5 dark:*:hover:bg-primary/5">
|
||||
{featuresIconGrid.items.map((item, index) => {
|
||||
const Icon = icons[index] ?? Target
|
||||
return (
|
||||
<div key={index} className="space-y-3">
|
||||
<div className="flex items-center gap-2">
|
||||
<Icon className="size-4 text-primary dark:text-primary" />
|
||||
<h4 className="text-heading-5 font-medium">{item}</h4>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
export default function FeaturesPrimary() {
|
||||
|
||||
return (
|
||||
<>
|
||||
<section className="relative py-12 md:py-16 lg:py-20">
|
||||
<div className="relative z-0 mx-auto max-w-5xl space-y-6 px-6 md:space-y-10 lg:space-y-12 dark:[--color-border:color-mix(in_oklab,var(--color-white)_10%,transparent)]">
|
||||
<div className="relative z-10 mx-auto max-w-2xl space-y-4 text-center">
|
||||
<h2 className="text-heading-2 font-semibold leading-tight">
|
||||
ما چه میکنیم؟
|
||||
</h2>
|
||||
<p className="text-body leading-relaxed text-muted-foreground">ما بهصورت تخصصی برای فعالان بازار طلا و فلزات گرانبها نرمافزار طراحی میکنیم.محصولات ما بر اساس نیاز عملیاتی این بازار توسعه یافتهاند، نه صرفاً بر اساس الگوهای عمومی نرمافزاری. سامانههای ما در حال حاضر توسط مجموعههای فعال بازار مورد استفاده قرار میگیرند و در شرایط واقعی معامله آزموده شدهاند.</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,127 @@
|
||||
"use client";
|
||||
|
||||
import Link from "next/link";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
type ProductCategory = {
|
||||
title: string;
|
||||
image: {
|
||||
src: string;
|
||||
alt: string;
|
||||
};
|
||||
summary: string;
|
||||
link: string;
|
||||
};
|
||||
|
||||
type ProductCategories2Props = {
|
||||
title?: string;
|
||||
productCategories?: ProductCategory[];
|
||||
className?: string;
|
||||
};
|
||||
|
||||
const PRODUCT_CATEGORIES = {
|
||||
title: "ما چه خدماتی ارائه میدیم؟",
|
||||
productCategories: [
|
||||
{
|
||||
title: "ویترین طلا",
|
||||
summary: "استندها و ملزوماتی برای نمایش لوکس سرویس های طلا با چیدمان حرفه ای",
|
||||
image: {
|
||||
src: "/assets/main-pic/service 1.png",
|
||||
alt: "",
|
||||
},
|
||||
link: "/product?category=vitrin-tala",
|
||||
},
|
||||
{
|
||||
title: "ویترین خردسال",
|
||||
summary: "چیدمان هدفمند برای نمایش امن و منظم محصولات خردسال",
|
||||
image: {
|
||||
src: "/assets/main-pic/service 2.jpeg",
|
||||
alt: "",
|
||||
},
|
||||
link: "/product?category=vitrin-khorde-sal",
|
||||
},
|
||||
{
|
||||
title: "ویترین جواهر",
|
||||
summary: "طراحی ویترین جواهر با تاکید بر درخشش، جزئیات و تجربه بصری مشتری",
|
||||
image: {
|
||||
src: "/assets/main-pic/service 3.jpeg",
|
||||
alt: "",
|
||||
},
|
||||
link: "/product?category=vitrin-javaher",
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
const ProductCategories2 = ({
|
||||
title = PRODUCT_CATEGORIES.title,
|
||||
productCategories = PRODUCT_CATEGORIES.productCategories,
|
||||
className,
|
||||
}: ProductCategories2Props) => {
|
||||
return (
|
||||
<section className={cn("py-20 md:py-24 lg:py-28", className)}>
|
||||
<div className="mx-auto w-full max-w-7xl px-4 sm:px-6">
|
||||
<div className="flex flex-col gap-10">
|
||||
<h2 className="text-heading-2 animate-in text-center font-semibold text-foreground duration-600 fade-in slide-in-from-bottom-6">
|
||||
{title}
|
||||
</h2>
|
||||
<div className="grid grid-cols-2 gap-x-2.5 gap-y-10 lg:grid-cols-3">
|
||||
{productCategories?.map((item, index) => (
|
||||
<div
|
||||
key={item.title}
|
||||
style={{
|
||||
animationDelay: `${100 * index}ms`,
|
||||
}}
|
||||
className="animate-out opacity-0 duration-700 fade-in-100 fill-mode-forwards"
|
||||
>
|
||||
<ProductCategoryCard {...item} />
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
const ProductCategoryCard = ({
|
||||
title,
|
||||
image,
|
||||
summary,
|
||||
link,
|
||||
}: ProductCategory) => {
|
||||
return (
|
||||
<div className="relative isolate h-full">
|
||||
<div className="relative h-full overflow-hidden rounded-2xl border border-primary/30 bg-overlay/25 shadow-2xl backdrop-blur-2xl backdrop-saturate-150">
|
||||
<div
|
||||
aria-hidden
|
||||
className="pointer-events-none absolute -right-10 -top-10 z-0 h-36 w-36 rounded-full bg-primary/8 blur-3xl sm:h-44 sm:w-44"
|
||||
/>
|
||||
<div
|
||||
aria-hidden
|
||||
className="pointer-events-none absolute -bottom-10 -left-10 z-0 h-36 w-36 rounded-full bg-primary/8 blur-3xl sm:h-44 sm:w-44"
|
||||
/>
|
||||
<div className="relative z-10">
|
||||
<Link href={link} className="group/card flex flex-col gap-0">
|
||||
<div className="relative aspect-[1.363277259] w-full overflow-hidden rounded-t-2xl">
|
||||
<img
|
||||
src={image.src}
|
||||
alt={image.alt}
|
||||
className="absolute inset-0 h-full w-full origin-center object-cover object-center transition-transform duration-300 ease-out group-hover/card:scale-110 motion-reduce:transition-none motion-reduce:group-hover/card:scale-100"
|
||||
/>
|
||||
</div>
|
||||
<div className="space-y-1 px-3 py-4 sm:px-4 sm:pb-5">
|
||||
<h3 className="text-heading-4 text-center font-medium text-gold-300">
|
||||
{title}
|
||||
</h3>
|
||||
<p className="text-body-sm text-center text-muted-foreground">
|
||||
{summary}
|
||||
</p>
|
||||
</div>
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export { ProductCategories2 };
|
||||
@@ -0,0 +1,113 @@
|
||||
"use client";
|
||||
|
||||
import Image from "next/image";
|
||||
import { useState } from "react";
|
||||
|
||||
import {
|
||||
Carousel,
|
||||
CarouselContent,
|
||||
CarouselItem,
|
||||
CarouselNext,
|
||||
CarouselPrevious,
|
||||
} from "@/components/ui/carousel";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
export interface ProductDetailGalleryProps {
|
||||
images: { src: string; alt: string }[];
|
||||
className?: string;
|
||||
}
|
||||
|
||||
/** موبایل: کاروسل با زوم هاور. دسکتاپ: تصویر بزرگ + ردیف بندانگشتی؛ کلیک بندانگشتی → جابهجایی به نمای بزرگ */
|
||||
export function ProductDetailGallery({ images, className }: ProductDetailGalleryProps) {
|
||||
const [activeIndex, setActiveIndex] = useState(0);
|
||||
|
||||
if (!images.length) return null;
|
||||
|
||||
const safeIndex = Math.min(activeIndex, images.length - 1);
|
||||
const main = images[safeIndex] ?? images[0]!;
|
||||
|
||||
const zoomImageClass =
|
||||
"object-cover object-center transition-transform duration-500 ease-out motion-safe:group-hover:scale-[1.04]";
|
||||
|
||||
return (
|
||||
<div className={cn("w-full min-w-0", className)} dir="rtl">
|
||||
{/* موبایل: کاروسل */}
|
||||
<div className="md:hidden">
|
||||
<Carousel
|
||||
opts={{
|
||||
breakpoints: {
|
||||
"(min-width: 768px)": {
|
||||
active: false,
|
||||
},
|
||||
},
|
||||
}}
|
||||
>
|
||||
<CarouselContent className="gap-4">
|
||||
{images.map((img, index) => (
|
||||
<CarouselItem className="md:p-0" key={`${img.src}-m-${index}`}>
|
||||
<div className="group relative aspect-square overflow-hidden rounded-lg bg-muted/40">
|
||||
<Image
|
||||
src={img.src}
|
||||
alt={img.alt}
|
||||
fill
|
||||
sizes="100vw"
|
||||
className={zoomImageClass}
|
||||
priority={index === 0}
|
||||
/>
|
||||
</div>
|
||||
</CarouselItem>
|
||||
))}
|
||||
</CarouselContent>
|
||||
<div className="md:hidden">
|
||||
<CarouselPrevious className="start-4" />
|
||||
<CarouselNext className="end-4" />
|
||||
</div>
|
||||
</Carousel>
|
||||
</div>
|
||||
|
||||
{/* دسکتاپ: بزرگ + بندانگشتیها */}
|
||||
<div className="hidden flex-col gap-4 md:flex xl:gap-5">
|
||||
<div className="group relative aspect-square w-full overflow-hidden rounded-lg bg-muted/40">
|
||||
<Image
|
||||
src={main.src}
|
||||
alt={main.alt}
|
||||
fill
|
||||
sizes="(min-width: 1280px) 40vw, (min-width: 768px) 45vw, 50vw"
|
||||
className={zoomImageClass}
|
||||
priority={safeIndex === 0}
|
||||
/>
|
||||
</div>
|
||||
|
||||
{images.length > 1 ? (
|
||||
<div className="grid grid-cols-3 gap-4 xl:gap-5">
|
||||
{images.map((img, index) => {
|
||||
if (index === safeIndex) return null;
|
||||
return (
|
||||
<button
|
||||
type="button"
|
||||
key={`thumb-${img.src}-${index}`}
|
||||
onClick={() => setActiveIndex(index)}
|
||||
className={cn(
|
||||
"group/thumb relative aspect-square w-full overflow-hidden rounded-lg bg-muted",
|
||||
"ring-offset-2 ring-offset-background transition-[box-shadow,transform]",
|
||||
"hover:ring-2 hover:ring-primary/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary",
|
||||
"active:scale-[0.98]",
|
||||
)}
|
||||
aria-label={`نمایش تصویر ${index + 1} در اندازه بزرگ`}
|
||||
>
|
||||
<Image
|
||||
src={img.src}
|
||||
alt=""
|
||||
fill
|
||||
sizes="(min-width: 1280px) 14vw, 18vw"
|
||||
className="object-cover object-center transition-transform duration-500 ease-out motion-safe:group-hover/thumb:scale-[1.03]"
|
||||
/>
|
||||
</button>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
) : null}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
"use client";
|
||||
|
||||
import type { ProductDetail } from "@/lib/catalog-products";
|
||||
import {
|
||||
Accordion,
|
||||
AccordionContent,
|
||||
AccordionItem,
|
||||
AccordionTrigger,
|
||||
} from "@/components/ui/accordion";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
export interface ProductDetailSpecsProps {
|
||||
product: ProductDetail;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* بلوک توضیحات محصول: نام، رنگ، متریال، توضیح و ویژگیها
|
||||
* (الهام از product-detail2 بدون قیمت، فرم، تعداد و دکمه خرید)
|
||||
*/
|
||||
export function ProductDetailSpecs({ product, className }: ProductDetailSpecsProps) {
|
||||
return (
|
||||
<div className={cn("flex min-w-0 flex-col gap-5", className)} dir="rtl">
|
||||
<h1 className="text-heading-1 font-bold text-2xl text-foreground">{product.name}</h1>
|
||||
|
||||
<div className="flex flex-col gap-1">
|
||||
<span className="text-caption font-medium text-muted-foreground">رنگ</span>
|
||||
<span className="text-body text-foreground">{product.color}</span>
|
||||
</div>
|
||||
|
||||
<div className="flex flex-col gap-1">
|
||||
<span className="text-caption font-medium text-muted-foreground">متریال</span>
|
||||
<span className="text-body text-foreground">{product.material}</span>
|
||||
</div>
|
||||
|
||||
<p className="text-body text-muted-foreground leading-relaxed">{product.description}</p>
|
||||
|
||||
<div className="flex flex-col gap-3">
|
||||
<h2 className="text-heading-2 font-semibold text-foreground text-xl">ویژگیهای محصول</h2>
|
||||
<Accordion type="multiple" className="w-full">
|
||||
{product.features.map((item, index) => (
|
||||
<AccordionItem key={`${item.title}-${index}`} value={`feature-${index}`}>
|
||||
<AccordionTrigger className="text-start hover:no-underline">
|
||||
<h3 className="text-heading-4 font-medium text-foreground text-lg">{item.title}</h3>
|
||||
</AccordionTrigger>
|
||||
<AccordionContent>
|
||||
<p className="text-body text-muted-foreground leading-relaxed">{item.content}</p>
|
||||
</AccordionContent>
|
||||
</AccordionItem>
|
||||
))}
|
||||
</Accordion>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
"use client";
|
||||
|
||||
import type { ProductDetail } from "@/lib/catalog-products";
|
||||
import { ProductDetailGallery } from "@/components/sections/feature/product-detail-gallery";
|
||||
import { ProductDetailSpecs } from "@/components/sections/feature/product-detail-specs";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
export interface ProductDetailViewProps {
|
||||
product: ProductDetail;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export function ProductDetailView({ product, className }: ProductDetailViewProps) {
|
||||
return (
|
||||
<section className={cn("py-16 md:py-24 lg:py-28", className)} dir="rtl">
|
||||
<div className="mx-auto w-full max-w-7xl px-4 sm:px-6">
|
||||
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2 lg:gap-12 lg:items-start">
|
||||
<ProductDetailGallery key={product.id} images={product.gallery} />
|
||||
<div className="lg:sticky lg:top-24">
|
||||
<ProductDetailSpecs product={product} />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,355 @@
|
||||
"use client";
|
||||
|
||||
import Image from "next/image";
|
||||
import Link from "next/link";
|
||||
import { Eye } from "lucide-react";
|
||||
import { useEffect, useMemo, useState } from "react";
|
||||
|
||||
import { AspectRatio } from "@/components/ui/aspect-ratio";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { Card, CardContent, CardHeader } from "@/components/ui/card";
|
||||
import type { ProductCategory, ProductItem } from "@/lib/catalog-products";
|
||||
import { CATALOG_PRODUCTS } from "@/lib/catalog-products";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
interface CategorySectionMeta {
|
||||
category: ProductCategory;
|
||||
categoryHeading: string;
|
||||
promo: {
|
||||
kicker: string;
|
||||
title: string;
|
||||
ctaLabel: string;
|
||||
href: string;
|
||||
image: string;
|
||||
imageAlt: string;
|
||||
};
|
||||
}
|
||||
|
||||
interface ProductList10CatalogProps {
|
||||
initialCategory?: string;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const CATEGORY_OPTIONS: Array<{ value: ProductCategory; label: string }> = [
|
||||
{ value: "vitrin-tala", label: "ویترین طلا" },
|
||||
{ value: "vitrin-khorde-sal", label: "ویترین خردسال" },
|
||||
{ value: "vitrin-javaher", label: "ویترین جواهر" },
|
||||
{ value: "mankan-service", label: "مانکن سرویس" },
|
||||
{ value: "mankan-ring", label: "مانکن انگشتر" },
|
||||
{ value: "mankan-earring", label: "مانکن گوشواره" },
|
||||
];
|
||||
|
||||
const CATEGORY_SECTIONS: CategorySectionMeta[] = [
|
||||
{
|
||||
category: "vitrin-tala",
|
||||
categoryHeading: "ویترین طلا",
|
||||
promo: {
|
||||
kicker: "خط ویترین طلا",
|
||||
title: "استندها و ویترین هایی برای نمایش حرفه ای سرویس های طلا با چیدمان لوکس و منظم.",
|
||||
ctaLabel: "مشاهده این دسته",
|
||||
href: "/product?category=vitrin-tala",
|
||||
image: "/assets/main-pic/product/card-header/محصول 1.jpg",
|
||||
imageAlt: "نمونه ویترین طلا",
|
||||
},
|
||||
},
|
||||
{
|
||||
category: "vitrin-khorde-sal",
|
||||
categoryHeading: "ویترین خردسال",
|
||||
promo: {
|
||||
kicker: "ویترین خردسال",
|
||||
title: "چیدمان امن، کاربردی و چشم نواز برای بخش خردسال.",
|
||||
ctaLabel: "مشاهده این دسته",
|
||||
href: "/product?category=vitrin-khorde-sal",
|
||||
image: "/assets/main-pic/product/card-header/محصول 2.jpg",
|
||||
imageAlt: "نمونه ویترین خردسال",
|
||||
},
|
||||
},
|
||||
{
|
||||
category: "vitrin-javaher",
|
||||
categoryHeading: "ویترین جواهر",
|
||||
promo: {
|
||||
kicker: "ویترین جواهر",
|
||||
title: "نمایش جواهر با تاکید بر درخشش سنگ ها و ظرافت جزئیات.",
|
||||
ctaLabel: "مشاهده این دسته",
|
||||
href: "/product?category=vitrin-javaher",
|
||||
image: "/assets/main-pic/product/card-header/محصول 3.jpg",
|
||||
imageAlt: "نمونه ویترین جواهر",
|
||||
},
|
||||
},
|
||||
{
|
||||
category: "mankan-service",
|
||||
categoryHeading: "مانکن سرویس",
|
||||
promo: {
|
||||
kicker: "مانکن سرویس",
|
||||
title: "مانکن های تخصصی برای ارائه کامل سرویس و افزایش جذابیت ویترین.",
|
||||
ctaLabel: "مشاهده این دسته",
|
||||
href: "/product?category=mankan-service",
|
||||
image: "/assets/main-pic/product/card-header/2محصول 4.jpg",
|
||||
imageAlt: "نمونه مانکن سرویس",
|
||||
},
|
||||
},
|
||||
{
|
||||
category: "mankan-ring",
|
||||
categoryHeading: "مانکن انگشتر",
|
||||
promo: {
|
||||
kicker: "مانکن انگشتر",
|
||||
title: "مانکن انگشتر با زاویه دید درست برای نمایش بهتر نگین و فرم رکاب.",
|
||||
ctaLabel: "مشاهده این دسته",
|
||||
href: "/product?category=mankan-ring",
|
||||
image: "/assets/main-pic/product/card-header/محصول 2.jpg",
|
||||
imageAlt: "نمونه مانکن انگشتر",
|
||||
},
|
||||
},
|
||||
{
|
||||
category: "mankan-earring",
|
||||
categoryHeading: "مانکن گوشواره",
|
||||
promo: {
|
||||
kicker: "مانکن گوشواره",
|
||||
title: "مانکن گوشواره برای نمایش واضح تر مدل ها در ویترین های پرتعداد.",
|
||||
ctaLabel: "مشاهده این دسته",
|
||||
href: "/product?category=mankan-earring",
|
||||
image: "/assets/main-pic/product/card-header/محصول 1.jpg",
|
||||
imageAlt: "نمونه مانکن گوشواره",
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
const PRODUCTS: ProductItem[] = CATALOG_PRODUCTS;
|
||||
|
||||
/** هر ۶ محصول = دو ردیف × سه ستون در گرید ۵ ستونه کنار پروموی ۲×۲ */
|
||||
const PRODUCTS_PER_PROMO_CHUNK = 6;
|
||||
|
||||
function chunkItems<T>(items: T[], chunkSize: number): T[][] {
|
||||
if (chunkSize <= 0) return items.length ? [items] : [];
|
||||
const chunks: T[][] = [];
|
||||
for (let i = 0; i < items.length; i += chunkSize) {
|
||||
chunks.push(items.slice(i, i + chunkSize));
|
||||
}
|
||||
return chunks;
|
||||
}
|
||||
|
||||
function CatalogProductCard({ product }: { product: ProductItem }) {
|
||||
const href = `/product/${product.id}`;
|
||||
const quickViewHref = href;
|
||||
|
||||
return (
|
||||
<Card
|
||||
id={`p-${product.id}`}
|
||||
className="group relative block scroll-mt-28 rounded-none border-none bg-background p-0 shadow-none"
|
||||
>
|
||||
<CardContent className="p-0">
|
||||
<div className="relative overflow-hidden">
|
||||
<AspectRatio ratio={1} className="overflow-hidden rounded-xl border border-border bg-muted/30">
|
||||
<Image
|
||||
src={product.image}
|
||||
alt={product.name}
|
||||
fill
|
||||
sizes="(min-width: 1280px) 22vw, (min-width: 768px) 25vw, 50vw"
|
||||
className="object-cover object-center transition-transform duration-500 group-hover:scale-105"
|
||||
/>
|
||||
</AspectRatio>
|
||||
<div className="absolute inset-x-5 top-1/2 z-[60] hidden -translate-y-1/2 md:block">
|
||||
<div className="flex flex-col gap-2 opacity-0 duration-700 lg:translate-y-4 lg:group-hover:translate-y-0 lg:group-hover:opacity-100">
|
||||
<Button size="lg" variant="primary" className="relative z-20 w-full" asChild>
|
||||
<Link href={quickViewHref}>
|
||||
<Eye className="size-4 shrink-0" aria-hidden />
|
||||
<span>مشاهده سریع</span>
|
||||
</Link>
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<Link
|
||||
href={href}
|
||||
className="relative z-10 flex flex-col gap-1 pt-3 underline-offset-4 transition-colors hover:text-primary"
|
||||
aria-label={product.name}
|
||||
>
|
||||
<span className="text-caption font-medium text-primary">{product.categoryLabel}</span>
|
||||
<h3 className="text-heading-5 text-sm text-foreground group-hover:text-primary group-hover:underline">
|
||||
{product.name}
|
||||
</h3>
|
||||
</Link>
|
||||
</CardContent>
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
|
||||
function FeaturedPromotionCard({
|
||||
className,
|
||||
categoryHeading,
|
||||
kicker,
|
||||
title,
|
||||
ctaLabel,
|
||||
href,
|
||||
image,
|
||||
imageAlt,
|
||||
}: CategorySectionMeta["promo"] & { categoryHeading: string; className?: string }) {
|
||||
return (
|
||||
<Card
|
||||
className={cn(
|
||||
"relative flex w-full min-w-0 flex-col overflow-hidden rounded-xl border-none bg-muted bg-cover bg-center bg-no-repeat p-0 shadow-none",
|
||||
"lg:h-full lg:min-h-0",
|
||||
className,
|
||||
)}
|
||||
>
|
||||
<Image
|
||||
src={image}
|
||||
alt={imageAlt}
|
||||
fill
|
||||
className="object-cover object-center"
|
||||
sizes="(min-width: 1024px) 33vw, 100vw"
|
||||
/>
|
||||
<div className="absolute inset-0 bg-gradient-to-t from-background/95 via-background/55 to-transparent" />
|
||||
<CardHeader className="relative z-20 flex h-full min-h-0 flex-1 flex-col justify-end gap-2.5 p-10">
|
||||
<h2 className="text-heading-2 font-semibold text-foreground">{categoryHeading}</h2>
|
||||
<p className="text-caption font-medium text-primary">{kicker}</p>
|
||||
<p className="text-heading-3 font-semibold text-foreground">{title}</p>
|
||||
<div className="relative z-20 mt-5">
|
||||
<Button size="lg" variant="primary" asChild>
|
||||
<Link href={href}>{ctaLabel}</Link>
|
||||
</Button>
|
||||
</div>
|
||||
</CardHeader>
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
|
||||
export function ProductList10Catalog({ initialCategory, className }: ProductList10CatalogProps) {
|
||||
const validInitialCategory = CATEGORY_OPTIONS.some((item) => item.value === initialCategory)
|
||||
? (initialCategory as ProductCategory)
|
||||
: undefined;
|
||||
|
||||
const [selectedCategories, setSelectedCategories] = useState<ProductCategory[]>(
|
||||
validInitialCategory ? [validInitialCategory] : [],
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
if (validInitialCategory) {
|
||||
setSelectedCategories([validInitialCategory]);
|
||||
return;
|
||||
}
|
||||
setSelectedCategories([]);
|
||||
}, [validInitialCategory]);
|
||||
|
||||
const toggleCategory = (value: ProductCategory) => {
|
||||
setSelectedCategories((prev) =>
|
||||
prev.includes(value) ? prev.filter((item) => item !== value) : [...prev, value],
|
||||
);
|
||||
};
|
||||
|
||||
const visibleSections = useMemo(() => {
|
||||
return CATEGORY_SECTIONS.map((section) => {
|
||||
const items = PRODUCTS.filter((p) => {
|
||||
if (p.category !== section.category) return false;
|
||||
if (selectedCategories.length === 0) return true;
|
||||
return selectedCategories.includes(p.category);
|
||||
});
|
||||
return { ...section, items };
|
||||
}).filter((s) => s.items.length > 0);
|
||||
}, [selectedCategories]);
|
||||
|
||||
return (
|
||||
<section className={cn("py-16 md:py-24 lg:py-28", className)} dir="rtl">
|
||||
<div className="mx-auto w-full max-w-7xl px-4 sm:px-6">
|
||||
<div className="mb-10 text-center md:mb-14">
|
||||
<h1 className="text-heading-1 font-bold text-foreground">محصولات</h1>
|
||||
<p className="mx-auto mt-4 max-w-3xl text-body text-muted-foreground">
|
||||
مجموعه استندها و ملزومات دکور ویترین طلافروشی را بر اساس دسته بندی بررسی کنید و متناسب با نیاز فروشگاه خود،
|
||||
بهترین گزینه را برای نمایش حرفه ای سرویس های طلا و جواهر انتخاب کنید.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div
|
||||
className="border-border bg-card/40 rounded-2xl border p-4 sm:p-5"
|
||||
role="region"
|
||||
aria-label="فیلتر دستهبندی محصولات"
|
||||
>
|
||||
<div
|
||||
className="flex gap-2 overflow-x-auto pb-1 [-ms-overflow-style:none] [scrollbar-width:none] sm:flex-wrap sm:justify-center [&::-webkit-scrollbar]:hidden"
|
||||
dir="rtl"
|
||||
role="group"
|
||||
aria-label="انتخاب دسته برای فیلتر محصولات"
|
||||
>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setSelectedCategories([])}
|
||||
className={cn(
|
||||
"shrink-0 rounded-full border px-4 py-2 text-body-sm font-medium transition-colors",
|
||||
selectedCategories.length === 0
|
||||
? "border-primary bg-primary/15 text-foreground"
|
||||
: "border-border bg-background text-muted-foreground hover:border-primary/40 hover:text-foreground",
|
||||
)}
|
||||
>
|
||||
همه دستهها
|
||||
</button>
|
||||
{CATEGORY_OPTIONS.map((item) => {
|
||||
const active = selectedCategories.includes(item.value);
|
||||
return (
|
||||
<button
|
||||
key={item.value}
|
||||
type="button"
|
||||
onClick={() => toggleCategory(item.value)}
|
||||
className={cn(
|
||||
"shrink-0 rounded-full border px-4 py-2 text-body-sm font-medium transition-colors",
|
||||
active
|
||||
? "border-primary bg-primary/15 text-foreground"
|
||||
: "border-border bg-background text-muted-foreground hover:border-primary/40 hover:text-foreground",
|
||||
)}
|
||||
>
|
||||
{item.label}
|
||||
</button>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="mt-10 w-full min-w-0 md:mt-12">
|
||||
<div className="flex flex-col gap-5">
|
||||
{visibleSections.map((section) => {
|
||||
const itemChunks = chunkItems(section.items, PRODUCTS_PER_PROMO_CHUNK);
|
||||
return (
|
||||
<div key={section.category} className="flex flex-col gap-5">
|
||||
{itemChunks.map((chunk, chunkIndex) => {
|
||||
/* RTL: ستونهای ۱–۲ = سمت راست گرید، ۴–۵ = سمت چپ */
|
||||
const promoOnVisualRight = chunkIndex % 2 === 0;
|
||||
return (
|
||||
<div
|
||||
key={`${section.category}-chunk-${chunkIndex}`}
|
||||
className={cn(
|
||||
"flex flex-col gap-5",
|
||||
"lg:grid lg:grid-flow-dense lg:auto-rows-min lg:grid-cols-5 lg:items-stretch lg:gap-5",
|
||||
)}
|
||||
>
|
||||
<FeaturedPromotionCard
|
||||
className={cn(
|
||||
"w-full shrink-0 min-h-[18rem] sm:min-h-[20rem]",
|
||||
"lg:col-span-2 lg:row-span-2 lg:h-full lg:min-h-0 lg:w-auto",
|
||||
promoOnVisualRight ? "lg:col-start-1" : "lg:col-start-4",
|
||||
)}
|
||||
categoryHeading={section.categoryHeading}
|
||||
{...section.promo}
|
||||
/>
|
||||
<div className="grid min-w-0 grid-cols-2 gap-5 md:grid-cols-3 lg:contents">
|
||||
{chunk.map((product) => (
|
||||
<CatalogProductCard key={product.id} product={product} />
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
|
||||
{visibleSections.length === 0 ? (
|
||||
<div className="mt-8 rounded-2xl border border-border bg-card p-8 text-center">
|
||||
<h3 className="text-heading-4 font-medium text-foreground">محصولی پیدا نشد</h3>
|
||||
<p className="mt-2 text-body-sm text-muted-foreground">فیلتر دستهبندی را تغییر دهید یا همه دستهها را نمایش دهید.</p>
|
||||
</div>
|
||||
) : null}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
import { cn } from "@/lib/utils";
|
||||
import { Clock, ShoppingCart, Eye, FileText, ToggleLeft, Settings } from "lucide-react";
|
||||
|
||||
interface SolutionSectionProps {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export default function SolutionSection({ className }: SolutionSectionProps) {
|
||||
const features = [
|
||||
{
|
||||
icon: Clock,
|
||||
title: "نمایش قیمت لحظهای به مشتریان",
|
||||
description: "دسترسی آنی به آخرین قیمتهای بازار"
|
||||
},
|
||||
{
|
||||
icon: ShoppingCart,
|
||||
title: "ثبت و مدیریت سفارشها",
|
||||
description: "سیستم جامع ثبت و پیگیری سفارشها"
|
||||
},
|
||||
{
|
||||
icon: Eye,
|
||||
title: "مشاهده آنلاین مانده حساب هر مشتری",
|
||||
description: "دسترسی لحظهای به وضعیت حساب مشتریان"
|
||||
},
|
||||
{
|
||||
icon: FileText,
|
||||
title: "دسترسی به ریز کامل معاملات در هر ساعت از شبانهروز",
|
||||
description: "گزارشگیری دقیق و کامل از تمام معاملات"
|
||||
},
|
||||
{
|
||||
icon: ToggleLeft,
|
||||
title: "کنترل وضعیت بازار (باز / بسته)",
|
||||
description: "مدیریت وضعیت بازار به صورت لحظهای"
|
||||
},
|
||||
{
|
||||
icon: Settings,
|
||||
title: "پنل مدیریت پیشرفته برای ادمین",
|
||||
description: "ابزارهای کامل مدیریت و کنترل سیستم"
|
||||
}
|
||||
];
|
||||
|
||||
return (
|
||||
<section className={cn("py-16 md:py-24 lg:py-32", className)}>
|
||||
<div className="container mx-auto max-w-6xl px-6">
|
||||
<div className="flex flex-col items-start gap-8 lg:gap-12 lg:px-16 xl:gap-32">
|
||||
<h2 className="text-heading-2 font-semibold md:shrink-0 lg:max-w-1/3 lg:max-w-3xl">
|
||||
یک پلتفرم اختصاصی برای مدیریت کامل معاملات
|
||||
</h2>
|
||||
<div className="grid w-full gap-6 md:grid-cols-2">
|
||||
{features.map((feature, index) => {
|
||||
const Icon = feature.icon;
|
||||
return (
|
||||
<div
|
||||
key={index}
|
||||
className="flex rounded-lg border border-border bg-accent p-6 md:p-8"
|
||||
>
|
||||
<Icon className="mr-3 size-5 shrink-0 lg:mr-6 lg:size-6 text-primary" />
|
||||
<div>
|
||||
<div className="text-body-sm mb-3 h-5 font-semibold text-accent-foreground">
|
||||
{feature.title}
|
||||
</div>
|
||||
<div className="text-body-sm font-medium text-muted-foreground">
|
||||
{feature.description}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user