first project version mrDecor
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
import Image from "next/image";
|
||||
import Link from "next/link";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
|
||||
interface Hero174Props {
|
||||
pageHeading?: string;
|
||||
title?: string;
|
||||
description?: string;
|
||||
imageSrc?: string;
|
||||
imageAlt?: string;
|
||||
ctaLabel?: string;
|
||||
ctaHref?: string;
|
||||
}
|
||||
|
||||
const defaultProps: Required<Hero174Props> = {
|
||||
pageHeading: "مستر دکور",
|
||||
title: "طراحی و تولید استند ویترین طلافروشی برای فروش بیشتر",
|
||||
description:
|
||||
"مستر دکور، تامین کننده تخصصی استند و ملزومات دکور ویترین طلا و جواهر است؛ راهکاری که چیدمان فروشگاه شما را حرفه ای تر می کند و توجه مشتری را دقیقاً روی سرویس های شما نگه می دارد.",
|
||||
imageSrc: "/assets/main-pic/mr_decor-mainpic.jpg",
|
||||
imageAlt: "نمونه ویترین و دکور فروشگاهی",
|
||||
ctaLabel: "مشاهده محصولات",
|
||||
ctaHref: "/product",
|
||||
};
|
||||
|
||||
export function Hero174(props: Hero174Props) {
|
||||
const {
|
||||
pageHeading,
|
||||
title,
|
||||
description,
|
||||
imageSrc,
|
||||
imageAlt,
|
||||
ctaLabel,
|
||||
ctaHref,
|
||||
} = {
|
||||
...defaultProps,
|
||||
...props,
|
||||
};
|
||||
|
||||
return (
|
||||
<section className="relative min-h-screen w-full" aria-labelledby="home-hero-page-heading">
|
||||
<h1 id="home-hero-page-heading" className="sr-only">
|
||||
{pageHeading}
|
||||
</h1>
|
||||
|
||||
<div className="absolute inset-0">
|
||||
<Image
|
||||
src={imageSrc}
|
||||
alt={imageAlt}
|
||||
fill
|
||||
priority
|
||||
quality={100}
|
||||
sizes="100vw"
|
||||
className="object-cover object-[center_58%]"
|
||||
/>
|
||||
<div className="absolute inset-0 bg-black/62" />
|
||||
<div className="absolute inset-0 bg-[radial-gradient(ellipse_at_top,rgba(0,0,0,0.34),transparent_60%)]" />
|
||||
<div className="absolute inset-0 bg-[radial-gradient(ellipse_at_bottom,rgba(0,0,0,0.3),transparent_62%)]" />
|
||||
</div>
|
||||
|
||||
<div className="relative z-10 flex min-h-screen flex-col">
|
||||
<div className="flex flex-1 items-center justify-center px-6 pt-24 pb-14 text-center md:px-10">
|
||||
<div className="flex max-w-4xl flex-col items-center gap-5">
|
||||
<h2 className="text-heading-1 font-bold text-overlay-foreground">{title}</h2>
|
||||
<p className="max-w-2xl text-body text-overlay-foreground/90">{description}</p>
|
||||
<Button asChild size="lg" className="rounded-full">
|
||||
<Link href={ctaHref}>{ctaLabel}</Link>
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
import { Sparkles } from "lucide-react";
|
||||
import Link from "next/link";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
import { Button } from "@/components/ui/button";
|
||||
|
||||
interface Hero197Props {
|
||||
className?: string;
|
||||
badge?: string;
|
||||
title?: string;
|
||||
description?: string;
|
||||
showButtons?: boolean;
|
||||
}
|
||||
|
||||
const Hero197 = ({
|
||||
className,
|
||||
badge = "Launching Soon",
|
||||
title = "Accelerate your development workflow",
|
||||
description = "Our intelligent platform helps teams automate routine tasks, streamline collaboration, and deliver higher quality code faster.",
|
||||
showButtons = true,
|
||||
}: Hero197Props) => {
|
||||
return (
|
||||
<section className={cn("relative overflow-hidden py-32", className)}>
|
||||
<div className="container mx-auto px-4 md:px-6">
|
||||
{/* Background pattern with dots */}
|
||||
<div className="absolute inset-0 -z-10 h-full w-full bg-[radial-gradient(var(--primary)_1px,transparent_1px)] [background-size:20px_20px] opacity-25"></div>
|
||||
|
||||
<div className="relative z-10 flex flex-col gap-6 md:flex-row md:items-center md:justify-center">
|
||||
<div className="max-w-2xl w-full flex flex-col items-center text-center">
|
||||
<Badge
|
||||
variant="outline"
|
||||
className="mb-6 bg-background px-4 py-1.5 text-sm"
|
||||
>
|
||||
{badge} <Sparkles className="ml-1 size-3.5" />
|
||||
</Badge>
|
||||
|
||||
<h1 className="text-heading-1 pt-4 font-bold leading-tight bg-linear-to-r from-foreground to-foreground/70 bg-clip-text text-transparent">
|
||||
{title}
|
||||
</h1>
|
||||
|
||||
<p className="text-body mt-6 max-w-xl leading-relaxed text-muted-foreground">
|
||||
{description}
|
||||
</p>
|
||||
|
||||
{showButtons && (
|
||||
<div className="mt-8 flex flex-col gap-6 sm:flex-row sm:items-center justify-center">
|
||||
<Button size="lg" variant="primary" className="w-full sm:w-auto">
|
||||
شروع مشاوره
|
||||
</Button>
|
||||
<Button size="lg" variant="secondary" className="w-full sm:w-auto" asChild>
|
||||
<Link href="/consultation">درخواست مشاوره</Link>
|
||||
</Button>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Hero197 };
|
||||
|
||||
@@ -0,0 +1,95 @@
|
||||
"use client";
|
||||
|
||||
import { motion } from "framer-motion";
|
||||
import Link from "next/link";
|
||||
import React from "react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { useContent } from "@/components/layout/content-provider";
|
||||
|
||||
interface Hero200Props {
|
||||
className?: string;
|
||||
/** تصویر داخل قاب موبایل (پیشنمایش اپ) */
|
||||
phoneImage?: { src: string; alt: string };
|
||||
}
|
||||
|
||||
const Hero200 = ({ className, phoneImage }: Hero200Props) => {
|
||||
const content = useContent();
|
||||
const hero = content.pages.product.forushgahSazTala.hero200;
|
||||
const appPreviewSrc = phoneImage?.src ?? "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/block-white-1.svg";
|
||||
const appPreviewAlt = phoneImage?.alt ?? "Gold store app";
|
||||
return (
|
||||
<section className={cn("bg-background pt-24 md:pt-32 lg:pt-40 pb-8 md:pb-12 lg:pb-16", className)}>
|
||||
<div className="border-b border-foreground/40">
|
||||
<div className="container mx-auto flex max-w-7xl flex-col items-center justify-center gap-4 px-6 text-center">
|
||||
<h2 className="text-heading-2 font-semibold leading-snug tracking-tight text-foreground/80" dir="rtl">
|
||||
{hero.subtitle}
|
||||
</h2>
|
||||
<div className="w-full overflow-hidden" dir="rtl">
|
||||
<h1 className="text-heading-1 font-bold leading-snug tracking-tight text-foreground">
|
||||
{hero.titleLine1}
|
||||
<br />
|
||||
{hero.titleLine2}
|
||||
<br />
|
||||
{hero.titleLine3}
|
||||
</h1>
|
||||
</div>
|
||||
<Button size="lg" variant="primary" className="my-10" dir="rtl" asChild>
|
||||
<Link href="/consultation">{hero.button}</Link>
|
||||
</Button>
|
||||
|
||||
{/* Iphone mockup with content */}
|
||||
<div className="h-[500px] w-full overflow-hidden">
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 200, scale: 0.8 }}
|
||||
animate={{ opacity: 1, y: 0, scale: 1 }}
|
||||
transition={{ ease: [0, 0.71, 0.2, 1.01], duration: 0.8 }}
|
||||
className="relative mx-auto mt-6 flex h-[850px] w-[400px] items-center justify-center rounded-[75px] bg-black md:mt-12 md:h-[920px] md:w-[450px]"
|
||||
>
|
||||
<img
|
||||
className="absolute z-[2] scale-105 object-cover"
|
||||
alt="Gold phone frame"
|
||||
src="https://deifkwefumgah.cloudfront.net/shadcnblocks/block/mockups/phone-5.png"
|
||||
/>
|
||||
<div className="relative z-[1] h-full w-full overflow-hidden rounded-[3.25rem]">
|
||||
{phoneImage ? (
|
||||
<img
|
||||
className="h-full w-full object-cover object-top"
|
||||
alt={appPreviewAlt}
|
||||
src={appPreviewSrc}
|
||||
/>
|
||||
) : (
|
||||
<>
|
||||
<div className="mt-20 flex justify-between px-0">
|
||||
<div className="flex items-end gap-2 px-12 text-heading-1 font-bold leading-snug tracking-tight text-background" dir="rtl" aria-hidden>
|
||||
طلا
|
||||
<div className="mb-2 size-3 rounded-full bg-primary md:size-5" />
|
||||
</div>
|
||||
<div className="mt-2 mr-8 flex flex-col items-end">
|
||||
<p className="text-body-sm leading-normal tracking-tight text-muted-foreground md:text-body">
|
||||
{hero.dateLabel}
|
||||
</p>
|
||||
<p className="-mt-1 text-heading-5 font-semibold leading-snug tracking-tight text-muted-foreground/50">
|
||||
{hero.appLabel}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<img
|
||||
className="z-2 mx-auto mt-20 size-40 object-cover"
|
||||
alt={appPreviewAlt}
|
||||
src={appPreviewSrc}
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
</motion.div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Hero200 };
|
||||
@@ -0,0 +1,71 @@
|
||||
"use client";
|
||||
|
||||
import { motion } from "framer-motion";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
interface Hero201Props {
|
||||
className?: string;
|
||||
smallTitle?: string;
|
||||
mainTitle?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
const Hero201 = ({
|
||||
className,
|
||||
smallTitle = "Just Copy Paste",
|
||||
mainTitle = "Amazing components",
|
||||
description = "Discover our collection of beautifully designed, ready-to-use components that you can easily integrate into your projects.",
|
||||
}: Hero201Props) => {
|
||||
return (
|
||||
<section className={cn("py-16 md:py-24 lg:py-32", className)} dir="rtl">
|
||||
<div className="relative container mx-auto flex flex-col items-center overflow-hidden px-6">
|
||||
{/* دایرههای تزئینی پشت متن تا لرزش ایجاد نکنند */}
|
||||
<div className="pointer-events-none absolute inset-0 z-0 hidden overflow-hidden md:block" aria-hidden>
|
||||
<motion.div
|
||||
initial={{ opacity: 0, scale: 0.6 }}
|
||||
animate={{ opacity: 1, scale: 1 }}
|
||||
transition={{ ease: "easeInOut", duration: 0.6 }}
|
||||
className="absolute -top-80 -right-80 h-240 w-240 will-change-transform"
|
||||
style={{ contain: "layout paint" }}
|
||||
>
|
||||
<img
|
||||
className="h-full w-full rotate-12 opacity-30 dark:invert animate-[spin_15s_linear_infinite]"
|
||||
src="https://deifkwefumgah.cloudfront.net/shadcnblocks/block/illustrations/tokyo-solar-system-around-a-smiley.svg"
|
||||
alt=""
|
||||
/>
|
||||
</motion.div>
|
||||
<motion.div
|
||||
initial={{ opacity: 0, scale: 0.6 }}
|
||||
animate={{ opacity: 1, scale: 1 }}
|
||||
transition={{ ease: "easeInOut", duration: 0.6 }}
|
||||
className="absolute -bottom-80 -left-80 h-240 w-240 will-change-transform"
|
||||
style={{ contain: "layout paint" }}
|
||||
>
|
||||
<img
|
||||
className="h-full w-full rotate-12 opacity-30 dark:invert animate-[spin_15s_linear_infinite]"
|
||||
src="https://deifkwefumgah.cloudfront.net/shadcnblocks/block/illustrations/tokyo-solar-system-around-a-smiley.svg"
|
||||
alt=""
|
||||
/>
|
||||
</motion.div>
|
||||
</div>
|
||||
|
||||
<div className="relative z-10 flex flex-col items-center">
|
||||
<p className="text-heading-5 mb-4 text-center font-semibold leading-[var(--line-height-heading)] tracking-tight text-foreground">
|
||||
{smallTitle}
|
||||
</p>
|
||||
|
||||
<h2 className="text-heading-2 mx-auto max-w-4xl text-center font-bold leading-[var(--line-height-heading)] tracking-tight text-foreground">
|
||||
{mainTitle}
|
||||
</h2>
|
||||
|
||||
<p className="text-body mx-auto mt-6 max-w-3xl text-center leading-[var(--line-height-body)] text-muted-foreground">
|
||||
{description}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Hero201 };
|
||||
@@ -0,0 +1,42 @@
|
||||
"use client";
|
||||
|
||||
import { motion } from "framer-motion";
|
||||
import React from "react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
interface Hero204Props {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Hero204 = ({ className }: Hero204Props) => {
|
||||
return (
|
||||
<section
|
||||
className={cn(
|
||||
"flex min-h-[50vh] flex-col items-center justify-center bg-background pt-24 pb-16 md:pt-32 md:pb-20 lg:pt-36 lg:pb-24",
|
||||
className
|
||||
)}
|
||||
>
|
||||
<div className="container mx-auto flex w-full max-w-7xl flex-col items-center justify-center gap-4 px-6 text-center">
|
||||
<motion.h1
|
||||
initial={{ opacity: 0, y: 16 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
transition={{ duration: 0.4 }}
|
||||
className="max-w-2xl text-heading-1 font-bold tracking-tighter text-foreground"
|
||||
>
|
||||
درخواست دمو
|
||||
</motion.h1>
|
||||
<motion.p
|
||||
initial={{ opacity: 0, y: 16 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
transition={{ duration: 0.4, delay: 0.1 }}
|
||||
className="mt-4 max-w-xl text-body text-muted-foreground"
|
||||
>
|
||||
سامانههای تخصصی مستر دکور را قبل از تصمیمگیری از نزدیک ببینید. فرم را پر کنید تا در اسرع وقت برای هماهنگی جلسه دمو و نمایش امکانات با شما تماس بگیریم.
|
||||
</motion.p>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Hero204 };
|
||||
@@ -0,0 +1,235 @@
|
||||
"use client";
|
||||
|
||||
import { motion } from "framer-motion";
|
||||
import { ArrowRight } from "lucide-react";
|
||||
import Image from "next/image";
|
||||
import Link from "next/link";
|
||||
import { useEffect, useState } from "react";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
import {
|
||||
Carousel,
|
||||
type CarouselApi,
|
||||
CarouselContent,
|
||||
CarouselItem,
|
||||
} from "@/components/ui/carousel";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
export interface HeroCarouselSlide {
|
||||
src: string;
|
||||
alt: string;
|
||||
name?: string;
|
||||
title?: string;
|
||||
description?: string;
|
||||
href?: string;
|
||||
}
|
||||
|
||||
export interface Hero226Props {
|
||||
slides: HeroCarouselSlide[];
|
||||
slideCtaLabel: string;
|
||||
/** برای دسترسیپذیری: تنها h1 معنادار صفحه (معمولاً نام برند) */
|
||||
pageHeading: string;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
type Props = Partial<Hero226Props>;
|
||||
|
||||
const defaultSlides: HeroCarouselSlide[] = [
|
||||
{
|
||||
src: "/assets/main-pic/banner-master-decoor.jpg",
|
||||
alt: "نمونه ویترین و دکور",
|
||||
title: "ویترین طلا",
|
||||
description: "نمایش حرفهای و مدیریت ویترین محصولات طلا.",
|
||||
href: "/product?category=vitrin-tala",
|
||||
},
|
||||
{
|
||||
src: "/assets/main-pic/banner-master-decoor.jpg",
|
||||
alt: "نمونه ویترین خردسال",
|
||||
title: "ویترین خردسال",
|
||||
description: "راهکار ویترین و فرایندهای مرتبط با خردسال.",
|
||||
href: "/product?category=vitrin-khorde-sal",
|
||||
},
|
||||
{
|
||||
src: "/assets/main-pic/banner-master-decoor.jpg",
|
||||
alt: "نمونه ویترین جواهر",
|
||||
title: "ویترین جواهر",
|
||||
description: "ویترین تخصصی برای جواهر و اقلام پرارزش.",
|
||||
href: "/product?category=vitrin-javaher",
|
||||
},
|
||||
{
|
||||
src: "/assets/main-pic/banner-master-decoor.jpg",
|
||||
alt: "نمونه دکور فروشگاه",
|
||||
title: "دکور و جعبه",
|
||||
description: "ترکیبی از تنوع، ظرافت و کیفیت برای فضای فروش شما.",
|
||||
href: "/about",
|
||||
},
|
||||
{
|
||||
src: "/assets/main-pic/banner-master-decoor.jpg",
|
||||
alt: "نمونه راهکار سفارشی",
|
||||
title: "راهکار سفارشی",
|
||||
description: "طراحی و تولید متناسب با مدل کاری مجموعه شما.",
|
||||
href: "/consultation",
|
||||
},
|
||||
];
|
||||
|
||||
const defaultProps: Required<Pick<Hero226Props, "slides" | "slideCtaLabel" | "pageHeading">> = {
|
||||
slides: defaultSlides,
|
||||
slideCtaLabel: "مشاهده",
|
||||
pageHeading: "مستر دکور",
|
||||
};
|
||||
|
||||
function isExternalHref(href: string) {
|
||||
return href.startsWith("http://") || href.startsWith("https://");
|
||||
}
|
||||
|
||||
function SlideCtaLink({
|
||||
href,
|
||||
slideCtaLabel,
|
||||
}: {
|
||||
href: string;
|
||||
slideCtaLabel: string;
|
||||
}) {
|
||||
const className =
|
||||
"group gap-2 rounded-full border border-gold-400/55 bg-background/15 px-4 py-2 text-body font-medium tracking-tight text-gold-300 backdrop-blur-sm hover:border-gold-400/75 hover:bg-gold-950/35 hover:text-gold-200";
|
||||
|
||||
const icon = (
|
||||
<ArrowRight
|
||||
className="size-4 shrink-0 transition-transform ease-out group-hover:translate-x-0.5 rtl:rotate-180"
|
||||
aria-hidden
|
||||
/>
|
||||
);
|
||||
|
||||
if (isExternalHref(href)) {
|
||||
return (
|
||||
<Button variant="outline" className={className} asChild>
|
||||
<a href={href} target="_blank" rel="noopener noreferrer" className="inline-flex items-center">
|
||||
{slideCtaLabel}
|
||||
{icon}
|
||||
</a>
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<Button variant="outline" className={className} asChild>
|
||||
<Link href={href} className="inline-flex items-center">
|
||||
{slideCtaLabel}
|
||||
{icon}
|
||||
</Link>
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
|
||||
export function Hero226(props: Props) {
|
||||
const [api, setApi] = useState<CarouselApi>();
|
||||
const [current, setCurrent] = useState(0);
|
||||
|
||||
const { slides, slideCtaLabel, pageHeading, className } = {
|
||||
...defaultProps,
|
||||
...props,
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
if (!api) return;
|
||||
const onSelect = () => setCurrent(api.selectedScrollSnap());
|
||||
onSelect();
|
||||
api.on("select", onSelect);
|
||||
return () => {
|
||||
api.off("select", onSelect);
|
||||
};
|
||||
}, [api]);
|
||||
|
||||
return (
|
||||
<section
|
||||
className={cn(
|
||||
"scroll-mt-20 pt-20 pb-16 md:scroll-mt-24 md:pt-24 md:pb-20 lg:pb-28",
|
||||
className,
|
||||
)}
|
||||
aria-labelledby="home-hero-page-heading">
|
||||
<h1 id="home-hero-page-heading" className="sr-only">
|
||||
{pageHeading}
|
||||
</h1>
|
||||
<div className="mx-auto w-full max-w-7xl px-4 sm:px-6">
|
||||
<motion.div
|
||||
initial={{ opacity: 0 }}
|
||||
animate={{ opacity: 1 }}
|
||||
transition={{ duration: 0.5 }}
|
||||
>
|
||||
<Carousel
|
||||
setApi={setApi}
|
||||
className="w-full"
|
||||
opts={{
|
||||
loop: true,
|
||||
slidesToScroll: 1,
|
||||
direction: "rtl",
|
||||
align: "center",
|
||||
}}
|
||||
>
|
||||
<CarouselContent className="flex w-full gap-2 sm:gap-4">
|
||||
{slides.map((img, index) => (
|
||||
<CarouselItem
|
||||
key={`${img.src}-${index}`}
|
||||
className="basis-full"
|
||||
>
|
||||
<div className="p-0.5 sm:p-1">
|
||||
<div
|
||||
className={cn(
|
||||
"relative flex min-h-[min(70vh,28rem)] flex-col justify-end overflow-hidden !rounded-xl sm:min-h-[32rem] md:min-h-[36rem] lg:min-h-[42rem] lg:rounded-2xl",
|
||||
"border border-border/40 bg-muted animated-gradient-border p-6 sm:p-8",
|
||||
)}
|
||||
>
|
||||
<div className="pointer-events-none absolute inset-0">
|
||||
<Image
|
||||
src={img.src}
|
||||
alt={img.alt}
|
||||
fill
|
||||
className="object-cover object-center"
|
||||
sizes="(max-width: 768px) 90vw, (max-width: 1200px) 80vw, 1200px"
|
||||
priority={index === 0}
|
||||
draggable={false}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="relative z-10 flex w-full flex-col gap-4 text-start">
|
||||
<div className="max-w-full space-y-3 sm:max-w-2xl lg:max-w-3xl">
|
||||
{/*
|
||||
هر اسلاید h2 است؛ h1 فقط sr-only بالای سکشن (استاندارد تایپوگرافی)
|
||||
*/}
|
||||
<h2 className="text-balance text-heading-1 font-bold tracking-tight text-foreground">
|
||||
{img.title ?? ""}
|
||||
</h2>
|
||||
<p className="text-balance text-body leading-relaxed text-foreground/90">
|
||||
{img.description ?? ""}
|
||||
</p>
|
||||
</div>
|
||||
<div className="flex w-full flex-wrap items-center justify-between gap-3 bg-transparent pt-1">
|
||||
<SlideCtaLink href={img.href ?? "/"} slideCtaLabel={slideCtaLabel} />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</CarouselItem>
|
||||
))}
|
||||
</CarouselContent>
|
||||
|
||||
<div className="mt-4 flex flex-wrap justify-center gap-2 sm:mt-6">
|
||||
{slides.map((_, index) => (
|
||||
<button
|
||||
key={index}
|
||||
type="button"
|
||||
onClick={() => api?.scrollTo(index)}
|
||||
className={cn(
|
||||
"h-2.5 min-h-2.5 min-w-2.5 rounded-full transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
||||
current === index ? "w-8 bg-primary" : "bg-muted-foreground/50 hover:bg-muted-foreground/70",
|
||||
)}
|
||||
aria-label={`رفتن به اسلاید ${index + 1}`}
|
||||
aria-current={current === index ? "true" : undefined}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
</Carousel>
|
||||
</motion.div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
"use client";
|
||||
|
||||
import Link from "next/link";
|
||||
import { motion } from "framer-motion";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { useContent } from "@/components/layout/content-provider";
|
||||
|
||||
interface ButtonItem {
|
||||
text: string;
|
||||
url: string;
|
||||
}
|
||||
|
||||
interface Hero247Props {
|
||||
heading?: string;
|
||||
description?: string;
|
||||
secondaryButton?: ButtonItem;
|
||||
primaryButton?: ButtonItem;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Hero247 = ({
|
||||
className,
|
||||
heading,
|
||||
description,
|
||||
secondaryButton: secondaryButtonProp,
|
||||
primaryButton: primaryButtonProp,
|
||||
}: Hero247Props) => {
|
||||
const content = useContent()
|
||||
const defaults = content.pages.home.hero247
|
||||
const headingText = heading ?? defaults.heading
|
||||
const descriptionText = description ?? defaults.description
|
||||
const secondaryButton = secondaryButtonProp ?? { text: defaults.secondaryButton, url: "#rahavarha" }
|
||||
const primaryButton = primaryButtonProp ?? { text: defaults.primaryButton, url: "#mozakerat" }
|
||||
return (
|
||||
<section className={cn("py-32", className)} dir="rtl">
|
||||
<div className="container mx-auto flex flex-col items-center px-6">
|
||||
<div className="flex flex-col items-center gap-6">
|
||||
<motion.h2
|
||||
initial={{ y: 100, opacity: 0 }}
|
||||
animate={{ y: 0, opacity: 1 }}
|
||||
transition={{
|
||||
duration: 1.5,
|
||||
ease: [0.16, 1, 0.3, 1],
|
||||
}}
|
||||
className="text-heading-2 max-w-3xl text-center font-semibold text-foreground dark:text-foreground"
|
||||
>
|
||||
{headingText}
|
||||
</motion.h2>
|
||||
<motion.p
|
||||
initial={{ y: 60, opacity: 0 }}
|
||||
animate={{ y: 0, opacity: 1 }}
|
||||
transition={{
|
||||
duration: 1.2,
|
||||
ease: [0.16, 1, 0.3, 1],
|
||||
delay: 0.2,
|
||||
}}
|
||||
className="text-body max-w-2xl whitespace-pre-line text-center leading-relaxed text-muted-foreground dark:text-muted-foreground"
|
||||
>
|
||||
{descriptionText}
|
||||
</motion.p>
|
||||
<div className="flex flex-col gap-4 font-medium md:flex-row md:gap-4">
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 60 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
transition={{
|
||||
duration: 1.2,
|
||||
ease: [0.16, 1, 0.3, 1],
|
||||
delay: 0.25,
|
||||
}}
|
||||
>
|
||||
<Button asChild size="lg" variant="primary">
|
||||
<Link href={primaryButton.url}>{primaryButton.text}</Link>
|
||||
</Button>
|
||||
</motion.div>
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 60 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
transition={{
|
||||
duration: 1.2,
|
||||
ease: [0.16, 1, 0.3, 1],
|
||||
delay: 0.4,
|
||||
}}
|
||||
>
|
||||
<Button asChild size="lg" variant="secondary">
|
||||
<Link href={secondaryButton.url}>{secondaryButton.text}</Link>
|
||||
</Button>
|
||||
</motion.div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Hero247 };
|
||||
@@ -0,0 +1,169 @@
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
|
||||
interface Hero28Props {
|
||||
className?: string;
|
||||
title?: string;
|
||||
description?: string;
|
||||
showButton?: boolean;
|
||||
}
|
||||
|
||||
const Hero28 = ({
|
||||
className,
|
||||
title = "Welcome to Our Website",
|
||||
description = "Elig doloremque mollitia fugiat omnis! Porro facilis quo animi consequatur.",
|
||||
showButton = true,
|
||||
}: Hero28Props) => {
|
||||
return (
|
||||
<section className={cn("relative py-32 overflow-visible", className)}>
|
||||
{/* Background pattern */}
|
||||
<div className="absolute inset-x-0 top-0 container mx-auto hidden h-full overflow-visible lg:block pointer-events-none">
|
||||
<div className="flex flex-col items-center justify-center">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1400 520" className="w-full h-auto">
|
||||
<defs>
|
||||
<radialGradient id="text-backgroud" cx="50%" cy="50%" r={0.6}>
|
||||
<stop stopColor="black" offset={0.4} />
|
||||
<stop stopColor="black" offset={1} stopOpacity={0} />
|
||||
</radialGradient>
|
||||
<linearGradient id="icon-backgroud" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop stopColor="var(--color-accent)" offset={0} />
|
||||
<stop stopColor="var(--color-background)" offset={1} />
|
||||
</linearGradient>
|
||||
<linearGradient id="gold-coin-grad" x1="0%" y1="0%" x2="100%" y2="100%">
|
||||
<stop offset="0%" stopColor="var(--gold-300)" />
|
||||
<stop offset="50%" stopColor="var(--gold-500)" />
|
||||
<stop offset="100%" stopColor="var(--gold-700)" />
|
||||
</linearGradient>
|
||||
<linearGradient id="gold-bar-grad" x1="0%" y1="0%" x2="100%" y2="100%">
|
||||
<stop offset="0%" stopColor="var(--gold-300)" />
|
||||
<stop offset="50%" stopColor="var(--gold-500)" />
|
||||
<stop offset="100%" stopColor="var(--gold-700)" />
|
||||
</linearGradient>
|
||||
<mask id="mask">
|
||||
<rect
|
||||
x="0"
|
||||
y="0"
|
||||
width="100%"
|
||||
height="100%"
|
||||
stroke="none"
|
||||
fill="black"
|
||||
/>
|
||||
<rect
|
||||
x="80"
|
||||
y="40"
|
||||
width="1260"
|
||||
height="380"
|
||||
rx="140"
|
||||
stroke="none"
|
||||
filter="url(#blur)"
|
||||
fill="white"
|
||||
/>
|
||||
<rect
|
||||
x="40"
|
||||
y="-120"
|
||||
width="1320"
|
||||
height="600"
|
||||
stroke="none"
|
||||
fill="url(#text-backgroud)"
|
||||
/>
|
||||
</mask>
|
||||
<filter id="blur" x="-50%" y="-50%" width="200%" height="200%">
|
||||
<feGaussianBlur in="SourceGraphic" stdDeviation="40" />
|
||||
</filter>
|
||||
</defs>
|
||||
<path
|
||||
stroke="var(--border)"
|
||||
strokeWidth={1}
|
||||
d="M0,40H1400M0,120H1400M0,200H1400M0,280H1400M0,360H1400M0,440H1400M60,0V520M140,0V520M220,0V520M300,0V520M380,0V520M460,0V520M540,0V520M620,0V520M700,0V520M780,0V520M860,0V520M940,0V520M1020,0V520M1100,0V520M1180,0V520M1260,0V520M1340,0V520"
|
||||
mask="url(#mask)"
|
||||
/>
|
||||
{/* سکه طلا */}
|
||||
<rect
|
||||
x={140}
|
||||
y={120}
|
||||
width={80}
|
||||
height={80}
|
||||
stroke="var(--border)"
|
||||
fill="url(#icon-backgroud)"
|
||||
/>
|
||||
<svg x={160} y={140} width={40} height={40} viewBox="0 0 40 40" className="overflow-visible">
|
||||
<circle cx={20} cy={20} r={16} fill="url(#gold-coin-grad)" stroke="var(--gold-700)" strokeWidth={1.5} />
|
||||
<circle cx={20} cy={20} r={10} fill="none" stroke="var(--gold-700)" strokeWidth={1} opacity={0.8} />
|
||||
</svg>
|
||||
{/* شمش طلا */}
|
||||
<rect
|
||||
x={60}
|
||||
y={280}
|
||||
width={80}
|
||||
height={80}
|
||||
stroke="var(--border)"
|
||||
fill="url(#icon-backgroud)"
|
||||
/>
|
||||
<svg x={80} y={300} width={40} height={40} viewBox="0 0 40 40" className="overflow-visible">
|
||||
<rect x={6} y={12} width={28} height={16} rx={3} fill="url(#gold-bar-grad)" stroke="var(--gold-700)" strokeWidth={1.5} />
|
||||
<rect x={10} y={14} width={4} height={12} rx={1} fill="var(--gold-600)" opacity={0.6} />
|
||||
<rect x={26} y={14} width={4} height={12} rx={1} fill="var(--gold-600)" opacity={0.6} />
|
||||
</svg>
|
||||
{/* سکه طلا */}
|
||||
<rect
|
||||
x={300}
|
||||
y={360}
|
||||
width={80}
|
||||
height={80}
|
||||
stroke="var(--border)"
|
||||
fill="url(#icon-backgroud)"
|
||||
/>
|
||||
<svg x={320} y={380} width={40} height={40} viewBox="0 0 40 40" className="overflow-visible">
|
||||
<circle cx={20} cy={20} r={16} fill="url(#gold-coin-grad)" stroke="var(--gold-700)" strokeWidth={1.5} />
|
||||
<circle cx={20} cy={20} r={10} fill="none" stroke="var(--gold-700)" strokeWidth={1} opacity={0.8} />
|
||||
</svg>
|
||||
{/* شمش طلا */}
|
||||
<rect
|
||||
x={1180}
|
||||
y={40}
|
||||
width={80}
|
||||
height={80}
|
||||
stroke="var(--border)"
|
||||
fill="url(#icon-backgroud)"
|
||||
/>
|
||||
<svg x={1200} y={60} width={40} height={40} viewBox="0 0 40 40" className="overflow-visible">
|
||||
<rect x={6} y={12} width={28} height={16} rx={3} fill="url(#gold-bar-grad)" stroke="var(--gold-700)" strokeWidth={1.5} />
|
||||
<rect x={10} y={14} width={4} height={12} rx={1} fill="var(--gold-600)" opacity={0.6} />
|
||||
<rect x={26} y={14} width={4} height={12} rx={1} fill="var(--gold-600)" opacity={0.6} />
|
||||
</svg>
|
||||
{/* سکه طلا */}
|
||||
<rect
|
||||
x={1260}
|
||||
y={280}
|
||||
width={80}
|
||||
height={80}
|
||||
stroke="var(--border)"
|
||||
fill="url(#icon-backgroud)"
|
||||
/>
|
||||
<svg x={1280} y={300} width={40} height={40} viewBox="0 0 40 40" className="overflow-visible">
|
||||
<circle cx={20} cy={20} r={16} fill="url(#gold-coin-grad)" stroke="var(--gold-700)" strokeWidth={1.5} />
|
||||
<circle cx={20} cy={20} r={10} fill="none" stroke="var(--gold-700)" strokeWidth={1} opacity={0.8} />
|
||||
</svg>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
<div className="relative z-10 container mx-auto flex flex-col items-center text-center px-4 md:px-6 min-h-[400px]">
|
||||
<h1 className="text-heading-1 my-6 font-bold text-pretty">
|
||||
{title}
|
||||
</h1>
|
||||
<p className="text-body mb-8 max-w-3xl leading-relaxed text-muted-foreground">
|
||||
{description}
|
||||
</p>
|
||||
{showButton && (
|
||||
<div className="mb-8">
|
||||
<Button variant="primary">Primary</Button>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Hero28 };
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
|
||||
interface Hero49Props {
|
||||
className?: string;
|
||||
title?: string;
|
||||
description?: string;
|
||||
showButton?: boolean;
|
||||
/** تصویر داخل فریم موبایل (مثلاً اسکرینشات اپ) */
|
||||
phoneImage?: string;
|
||||
}
|
||||
|
||||
const Hero49 = ({
|
||||
className,
|
||||
title = "Master your monetary matters",
|
||||
description = "Minimize financial stress and build wealth with our intuitive, AI-enhanced budgeting tool. Our platform analyzes your spending and offers insights for smarter financial decisions.",
|
||||
showButton = true,
|
||||
phoneImage,
|
||||
}: Hero49Props) => {
|
||||
const phoneImageSrc =
|
||||
phoneImage ?? "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/placeholder-dark-7-tall.svg";
|
||||
return (
|
||||
<section className={cn("bg-background py-32", className)}>
|
||||
<div className="container mx-auto flex flex-col items-center px-4 pt-24 md:pt-32 lg:pt-40">
|
||||
<div className="flex max-w-3xl flex-col items-center gap-8 text-center">
|
||||
<h1 className="text-heading-1 font-bold text-foreground">
|
||||
{title}
|
||||
</h1>
|
||||
<p className="text-body max-w-xl leading-relaxed tracking-tight text-muted-foreground">
|
||||
{description}
|
||||
</p>
|
||||
{showButton && (
|
||||
<Button variant="primary" size="lg" className="gap-2">
|
||||
<img
|
||||
alt="google play and app store download icons"
|
||||
loading="lazy"
|
||||
width="44"
|
||||
height="18"
|
||||
decoding="async"
|
||||
data-nimg="1"
|
||||
src="https://deifkwefumgah.cloudfront.net/shadcnblocks/block/hero49/download.svg"
|
||||
/>
|
||||
<p>Get started now</p>
|
||||
</Button>
|
||||
)}
|
||||
</div>
|
||||
<div className="relative translate-x-[14.7%]">
|
||||
{/* Image inside Iphone */}
|
||||
<div className="absolute top-[12%] left-[36.5%]! h-[67%]! w-[31%]! -translate-x-[52%] overflow-hidden rounded-[10px] bg-muted">
|
||||
<img
|
||||
className="min-h-full min-w-full object-cover"
|
||||
src={phoneImageSrc}
|
||||
alt=""
|
||||
/>
|
||||
</div>
|
||||
{/* Iphone Image */}
|
||||
<img
|
||||
alt=""
|
||||
src="https://deifkwefumgah.cloudfront.net/shadcnblocks/block/hero49/iphone.png"
|
||||
className="relative z-10"
|
||||
loading="lazy"
|
||||
width="1008.71"
|
||||
height="857"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Hero49 };
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
"use client";
|
||||
|
||||
import Link from "next/link";
|
||||
import Image from "next/image";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { useContent } from "@/components/layout/content-provider";
|
||||
|
||||
interface Hero91Props {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Hero91 = ({ className }: Hero91Props) => {
|
||||
const content = useContent();
|
||||
const { hero91 } = content.pages.home;
|
||||
const heroImageSrc = content.images.hero91.image;
|
||||
const heroVideoSrc = content.images.hero91.video;
|
||||
|
||||
return (
|
||||
<section
|
||||
className={cn(
|
||||
"py-24 md:py-32 lg:py-40",
|
||||
className,
|
||||
)}
|
||||
>
|
||||
<div className="container mx-auto flex max-w-7xl flex-col items-center gap-8 px-6 lg:flex-row lg:items-center lg:justify-between lg:gap-12">
|
||||
<div className="flex flex-col gap-6 lg:w-1/2" dir="rtl">
|
||||
<h1 className="text-heading-1 font-bold leading-tight text-foreground whitespace-pre-line">
|
||||
{hero91.title}
|
||||
</h1>
|
||||
<p className="text-body leading-relaxed text-muted-foreground">
|
||||
{hero91.description}
|
||||
</p>
|
||||
<div className="flex flex-col gap-4 font-medium md:flex-row md:gap-4">
|
||||
<Button asChild size="lg" variant="primary">
|
||||
<Link href="/contact">{hero91.primaryButton}</Link>
|
||||
</Button>
|
||||
<Button asChild size="lg" variant="secondary">
|
||||
<Link href="/consultation">{hero91.secondaryButton}</Link>
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
className={cn(
|
||||
"relative w-full max-w-full overflow-hidden rounded-2xl bg-black lg:w-1/2 lg:max-w-[640px] aspect-square",
|
||||
"shadow-[0_0_50px_rgba(37,102,90,0.28),0_0_90px_rgba(37,102,90,0.12)] dark:shadow-[0_0_50px_rgba(201,157,77,0.28),0_0_90px_rgba(201,157,77,0.12)]",
|
||||
)}
|
||||
>
|
||||
<div className="absolute inset-0">
|
||||
{heroVideoSrc ? (
|
||||
<video
|
||||
src={heroVideoSrc}
|
||||
className="h-full w-full object-cover"
|
||||
autoPlay
|
||||
muted
|
||||
loop
|
||||
playsInline
|
||||
preload="metadata"
|
||||
/>
|
||||
) : (
|
||||
<Image
|
||||
src={heroImageSrc}
|
||||
alt=""
|
||||
fill
|
||||
className="object-cover"
|
||||
priority
|
||||
unoptimized
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Hero91 };
|
||||
@@ -0,0 +1,79 @@
|
||||
"use client";
|
||||
|
||||
import { motion } from "framer-motion";
|
||||
import { ArrowRight } from "lucide-react";
|
||||
import React from "react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
import { useIsMobile } from "@/hooks/use-mobile";
|
||||
|
||||
import { LineShadowText } from "@/components/ui/line-shadow-text";
|
||||
import { Button } from "@/components/ui/button";
|
||||
|
||||
interface Hero233Props {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Hero233 = ({ className }: Hero233Props) => {
|
||||
const isMobile = useIsMobile();
|
||||
|
||||
return (
|
||||
<section
|
||||
className={cn(
|
||||
"relative h-screen w-screen overflow-hidden bg-background py-32",
|
||||
className,
|
||||
)}
|
||||
>
|
||||
<div className="relative z-20 container flex flex-col items-center justify-center gap-4 py-10 text-center md:mt-22">
|
||||
<div className="absolute -z-1 size-full max-w-3xl bg-background blur-xl" />
|
||||
<Button variant="outline" className="my-16 w-fit gap-2 md:my-5">
|
||||
<span className="size-2 rounded-full bg-current" />
|
||||
<span>Flexible Plan customized for you</span>
|
||||
</Button>
|
||||
<div className="relative flex max-w-4xl items-center justify-center text-center">
|
||||
<h1 className="text-heading-1 relative z-10 font-bold tracking-tight">
|
||||
<span className="mr-3 text-muted-foreground/50">
|
||||
The only app you Need to Stay
|
||||
</span>
|
||||
<LineShadowText> Productive </LineShadowText>
|
||||
<span className="text-muted-foreground/50"> ever</span>
|
||||
<span>.</span>
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
<p className="text-body mt-5 max-w-xl bg-background leading-relaxed text-muted-foreground/80">
|
||||
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Ipsum animi,
|
||||
ipsam provident optio delectus neque aliquid cumque. Beatae, odio!
|
||||
</p>
|
||||
<div className="my-5 flex flex-wrap justify-center gap-4">
|
||||
<Button variant="secondary" className="w-fit gap-2">
|
||||
<span>Documentation</span>
|
||||
<ArrowRight className="size-4 -rotate-45 transition-all ease-out group-hover:ml-3 group-hover:rotate-0" />
|
||||
</Button>
|
||||
<Button variant="primary" className="w-fit gap-2">
|
||||
<span>Get Started</span>
|
||||
<ArrowRight className="size-4 -rotate-45 transition-all ease-out group-hover:ml-3 group-hover:rotate-0" />
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="absolute top-0 flex size-full justify-center">
|
||||
{Array.from({ length: isMobile ? 7 : 18 }).map((_, i) => (
|
||||
<motion.div
|
||||
key={i}
|
||||
initial={{ opacity: 0, height: 0 }}
|
||||
animate={{ opacity: 1, height: "100%" }}
|
||||
transition={{
|
||||
duration: 0.8,
|
||||
delay: i * 0.05,
|
||||
ease: "easeOut",
|
||||
}}
|
||||
className="w-24 border-l bg-gradient-to-b to-transparent transition-all ease-in-out hover:scale-110 hover:from-black/2"
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Hero233 };
|
||||
@@ -0,0 +1,188 @@
|
||||
"use client";
|
||||
|
||||
import { Fragment, useState } from "react";
|
||||
import { Play } from "lucide-react";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { AspectRatio } from "@/components/ui/aspect-ratio";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
} from "@/components/ui/dialog";
|
||||
|
||||
export interface HeroContactProps {
|
||||
className?: string;
|
||||
/** برچسب بالای عنوان (مثلاً نام شرکت) */
|
||||
eyebrow?: string;
|
||||
/** عنوان اصلی - فقط یک h1 در صفحه */
|
||||
heading: string;
|
||||
/** توضیح زیر عنوان */
|
||||
description: string;
|
||||
/** متن دکمه اصلی (مثلاً «فرم تماس») */
|
||||
ctaLabel?: string;
|
||||
/** آدرس اسکرول به فرم (مثلاً #contact-form) */
|
||||
ctaHref?: string;
|
||||
/** مسیر تصویر هیرو (مثلاً /assets/contact-us/contact-us.jpg) */
|
||||
imageSrc?: string;
|
||||
/** متن جایگزین تصویر */
|
||||
imageAlt?: string;
|
||||
/** متن دکمه ویدیو (اختیاری - در صورت خالی بودن دکمه ویدیو نمایش داده نمیشود) */
|
||||
videoLabel?: string;
|
||||
/** آیدی ویدیو یوتیوب برای embed (اختیاری) */
|
||||
videoId?: string;
|
||||
}
|
||||
|
||||
const HeroContact = ({
|
||||
className,
|
||||
eyebrow,
|
||||
heading,
|
||||
description,
|
||||
ctaLabel = "فرم تماس",
|
||||
ctaHref = "#contact-form",
|
||||
imageSrc,
|
||||
imageAlt = "تماس با ما",
|
||||
videoLabel,
|
||||
videoId,
|
||||
}: HeroContactProps) => {
|
||||
const [isVideoOpen, setIsVideoOpen] = useState(false);
|
||||
|
||||
const handleCtaClick = (e: React.MouseEvent) => {
|
||||
if (ctaHref.startsWith("#")) {
|
||||
e.preventDefault();
|
||||
const el = document.getElementById(ctaHref.slice(1));
|
||||
el?.scrollIntoView({ behavior: "smooth" });
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<Fragment>
|
||||
<section
|
||||
className={cn(
|
||||
"flex min-h-[60vh] flex-col justify-center pt-28 pb-16 md:pt-36 md:pb-24",
|
||||
className
|
||||
)}
|
||||
aria-labelledby="hero-contact-heading"
|
||||
>
|
||||
<div className="container mx-auto w-full max-w-7xl px-4 md:px-6">
|
||||
<div className="grid grid-cols-1 items-center justify-items-center gap-10 lg:grid-cols-2 lg:justify-items-stretch">
|
||||
<div className="flex w-full max-w-xl flex-col gap-6 lg:max-w-[40rem]">
|
||||
{eyebrow && (
|
||||
<p className="text-caption font-medium tracking-wider text-muted-foreground uppercase">
|
||||
{eyebrow}
|
||||
</p>
|
||||
)}
|
||||
<div className="flex flex-col gap-6 text-center lg:text-right">
|
||||
<h1
|
||||
id="hero-contact-heading"
|
||||
className="text-heading-1 font-bold leading-tight text-foreground"
|
||||
>
|
||||
{heading}
|
||||
</h1>
|
||||
<p className="text-body text-balance text-muted-foreground">
|
||||
{description}
|
||||
</p>
|
||||
</div>
|
||||
<div className="flex flex-wrap justify-center gap-4 py-4 lg:justify-start">
|
||||
<Button
|
||||
asChild
|
||||
className="h-fit w-fit rounded-sm px-5 py-3.5 text-body-sm font-medium tracking-wider uppercase text-foreground"
|
||||
>
|
||||
<a
|
||||
href={ctaHref}
|
||||
onClick={ctaHref.startsWith("#") ? handleCtaClick : undefined}
|
||||
className="inline-flex items-center justify-center"
|
||||
>
|
||||
<span className="text-inherit">{ctaLabel}</span>
|
||||
</a>
|
||||
</Button>
|
||||
{videoLabel && videoId && (
|
||||
<Button
|
||||
type="button"
|
||||
variant="ghost"
|
||||
onClick={() => setIsVideoOpen(true)}
|
||||
className="flex h-fit w-fit flex-nowrap items-center gap-2 rounded-sm bg-transparent px-5 py-3.5 text-body-sm font-medium tracking-wider uppercase text-foreground"
|
||||
>
|
||||
<Play className="h-4 w-4 fill-foreground" aria-hidden />
|
||||
<span>{videoLabel}</span>
|
||||
</Button>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
<div className="flex w-full justify-center">
|
||||
{imageSrc ? (
|
||||
<div className="relative mx-auto aspect-[4/3] w-full max-w-[25rem] overflow-hidden rounded-[35px]">
|
||||
<img
|
||||
src={imageSrc}
|
||||
alt={imageAlt}
|
||||
className="size-full object-cover object-center"
|
||||
/>
|
||||
</div>
|
||||
) : (
|
||||
<div className="relative mx-auto aspect-[0.789340102/1] w-full max-w-[25rem]">
|
||||
<div className="absolute bottom-0 left-0 z-30 w-[63%]">
|
||||
<AspectRatio
|
||||
ratio={0.724137931 / 1}
|
||||
className="overflow-hidden rounded-lg"
|
||||
>
|
||||
<img
|
||||
src="https://deifkwefumgah.cloudfront.net/shadcnblocks/block/placeholder-1.svg"
|
||||
alt=""
|
||||
className="size-full object-cover object-center"
|
||||
/>
|
||||
</AspectRatio>
|
||||
</div>
|
||||
<div className="absolute top-1/2 left-1/2 z-20 w-[63%] -translate-x-1/2 -translate-y-1/2">
|
||||
<AspectRatio
|
||||
ratio={0.724137931 / 1}
|
||||
className="overflow-hidden rounded-lg"
|
||||
>
|
||||
<img
|
||||
src="https://deifkwefumgah.cloudfront.net/shadcnblocks/block/placeholder-dark-1.svg"
|
||||
alt=""
|
||||
className="size-full object-cover object-center"
|
||||
/>
|
||||
</AspectRatio>
|
||||
</div>
|
||||
<div className="absolute top-0 right-0 z-10 w-[63%]">
|
||||
<AspectRatio
|
||||
ratio={0.724137931 / 1}
|
||||
className="overflow-hidden rounded-lg"
|
||||
>
|
||||
<img
|
||||
src="https://deifkwefumgah.cloudfront.net/shadcnblocks/block/placeholder-1.svg"
|
||||
alt=""
|
||||
className="size-full object-cover object-center"
|
||||
/>
|
||||
</AspectRatio>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{videoId && (
|
||||
<Dialog open={isVideoOpen} onOpenChange={setIsVideoOpen}>
|
||||
<DialogContent className="sm:max-w-[800px]" dir="rtl">
|
||||
<DialogHeader>
|
||||
<DialogTitle>ویدیو معرفی</DialogTitle>
|
||||
</DialogHeader>
|
||||
<div className="aspect-video">
|
||||
<iframe
|
||||
className="h-full w-full"
|
||||
src={`https://www.youtube.com/embed/${videoId}`}
|
||||
title="ویدیو معرفی"
|
||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
||||
allowFullScreen
|
||||
/>
|
||||
</div>
|
||||
</DialogContent>
|
||||
</Dialog>
|
||||
)}
|
||||
</Fragment>
|
||||
);
|
||||
};
|
||||
|
||||
export { HeroContact };
|
||||
@@ -0,0 +1,244 @@
|
||||
import React from "react";
|
||||
import Link from "next/link";
|
||||
import { ArrowLeft, ArrowRight, ChevronRight } from "lucide-react";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import Image from "next/image";
|
||||
import { TextEffect } from "@/components/ui/text-effect";
|
||||
import { AnimatedGroup } from "@/components/ui/animated-group";
|
||||
import { HeroHeader } from "./header";
|
||||
import { LogoItem } from "@/components/ui/logo-item";
|
||||
|
||||
const transitionVariants = {
|
||||
item: {
|
||||
hidden: {
|
||||
opacity: 0,
|
||||
filter: "blur(12px)",
|
||||
y: 12,
|
||||
},
|
||||
visible: {
|
||||
opacity: 1,
|
||||
filter: "blur(0px)",
|
||||
y: 0,
|
||||
transition: {
|
||||
type: "spring",
|
||||
bounce: 0.3,
|
||||
duration: 1.5,
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default function HeroSection() {
|
||||
return (
|
||||
<>
|
||||
<main className="overflow-hidden">
|
||||
<div
|
||||
aria-hidden
|
||||
className="absolute inset-0 isolate hidden opacity-65 contain-strict lg:block"
|
||||
>
|
||||
<div className="w-140 h-320 -translate-y-87.5 absolute left-0 top-0 -rotate-45 rounded-full bg-[radial-gradient(68.54%_68.72%_at_55.02%_31.46%,hsla(0,0%,85%,.08)_0,hsla(0,0%,55%,.02)_50%,hsla(0,0%,45%,0)_80%)]" />
|
||||
<div className="h-320 absolute left-0 top-0 w-60 -rotate-45 rounded-full bg-[radial-gradient(50%_50%_at_50%_50%,hsla(0,0%,85%,.06)_0,hsla(0,0%,45%,.02)_80%,transparent_100%)] [translate:5%_-50%]" />
|
||||
<div className="h-320 -translate-y-87.5 absolute left-0 top-0 w-60 -rotate-45 bg-[radial-gradient(50%_50%_at_50%_50%,hsla(0,0%,85%,.04)_0,hsla(0,0%,45%,.02)_80%,transparent_100%)]" />
|
||||
</div>
|
||||
<section className="bg-background">
|
||||
<div className="relative pt-24 md:pt-36">
|
||||
<AnimatedGroup
|
||||
variants={{
|
||||
container: {
|
||||
visible: {
|
||||
transition: {
|
||||
delayChildren: 1,
|
||||
},
|
||||
},
|
||||
},
|
||||
item: {
|
||||
hidden: {
|
||||
opacity: 0,
|
||||
y: 20,
|
||||
},
|
||||
visible: {
|
||||
opacity: 1,
|
||||
y: 0,
|
||||
transition: {
|
||||
type: "spring",
|
||||
bounce: 0.3,
|
||||
duration: 2,
|
||||
},
|
||||
},
|
||||
},
|
||||
}}
|
||||
className="mask-b-from-35% mask-b-to-90% absolute inset-0 top-56 -z-20 lg:top-32"
|
||||
>
|
||||
<Image
|
||||
src="/assets/main-pic/main-pic.jpg"
|
||||
alt="background"
|
||||
className="hidden size-full lg:block"
|
||||
width="1150"
|
||||
height="613"
|
||||
/>
|
||||
</AnimatedGroup>
|
||||
|
||||
|
||||
<div className="mx-auto max-w-7xl px-6">
|
||||
<div className="text-center sm:mx-auto lg:mr-auto lg:mt-0">
|
||||
<AnimatedGroup variants={transitionVariants}>
|
||||
<Link
|
||||
href="/contact"
|
||||
className="hover:bg-background dark:hover:border-t-border bg-muted group mx-auto flex w-fit items-center gap-4 rounded-full border border-border p-1 ps-4 shadow-md transition-colors duration-300 dark:border-border dark:shadow-lg"
|
||||
>
|
||||
<span className="text-body-sm text-foreground">
|
||||
معرفی نسل جدید یکپارچهسازی و ارتباطات هوشمند
|
||||
</span>
|
||||
<span className="dark:border-background block h-4 w-0.5 border-s bg-card dark:bg-muted"></span>
|
||||
|
||||
<div className="bg-background group-hover:bg-muted size-6 overflow-hidden rounded-full duration-500">
|
||||
<div className="flex w-12 translate-x-1/2 duration-500 ease-in-out group-hover:translate-x-0">
|
||||
<span className="flex size-6">
|
||||
<ArrowRight className="m-auto size-3" />
|
||||
</span>
|
||||
<span className="flex size-6">
|
||||
<ArrowLeft className="m-auto size-3" />
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</Link>
|
||||
</AnimatedGroup>
|
||||
|
||||
<TextEffect
|
||||
preset="fade-in-blur"
|
||||
speedSegment={0.3}
|
||||
as="h1"
|
||||
className="text-heading-1 mx-auto mt-8 max-w-4xl font-bold text-balance leading-relaxed tracking-normal lg:mt-16"
|
||||
>
|
||||
راهحلهای مدرن برای تعامل هوشمند با مشتری و سیستمهای شما
|
||||
</TextEffect>
|
||||
<TextEffect
|
||||
per="line"
|
||||
preset="fade-in-blur"
|
||||
speedSegment={0.3}
|
||||
delay={0.5}
|
||||
as="p"
|
||||
className="text-body mx-auto mt-8 max-w-2xl text-balance leading-relaxed tracking-normal"
|
||||
>
|
||||
ما مجموعهای از ابزارهای یکپارچهسازی، اتوماسیون و ارتباطات ارائه میکنیم که به شما کمک میکند دادهها، کاربران و فرآیندهای کسبوکارتان را از هر سیستم یا پلتفرمی — از وبسایت و CRM گرفته تا تلگرام و سرویسهای سفارشی — به شکلی دقیق، سریع و قابلاعتماد بهم متصل کنید.
|
||||
</TextEffect>
|
||||
|
||||
<AnimatedGroup
|
||||
variants={{
|
||||
container: {
|
||||
visible: {
|
||||
transition: {
|
||||
staggerChildren: 0.05,
|
||||
delayChildren: 0.75,
|
||||
},
|
||||
},
|
||||
},
|
||||
...transitionVariants,
|
||||
}}
|
||||
className="mt-12 flex flex-col items-center justify-center gap-4 md:flex-row"
|
||||
>
|
||||
<Button asChild size="lg" variant="primary">
|
||||
<Link href="/contact">
|
||||
<span className="text-nowrap">شروع کنید</span>
|
||||
</Link>
|
||||
</Button>
|
||||
</AnimatedGroup>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<AnimatedGroup
|
||||
variants={{
|
||||
container: {
|
||||
visible: {
|
||||
transition: {
|
||||
staggerChildren: 0.05,
|
||||
delayChildren: 0.75,
|
||||
},
|
||||
},
|
||||
},
|
||||
...transitionVariants,
|
||||
}}
|
||||
>
|
||||
<div className="relative mt-8 overflow-hidden px-2 sm:mt-12 md:mt-20 p-2">
|
||||
<div className="ring-background bg-background relative max-w-5xl mx-auto overflow-hidden rounded-2xl border ring-1 aspect-[3/2]">
|
||||
<Image
|
||||
src="/assets/main-pic/Untitled-1 copy-min.jpg"
|
||||
alt="یکپارچهسازی سیستمها و شبکه دیجیتال"
|
||||
fill
|
||||
className="object-cover rounded-2xl inline-block my-0"
|
||||
quality={100}
|
||||
priority
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</AnimatedGroup>
|
||||
</div>
|
||||
</section>
|
||||
<section className="bg-background pb-16 pt-16 md:pb-32">
|
||||
<div className="group relative m-auto max-w-5xl px-6">
|
||||
<div className="absolute inset-0 z-10 flex scale-95 items-center justify-center opacity-0 duration-500 group-hover:scale-100 group-hover:opacity-100">
|
||||
<Link
|
||||
href="/"
|
||||
className="block text-sm duration-150 hover:text-accent transition-colors"
|
||||
>
|
||||
<span> اتصال به سایر سیستم ها </span>
|
||||
|
||||
<ChevronRight className="ml-1 inline-block size-3" />
|
||||
</Link>
|
||||
</div>
|
||||
<div className="group-hover:blur-xs mx-auto mt-12 grid max-w-4xl grid-cols-4 gap-x-12 gap-y-8 transition-all duration-500 group-hover:opacity-50 sm:gap-x-16 sm:gap-y-14">
|
||||
<LogoItem
|
||||
icon="logos:telegram"
|
||||
alt="Telegram Logo"
|
||||
size="md"
|
||||
className="translate-x-1"
|
||||
/>
|
||||
<LogoItem
|
||||
icon="simple-icons:n8n"
|
||||
alt="n8n Logo"
|
||||
size="lg"
|
||||
className="translate-x-4 "
|
||||
/>
|
||||
<LogoItem
|
||||
icon="skill-icons:wordpress"
|
||||
alt="WordPress Logo"
|
||||
size="md"
|
||||
className="-translate-x-2"
|
||||
/>
|
||||
<LogoItem
|
||||
icon="logos:google-icon"
|
||||
alt="Google Logo"
|
||||
size="md"
|
||||
className="translate-x-5"
|
||||
/>
|
||||
<div className="col-span-4 flex justify-center gap-x-12 sm:gap-x-40">
|
||||
<LogoItem
|
||||
icon="logos:whatsapp-icon"
|
||||
alt="WhatsApp Logo"
|
||||
size="md"
|
||||
className="translate-x-2"
|
||||
/>
|
||||
<LogoItem
|
||||
icon="logos:microsoft-windows-icon"
|
||||
alt="Microsoft Windows Logo"
|
||||
size="md"
|
||||
className="translate-x-2"
|
||||
/>
|
||||
<LogoItem
|
||||
icon="skill-icons:github-dark"
|
||||
alt="github Logo"
|
||||
size="md"
|
||||
className="translate-x-4"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,161 @@
|
||||
"use client";
|
||||
|
||||
import { motion } from "framer-motion";
|
||||
import { Autoplay, EffectCoverflow } from "swiper/modules";
|
||||
import { Swiper, SwiperSlide } from "swiper/react";
|
||||
import "swiper/css/effect-coverflow";
|
||||
import "swiper/css/pagination";
|
||||
import "swiper/css/navigation";
|
||||
import "swiper/css";
|
||||
import "swiper/css/effect-cards";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
|
||||
interface HeroPartnersProps {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const HeroPartners = ({ className }: HeroPartnersProps) => {
|
||||
const images = [
|
||||
{
|
||||
src: "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/lummi/random11.jpeg",
|
||||
alt: "لوگوی شرکت همکار و تیم",
|
||||
name: "شرکت راهکارهای فناوری",
|
||||
},
|
||||
{
|
||||
src: "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/lummi/random1.jpeg",
|
||||
alt: "دفتر مرکزی شرکت همکار",
|
||||
name: "آزمایشگاههای نوآوری",
|
||||
},
|
||||
{
|
||||
src: "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/lummi/random2.jpeg",
|
||||
alt: "جلسه همکاری همکاران",
|
||||
name: "همکاران جهانی",
|
||||
},
|
||||
{
|
||||
src: "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/lummi/random11.jpeg",
|
||||
alt: "لوگوی شرکت همکار و تیم",
|
||||
name: "شرکت راهکارهای فناوری",
|
||||
},
|
||||
{
|
||||
src: "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/lummi/random1.jpeg",
|
||||
alt: "دفتر مرکزی شرکت همکار",
|
||||
name: "آزمایشگاههای نوآوری",
|
||||
},
|
||||
{
|
||||
src: "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/lummi/random2.jpeg",
|
||||
alt: "جلسه همکاری همکاران",
|
||||
name: "همکاران جهانی",
|
||||
},
|
||||
{
|
||||
src: "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/lummi/random11.jpeg",
|
||||
alt: "لوگوی شرکت همکار و تیم",
|
||||
name: "شرکت راهکارهای فناوری",
|
||||
},
|
||||
{
|
||||
src: "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/lummi/random1.jpeg",
|
||||
alt: "دفتر مرکزی شرکت همکار",
|
||||
name: "آزمایشگاههای نوآوری",
|
||||
},
|
||||
{
|
||||
src: "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/lummi/random2.jpeg",
|
||||
alt: "جلسه همکاری همکاران",
|
||||
name: "همکاران جهانی",
|
||||
},
|
||||
];
|
||||
|
||||
const css = `
|
||||
.mySwiperHeroAbshodeHamkar {
|
||||
width: 100%;
|
||||
height: 420px;
|
||||
padding-bottom: 50px;
|
||||
}
|
||||
|
||||
.mySwiperHeroAbshodeHamkar .swiper-slide {
|
||||
background-position: center;
|
||||
background-size: cover;
|
||||
width: 300px;
|
||||
}
|
||||
|
||||
.mySwiperHeroAbshodeHamkar .swiper-slide img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.swiper-3d .swiper-slide-shadow-left {
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
.swiper-3d .swiper-slide-shadow-right{
|
||||
background: none;
|
||||
}
|
||||
`;
|
||||
return (
|
||||
<section className={cn("py-32 mx-auto", className)}>
|
||||
<style>{css}</style>
|
||||
<div className="container px-0 sm:px-8 mx-auto">
|
||||
<div className="mx-auto flex max-w-2xl flex-col items-center justify-center gap-4 px-8 sm:px-0">
|
||||
<h1 className="text-center text-heading-1 font-bold">
|
||||
همکاران ما
|
||||
</h1>
|
||||
<p className="text-center text-body text-muted-foreground">
|
||||
مدیریت معاملات بین همکاران صنف طلا با تمرکز بر امنیت، دقت و سرعت در مقیاس واقعی بازار.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="relative mt-12 h-[420px] w-full lg:px-20">
|
||||
<div className="absolute left-0 z-10 h-full w-12 bg-gradient-to-r from-background to-transparent sm:via-background md:w-58 lg:left-16" />
|
||||
<div className="absolute right-0 z-10 h-full w-12 bg-gradient-to-l from-background to-transparent sm:via-background md:w-58 lg:right-16" />
|
||||
<motion.div
|
||||
initial={{ opacity: 0 }}
|
||||
animate={{ opacity: 1 }}
|
||||
transition={{ duration: 0.3 }}
|
||||
className="w-full"
|
||||
>
|
||||
<Swiper
|
||||
autoplay={{
|
||||
delay: 1500,
|
||||
disableOnInteraction: false,
|
||||
}}
|
||||
effect="coverflow"
|
||||
grabCursor={true}
|
||||
slidesPerView="auto"
|
||||
centeredSlides={true}
|
||||
loop={true}
|
||||
coverflowEffect={{
|
||||
rotate: 50,
|
||||
stretch: 0,
|
||||
depth: 100,
|
||||
modifier: 1,
|
||||
slideShadows: true,
|
||||
}}
|
||||
className="mySwiperHeroAbshodeHamkar"
|
||||
modules={[EffectCoverflow, Autoplay]}
|
||||
>
|
||||
{images.map((image, index) => (
|
||||
<SwiperSlide key={index}>
|
||||
<img
|
||||
className="h-full w-full overflow-hidden rounded-3xl object-cover shadow-lg"
|
||||
src={image.src}
|
||||
alt={image.alt}
|
||||
/>
|
||||
</SwiperSlide>
|
||||
))}
|
||||
</Swiper>
|
||||
</motion.div>
|
||||
</div>
|
||||
|
||||
<div className="relative mx-auto mt-4 flex w-fit justify-center">
|
||||
<Button size="lg" variant="primary">
|
||||
همکار شوید
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { HeroPartners };
|
||||
|
||||
@@ -0,0 +1,100 @@
|
||||
import { ArrowUpRight } from "lucide-react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
|
||||
interface HeroProductProps {
|
||||
heading?: string;
|
||||
headingLine2?: string;
|
||||
subheading?: string;
|
||||
description?: string;
|
||||
image?: {
|
||||
src: string;
|
||||
alt: string;
|
||||
};
|
||||
buttons?: {
|
||||
primary?: {
|
||||
text: string;
|
||||
url: string;
|
||||
};
|
||||
secondary?: {
|
||||
text: string;
|
||||
url: string;
|
||||
};
|
||||
};
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const HeroProduct = ({
|
||||
subheading = "",
|
||||
heading = " سامانه معاملات آبشده همکاران",
|
||||
headingLine2,
|
||||
description = "سامانه تخصصی ثبت، مدیریت و تسویه معاملات آبشده برای فعالان حرفهای بازار.\nبدون تماسهای مکرر، بدون اختلاف حساب، با دسترسی لحظهای به مانده و ریز معاملات.",
|
||||
buttons = {
|
||||
primary: {
|
||||
text: "درخواست جلسه معرفی",
|
||||
url: "#",
|
||||
}
|
||||
},
|
||||
image = {
|
||||
src: "https://deifkwefumgah.cloudfront.net/shadcnblocks/block/placeholder-dark-7-tall.svg",
|
||||
alt: "Placeholder",
|
||||
},
|
||||
className,
|
||||
}: HeroProductProps) => {
|
||||
return (
|
||||
<section className={cn("pt-24 pb-16 md:py-24 lg:py-32", className)}>
|
||||
<div className="container mx-auto flex flex-col items-center gap-10 px-6 lg:my-0 lg:flex-row">
|
||||
<div className="flex flex-col gap-7 text-center lg:w-2/3 lg:text-start">
|
||||
<h1 className="text-heading-1 font-bold leading-[var(--line-height-heading)] text-foreground">
|
||||
<span>{heading}</span>
|
||||
{headingLine2 != null && headingLine2 !== "" && (
|
||||
<>
|
||||
<br />
|
||||
<span>{headingLine2}</span>
|
||||
</>
|
||||
)}
|
||||
{!headingLine2 && subheading ? (
|
||||
<span className="text-muted-foreground">{subheading}</span>
|
||||
) : null}
|
||||
</h1>
|
||||
<p className="max-w-2xl text-body leading-[var(--line-height-body)] text-justify text-muted-foreground whitespace-pre-line">
|
||||
{description}
|
||||
</p>
|
||||
<div className="flex flex-wrap items-center justify-center gap-4 lg:justify-start">
|
||||
<Button asChild size="lg" variant="primary">
|
||||
<a href={buttons.primary?.url}>
|
||||
<ArrowUpRight className="size-4" />
|
||||
<span className="whitespace-nowrap">{buttons.primary?.text}</span>
|
||||
</a>
|
||||
</Button>
|
||||
{buttons.secondary?.url && buttons.secondary?.text && (
|
||||
<Button asChild size="lg" variant="secondary">
|
||||
<a href={buttons.secondary.url}>{buttons.secondary.text}</a>
|
||||
</Button>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
<div className="relative z-10">
|
||||
<div className="absolute top-2.5 left-1/2! h-[92%]! w-[69%]! -translate-x-[52%] overflow-hidden rounded-[35px]">
|
||||
<img
|
||||
src={image.src}
|
||||
alt={image.alt}
|
||||
className="size-full object-cover object-[50%_0%]"
|
||||
/>
|
||||
</div>
|
||||
<img
|
||||
className="relative z-10"
|
||||
src="https://deifkwefumgah.cloudfront.net/shadcnblocks/block/mockups/phone-2.png"
|
||||
width={450}
|
||||
height={889}
|
||||
alt="iphone"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { HeroProduct };
|
||||
@@ -0,0 +1,12 @@
|
||||
|
||||
import Footer5 from './footer'
|
||||
|
||||
|
||||
export default function HeroSectionTailark() {
|
||||
return (
|
||||
<>
|
||||
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user