Initial import of 1407 block sources under blocks/
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,191 @@
|
||||
"use client";
|
||||
|
||||
import { motion } from "framer-motion";
|
||||
import { ArrowUpRight } from "lucide-react";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { Card, CardContent } from "@/components/ui/card";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
type ServiceProps = {
|
||||
title: string;
|
||||
image: string;
|
||||
url: string;
|
||||
size?: "large" | "medium" | "small";
|
||||
};
|
||||
|
||||
const services: ServiceProps[] = [
|
||||
{
|
||||
title: "توسعه وب",
|
||||
image:
|
||||
"/block-media/shadcnblocks/block/photos/simone-hutsch-6jEVl7xPH3E-unsplash.jpg",
|
||||
url: "",
|
||||
size: "large",
|
||||
},
|
||||
{
|
||||
title: "توسعه اپلیکیشن موبایل",
|
||||
image:
|
||||
"/block-media/shadcnblocks/block/photos/simone-hutsch-gDmVqxZt1hg-unsplash.jpg",
|
||||
url: "",
|
||||
size: "medium",
|
||||
},
|
||||
{
|
||||
title: "طراحی رابط کاربری/تجربه کاربری",
|
||||
image:
|
||||
"/block-media/shadcnblocks/block/photos/simone-hutsch-9__Q24sJqKg-unsplash.jpg",
|
||||
url: "",
|
||||
size: "small",
|
||||
},
|
||||
{
|
||||
title: "بازاریابی دیجیتال",
|
||||
image:
|
||||
"/block-media/shadcnblocks/block/photos/simone-hutsch-duxeKbu9FDE-unsplash.jpg",
|
||||
url: "",
|
||||
size: "medium",
|
||||
},
|
||||
{
|
||||
title: "راهحلهای ابری",
|
||||
image:
|
||||
"/block-media/shadcnblocks/block/photos/simone-hutsch-5oYbG-sEImY-unsplash.jpg",
|
||||
url: "",
|
||||
size: "small",
|
||||
},
|
||||
];
|
||||
|
||||
interface Services13Props {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Services13 = ({ className }: Services13Props) => {
|
||||
return (
|
||||
<section dir="rtl" lang="fa" className={cn("py-32", className)}>
|
||||
<div className="container grid grid-cols-1 gap-10 lg:grid-cols-3">
|
||||
<div className="flex flex-col justify-between lg:col-span-1">
|
||||
<div>
|
||||
<h2 className="mb-4 text-xl font-medium text-foreground md:text-2xll">
|
||||
خدمات ویژه
|
||||
</h2>
|
||||
<p className="w-72 text-base tracking-tight text-muted-foreground">
|
||||
راهحلهای دیجیتال جامع ارائه میدهیم تا کسبوکار شما رشد کند. از
|
||||
توسعه وب تا اپلیکیشن موبایل، نتایجی فراتر از انتظار تحویل
|
||||
میدهیم.
|
||||
</p>
|
||||
</div>
|
||||
<Button variant="outline" className="mt-8 w-fit">
|
||||
مشاهده همه خدمات
|
||||
<ArrowUpRight className="ms-2 h-4 w-4 rtl:rotate-180" />
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
<div className="grid grid-cols-1 gap-6 sm:grid-cols-2 lg:col-span-2">
|
||||
{/* Web Development - Hero card */}
|
||||
<motion.a
|
||||
href={services[0].url}
|
||||
whileHover={{ opacity: 0.8, scale: 1.02 }}
|
||||
className="group col-span-1 block overflow-hidden rounded-xl sm:col-span-2"
|
||||
>
|
||||
<Card className="relative aspect-[16/9] overflow-hidden p-0">
|
||||
<img
|
||||
src={services[0].image}
|
||||
alt={services[0].title}
|
||||
className="absolute inset-0 h-full w-full object-cover"
|
||||
/>
|
||||
<CardContent className="absolute inset-0 flex flex-col justify-end p-8">
|
||||
<div className="pe-4 text-xl font-bold text-white">
|
||||
{services[0].title}
|
||||
</div>
|
||||
</CardContent>
|
||||
<ArrowUpRight className="absolute top-8 end-8 h-8 w-8 text-white transition-transform group-hover:scale-110 rtl:rotate-180" />
|
||||
</Card>
|
||||
</motion.a>
|
||||
|
||||
{/* Mobile App Development */}
|
||||
<motion.a
|
||||
href={services[1].url}
|
||||
whileHover={{ opacity: 0.8, scale: 1.02 }}
|
||||
className="group block overflow-hidden rounded-xl"
|
||||
>
|
||||
<Card className="relative aspect-[4/5] overflow-hidden p-0">
|
||||
<img
|
||||
src={services[1].image}
|
||||
alt={services[1].title}
|
||||
className="absolute inset-0 h-full w-full object-cover"
|
||||
/>
|
||||
<CardContent className="absolute inset-0 flex flex-col justify-end p-6">
|
||||
<div className="pe-4 text-lg font-semibold text-white">
|
||||
{services[1].title}
|
||||
</div>
|
||||
</CardContent>
|
||||
<ArrowUpRight className="absolute top-6 end-6 h-6 w-6 text-white transition-transform group-hover:scale-110 rtl:rotate-180" />
|
||||
</Card>
|
||||
</motion.a>
|
||||
|
||||
{/* UI/UX Design */}
|
||||
<motion.a
|
||||
href={services[2].url}
|
||||
whileHover={{ opacity: 0.8, scale: 1.02 }}
|
||||
className="group block overflow-hidden rounded-xl"
|
||||
>
|
||||
<Card className="relative aspect-[4/5] overflow-hidden p-0">
|
||||
<img
|
||||
src={services[2].image}
|
||||
alt={services[2].title}
|
||||
className="absolute inset-0 h-full w-full object-cover"
|
||||
/>
|
||||
<CardContent className="absolute inset-0 flex flex-col justify-end p-6">
|
||||
<div className="pe-4 text-lg font-semibold text-white">
|
||||
{services[2].title}
|
||||
</div>
|
||||
</CardContent>
|
||||
<ArrowUpRight className="absolute top-6 end-6 h-6 w-6 text-white transition-transform group-hover:scale-110 rtl:rotate-180" />
|
||||
</Card>
|
||||
</motion.a>
|
||||
|
||||
{/* Digital Marketing */}
|
||||
<motion.a
|
||||
href={services[3].url}
|
||||
whileHover={{ opacity: 0.8, scale: 1.02 }}
|
||||
className="group block overflow-hidden rounded-xl"
|
||||
>
|
||||
<Card className="relative aspect-[4/5] overflow-hidden p-0">
|
||||
<img
|
||||
src={services[3].image}
|
||||
alt={services[3].title}
|
||||
className="absolute inset-0 h-full w-full object-cover"
|
||||
/>
|
||||
<CardContent className="absolute inset-0 flex flex-col justify-end p-6">
|
||||
<div className="pe-4 text-lg font-semibold text-white">
|
||||
{services[3].title}
|
||||
</div>
|
||||
</CardContent>
|
||||
<ArrowUpRight className="absolute top-6 end-6 h-6 w-6 text-white transition-transform group-hover:scale-110 rtl:rotate-180" />
|
||||
</Card>
|
||||
</motion.a>
|
||||
|
||||
{/* Cloud Solutions */}
|
||||
<motion.a
|
||||
href={services[4].url}
|
||||
whileHover={{ opacity: 0.8, scale: 1.02 }}
|
||||
className="group block overflow-hidden rounded-xl"
|
||||
>
|
||||
<Card className="relative aspect-[4/5] overflow-hidden p-0">
|
||||
<img
|
||||
src={services[4].image}
|
||||
alt={services[4].title}
|
||||
className="absolute inset-0 h-full w-full object-cover"
|
||||
/>
|
||||
<CardContent className="absolute inset-0 flex flex-col justify-end p-6">
|
||||
<div className="pe-4 text-lg font-semibold text-white">
|
||||
{services[4].title}
|
||||
</div>
|
||||
</CardContent>
|
||||
<ArrowUpRight className="absolute top-6 end-6 h-6 w-6 text-white transition-transform group-hover:scale-110 rtl:rotate-180" />
|
||||
</Card>
|
||||
</motion.a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Services13 };
|
||||
Reference in New Issue
Block a user