diff --git a/messages/de.json b/messages/de.json index 8000620..cae851b 100644 --- a/messages/de.json +++ b/messages/de.json @@ -500,5 +500,23 @@ "confirm": "Blockieren", "successToast": "Du hast {petName} blockiert", "errorToast": "Tier konnte nicht blockiert werden. Bitte versuch es erneut." + }, + "Landing": { + "tagline": "Wo Haustiere die Stars sind. Profile, Beiträge und Storys — gemacht für Hunde, Katzen und Vögel.", + "getStarted": "Jetzt loslegen", + "logIn": "Anmelden", + "previewAlt": "Der PawFeed-Feed mit Tierbeiträgen von Noctis und Bubi", + "featuresHeading": "Gebaut für das Tier, nicht den Menschen", + "feature1Title": "Nicht Menschen, sondern Tiere sind das Profil", + "feature1Body": "Jeder Hund, jede Katze, jeder Vogel bekommt eine eigene Identität — eigene Beiträge, Follower und eine eigene Story, getrennt vom Besitzer.", + "feature2Title": "Beiträge, Storys & Kurzvideos", + "feature2Body": "Fotos, Kurzvideos und 24-Stunden-Storys — alles rund um das, was dein Tier gerade erlebt.", + "feature3Title": "Gesundheits-Tracking", + "feature3Body": "Gewichtsverlauf, Tierarztbesuche und Impfungen an einem Ort — per privatem Link mit dem Tierarzt teilbar.", + "feature4Title": "Nachrichten von Tier zu Tier", + "feature4Body": "Direktnachrichten laufen zwischen den Tieren, nicht den Besitzern — passend zum Aufbau der ganzen Plattform.", + "footerImpressum": "Impressum", + "footerDatenschutz": "Datenschutz", + "footerAgb": "AGB" } } diff --git a/messages/en.json b/messages/en.json index e5e91c0..66f53b1 100644 --- a/messages/en.json +++ b/messages/en.json @@ -500,5 +500,23 @@ "confirm": "Block", "successToast": "You've blocked {petName}", "errorToast": "Couldn't block this pet. Please try again." + }, + "Landing": { + "tagline": "Where pets are the stars. Profiles, posts, and stories — built for dogs, cats, and birds.", + "getStarted": "Get started", + "logIn": "Log in", + "previewAlt": "The PawFeed feed, showing pet posts from Noctis and Bubi", + "featuresHeading": "Built for the pet, not the person", + "feature1Title": "Pets, not humans, are the profile", + "feature1Body": "Every dog, cat, or bird gets its own identity — its own posts, followers, and story, separate from its owner's.", + "feature2Title": "Posts, stories & short video", + "feature2Body": "Photos, short-form video, and 24-hour stories — all built around what your pet is up to.", + "feature3Title": "Health tracking", + "feature3Body": "Weight logs, vet visits, and vaccine records in one place — shareable with a vet via a private link.", + "feature4Title": "Pet-to-pet messaging", + "feature4Body": "Direct messages happen between pets, not owners — matching how the whole platform is built.", + "footerImpressum": "Imprint", + "footerDatenschutz": "Privacy Policy", + "footerAgb": "Terms" } } diff --git a/src/app/page.tsx b/src/app/page.tsx index c2fff5b..68c2593 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,8 +1,9 @@ import { auth } from "@clerk/nextjs/server"; +import { getTranslations } from "next-intl/server"; import { redirect } from "next/navigation"; import Link from "next/link"; import Image from "next/image"; -import { PawPrint, Sparkles, HeartPulse, MessageCircle, Images } from "lucide-react"; +import { PawPrint, HeartPulse, MessageCircle, Images } from "lucide-react"; import { LanguageSwitcher } from "@/components/i18n/LanguageSwitcher"; /** @@ -21,27 +22,13 @@ export default async function RootPage() { const { userId } = await auth(); if (userId) redirect("/feed"); + const t = await getTranslations("Landing"); + const features = [ - { - icon: PawPrint, - title: "Pets, not humans, are the profile", - body: "Every dog, cat, or bird gets its own identity — its own posts, followers, and story, separate from its owner's.", - }, - { - icon: Images, - title: "Posts, stories & short video", - body: "Photos, short-form video, and 24-hour stories — all built around what your pet is up to.", - }, - { - icon: HeartPulse, - title: "Health tracking", - body: "Weight logs, vet visits, and vaccine records in one place — shareable with a vet via a private link.", - }, - { - icon: MessageCircle, - title: "Pet-to-pet messaging", - body: "Direct messages happen between pets, not owners — matching how the whole platform is built.", - }, + { icon: PawPrint, title: t("feature1Title"), body: t("feature1Body") }, + { icon: Images, title: t("feature2Title"), body: t("feature2Body") }, + { icon: HeartPulse, title: t("feature3Title"), body: t("feature3Body") }, + { icon: MessageCircle, title: t("feature4Title"), body: t("feature4Body") }, ] as const; return ( @@ -71,7 +58,7 @@ export default async function RootPage() {
- Where pets are the stars. Profiles, posts, and stories — built for dogs, cats, and birds. + {t("tagline")}