Files

51 lines
1.8 KiB
TypeScript

import React from "react";
import { cn } from "@/lib/utils";
interface Awards2Props {
className?: string;
}
const faYear = (year: number) => year.toLocaleString("fa-IR");
const Awards2 = ({ className }: Awards2Props) => {
const awards = [
{ title: "جایزه همکاری خلاقانه", year: 2023 },
{ title: "جایزه تعالی طراحی", year: 2023 },
{ title: "نوآوری در توسعه وب", year: 2022 },
{ title: "بهترین طراحی تجربه کاربری", year: 2022 },
{ title: "طراحی بصری برجسته", year: 2021 },
{ title: "جایزه نوآوری دیجیتال", year: 2021 },
{ title: "تعالی فناوری خلاقانه", year: 2020 },
{ title: "بهترین طراحی تعاملی", year: 2020 },
{ title: "دستاورد طراحی وب", year: 2019 },
];
return (
<section dir="rtl" lang="fa" className={cn("py-32", className)}>
<div className="container">
<div className="grid grid-cols-1 gap-20 lg:grid-cols-6">
<div className="top-10 col-span-2 flex h-fit w-fit items-center gap-3 py-8 lg:sticky">
<span className="size-3 bg-orange-500" />
<p className="text-xl text-foreground/30">جوایز</p>
</div>
<ul className="col-span-4 w-full">
{awards.map((award, index) => (
<li key={index} className="flex justify-between border-b py-4">
<h3 className="text-xl font-medium tracking-tight">
{award.title}
</h3>
<p className="font-mono text-lg tracking-tighter text-foreground/50">
{faYear(award.year)}
</p>
</li>
))}
</ul>
</div>
</div>
</section>
);
};
export { Awards2 };