diff --git a/public/sponsors/Domino's Pizza transp.png b/public/sponsors/Domino's Pizza transp.png new file mode 100644 index 0000000..21740af Binary files /dev/null and b/public/sponsors/Domino's Pizza transp.png differ diff --git a/public/sponsors/Fienta_sponsorid.webp b/public/sponsors/Fienta_sponsorid.webp deleted file mode 100644 index 11e00b0..0000000 Binary files a/public/sponsors/Fienta_sponsorid.webp and /dev/null differ diff --git a/public/sponsors/arvutimuuseum.svg b/public/sponsors/arvutimuuseum.svg deleted file mode 100644 index 8342a6f..0000000 --- a/public/sponsors/arvutimuuseum.svg +++ /dev/null @@ -1,42 +0,0 @@ - - - - diff --git a/public/sponsors/thotell.png b/public/sponsors/thotell.png new file mode 100644 index 0000000..33b1543 Binary files /dev/null and b/public/sponsors/thotell.png differ diff --git a/src/app/[locale]/page.tsx b/src/app/[locale]/page.tsx index ee70e75..ca47761 100644 --- a/src/app/[locale]/page.tsx +++ b/src/app/[locale]/page.tsx @@ -1,8 +1,8 @@ import { vipnagorgialla } from "@/components/Vipnagorgialla"; +import Sponsors from "@/components/Sponsors"; import { Link } from "@/i18n/routing"; import { getTranslations, setRequestLocale } from "next-intl/server"; import Image from "next/image"; -import NextLink from "next/link"; export default async function Home({ params, @@ -135,113 +135,7 @@ export default async function Home({ {/* Sponsors */} -
-
-

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

-
- - Taltech (Tallinna Tehnikaülikool) - - - Redbull - - - Alecoq - - - EVAL - - - Balsnack - - - LVLup! - - - BFGL - - - Tallinna Haridusamet - - - Militaarseiklus - - - - -
-
-
+ ); } diff --git a/src/components/Sponsors.tsx b/src/components/Sponsors.tsx new file mode 100644 index 0000000..112f888 --- /dev/null +++ b/src/components/Sponsors.tsx @@ -0,0 +1,143 @@ +import { vipnagorgialla } from "@/components/Vipnagorgialla"; +import { useTranslations } from "next-intl"; +import Image from "next/image"; +import NextLink from "next/link"; + +interface SponsorsProps { + showTitle?: boolean; + className?: string; +} + +export default function Sponsors({ showTitle = true, className = "" }: SponsorsProps) { + const t = useTranslations(); + + return ( +
+
+ {showTitle && ( +

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

+ )} +
+ + Taltech (Tallinna Tehnikaülikool) + + + Redbull + + + Alecoq + + + EVAL + + + Balsnack + + + LVLup! + + + BFGL + + + Tallinna Haridusamet + + + Militaarseiklus + + + Estonian Gamedev Guild + + + Tähentorni Hotell + + + Domino's Pizza + +
+
+
+ ); +}