From bcc01476c3630919a4ec26f4892984e6c1ce8c75 Mon Sep 17 00:00:00 2001
From: Dariusz Niemczyk
Date: Fri, 4 Apr 2025 17:15:43 +0200
Subject: [PATCH] feat: add new pages texts
---
src/app/[locale]/pages/[slug]/page.tsx | 8 ++
src/components/event-map.lazy.tsx | 2 +-
src/components/landing-page.tsx | 160 ++++++++++++++++++++++---
src/components/nav.tsx | 13 +-
src/i18n/translations.ts | 141 ++++++++++++++--------
5 files changed, 244 insertions(+), 80 deletions(-)
diff --git a/src/app/[locale]/pages/[slug]/page.tsx b/src/app/[locale]/pages/[slug]/page.tsx
index 15ffbfc..d064e7e 100644
--- a/src/app/[locale]/pages/[slug]/page.tsx
+++ b/src/app/[locale]/pages/[slug]/page.tsx
@@ -37,6 +37,14 @@ export function generateStaticParams() {
locale: "en",
slug: "privacy",
},
+ {
+ locale: "pl",
+ slug: "rules",
+ },
+ {
+ locale: "en",
+ slug: "rules",
+ },
];
}
diff --git a/src/components/event-map.lazy.tsx b/src/components/event-map.lazy.tsx
index 2fc774e..5b8f391 100644
--- a/src/components/event-map.lazy.tsx
+++ b/src/components/event-map.lazy.tsx
@@ -20,7 +20,7 @@ export default function Map({ t }: {
/>
- {t.where.location}
+ {t.details.where.location}
diff --git a/src/components/landing-page.tsx b/src/components/landing-page.tsx
index 2baf9e0..03813c2 100644
--- a/src/components/landing-page.tsx
+++ b/src/components/landing-page.tsx
@@ -13,6 +13,48 @@ import { NewsletterPopup } from './newsletter-form';
import { useTheme } from "./providers";
import { Skeleton } from './ui/skeleton';
+function Heading({ children }: { children: ReactElement | string }) {
+ return {children}
+}
+
+function Subheading({ children }: { children: ReactElement | string }) {
+ return {children}
+}
+
+function TinyHeading({ children }: { children: ReactElement | string }) {
+ return {children}
+}
+
+function TinyTextWrapper({ children }: { children: ReactElement }) {
+ return
+ {children}
+
+}
+
+
+function TextWrapper({ children }: { children: ReactElement }) {
+ return
+ {children}
+
+}
+
+function NewSection({
+ id,
+ children,
+ after
+}: {
+ id: string
+ children: ReactElement;
+ after?: ReactElement;
+}) {
+ return (
+
+ {children}
+ {after}
+
+ )
+}
+
function Section({
id,
title,
@@ -147,7 +189,6 @@ export default function LandingPage(
) {
const { theme } = useTheme()
-
return (
@@ -162,29 +203,110 @@ export default function LandingPage(
{t.hero.title}
{t.hero.subtitle}
-
{t.when.date}
-
+
{t.details.when.date}
+
+
+
-
} />
- {t.where.location}} after={} />
+
+ <>
+
+ {t.about.title}
+
+
+ {t.about.description}
+
+
+ {t.details.when.title}
+ {t.details.when.date}
+ {t.details.when.extra}
+
+
+ {t.details.where.title}
+ {t.details.where.location}
+
+
+ >
+
-
- {t.when.date}
- {t.when.extra}
>}
- />
- {t.tickets.status}} />
- {t.accommodation.description}} />
- {t.food.description}} />
-