turkmen-expo/components/shared/Events.tsx

74 lines
2.2 KiB
TypeScript
Raw Normal View History

import { getTranslations } from "next-intl/server";
2025-10-12 17:42:17 +00:00
const events = [
{
link: "https://kids.turkmenexpo.com/",
2025-10-12 17:42:17 +00:00
video:
"https://editor.turkmenexpo.com/storage/app/media/video/KidsExpo%202024_%20Turkmenistan.mp4",
logo: "https://kids.turkmenexpo.com/logo.svg",
},
{
link: "https://turkmentextile.turkmenexpo.com/",
2025-10-12 17:42:17 +00:00
video:
"https://turkmentextile.turkmenexpo.com/app/storage/app/media/video/Textile2025.mp4",
logo: "/assets/icons/turkmen-textile.png",
},
{
link: "https://itse.turkmenexpo.com/",
2025-10-12 17:42:17 +00:00
video:
"https://itse.turkmenexpo.com/app/storage/app/media/video/itse2025.mp4",
logo: "https://itse.turkmenexpo.com/logo.svg",
},
];
export const Events = async ({ lang }: { lang: string }) => {
const t = await getTranslations("home");
2025-10-12 17:42:17 +00:00
return (
<section>
<div className="container md:block">
<div className="sm:mb-10">
<h2 className="text-center font-semibold text-3xl mb-8">
{t("exhibitions")} <span className="text-PRIMARY">Turkmen</span>
2025-11-22 16:37:30 +00:00
<span className="text-red">Expo 2025</span>
2025-10-12 17:42:17 +00:00
</h2>
</div>
<div className="w-full flex flex-col items-center gap-8 lg:flex-row">
{events.map((item, i) => (
<article
key={i}
className="w-full h-auto bg-white drop-shadow-sm rounded-sm"
>
<div className="w-full h-full">
<video
src={item.video}
className="size-full object-cover"
autoPlay
muted
loop
/>
</div>
<div className="flex items-center justify-between p-4">
<img
height={80}
width={100}
src={item.logo}
alt="logo"
className="h-10 w-auto object-cover"
/>
<a
href={events[i].link}
2025-10-12 17:42:17 +00:00
target="_blank"
className="text-PRIMARY underline"
>
{t("goToWebsite")}
2025-10-12 17:42:17 +00:00
</a>
</div>
</article>
))}
</div>
</div>
</section>
);
};