82 lines
3.6 KiB
TypeScript
82 lines
3.6 KiB
TypeScript
"use client";
|
|
|
|
import { motion } from "framer-motion";
|
|
import { ArrowRight } from "lucide-react";
|
|
import React from "react";
|
|
|
|
import { PointerHighlight } from "@/components/aceternity/pointer-highlight";
|
|
import { Button } from "@/components/ui/button";
|
|
import { useIsMobile } from "@/hooks/use-mobile";
|
|
import { cn } from "@/lib/utils";
|
|
|
|
interface Hero245Props {
|
|
className?: string;
|
|
}
|
|
|
|
const Hero245 = ({ className }: Hero245Props) => {
|
|
const isMobile = useIsMobile();
|
|
|
|
return (
|
|
<section
|
|
className={cn("relative grid w-screen overflow-hidden py-32", className)}
|
|
>
|
|
<div className="relative z-10 container h-full grid-cols-1 items-center justify-center gap-6">
|
|
<div className="flex flex-col items-center justify-center text-center">
|
|
<div className="mb-10 flex items-center justify-center gap-3 rounded-full bg-muted-foreground/5 p-1 pe-4 text-sm font-medium tracking-tight text-muted-foreground">
|
|
<div className="flex items-center gap-3 rounded-full bg-muted-foreground/10 px-4 py-1.5">
|
|
<span className="inline-block size-2 rounded-full bg-blue-500" />
|
|
<span>در حال استخدام هستیم</span>
|
|
</div>
|
|
<div className="flex items-center gap-2">
|
|
به تیم ما بپیوندید{" "}
|
|
<ArrowRight className="size-4 rtl:rotate-180" />
|
|
</div>
|
|
</div>
|
|
<h1 className="max-w-2xl text-2xll font-semibold tracking-tighter lg:text-2xll">
|
|
پروژه بعدی خود را با{" "}
|
|
<PointerHighlight containerClassName="inline-block">
|
|
<span>آماده تولید</span>
|
|
</PointerHighlight>
|
|
به سطحی حرفهای ارتقا دهید
|
|
</h1>
|
|
<p className="mt-10 max-w-lg text-muted-foreground">
|
|
صدها بلاک و کامپوننت آماده مبتنی بر رابط کاربری، استایلدهی مدرن و ری یو آی که مستقیماً در پروژههای شما قابل استفاده هستند.
|
|
</p>
|
|
|
|
<div className="mt-10 flex w-full flex-col items-center justify-center gap-2">
|
|
<Button className="rounded-2xl px-6 py-6 text-background shadow-[0px_1px_3px_#0000001a,inset_0px_2px_0px_#ffffff40] md:rounded-3xl md:px-7 md:py-7 md:text-base">
|
|
<p className="ms-1 text-xl text-background md:ms-3 md:text-xl">
|
|
|
|
</p>{" "}
|
|
دانلود نسخه macOS
|
|
</Button>
|
|
<Button className="text-sm text-muted-foreground" variant="link">
|
|
دانلود نسخه Windows
|
|
</Button>
|
|
</div>
|
|
</div>
|
|
<div className="relative mt-10 flex h-[80vh] w-full items-center justify-center overflow-hidden rounded-4xl border">
|
|
<img
|
|
src="/block-media/shadcnblocks/block/guri3/img7.jpeg"
|
|
alt="تصویر نمونه"
|
|
className="size-full object-cover"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div className="absolute inset-0 flex h-full w-full items-center justify-between">
|
|
{Array.from({ length: isMobile ? 8 : 18 }).map((_, index) => (
|
|
<motion.div
|
|
initial={{ opacity: 0 }}
|
|
whileInView={{ opacity: 1 }}
|
|
transition={{ duration: 0.5, delay: index * 0.05 }}
|
|
key={index}
|
|
className="h-full w-10 bg-gradient-to-l from-transparent to-muted/50"
|
|
></motion.div>
|
|
))}
|
|
</div>
|
|
</section>
|
|
);
|
|
};
|
|
|
|
export { Hero245 };
|