diff --git a/public/images/landing/league_tournament.jpg b/public/images/landing/league_tournament.jpg new file mode 100644 index 0000000..82f41b5 Binary files /dev/null and b/public/images/landing/league_tournament.jpg differ diff --git a/public/images/landing/visitor_tournament.jpg b/public/images/landing/visitor_tournament.jpg new file mode 100644 index 0000000..4dcc3f6 Binary files /dev/null and b/public/images/landing/visitor_tournament.jpg differ diff --git a/src/app/[locale]/piletid/page.tsx b/src/app/[locale]/piletid/page.tsx index b3b0e09..67e0832 100644 --- a/src/app/[locale]/piletid/page.tsx +++ b/src/app/[locale]/piletid/page.tsx @@ -1,8 +1,76 @@ import { vipnagorgialla } from "@/components/Vipnagorgialla"; import Link from "next/link"; -import SectionDivider from "@/components/SectionDivider"; +import Image from "next/image"; import { getTranslations, setRequestLocale } from "next-intl/server"; +interface TicketCardProps { + title: string; + subtitle: string; + price: string; + features: string[]; + buttonText: string; + buttonHref: string; + backgroundImage?: string; +} + +function TicketCard({ + title, + subtitle, + price, + features, + buttonText, + buttonHref, + backgroundImage, +}: TicketCardProps) { + return ( +
+ {backgroundImage && ( + + )} +
+

+ {title} +

+

+ {subtitle} +

+

+ {price} +

+ + + + +
+
+ ); +} + export default async function Tickets({ params, }: { @@ -11,108 +79,55 @@ export default async function Tickets({ const { locale } = await params; setRequestLocale(locale); const t = await getTranslations({ locale }); + return ( -
-
-

- {t("tickets.title")} -

- -
-
-

- {t("tickets.visitor.latePrice")} -

-

- {t("tickets.visitor.title")} -

-
    - {t - .raw("tickets.visitor.features") - .map((feature: string, index: number) => ( -
  • - {feature} -
  • - ))} -
- - - -
- -
-

- {t("tickets.computerParticipant.latePrice")} -

-

- {t("tickets.computerParticipant.title")} -

-
    - {t - .raw("tickets.computerParticipant.features") - .map((feature: string, index: number) => ( -
  • - {feature} -
  • - ))} -
- - - -
+
+ {/* 2x2 Grid */} +
+ {/* KÜLASTAJA PILET */} + - + {/* TOETAJA PILET */} + -
-

- {t("tickets.competitor.price")} -

-

- {t("tickets.competitor.title")} -

-
    - {t - .raw("tickets.competitor.features") - .map((feature: string, index: number) => ( -
  • - {feature} -
  • - ))} -
- {/**/} - - {/**/} -
-
+ {/* LOL TURNIIRI PILET */} + + + {/* CS2 TURNIIRI PILET */} +
- -
); } diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index f634c90..8ffad51 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -8,7 +8,7 @@ const Footer = () => { const t = useTranslations(); return ( -
+