"use client"; import { vipnagorgialla } from "@/components/Vipnagorgialla"; import { useTranslations } from "next-intl"; import Image from "next/image"; import NextLink from "next/link"; interface Sponsor { href: string; src: string; alt: string; width: number; height: number; className?: string; } const sponsors: Sponsor[] = [ { href: "https://taltech.ee", src: "/sponsors/taltech-color.png", alt: "Taltech (Tallinna Tehnikaülikool)", width: 192, height: 192, }, { href: "https://www.redbull.com/ee-et/", src: "/sponsors/redbull.png", alt: "Redbull", width: 80, height: 80, }, { href: "https://www.simracing.ee/", src: "/sponsors/EVAL.png", alt: "EVAL", width: 200, height: 200, }, { href: "https://www.facebook.com/bfglOfficial", src: "/sponsors/BFGL.png", alt: "BFGL", width: 192, height: 192, }, { href: "https://www.tomorrow.ee/", src: "/sponsors/nt.png", alt: "Network Tomorrow", width: 300, height: 200, }, { href: "https://k-space.ee/", src: "/sponsors/k-space_ee-white.png", alt: "K-Space", width: 200, height: 200, className: "not-dark:invert", }, { href: "https://globalproductions.ee/", src: "/sponsors/Global-productions.png", alt: "Global Productions", width: 200, height: 200, }, { href: "https://www.linkedin.com/company/gamedev-guild/", src: "/sponsors/estonian_gamedev_guild.png", alt: "Estonian Gamedev Guild", width: 200, height: 200, className: "not-dark:invert", }, { href: "https://alzgamer.ee/", src: "/sponsors/alzgamer.png", alt: "AlzGamer", width: 200, height: 200, }, ]; interface SponsorsProps { showTitle?: boolean; className?: string; } const tickerSponsors = [...sponsors, ...sponsors, ...sponsors, ...sponsors]; export default function Sponsors({ showTitle = true, className = "", }: SponsorsProps) { const t = useTranslations(); return (
{showTitle && (

{t("home.sections.poweredBy")}

)}
{tickerSponsors.map((sponsor, index) => ( = sponsors.length} tabIndex={index >= sponsors.length ? -1 : undefined} > {sponsor.alt} ))}
); }