Vollstaendige Landingpage statt Zweizeiler mit CTA
Bisher war (marketing)/page.tsx nur Titel + ein Satz + Link zur App. Jetzt: Hero mit Value Proposition, Vorteile-Grid (Pflegegrad-Einschaetzung, Katalog/Rechner, Widerspruch- und Musterbrief-Generator, Aufgaben/Kalender, Pflegetagebuch/Dokumente - alles reale, bereits gebaute Features, keine Ankuendigungen), Preis-Karte und ein DSGVO/Sicherheits-Abschnitt. Rechtstexte (Impressum/Datenschutz/AGB) bekommen eigene oeffentliche Seiten unter (marketing) - vorher gab es dafuer im Frontend noch gar keine Route, nur das Admin-Formular zum Bearbeiten der Texte. Neuer Marketing-Layout mit Header/Footer verlinkt sie auf jeder Marketing-Seite. Backend: /api/einstellungen/public liefert jetzt zusaetzlich abo_preis/ abo_waehrung (gleiche Quelle wie /api/abo/status, das aber Login voraussetzt), damit der Preis auf der oeffentlichen Landingpage nicht separat hartkodiert werden muss und bei einer Preisaenderung nicht auseinanderlaeuft. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9e04200e90
commit
b24f1a77ab
8 files changed
+293
-12
No files matched your search
@@ -2,6 +2,7 @@ from fastapi import APIRouter, Depends
|
||||
from sqlalchemy.orm import Session
|
||||
|
||||
from app.db import get_db
|
||||
from app.einstellungen import get_setting
|
||||
from app.models import Einstellung
|
||||
|
||||
router = APIRouter(tags=["einstellungen"])
|
||||
@@ -21,4 +22,9 @@ def public(db: Session = Depends(get_db)):
|
||||
result = {key: s[key] for key in _PUBLIC_KEYS if s.get(key)}
|
||||
if s.get("firmen_logo"):
|
||||
result["firmen_logo_url"] = "/static/logo/" + s["firmen_logo"]
|
||||
# Gleiche Quelle wie /api/abo/status (dort nur eingeloggt abrufbar) -
|
||||
# damit die oeffentliche Landingpage denselben Preis zeigt, nicht einen
|
||||
# separat hartkodierten Wert, der bei einer Preisaenderung auseinanderlaeuft.
|
||||
result["abo_preis"] = get_setting(db, "abo_preis", "4.99")
|
||||
result["abo_waehrung"] = get_setting(db, "abo_waehrung", "EUR")
|
||||
return result
|
||||
@@ -0,0 +1,5 @@
|
||||
import { Rechtstext } from "@/components/Rechtstext";
|
||||
|
||||
export default function AgbPage() {
|
||||
return <Rechtstext titel="Allgemeine Geschäftsbedingungen" feld="rechtstext_agb" />;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import { Rechtstext } from "@/components/Rechtstext";
|
||||
|
||||
export default function DatenschutzPage() {
|
||||
return <Rechtstext titel="Datenschutzerklärung" feld="rechtstext_datenschutz" />;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import { Rechtstext } from "@/components/Rechtstext";
|
||||
|
||||
export default function ImpressumPage() {
|
||||
return <Rechtstext titel="Impressum" feld="rechtstext_impressum" />;
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
"use client";
|
||||
|
||||
import Link from "next/link";
|
||||
import { usePublicEinstellungen } from "@/lib/einstellungen";
|
||||
|
||||
export default function MarketingLayout({ children }: { children: React.ReactNode }) {
|
||||
const { data } = usePublicEinstellungen();
|
||||
const firmenname = data?.firmenname || "Pflegepilot";
|
||||
const jahr = new Date().getFullYear();
|
||||
|
||||
return (
|
||||
<div className="flex min-h-full flex-1 flex-col">
|
||||
<header className="border-b border-slate-200 bg-white/80 backdrop-blur">
|
||||
<div className="mx-auto flex max-w-6xl items-center justify-between px-6 py-4">
|
||||
<Link href="/" className="text-lg font-semibold text-slate-800">
|
||||
{firmenname}
|
||||
</Link>
|
||||
<Link
|
||||
href="/dashboard"
|
||||
className="rounded-lg bg-slate-800 px-4 py-2 text-sm font-medium text-white"
|
||||
>
|
||||
Anmelden
|
||||
</Link>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main className="flex-1">{children}</main>
|
||||
|
||||
<footer className="border-t border-slate-200 bg-white">
|
||||
<div className="mx-auto flex max-w-6xl flex-col gap-3 px-6 py-6 text-sm text-slate-500 sm:flex-row sm:items-center sm:justify-between">
|
||||
<p>
|
||||
© {jahr} {firmenname}
|
||||
</p>
|
||||
<nav className="flex gap-5">
|
||||
<Link href="/impressum" className="hover:text-slate-700">
|
||||
Impressum
|
||||
</Link>
|
||||
<Link href="/datenschutz" className="hover:text-slate-700">
|
||||
Datenschutz
|
||||
</Link>
|
||||
<Link href="/agb" className="hover:text-slate-700">
|
||||
AGB
|
||||
</Link>
|
||||
</nav>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -1,18 +1,176 @@
|
||||
"use client";
|
||||
|
||||
import Link from "next/link";
|
||||
import {
|
||||
IconClipboardCheck,
|
||||
IconBook2,
|
||||
IconScale,
|
||||
IconMail,
|
||||
IconChecklist,
|
||||
IconNotebook,
|
||||
IconShieldCheck,
|
||||
IconLock,
|
||||
IconFileExport,
|
||||
} from "@tabler/icons-react";
|
||||
import { usePublicEinstellungen } from "@/lib/einstellungen";
|
||||
import { getAccent, type AccentName } from "@/lib/theme";
|
||||
|
||||
const VORTEILE: { icon: typeof IconBook2; titel: string; text: string; accent: AccentName }[] = [
|
||||
{
|
||||
icon: IconClipboardCheck,
|
||||
titel: "Pflegegrad-Einschätzung",
|
||||
text: "Regelbasierte Ersteinschätzung in wenigen Minuten – ein verlässlicher erster Anhaltspunkt vor der Begutachtung.",
|
||||
accent: "emerald",
|
||||
},
|
||||
{
|
||||
icon: IconBook2,
|
||||
titel: "Leistungskatalog & Rechner",
|
||||
text: "Über 80 Pflegeleistungen durchsuchen und direkt sehen, welche für die individuelle Situation infrage kommen.",
|
||||
accent: "sky",
|
||||
},
|
||||
{
|
||||
icon: IconScale,
|
||||
titel: "Widerspruch-Generator",
|
||||
text: "Bei abgelehntem oder zu niedrigem Pflegegrad automatisch ein rechtlich fundiertes Widerspruchsschreiben erstellen.",
|
||||
accent: "violet",
|
||||
},
|
||||
{
|
||||
icon: IconMail,
|
||||
titel: "Musterbrief-Generator",
|
||||
text: "Anträge für Pflegegrad, Eingliederungshilfe, Grundsicherung und Blindenhilfe direkt ausfüllen und versenden.",
|
||||
accent: "amber",
|
||||
},
|
||||
{
|
||||
icon: IconChecklist,
|
||||
titel: "Aufgaben & Kalender",
|
||||
text: "Fristen, Termine und To-dos für jeden Angehörigen im Blick – nichts geht mehr unter.",
|
||||
accent: "teal",
|
||||
},
|
||||
{
|
||||
icon: IconNotebook,
|
||||
titel: "Pflegetagebuch & Dokumente",
|
||||
text: "Pflegeaufwand dokumentieren und wichtige Unterlagen sicher an einem Ort ablegen.",
|
||||
accent: "rose",
|
||||
},
|
||||
];
|
||||
|
||||
const DSGVO_PUNKTE = [
|
||||
{
|
||||
icon: IconShieldCheck,
|
||||
titel: "DSGVO-konform",
|
||||
text: "Hosting in Deutschland, keine Weitergabe von Daten an Dritte.",
|
||||
},
|
||||
{
|
||||
icon: IconLock,
|
||||
titel: "Sichere Zugänge",
|
||||
text: "Gehashte Passwörter, strikte Trennung der Daten zwischen Konten.",
|
||||
},
|
||||
{
|
||||
icon: IconFileExport,
|
||||
titel: "Auskunft & Löschung",
|
||||
text: "Vollständiger Datenexport sowie Löschung auf Anfrage jederzeit möglich.",
|
||||
},
|
||||
];
|
||||
|
||||
export default function LandingPage() {
|
||||
const { data } = usePublicEinstellungen();
|
||||
const preis = data?.abo_preis ?? "4.99";
|
||||
const waehrung = data?.abo_waehrung === "EUR" ? "€" : (data?.abo_waehrung ?? "€");
|
||||
|
||||
return (
|
||||
<main className="mx-auto flex max-w-3xl flex-1 flex-col items-center justify-center gap-6 p-8 text-center">
|
||||
<h1 className="text-3xl font-semibold text-slate-800">Pflegepilot</h1>
|
||||
<p className="max-w-md text-slate-600">
|
||||
Pflegeplanung für pflegende Angehörige – Anträge, Leistungen und Fristen im Blick.
|
||||
</p>
|
||||
<Link
|
||||
href="/dashboard"
|
||||
className="rounded-lg bg-slate-800 px-5 py-2.5 text-sm font-medium text-white"
|
||||
>
|
||||
Zur App
|
||||
</Link>
|
||||
</main>
|
||||
<div>
|
||||
{/* Hero */}
|
||||
<section className="mx-auto max-w-4xl px-6 pt-20 pb-16 text-center">
|
||||
<p className="mb-3 text-sm font-semibold tracking-wide text-emerald-700 uppercase">
|
||||
Pflegeplanung für Angehörige
|
||||
</p>
|
||||
<h1 className="mb-5 text-4xl font-semibold text-slate-800 sm:text-5xl">
|
||||
Pflegepilot nimmt dir die Behörden-Bürokratie ab
|
||||
</h1>
|
||||
<p className="mx-auto mb-8 max-w-2xl text-lg text-slate-600">
|
||||
Pflegegrad einschätzen, Anträge stellen, Widersprüche formulieren und Fristen im Blick
|
||||
behalten – alles an einem Ort, für bis zu drei Angehörige gleichzeitig.
|
||||
</p>
|
||||
<div className="flex flex-col items-center justify-center gap-3 sm:flex-row">
|
||||
<Link
|
||||
href="/dashboard"
|
||||
className="rounded-lg bg-slate-800 px-6 py-3 text-base font-medium text-white hover:bg-slate-700"
|
||||
>
|
||||
Jetzt kostenlos starten
|
||||
</Link>
|
||||
<p className="text-sm text-slate-500">
|
||||
ab {preis.replace(".", ",")} {waehrung} / Monat · keine Einrichtungsgebühr
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{/* Vorteile */}
|
||||
<section className="mx-auto max-w-6xl px-6 py-12">
|
||||
<h2 className="mb-8 text-center text-2xl font-semibold text-slate-800">
|
||||
Was Pflegepilot für dich übernimmt
|
||||
</h2>
|
||||
<div className="grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3">
|
||||
{VORTEILE.map((v) => {
|
||||
const accent = getAccent(v.accent);
|
||||
const Icon = v.icon;
|
||||
return (
|
||||
<div key={v.titel} className={`rounded-2xl border p-5 ${accent.card}`}>
|
||||
<Icon className={`mb-3 h-7 w-7 ${accent.heading}`} stroke={1.75} />
|
||||
<h3 className={`mb-1.5 font-semibold ${accent.heading}`}>{v.titel}</h3>
|
||||
<p className="text-sm text-slate-600">{v.text}</p>
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{/* Preis */}
|
||||
<section className="mx-auto max-w-2xl px-6 py-12">
|
||||
<div className="rounded-2xl border border-emerald-200 bg-gradient-to-br from-emerald-50 to-teal-50 p-8 text-center">
|
||||
<h2 className="mb-2 text-xl font-semibold text-emerald-800">
|
||||
Ein Preis, alles inklusive
|
||||
</h2>
|
||||
<p className="mb-1 text-4xl font-semibold text-slate-800">
|
||||
{preis.replace(".", ",")} {waehrung}
|
||||
<span className="text-lg font-normal text-slate-500"> / Monat</span>
|
||||
</p>
|
||||
<p className="mb-6 text-sm text-slate-600">pro Konto, bis zu drei Angehörige verwalten</p>
|
||||
<ul className="mx-auto mb-2 flex max-w-sm flex-col gap-1.5 text-left text-sm text-slate-600">
|
||||
<li>✓ Alle Funktionen ohne Zusatzkosten</li>
|
||||
<li>✓ Keine Einrichtungsgebühr, keine Mindestlaufzeit</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{/* DSGVO / Sicherheit */}
|
||||
<section className="mx-auto max-w-6xl px-6 py-12">
|
||||
<h2 className="mb-8 text-center text-2xl font-semibold text-slate-800">
|
||||
Deine Daten sind sicher
|
||||
</h2>
|
||||
<div className="grid grid-cols-1 gap-4 sm:grid-cols-3">
|
||||
{DSGVO_PUNKTE.map((p) => (
|
||||
<div key={p.titel} className="rounded-2xl border border-slate-200 bg-white p-5 text-center">
|
||||
<p.icon className="mx-auto mb-3 h-7 w-7 text-slate-600" stroke={1.75} />
|
||||
<h3 className="mb-1.5 font-semibold text-slate-800">{p.titel}</h3>
|
||||
<p className="text-sm text-slate-600">{p.text}</p>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{/* Abschluss-CTA */}
|
||||
<section className="mx-auto max-w-4xl px-6 py-16 text-center">
|
||||
<h2 className="mb-3 text-2xl font-semibold text-slate-800">Bereit loszulegen?</h2>
|
||||
<p className="mb-6 text-slate-600">
|
||||
In wenigen Minuten angemeldet und den ersten Angehörigen erfasst.
|
||||
</p>
|
||||
<Link
|
||||
href="/dashboard"
|
||||
className="inline-block rounded-lg bg-slate-800 px-6 py-3 text-base font-medium text-white hover:bg-slate-700"
|
||||
>
|
||||
Jetzt kostenlos starten
|
||||
</Link>
|
||||
</section>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
"use client";
|
||||
|
||||
import { usePublicEinstellungen, type PublicEinstellungen } from "@/lib/einstellungen";
|
||||
|
||||
export function Rechtstext({
|
||||
titel,
|
||||
feld,
|
||||
}: {
|
||||
titel: string;
|
||||
feld: keyof Pick<PublicEinstellungen, "rechtstext_impressum" | "rechtstext_datenschutz" | "rechtstext_agb">;
|
||||
}) {
|
||||
const { data, isLoading } = usePublicEinstellungen();
|
||||
const text = data?.[feld];
|
||||
|
||||
return (
|
||||
<div className="mx-auto max-w-2xl p-6 py-12">
|
||||
<h1 className="mb-6 text-2xl font-semibold text-slate-800">{titel}</h1>
|
||||
{isLoading ? (
|
||||
<p className="text-slate-500">Lädt…</p>
|
||||
) : text ? (
|
||||
<p className="whitespace-pre-wrap text-sm leading-relaxed text-slate-700">{text}</p>
|
||||
) : (
|
||||
<p className="text-sm text-slate-500">Noch nicht hinterlegt.</p>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
"use client";
|
||||
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
import { api } from "./api";
|
||||
|
||||
export type PublicEinstellungen = {
|
||||
firmenname?: string;
|
||||
firmen_logo_url?: string;
|
||||
firmen_strasse?: string;
|
||||
firmen_plz?: string;
|
||||
firmen_ort?: string;
|
||||
firmen_tel?: string;
|
||||
rechtstext_impressum?: string;
|
||||
rechtstext_datenschutz?: string;
|
||||
rechtstext_agb?: string;
|
||||
abo_preis: string;
|
||||
abo_waehrung: string;
|
||||
};
|
||||
|
||||
export function usePublicEinstellungen() {
|
||||
return useQuery<PublicEinstellungen>({
|
||||
queryKey: ["einstellungen", "public"],
|
||||
queryFn: () => api<PublicEinstellungen>("/api/einstellungen/public"),
|
||||
staleTime: 5 * 60 * 1000,
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user