146 lines
5.7 KiB
TypeScript
146 lines
5.7 KiB
TypeScript
"use client";
|
|
|
|
import { ArrowRight } from "lucide-react";
|
|
|
|
import { Button } from "@/components/ui/button";
|
|
import { cn } from "@/lib/utils";
|
|
|
|
interface Project2cProps {
|
|
title: string;
|
|
title2?: string;
|
|
year: string;
|
|
category: string;
|
|
client: string;
|
|
imageSrc: string;
|
|
imageAlt: string;
|
|
imageCaption?: string;
|
|
overviewHeading: string;
|
|
mainDescription: string;
|
|
detailDescription: string;
|
|
buttonText: string;
|
|
className?: string;
|
|
}
|
|
|
|
const Project2c = ({
|
|
title = "دیجیتال",
|
|
title2 = "تیم",
|
|
year = "«۲۲۴»",
|
|
category = "«دیزاین سیستم»",
|
|
client = "«استودیو محصول»",
|
|
imageSrc = "/block-media/shadcnblocks/block/photos/artistic-portrait-glitch-yqp6z.png",
|
|
imageAlt = "میز کار طراح با ابزارها و عناصر دیزاین سیستم",
|
|
imageCaption = "نمای داشبورد فروش با نمودارهای KPI و خط لوله معاملات",
|
|
overviewHeading = "مرور پروژه",
|
|
mainDescription = "یک رابط پویا که KPIهای فروش، نرخ تبدیل و عملکرد تیم را در یک داشبورد یکپارچه نمایش میدهد.",
|
|
detailDescription = "این پروژه بر یک صفحه فرود محصول متمرکز است که برای بازتاب روح نوآورانه و پویای برند طراحی شده است. رابط با گرادیانهای نرم و میکروانیمیشنهای ظریف ساخته شده تا حس حرکت و مدرنبودن را منتقل کند. ترکیب تایپوگرافی درشت و تم تیره، هویت آیندهنگر برند را تجسم میکند و چیدمان واکنشگرا تجربهای یکدست و بهیادماندنی میسازد. این رابط با بلاکهای آماده shadcn پیاده شده تا ترکیبی از خلاقیت، سرعت و کیفیت را به نمایش بگذارد.",
|
|
buttonText = "تماس با ما",
|
|
className,
|
|
}: Project2cProps) => {
|
|
return (
|
|
<section dir="rtl" lang="fa" className={cn("py-32", className)}>
|
|
<div className="container mx-auto px-6 py-16 lg:px-8">
|
|
<div className="mb-20">
|
|
<div className="mb-16 text-start">
|
|
<div className="mb-6 flex items-center gap-4">
|
|
<div className="h-2 w-2 bg-foreground"></div>
|
|
<span className="text-sm font-medium text-muted-foreground">
|
|
نمایش پروژه
|
|
</span>
|
|
</div>
|
|
<h1 className="text-6xl leading-[0.85] font-light tracking-tight text-foreground md:text-8xl lg:text-9xl">
|
|
{title}
|
|
{title2 && (
|
|
<>
|
|
<br />
|
|
{title2}
|
|
</>
|
|
)}
|
|
</h1>
|
|
</div>
|
|
|
|
<div className="grid grid-cols-1 gap-8 text-start md:grid-cols-3">
|
|
<div className="group">
|
|
<div className="h-px w-full bg-border"></div>
|
|
<div className="mt-4 text-sm font-medium text-muted-foreground">
|
|
سال همکاری
|
|
</div>
|
|
<div className="mt-1 text-lg text-foreground">{year}</div>
|
|
</div>
|
|
<div className="group">
|
|
<div className="h-px w-full bg-border"></div>
|
|
<div className="mt-4 text-sm font-medium text-muted-foreground">
|
|
حوزه
|
|
</div>
|
|
<div className="mt-1 text-lg text-foreground">{category}</div>
|
|
</div>
|
|
<div className="group">
|
|
<div className="h-px w-full bg-border"></div>
|
|
<div className="mt-4 text-sm font-medium text-muted-foreground">
|
|
سازمان مشتری
|
|
</div>
|
|
<div className="mt-1 text-lg text-foreground">{client}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div className="mb-20">
|
|
<div className="aspect-[16/9] overflow-hidden">
|
|
<img
|
|
src={imageSrc}
|
|
alt={imageAlt}
|
|
className="h-full w-full object-cover"
|
|
/>
|
|
</div>
|
|
{imageCaption && (
|
|
<div className="mt-6 text-start">
|
|
<p className="text-sm font-medium text-muted-foreground">
|
|
{imageCaption}
|
|
</p>
|
|
</div>
|
|
)}
|
|
</div>
|
|
|
|
<div className="space-y-16">
|
|
<div className="flex flex-col lg:flex-row lg:items-start lg:gap-16">
|
|
<div className="mb-8 text-start lg:mb-0 lg:w-1/3">
|
|
<div className="sticky top-8">
|
|
<div className="mb-4 flex items-center gap-3">
|
|
<div className="h-3 w-3 bg-foreground"></div>
|
|
<h2 className="text-lg font-medium text-foreground">
|
|
{overviewHeading}
|
|
</h2>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div className="text-start lg:w-2/3">
|
|
<div className="space-y-12">
|
|
<div className="relative">
|
|
<h3 className="text-3xl leading-tight font-light text-foreground md:text-4xl">
|
|
{mainDescription}
|
|
</h3>
|
|
</div>
|
|
|
|
<div>
|
|
<p className="text-lg leading-relaxed text-muted-foreground">
|
|
{detailDescription}
|
|
</p>
|
|
</div>
|
|
|
|
<div className="flex justify-start">
|
|
<Button variant="outline" className="group gap-2">
|
|
{buttonText}
|
|
<ArrowRight className="size-4 transition-transform rtl:rotate-180" />
|
|
</Button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
);
|
|
};
|
|
|
|
export { Project2c };
|