"use client";
import { motion, useReducedMotion } from "motion/react";
import { Check, ChevronLeft, LayoutTemplate, Lock } from "lucide-react";
import Link from "next/link";
import { Container } from "@/components/container";
import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";
import { blockEase } from "@/lib/block-motion";
import { layout } from "@/lib/layout";
import { type } from "@/lib/typography";
import { cn } from "@/lib/utils";
/** Soft page-load entrance — opacity + gentle rise. */
const heroFadeEase = blockEase;
const heroContainerVariants = {
hidden: {},
visible: {
transition: {
staggerChildren: 0.14,
delayChildren: 0.06,
},
},
};
const heroColumnVariants = {
hidden: {},
visible: {
transition: {
staggerChildren: 0.09,
delayChildren: 0.04,
},
},
};
const heroItemVariants = {
hidden: { opacity: 0, y: 14 },
visible: {
opacity: 1,
y: 0,
transition: { duration: 0.7, ease: heroFadeEase },
},
};
const heroMockupVariants = {
hidden: { opacity: 0, y: 20, scale: 0.985 },
visible: {
opacity: 1,
y: 0,
scale: 1,
transition: { duration: 0.9, ease: heroFadeEase },
},
};
/** Very soft float — long cycle, tiny travel, custom ease. */
const floatTransition = {
duration: 11,
repeat: Infinity,
ease: [0.45, 0.05, 0.55, 0.95] as const,
};
const trustAvatars = [
{ initials: "سا", tone: "bg-primary/15 text-primary" },
{ initials: "ام", tone: "bg-muted text-foreground" },
{ initials: "نر", tone: "bg-primary/10 text-primary" },
{ initials: "مد", tone: "bg-muted text-muted-foreground" },
] as const;
const screenBlocks = [
{ label: "طراحی", w: "w-[42%]" },
{ label: "سئو", w: "w-[34%]" },
{ label: "پشتیبانی", w: "w-[48%]" },
] as const;
/** Soft ease for in-screen design loop. */
const screenLoopEase = [0.45, 0.05, 0.55, 0.95] as const;
/** Extra-soft ease for skeleton text lines — slow in/out, no snap. */
const screenLineEase = [0.37, 0, 0.2, 1] as const;
const screenLineTransition = {
duration: 9.5,
repeat: Infinity,
ease: screenLineEase,
times: [0, 0.35, 0.65, 1] as const,
};
interface HeroReuiProps {
className?: string;
}
export function HeroReui({ className }: HeroReuiProps) {
const reduceMotion = useReducedMotion();
return (
مورد اعتماد کسبوکارهایی که رشد آنلاین میخواهند
در حال طراحی
لندینگ فروشگاهی