diff --git a/public/images/landing/student_award.webp b/public/images/landing/student_award.webp new file mode 100644 index 0000000..32a1d87 Binary files /dev/null and b/public/images/landing/student_award.webp differ diff --git a/src/app/[locale]/page.tsx b/src/app/[locale]/page.tsx index 394e961..99ad034 100644 --- a/src/app/[locale]/page.tsx +++ b/src/app/[locale]/page.tsx @@ -41,9 +41,6 @@ export default async function Home({ confirmation_number -

- {t("home.sections.schedule.description")} -

@@ -65,9 +62,6 @@ export default async function Home({ trophy -

- {t("home.sections.tournaments.description")} -

diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 70e4eb3..6ff6304 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -8,8 +8,8 @@ const workSans = Work_Sans({ }); export const metadata: Metadata = { - title: "TipiLAN 2025", - description: "TipiLAN 2025 – Eesti suurim tudengite korraldatud LAN!", + title: "TipiLAN 2026", + description: "TipiLAN 2026 – Eesti suurim tudengite korraldatud LAN!", }; export default function RootLayout({ diff --git a/src/components/HeroSection.tsx b/src/components/HeroSection.tsx index b4aed5d..a9bb7f0 100644 --- a/src/components/HeroSection.tsx +++ b/src/components/HeroSection.tsx @@ -56,16 +56,16 @@ export default function HeroSection() { 10 000€ -
+
TalTech student award -

- {t("hero.award")} +

+ {t("hero.awardPrefix")} {t("hero.awardHighlight")} {t("hero.awardSuffix")}

diff --git a/src/components/TeaserCarousel.tsx b/src/components/TeaserCarousel.tsx index 3c1aaab..588713a 100644 --- a/src/components/TeaserCarousel.tsx +++ b/src/components/TeaserCarousel.tsx @@ -16,6 +16,23 @@ type Slide = { fullBrightness?: boolean; }; +// Helper to highlight "LAN" in "TIPILAN" with blue color +function highlightLAN(text: string) { + const parts = text.split(/(TIPILAN\w*)/gi); + return parts.map((part, i) => { + const upper = part.toUpperCase(); + if (upper.startsWith("TIPILAN")) { + const suffix = part.slice(7); // Everything after "TIPILAN" + return ( + + TIPILAN{suffix.toUpperCase()} + + ); + } + return part; + }); +} + const slides: Slide[] = [ { key: "compete", image: "/images/landing/compete_teaser.jpg", imageAlt: "Võistle", hero: "/images/landing/compete_hero.png", href: "/turniirid" }, { key: "play", image: "/images/landing/play_teaser.png", imageAlt: "Mängi", hero: "/images/landing/play_hero.png", href: "/piletid", flip: true, fullBrightness: true }, @@ -62,7 +79,7 @@ export default function TeaserCarousel() {

- {t("heading")} + {highlightLAN(t("heading"))}

diff --git a/translations/en.json b/translations/en.json index 91074eb..856dc61 100644 --- a/translations/en.json +++ b/translations/en.json @@ -44,7 +44,9 @@ "location": "TALTECH, EHITAJATE TEE 5", "buyTicket": "BUY TICKETS", "prizePool": "PRIZE POOL", - "award": "TALTECH STUDENT ACT OF THE YEAR 2025" + "awardPrefix": "TALTECH", + "awardHighlight": "STUDENT ACT OF THE YEAR", + "awardSuffix": "2025" }, "teaser": { "heading": "COME TO TIPILAN AND...", diff --git a/translations/et.json b/translations/et.json index b798ddf..4bfe98f 100644 --- a/translations/et.json +++ b/translations/et.json @@ -44,7 +44,9 @@ "location": "TALTECH, EHITAJATE TEE 5", "buyTicket": "OSTA PILET", "prizePool": "AUHINNAFOND", - "award": "TALTECHI AASTA TUDENGITEGU 2025" + "awardPrefix": "TALTECHI", + "awardHighlight": "AASTA TUDENGITEGU", + "awardSuffix": "2025" }, "teaser": { "heading": "TULE TIPILANILE JA...",