Initial import of 1407 block sources under blocks/
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,115 @@
|
||||
"use client";
|
||||
|
||||
import { motion } from "framer-motion";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
const galleryImages = [
|
||||
[
|
||||
"/block-media/shadcnblocks/block/lummi/bw1.jpeg",
|
||||
"/block-media/shadcnblocks/block/lummi/bw2.jpeg",
|
||||
"/block-media/shadcnblocks/block/lummi/bw3.jpeg",
|
||||
"/block-media/shadcnblocks/block/lummi/bw4.jpeg",
|
||||
"/block-media/shadcnblocks/block/lummi/bw5.jpeg",
|
||||
"/block-media/shadcnblocks/block/lummi/bw6.jpeg",
|
||||
],
|
||||
[
|
||||
"/block-media/shadcnblocks/block/lummi/bw7.jpeg",
|
||||
"/block-media/shadcnblocks/block/lummi/bw8.jpeg",
|
||||
"/block-media/shadcnblocks/block/lummi/bw9.jpeg",
|
||||
"/block-media/shadcnblocks/block/lummi/bw10.jpeg",
|
||||
"/block-media/shadcnblocks/block/lummi/bw11.jpeg",
|
||||
"/block-media/shadcnblocks/block/lummi/bw12.jpeg",
|
||||
],
|
||||
];
|
||||
|
||||
interface Hero234Props {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Hero234 = ({ className }: Hero234Props) => {
|
||||
return (
|
||||
<section
|
||||
className={cn(
|
||||
"relative min-h-screen overflow-hidden bg-background",
|
||||
className,
|
||||
)}
|
||||
>
|
||||
<div className="absolute inset-0 flex flex-col justify-center gap-4">
|
||||
{galleryImages.map((row, rowIndex) => (
|
||||
<motion.div
|
||||
key={rowIndex}
|
||||
className="flex gap-4 will-change-transform"
|
||||
animate={{
|
||||
x: rowIndex === 1 ? [-1920, 0] : [0, -1920],
|
||||
}}
|
||||
transition={{
|
||||
duration: 30,
|
||||
repeat: Infinity,
|
||||
ease: "linear",
|
||||
}}
|
||||
>
|
||||
{[...row, ...row, ...row].map((image, imageIndex) => (
|
||||
<motion.div
|
||||
key={`${rowIndex}-${imageIndex}`}
|
||||
className="relative flex-shrink-0 overflow-hidden rounded-lg"
|
||||
style={{
|
||||
width: rowIndex === 1 ? "280px" : "240px",
|
||||
height: rowIndex === 1 ? "350px" : "300px",
|
||||
}}
|
||||
whileHover={{ scale: 1.05 }}
|
||||
transition={{ duration: 0.3 }}
|
||||
>
|
||||
<img
|
||||
src={image}
|
||||
alt="تصویر نمونه"
|
||||
className="h-full w-full object-cover"
|
||||
/>
|
||||
</motion.div>
|
||||
))}
|
||||
</motion.div>
|
||||
))}
|
||||
</div>
|
||||
|
||||
{/* Left side masks */}
|
||||
<div className="absolute top-0 left-0 z-10 h-full w-[160px] bg-gradient-to-r from-background to-transparent md:w-[200px]" />
|
||||
|
||||
{/* Right side masks */}
|
||||
<div className="absolute top-0 right-0 z-10 h-full w-[160px] bg-gradient-to-l from-background to-transparent md:w-[200px]" />
|
||||
|
||||
<div className="relative z-20 flex min-h-screen items-center justify-center">
|
||||
<motion.div
|
||||
className="rounded-lg bg-black/60 p-8 backdrop-blur-md md:p-12"
|
||||
initial={{ opacity: 0, x: -50 }}
|
||||
animate={{ opacity: 1, x: 0 }}
|
||||
transition={{ duration: 0.8, delay: 0.5 }}
|
||||
>
|
||||
<motion.h1
|
||||
className="text-3xl leading-tight text-white md:text-2xll lg:text-2xll"
|
||||
initial={{ opacity: 0, y: 30 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
transition={{ duration: 0.8, delay: 0.7 }}
|
||||
>
|
||||
استودیویی برای <br />
|
||||
طراحی دیجیتال <br />
|
||||
میآفریند
|
||||
</motion.h1>
|
||||
|
||||
<motion.div
|
||||
className="mt-6"
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
transition={{ duration: 0.6, delay: 1 }}
|
||||
>
|
||||
<Button size="lg" variant="secondary">
|
||||
مشاهده مطالعات موردی
|
||||
</Button>
|
||||
</motion.div>
|
||||
</motion.div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Hero234 };
|
||||
Reference in New Issue
Block a user