mirror of
https://github.com/Lapikud/tipilan.git
synced 2026-09-22 15:22:59 +00:00
Add minitournaments to header and tournaments page
This commit is contained in:
BIN
public/images/miniturniirid/minitournaments.jpg
Normal file
BIN
public/images/miniturniirid/minitournaments.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 746 KiB |
@@ -272,7 +272,7 @@ export default function Expo() {
|
||||
<p className="text-[#EEE5E5] text-base md:text-lg max-w-md">
|
||||
{t("expo.miniTournaments.description")}
|
||||
</p>
|
||||
<Link href="/turniirid" className="w-fit">
|
||||
<Link href="/miniturniirid" className="w-fit">
|
||||
<button
|
||||
className={`${vipnagorgialla.className} px-4 py-2 border-4 border-transparent bg-[#00A3E0] hover:bg-[#E5E5EE] text-[#0A121F] cursor-pointer font-bold italic leading-none uppercase transition`}
|
||||
>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { vipnagorgialla } from "@/components/Vipnagorgialla";
|
||||
import Link from "next/link";
|
||||
import Image from "next/image";
|
||||
import { setRequestLocale } from "next-intl/server";
|
||||
import { getTranslations, setRequestLocale } from "next-intl/server";
|
||||
|
||||
interface TournamentCardProps {
|
||||
title: string;
|
||||
@@ -50,6 +50,7 @@ export default async function Tourney({
|
||||
}) {
|
||||
const { locale } = await params;
|
||||
setRequestLocale(locale);
|
||||
const t = await getTranslations({ locale });
|
||||
return (
|
||||
<div className="bg-[#0E0F19] min-h-0 flex flex-col flex-1">
|
||||
{/* 1x2 Grid */}
|
||||
@@ -59,7 +60,7 @@ export default async function Tourney({
|
||||
title="COUNTER-STRIKE 2"
|
||||
buttonHref="/turniirid/cs2"
|
||||
backgroundImage="/images/landing/cs2_tournament.jpg"
|
||||
className="border-b-[3px] md:border-b-0 md:border-r-3"
|
||||
className="border-b-[3px] md:border-b-0 md:border-r-3 min-h-[50vh]"
|
||||
/>
|
||||
|
||||
{/* LoL */}
|
||||
@@ -68,7 +69,17 @@ export default async function Tourney({
|
||||
buttonHref="/turniirid/lol"
|
||||
backgroundImage="/images/landing/lol_tournament.png"
|
||||
objectPosition="bottom left"
|
||||
className="border-b-0"
|
||||
className="border-b-0 min-h-[50vh]"
|
||||
/>
|
||||
</div>
|
||||
|
||||
{/* Full-width Mini-tournaments */}
|
||||
<div className="grid grid-cols-1 auto-rows-fr">
|
||||
<TournamentCard
|
||||
title={t("expo.miniTournaments.title").toUpperCase()}
|
||||
buttonHref="/miniturniirid"
|
||||
backgroundImage="/images/miniturniirid/minitournaments.jpg"
|
||||
className="border-t-[3px] min-h-[50vh]"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -26,6 +26,7 @@ interface NavItem {
|
||||
| "/haldus"
|
||||
| "/kodukord"
|
||||
| "/messiala"
|
||||
| "/miniturniirid"
|
||||
| "/piletid"
|
||||
| "/striim"
|
||||
| "/turniirid";
|
||||
@@ -49,6 +50,7 @@ const Header = ({ navItems }: HeaderProps) => {
|
||||
|
||||
const navIconByHref: Partial<Record<NavItem["href"], string>> = {
|
||||
"/messiala": "weekend",
|
||||
"/miniturniirid": "rewarded_ads",
|
||||
"/ajakava": "event_note",
|
||||
"/piletid": "local_activity",
|
||||
"/turniirid": "rewarded_ads",
|
||||
|
||||
@@ -9,6 +9,7 @@ interface NavItem {
|
||||
| "/haldus"
|
||||
| "/kodukord"
|
||||
| "/messiala"
|
||||
| "/miniturniirid"
|
||||
| "/piletid"
|
||||
| "/striim"
|
||||
| "/turniirid";
|
||||
|
||||
@@ -11,7 +11,7 @@ type Slide = {
|
||||
image: string;
|
||||
imageAlt: string;
|
||||
hero: string;
|
||||
href: "/turniirid" | "/piletid" | "/messiala";
|
||||
href: "/turniirid" | "/piletid" | "/messiala" | "/miniturniirid";
|
||||
flip?: boolean;
|
||||
fullBrightness?: boolean;
|
||||
};
|
||||
|
||||
@@ -46,6 +46,10 @@ export const routing = defineRouting({
|
||||
et: "/turniirid",
|
||||
en: "/tournaments",
|
||||
},
|
||||
"/miniturniirid": {
|
||||
et: "/miniturniirid",
|
||||
en: "/minitournaments",
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -8,7 +8,8 @@
|
||||
"tickets": "Tickets",
|
||||
"rules": "Game rules",
|
||||
"stream": "Stream",
|
||||
"tournaments": "Tourna\u00ADments"
|
||||
"tournaments": "Tourna\u00ADments",
|
||||
"minitournaments": "Mini-tournaments"
|
||||
},
|
||||
"common": {
|
||||
"loading": "Loading...",
|
||||
@@ -846,7 +847,8 @@
|
||||
"entranceHall": "Lobby",
|
||||
"fuajeeLanAla": "Fuajee/LAN Area",
|
||||
"foyerAndLanArea": "Fuajee/LAN Area",
|
||||
"lobbyAndLanArea": "Lobby/LAN area"
|
||||
"lobbyAndLanArea": "Lobby/LAN area",
|
||||
"miniTournaments": "Mini-tournaments"
|
||||
},
|
||||
"transportInfo": "Come to TipiLAN by public transport if possible! Buses 10, 11, 19, 23, 24A, 27, 33, 36, 37, 45, 67 and trolleybuses 72 and 83 will take you to TalTech. If you come by car, don't come alone - bring your friends!"
|
||||
},
|
||||
|
||||
@@ -8,7 +8,8 @@
|
||||
"tickets": "Piletid",
|
||||
"rules": "Reeglid",
|
||||
"stream": "Striim",
|
||||
"tournaments": "Turniirid"
|
||||
"tournaments": "Turniirid",
|
||||
"minitournaments": "Miniturniirid"
|
||||
},
|
||||
"common": {
|
||||
"loading": "Laadimine...",
|
||||
@@ -847,7 +848,8 @@
|
||||
"entranceHall": "Fuajee",
|
||||
"fuajeeLanAla": "Fuajee/LAN-ala",
|
||||
"foyerAndLanArea": "Fuajee/LAN-ala",
|
||||
"lobbyAndLanArea": "Fuajee/LAN-ala"
|
||||
"lobbyAndLanArea": "Fuajee/LAN-ala",
|
||||
"miniTournaments": "Miniturniirid"
|
||||
},
|
||||
"transportInfo": "Tule võimaluse korral TipiLANile ühistranspordiga! TalTechi toovad sind bussid 10, 11, 19, 23, 24A, 27, 33, 36, 37, 45, 67 ning trollid 72 ja 83. Kui tuled autoga, siis ära tule üksi, võta sõbrad kaasa!"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user