feat: build official Goldebek municipal website
Deploy / validate-dispatch (push) Successful in 1s
Deploy / scheduled-rebuild-dev (push) Skipped
Deploy / scheduled-rebuild-master (push) Skipped
Deploy / rollback-dev (push) Skipped
Deploy / rollback-master (push) Skipped
Deploy / changes (push) Successful in 6s
Deploy / app-quality (push) Successful in 1m16s
Deploy / secret-scan (push) Successful in 4s
Deploy / security-deps (push) Successful in 18s
Deploy / context (push) Successful in 1s
Deploy / app-image (push) Successful in 1m28s
Deploy / deploy-master (push) Skipped
Deploy / deploy-dev (push) Successful in 13s
Deploy / validate-dispatch (push) Successful in 1s
Deploy / scheduled-rebuild-dev (push) Skipped
Deploy / scheduled-rebuild-master (push) Skipped
Deploy / rollback-dev (push) Skipped
Deploy / rollback-master (push) Skipped
Deploy / changes (push) Successful in 6s
Deploy / app-quality (push) Successful in 1m16s
Deploy / secret-scan (push) Successful in 4s
Deploy / security-deps (push) Successful in 18s
Deploy / context (push) Successful in 1s
Deploy / app-image (push) Successful in 1m28s
Deploy / deploy-master (push) Skipped
Deploy / deploy-dev (push) Successful in 13s
This commit is contained in:
@@ -0,0 +1,93 @@
|
||||
import type { Metadata } from "next";
|
||||
import Image from "next/image";
|
||||
import Link from "next/link";
|
||||
import { notFound } from "next/navigation";
|
||||
import pagesJson from "../../../content/pages/pages.json";
|
||||
import clubsJson from "../../../data/clubs.json";
|
||||
import councilJson from "../../../data/council.json";
|
||||
import municipalityJson from "../../../data/municipality.json";
|
||||
import servicesJson from "../../../data/services.json";
|
||||
import coatOfArms from "../../../goldebek_website_briefing/DEU_Goldebek_wappen.svg";
|
||||
import doerpshuusImage from "../../../goldebek_website_briefing/csm_goldebek_1_0714260009.jpg";
|
||||
import placeImage from "../../../goldebek_website_briefing/csm_nordfriesland_goldebek_mr_240320_388_2bb06f3278.jpg";
|
||||
import PageHeader from "@/components/PageHeader";
|
||||
import SourceNote from "@/components/SourceNote";
|
||||
import { getSource } from "@/lib/content";
|
||||
import { formatGermanDate } from "@/lib/dates/events";
|
||||
import { createPageMetadata } from "@/lib/metadata";
|
||||
|
||||
type PageLink = { label: string; href: string; external?: boolean };
|
||||
type Section = { title: string; text?: string[]; items?: string[]; links?: PageLink[] };
|
||||
type ContentPage = { slug: string; eyebrow: string; title: string; intro: string; sections: Section[]; sourceId?: string; lastVerified?: string; special?: string };
|
||||
const pages = pagesJson as ContentPage[];
|
||||
|
||||
export function generateStaticParams() {
|
||||
return pages.map((page) => ({ slug: page.slug.split("/") }));
|
||||
}
|
||||
|
||||
export async function generateMetadata({ params }: { params: Promise<{ slug: string[] }> }): Promise<Metadata> {
|
||||
const slug = (await params).slug.join("/");
|
||||
const page = pages.find((item) => item.slug === slug);
|
||||
return page ? createPageMetadata({ title: page.title, description: page.intro, path: `/${page.slug}` }) : {};
|
||||
}
|
||||
|
||||
function ExternalAwareLink({ link }: { link: PageLink }) {
|
||||
if (link.external) {
|
||||
return <a href={link.href} target="_blank" rel="noreferrer">{link.label} <span className="sr-only">(öffnet in neuem Fenster)</span><span aria-hidden="true">↗</span></a>;
|
||||
}
|
||||
return <Link href={link.href}>{link.label}</Link>;
|
||||
}
|
||||
|
||||
function phoneUrl(value: string) { return `tel:${value.replace(/[^+\d]/g, "")}`; }
|
||||
|
||||
function SpecialContent({ type }: { type?: string }) {
|
||||
if (type === "overview") {
|
||||
return <figure className="content-image"><Image src={placeImage} alt="Goldebeker Wappenstein am Ortseingang" sizes="(max-width: 800px) 100vw, 760px" /><figcaption>Goldebek in Nordfriesland</figcaption></figure>;
|
||||
}
|
||||
if (type === "coat-of-arms") {
|
||||
return <figure className="coat-of-arms"><Image src={coatOfArms} alt="Offizielles Wappen der Gemeinde Goldebek" /><figcaption>Das Gemeindewappen wird unverändert wiedergegeben.</figcaption></figure>;
|
||||
}
|
||||
if (type === "facts") {
|
||||
return <dl className="data-grid"><div><dt>Einwohner</dt><dd>{municipalityJson.population.value}</dd><small>Stand 31.03.2026</small></div><div><dt>Fläche</dt><dd>{municipalityJson.areaKm2.toLocaleString("de-DE")} km²</dd></div><div><dt>Dichte</dt><dd>{municipalityJson.population.densityPerKm2} Einwohner/km²</dd></div><div><dt>Postleitzahl</dt><dd>{municipalityJson.postalCode}</dd></div><div><dt>Gemeindeschlüssel</dt><dd>{municipalityJson.officialMunicipalityKey}</dd></div><div><dt>Amt</dt><dd>{municipalityJson.administration}</dd></div></dl>;
|
||||
}
|
||||
if (type === "history") {
|
||||
return <ol className="timeline">{municipalityJson.history.map((item) => <li key={`${item.date}-${item.title}`}><time>{item.date}</time><div><h3>{item.title}</h3><p>{item.text}</p></div></li>)}</ol>;
|
||||
}
|
||||
if (type === "doerpshuus") {
|
||||
const item = servicesJson.doerpshuus;
|
||||
return <><figure className="content-image"><Image src={doerpshuusImage} alt="Dörpshuus Goldebek mit Backsteinfassade und Grünanlage" sizes="(max-width: 800px) 100vw, 760px" /><figcaption>Dörpshuus Goldebek, Am Brodersberg 16</figcaption></figure><dl className="detail-list"><div><dt>Adresse</dt><dd>{item.address}</dd></div><div><dt>Service-Telefon</dt><dd><a href={phoneUrl(item.phone)}>{item.phone}</a></dd></div><div><dt>Kapazität</dt><dd>{item.capacity.hall} Personen im Dörpshuus, {item.capacity.fireBrigadeRoom} im Kameradschaftsraum, maximal {item.capacity.total} insgesamt</dd></div><div><dt>Gebühren</dt><dd>Einwohner {item.fees.residents} · Kameradschaftsraum {item.fees.fireBrigadeRoom} · Auswärtige {item.fees.nonResidents} · Endreinigung {item.fees.finalCleaning} · Fehlbenutzung Notausgang {item.fees.emergencyExitMisuse}</dd></div></dl></>;
|
||||
}
|
||||
if (type === "clubs") {
|
||||
return <div className="card-grid">{clubsJson.map((club) => <article className="info-card" key={club.name}><p className="card-label">{club.type}</p><h2>{club.name}</h2>{club.url ? <a className="text-link" href={club.url} target="_blank" rel="noreferrer">Website öffnen <span className="sr-only">(öffnet in neuem Fenster)</span><span aria-hidden="true">↗</span></a> : null}</article>)}</div>;
|
||||
}
|
||||
if (type === "everyday-help") {
|
||||
const item = servicesJson.everydayHelp;
|
||||
return <><div className="data-grid"><div><span className="card-label">Kosten</span><strong>{item.hourly}</strong></div><div><span className="card-label">Fahrtkosten</span><strong>{item.mileage}</strong></div></div><section className="content-section"><h2>Beispiele</h2><ul>{item.examples.map((example) => <li key={example}>{example}</li>)}</ul><p><strong>Für Goldebek:</strong> {item.contact}, <a href={phoneUrl(item.phone)}>{item.phone}</a></p><p><strong>Beteiligte Gemeinden:</strong> {item.coverage.join(", ")}</p></section></>;
|
||||
}
|
||||
if (type === "council") {
|
||||
return <><section className="contact-panel"><p className="card-label">Bürgermeister</p><h2>{councilJson.mayor.name}</h2><address>{councilJson.mayor.address}<br /><a href={phoneUrl(councilJson.mayor.phone)}>{councilJson.mayor.phone}</a><br />Fax {councilJson.mayor.fax}</address></section><div className="people-grid">{councilJson.members.map((name) => <article key={name}><span aria-hidden="true">{name.split(" ").map((part) => part[0]).join("")}</span><h3>{name}</h3><p>Mitglied der Gemeindevertretung</p></article>)}</div></>;
|
||||
}
|
||||
if (type === "taxes") {
|
||||
const tax = councilJson.taxRates;
|
||||
return <dl className="data-grid"><div><dt>Grundsteuer A</dt><dd>{tax.grundsteuerA}</dd></div><div><dt>Grundsteuer B</dt><dd>{tax.grundsteuerB}</dd></div><div><dt>Gewerbesteuer</dt><dd>{tax.gewerbesteuer}</dd></div><div><dt>1. Hund</dt><dd>{tax.firstDog}</dd></div><div><dt>2. Hund</dt><dd>{tax.secondDog}</dd></div><div><dt>Jeder weitere Hund</dt><dd>{tax.additionalDog}</dd></div></dl>;
|
||||
}
|
||||
if (type === "mobility") {
|
||||
const item = servicesJson.mobility;
|
||||
const source = getSource(item.sourceId);
|
||||
return <><div className="route-number"><span>Buslinie</span><strong>{item.line}</strong></div><section className="content-section"><h2>Haltestellen</h2><ul>{item.stops.map((stop) => <li key={stop}>{stop}</li>)}</ul>{source ? <a className="button button--primary" href={source.url} target="_blank" rel="noreferrer">Aktuellen Fahrplan öffnen <span aria-hidden="true">↗</span></a> : null}</section></>;
|
||||
}
|
||||
if (type === "mobile-library") {
|
||||
const item = servicesJson.mobileLibrary;
|
||||
return <><dl className="detail-list"><div><dt>Haltestelle</dt><dd>{item.stop}</dd></div><div><dt>Uhrzeit</dt><dd>{item.time} Uhr</dd></div></dl><section className="content-section"><h2>Kommende Termine 2026</h2><ul>{item.dates.map((date) => <li key={date}>{formatGermanDate(date)}</li>)}</ul></section></>;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
export default async function ContentPageRoute({ params }: { params: Promise<{ slug: string[] }> }) {
|
||||
const slug = (await params).slug.join("/");
|
||||
const page = pages.find((item) => item.slug === slug);
|
||||
if (!page) notFound();
|
||||
const parent = page.slug.includes("/") ? pages.find((item) => item.slug === page.slug.split("/")[0]) : undefined;
|
||||
const source = page.sourceId ? getSource(page.sourceId) : undefined;
|
||||
return <><PageHeader eyebrow={page.eyebrow} title={page.title} intro={page.intro} breadcrumbs={[...(parent ? [{ label: parent.title, href: `/${parent.slug}` }] : []), { label: page.title }]} /><div className="container page-content"><SpecialContent type={page.special} />{page.sections.map((section) => <section className="content-section" key={section.title}><h2>{section.title}</h2>{section.text?.map((paragraph) => <p key={paragraph}>{paragraph}</p>)}{section.items ? <ul>{section.items.map((item) => <li key={item}>{item}</li>)}</ul> : null}{section.links ? <div className="link-list">{section.links.map((link) => <ExternalAwareLink key={link.href} link={link} />)}</div> : null}</section>)}{page.lastVerified ? <SourceNote lastVerified={page.lastVerified} sourceName={source?.name} sourceUrl={source?.url} /> : null}</div></>;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
import type { Metadata } from "next";
|
||||
import { notFound } from "next/navigation";
|
||||
import PageHeader from "@/components/PageHeader";
|
||||
import SourceNote from "@/components/SourceNote";
|
||||
import { getNews, getNewsItem } from "@/lib/content";
|
||||
import { formatShortDate } from "@/lib/dates/events";
|
||||
import { createPageMetadata } from "@/lib/metadata";
|
||||
|
||||
export function generateStaticParams() { return getNews().map((item) => ({ slug:item.slug })); }
|
||||
export async function generateMetadata({ params }: { params:Promise<{slug:string}> }):Promise<Metadata> { const item=getNewsItem((await params).slug); return item ? { ...createPageMetadata({title:item.title,description:item.teaser,path:`/aktuelles/${item.slug}`,type:"article"}), openGraph:{title:item.title,description:item.teaser,type:"article",url:`/aktuelles/${item.slug}`,publishedTime:item.publishedAt,modifiedTime:item.updatedAt,images:[]},twitter:{title:item.title,description:item.teaser,images:[]} } : {}; }
|
||||
export default async function NewsDetail({ params }: { params:Promise<{slug:string}> }) { const item=getNewsItem((await params).slug); if(!item) notFound(); return <><PageHeader eyebrow={`Meldung vom ${formatShortDate(item.publishedAt)}`} title={item.title} intro={item.teaser} breadcrumbs={[{label:"Aktuelles",href:"/aktuelles"},{label:item.title}]} /><article className="container narrow-content prose"><p>{item.body}</p><SourceNote lastVerified={item.lastVerified} sourceName={item.sourceName} sourceUrl={item.sourceUrl} /></article></>; }
|
||||
@@ -0,0 +1,10 @@
|
||||
import type { Metadata } from "next";
|
||||
import Link from "next/link";
|
||||
import PageHeader from "@/components/PageHeader";
|
||||
import { getNews } from "@/lib/content";
|
||||
import { formatShortDate } from "@/lib/dates/events";
|
||||
import { createPageMetadata } from "@/lib/metadata";
|
||||
|
||||
export const metadata: Metadata = createPageMetadata({ title:"Aktuelles", description:"Aktuelle Meldungen aus Goldebek.", path:"/aktuelles" });
|
||||
|
||||
export default function NewsPage() { const news = getNews(); return <><PageHeader eyebrow="Aus der Gemeinde" title="Aktuelles" intro="Nachrichten aus Gemeinde, Projekten und Dorfgemeinschaft – sachlich und auf dem aktuellen Stand." breadcrumbs={[{label:"Aktuelles"}]} /><div className="container page-content"><div className="news-grid">{news.map((item) => <article className="news-card" key={item.id}><p className="news-date">{formatShortDate(item.publishedAt)}</p><h2><Link href={`/aktuelles/${item.slug}`}>{item.title}</Link></h2><p>{item.teaser}</p><Link className="text-link" href={`/aktuelles/${item.slug}`}>Weiterlesen <span aria-hidden="true">→</span></Link></article>)}</div></div></>; }
|
||||
@@ -0,0 +1,6 @@
|
||||
import type { Metadata } from "next";
|
||||
import LegalPlaceholder from "@/components/LegalPlaceholder";
|
||||
import { createPageMetadata } from "@/lib/metadata";
|
||||
|
||||
export const metadata: Metadata=createPageMetadata({title:"Barrierefreiheit",description:"Redaktioneller Platzhalter für die Erklärung zur Barrierefreiheit.",path:"/barrierefreiheit",noindex:true});
|
||||
export default function AccessibilityPage(){return <LegalPlaceholder title="Erklärung zur Barrierefreiheit" intro="Informationen zur barrierefreien Zugänglichkeit dieser kommunalen Website."><h2>Erklärung in Vorbereitung</h2><p>Die rechtsverbindliche Erklärung, Angaben zum Prüfstand, bekannte Einschränkungen und die zuständige Beschwerdestelle werden nach Prüfung und Freigabe ergänzt.</p></LegalPlaceholder>}
|
||||
@@ -1,21 +0,0 @@
|
||||
import type { Metadata } from "next";
|
||||
import PageEffects from "../../components/PageEffects";
|
||||
import PhotoSlider from "../../components/PhotoSlider";
|
||||
import { galleryYears } from "../../data/galleryYears";
|
||||
import { createPageMetadata } from "../../lib/metadata";
|
||||
|
||||
export const metadata: Metadata = createPageMetadata({ title: "Bilder", description: "Neutrale Bildergalerie.", path: "/bilder" });
|
||||
|
||||
export default function PicturesPage() {
|
||||
return (
|
||||
<div className="about-v2">
|
||||
<header className="about-header about-header--hero-camp2"><div className="about-header__overlay" /><div className="about-header__content"><h1>Bilder</h1><p>Platzhalter für Bilder und externe Galerien.</p></div></header>
|
||||
<section className="about-block reveal"><div className="about-block__inner"><PhotoSlider /></div></section>
|
||||
<section className="about-block about-block--alt reveal"><div className="about-block__inner">
|
||||
<div className="about-block__head"><span className="about-eyebrow">Galerien</span><h2>Galerieübersicht</h2></div>
|
||||
{galleryYears.length ? <div className="bilder-grid">{galleryYears.map((year) => <article className="bilder-card" key={year.year}><h2>{year.year}</h2><ul className="bilder-link-list">{year.items.map((item) => <li key={item.label}>{item.link ? <a href={item.link} target="_blank" rel="noopener noreferrer">{item.label}</a> : <span>{item.label}</span>}</li>)}</ul></article>)}</div> : <p className="muted">Noch keine Galerien hinterlegt.</p>}
|
||||
</div></section>
|
||||
<PageEffects once={false} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -1,23 +1,6 @@
|
||||
import type { Metadata } from "next";
|
||||
import { createPageMetadata } from "../../lib/metadata";
|
||||
import { COMPANY_NAME, CONTACT_ADDRESS, CONTACT_EMAIL, SITE_URL } from "../../lib/site";
|
||||
import LegalPlaceholder from "@/components/LegalPlaceholder";
|
||||
import { createPageMetadata } from "@/lib/metadata";
|
||||
|
||||
export const metadata: Metadata = createPageMetadata({ title: "Datenschutz", description: "Platzhalter für Datenschutzhinweise.", path: "/datenschutz", noindex: true });
|
||||
|
||||
export default function PrivacyPage() {
|
||||
return (
|
||||
<section className="container legal-page">
|
||||
<header className="page-header"><h1>Datenschutz</h1><p>Neutrale Vorlage – vor Veröffentlichung rechtlich prüfen und vervollständigen.</p></header>
|
||||
<div className="legal-content">
|
||||
<h2>Verantwortliche Stelle</h2>
|
||||
<p>{COMPANY_NAME}<br />{CONTACT_ADDRESS}<br />E-Mail: <a href={`mailto:${CONTACT_EMAIL}`}>{CONTACT_EMAIL}</a></p>
|
||||
<h2>Geltungsbereich</h2>
|
||||
<p>Diese Platzhalterseite bezieht sich auf <a href={SITE_URL}>{SITE_URL}</a>.</p>
|
||||
<h2>Technischer Betrieb</h2>
|
||||
<p>Beim Abruf der Website können technisch erforderliche Zugriffsdaten verarbeitet werden. Passen Sie diesen Abschnitt an Hosting, Formulare, Cookies, eingebundene Dienste und tatsächliche Verarbeitungen an.</p>
|
||||
<h2>Hinweis</h2>
|
||||
<p>Dieser Text ist keine vollständige Datenschutzerklärung und keine Rechtsberatung.</p>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
export const metadata: Metadata=createPageMetadata({title:"Datenschutz",description:"Redaktioneller Platzhalter für die Datenschutzhinweise der Gemeinde Goldebek.",path:"/datenschutz",noindex:true});
|
||||
export default function PrivacyPage(){return <LegalPlaceholder title="Datenschutz" intro="Hinweise zur Verarbeitung personenbezogener Daten auf dieser Website."><h2>Datensparsame Grundkonfiguration</h2><p>Die Website lädt keine Marketing-Tracker, keine externen Schriftarten und keine eingebetteten Karten oder Videos von Drittanbietern. Die vollständigen Pflichtinformationen werden nach rechtlicher Freigabe ergänzt.</p></LegalPlaceholder>}
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
import type { Metadata } from "next";
|
||||
import Link from "next/link";
|
||||
import { notFound } from "next/navigation";
|
||||
import { getAllTripReports, getTripReport } from "@/trip-reports";
|
||||
import JsonLd from "../../../components/JsonLd";
|
||||
import { createPageMetadata } from "../../../lib/metadata";
|
||||
import { COMPANY_NAME, SITE_URL } from "../../../lib/site";
|
||||
import { createExcerpt } from "../../../utils/postUtils";
|
||||
|
||||
interface TripPageProps { params: Promise<{ slug: string }>; }
|
||||
export const dynamicParams = false;
|
||||
export async function generateStaticParams() { return (await getAllTripReports()).filter((post) => post.metadata.published).map((post) => ({ slug: post.metadata.slug })); }
|
||||
export async function generateMetadata({ params }: TripPageProps): Promise<Metadata> { const { slug } = await params; const post = await getTripReport(slug); return post?.metadata.published ? createPageMetadata({ title: post.metadata.title, description: createExcerpt(post.metadata.plainText, 160), path: `/fahrten/${post.metadata.slug}`, type: "article" }) : {}; }
|
||||
|
||||
export default async function TripPage({ params }: TripPageProps) {
|
||||
const { slug } = await params;
|
||||
const post = await getTripReport(slug);
|
||||
if (!post?.metadata.published) notFound();
|
||||
const ReportContent = post.Component;
|
||||
const jsonLd = { "@context": "https://schema.org", "@type": "BlogPosting", headline: post.metadata.title, dateModified: new Date(post.metadata.updatedAt).toISOString(), author: { "@type": "Person", name: post.metadata.author }, publisher: { "@type": "Organization", name: COMPANY_NAME }, mainEntityOfPage: `${SITE_URL}/fahrten/${post.metadata.slug}`, articleBody: post.metadata.plainText };
|
||||
return <div className="container page-spacing post-detail-page"><JsonLd data={jsonLd} /><Link className="back-link" href="/fahrten">← Zur Beitragsübersicht</Link><article className="post-card post-detail-card"><header><h1>{post.metadata.title}</h1><p className="post-meta">Von {post.metadata.author}</p></header><div className="markdown-content"><ReportContent /></div></article></div>;
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
import type { Metadata } from "next";
|
||||
import Link from "next/link";
|
||||
import { getAllTripReports } from "@/trip-reports";
|
||||
import JsonLd from "../../components/JsonLd";
|
||||
import PageEffects from "../../components/PageEffects";
|
||||
import { createPageMetadata } from "../../lib/metadata";
|
||||
import { SITE_URL } from "../../lib/site";
|
||||
import { createExcerpt } from "../../utils/postUtils";
|
||||
|
||||
export const metadata: Metadata = createPageMetadata({ title: "Beiträge", description: "Übersicht veröffentlichter Beiträge.", path: "/fahrten" });
|
||||
|
||||
export default async function TripsPage() {
|
||||
const posts = (await getAllTripReports()).filter((post) => post.metadata.published).sort((a, b) => new Date(b.metadata.createdAt).getTime() - new Date(a.metadata.createdAt).getTime());
|
||||
const collectionJsonLd = { "@context": "https://schema.org", "@type": "CollectionPage", name: "Beiträge", url: `${SITE_URL}/fahrten`, hasPart: posts.slice(0, 20).map((post) => ({ "@type": "BlogPosting", headline: post.metadata.title, url: `${SITE_URL}/fahrten/${post.metadata.slug}`, author: { "@type": "Person", name: post.metadata.author } })) };
|
||||
return (
|
||||
<div className="about-v2">
|
||||
<JsonLd data={collectionJsonLd} />
|
||||
<header className="about-header about-header--hero-camp1"><div className="about-header__overlay" /><div className="about-header__content"><h1>Beiträge</h1><p>Platzhalter für redaktionelle Inhalte.</p></div></header>
|
||||
<section className="about-block reveal"><div className="about-block__inner">
|
||||
{posts.length ? <div className="post-grid post-grid--v2">{posts.map((post) => <Link href={`/fahrten/${post.metadata.slug}`} className="post-card-link" key={post.metadata.slug}><article className="post-card post-preview-card"><header><h3>{post.metadata.title}</h3><p className="post-meta">Von {post.metadata.author}</p></header><p className="post-preview-text">{createExcerpt(post.metadata.plainText, 240)}</p><span className="post-preview-link">Weiterlesen</span></article></Link>)}</div> : <p className="about-block__empty">Noch keine Beiträge veröffentlicht.</p>}
|
||||
</div></section>
|
||||
<PageEffects threshold={0} rootMargin="0px" />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -1,21 +1,6 @@
|
||||
import type { Metadata } from "next";
|
||||
import { createPageMetadata } from "../../lib/metadata";
|
||||
import { COMPANY_NAME, CONTACT_ADDRESS, CONTACT_EMAIL, CONTACT_PHONE, SITE_URL, toPhoneUrl } from "../../lib/site";
|
||||
import LegalPlaceholder from "@/components/LegalPlaceholder";
|
||||
import { createPageMetadata } from "@/lib/metadata";
|
||||
|
||||
export const metadata: Metadata = createPageMetadata({ title: "Impressum", description: "Platzhalter für rechtliche Anbieterangaben.", path: "/impressum", noindex: true });
|
||||
|
||||
export default function LegalNoticePage() {
|
||||
return (
|
||||
<section className="container legal-page">
|
||||
<header className="page-header"><h1>Impressum</h1><p>Neutrale Vorlage – vor Veröffentlichung rechtlich prüfen und vervollständigen.</p></header>
|
||||
<div className="legal-content">
|
||||
<h2>Diensteanbieter</h2>
|
||||
<p><b>{COMPANY_NAME}</b><br />{CONTACT_ADDRESS}</p>
|
||||
<h2>Kontakt</h2>
|
||||
<p>Telefon: <a href={toPhoneUrl(CONTACT_PHONE)}>{CONTACT_PHONE}</a><br />E-Mail: <a href={`mailto:${CONTACT_EMAIL}`}>{CONTACT_EMAIL}</a><br />Website: <a href={SITE_URL}>{SITE_URL}</a></p>
|
||||
<h2>Hinweis</h2>
|
||||
<p>Dieser Text ist nur ein technischer Platzhalter und keine Rechtsberatung. Ergänzen Sie alle für Ihr Projekt erforderlichen Pflichtangaben.</p>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
export const metadata: Metadata=createPageMetadata({title:"Impressum",description:"Redaktioneller Platzhalter für das Impressum der Gemeinde Goldebek.",path:"/impressum",noindex:true});
|
||||
export default function ImprintPage(){return <LegalPlaceholder title="Impressum" intro="Anbieterkennzeichnung der Gemeinde Goldebek."><h2>Vor Veröffentlichung zu ergänzen</h2><p>Verantwortlichkeit, Vertretungsberechtigung, zuständige Aufsicht und weitere rechtlich erforderliche Angaben werden nach Freigabe eingepflegt.</p></LegalPlaceholder>}
|
||||
|
||||
@@ -1,67 +0,0 @@
|
||||
import type { Metadata } from "next";
|
||||
import { Fragment } from "react";
|
||||
import PacklisteIcon from "../../components/PacklisteIcon";
|
||||
import PageEffects from "../../components/PageEffects";
|
||||
import RichTextParagraph from "../../components/RichTextParagraph";
|
||||
import { downloads } from "../../data/downloads";
|
||||
import { packlisteBasics, packlisteIntro, packlisteItems, packlisteTips } from "../../data/packliste";
|
||||
import { createPageMetadata } from "../../lib/metadata";
|
||||
|
||||
export const metadata: Metadata = createPageMetadata({
|
||||
title: "Informationen",
|
||||
description: "Neutrale Seite für Informationen und Downloads.",
|
||||
path: "/informationen",
|
||||
});
|
||||
|
||||
function getFileIcon(filename: string): string {
|
||||
const extension = filename.toLowerCase().split(".").pop() || "";
|
||||
if (extension === "pdf") return "\u{1F4C4}";
|
||||
if (["doc", "docx", "txt"].includes(extension)) return "\u{1F4DD}";
|
||||
return "\u{1F4CE}";
|
||||
}
|
||||
|
||||
export default function InformationPage() {
|
||||
return (
|
||||
<div className="about-v2 about-v2--info">
|
||||
<header className="about-header about-header--hero-camp">
|
||||
<div className="about-header__overlay" />
|
||||
<div className="about-header__content"><h1>Informationen</h1><p>Platzhalter für strukturierte Informationen und Dokumente.</p></div>
|
||||
</header>
|
||||
<section className="about-block reveal">
|
||||
<div className="about-block__inner">
|
||||
<div className="about-block__head"><span className="about-eyebrow">Bausteine</span><h2>Informationsbereiche</h2></div>
|
||||
<div className="packliste">
|
||||
<div className="packliste__intro">{packlisteIntro.map((paragraph) => <RichTextParagraph text={paragraph} key={paragraph} />)}</div>
|
||||
<div className="packliste__callout">
|
||||
<div className="packliste__callout-icon" aria-hidden="true"><PacklisteIcon name={packlisteBasics.icon} size={20} /></div>
|
||||
<div className="packliste__callout-body"><h4>{packlisteBasics.title}</h4>{packlisteBasics.paragraphs.map((paragraph) => <RichTextParagraph text={paragraph} key={paragraph} />)}</div>
|
||||
</div>
|
||||
<div className="packliste__grid">
|
||||
{packlisteItems.map((item) => (
|
||||
<article className="packliste__item" key={item.title}>
|
||||
<div className="packliste__item-header"><span className="packliste__item-icon" aria-hidden="true"><PacklisteIcon name={item.icon} size={18} /></span><h4>{item.title}</h4></div>
|
||||
{item.paragraphs.map((paragraph, index) => (
|
||||
<Fragment key={paragraph}><RichTextParagraph text={paragraph} />{index === 0 && item.bullets?.length ? <ul>{item.bullets.map((bullet) => <li key={bullet}>{bullet}</li>)}</ul> : null}</Fragment>
|
||||
))}
|
||||
</article>
|
||||
))}
|
||||
</div>
|
||||
<div className="packliste__tips"><h4>{packlisteTips.title}</h4>{packlisteTips.paragraphs.map((paragraph) => <RichTextParagraph text={paragraph} key={paragraph} />)}</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section className="about-block about-block--alt reveal">
|
||||
<div className="about-block__inner">
|
||||
<div className="about-block__head"><span className="about-eyebrow">Dateien</span><h2>Downloads</h2></div>
|
||||
{downloads.length ? <div className="download-grid">{downloads.map((download) => (
|
||||
<a href={download.download_url} download className="download-card" title={`Download: ${download.name}`} key={download.download_url}>
|
||||
<div className="download-header"><span className="download-icon">{getFileIcon(download.name)}</span><h3 className="download-name">{download.name}</h3></div>
|
||||
<p className="download-description">{download.description}</p>
|
||||
</a>
|
||||
))}</div> : <p className="muted">Noch keine Downloads hinterlegt.</p>}
|
||||
</div>
|
||||
</section>
|
||||
<PageEffects threshold={0} rootMargin="0px" />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
import type { Metadata } from "next";
|
||||
import EventsView from "../../components/EventsView";
|
||||
import PageEffects from "../../components/PageEffects";
|
||||
import { createPageMetadata } from "../../lib/metadata";
|
||||
|
||||
export const metadata: Metadata = createPageMetadata({
|
||||
title: "Kalender",
|
||||
description: "Kommende Termine im Kalenderüberblick.",
|
||||
path: "/kalender",
|
||||
});
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
export default function CalendarPage() {
|
||||
return (
|
||||
<div className="about-v2">
|
||||
<header className="about-header about-header--hero-camp2">
|
||||
<div className="about-header__overlay" />
|
||||
<div className="about-header__content"><h1>Kalender</h1><p>Termine aus der konfigurierten Kalenderquelle.</p></div>
|
||||
</header>
|
||||
<section className="about-block reveal"><div className="about-block__inner"><EventsView mode="calendar" /></div></section>
|
||||
<PageEffects once={false} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
+18
-20
@@ -1,19 +1,9 @@
|
||||
import type { Metadata, Viewport } from "next";
|
||||
import { connection } from "next/server";
|
||||
import type { ReactNode } from "react";
|
||||
import Footer from "../components/Footer";
|
||||
import Header from "../components/Header";
|
||||
import ScrollToTop from "../components/ScrollToTop";
|
||||
import { SITE_NAME, SITE_URL } from "../lib/site";
|
||||
import "../styles/base.css";
|
||||
import "../styles/layout.css";
|
||||
import "../styles/components.css";
|
||||
import "../styles/hero.css";
|
||||
import "../styles/about.css";
|
||||
import "../styles/calendar.css";
|
||||
import "../styles/packliste.css";
|
||||
import "../styles/post.css";
|
||||
import "../styles/PhotoSlider.css";
|
||||
import "../styles/goldebek.css";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
metadataBase: new URL(SITE_URL),
|
||||
@@ -21,7 +11,22 @@ export const metadata: Metadata = {
|
||||
default: SITE_NAME,
|
||||
template: `%s | ${SITE_NAME}`,
|
||||
},
|
||||
icons: { icon: "/logo.svg" },
|
||||
description: "Offizielle Website der Gemeinde Goldebek in Nordfriesland.",
|
||||
openGraph: {
|
||||
type: "website",
|
||||
locale: "de_DE",
|
||||
siteName: SITE_NAME,
|
||||
title: SITE_NAME,
|
||||
description: "Offizielle Website der Gemeinde Goldebek in Nordfriesland.",
|
||||
url: SITE_URL,
|
||||
images: [{ url: "/og.png", width: 1200, height: 630, alt: "Gemeinde Goldebek – Moin in Goldebek" }],
|
||||
},
|
||||
twitter: {
|
||||
card: "summary_large_image",
|
||||
title: SITE_NAME,
|
||||
description: "Offizielle Website der Gemeinde Goldebek in Nordfriesland.",
|
||||
images: ["/og.png"],
|
||||
},
|
||||
};
|
||||
|
||||
export const viewport: Viewport = {
|
||||
@@ -29,15 +34,9 @@ export const viewport: Viewport = {
|
||||
initialScale: 1,
|
||||
};
|
||||
|
||||
export default async function RootLayout({ children }: Readonly<{ children: ReactNode }>) {
|
||||
await connection();
|
||||
|
||||
export default function RootLayout({ children }: Readonly<{ children: ReactNode }>) {
|
||||
return (
|
||||
<html lang="de">
|
||||
<head>
|
||||
<link rel="preload" href="/fonts/Montserrat-Regular.woff2" as="font" type="font/woff2" crossOrigin="anonymous" />
|
||||
<link rel="preload" href="/fonts/Poppins-Bold.woff2" as="font" type="font/woff2" crossOrigin="anonymous" />
|
||||
</head>
|
||||
<body>
|
||||
<a href="#main-content" className="skip-link">Zum Inhalt springen</a>
|
||||
<div className="app-shell">
|
||||
@@ -45,7 +44,6 @@ export default async function RootLayout({ children }: Readonly<{ children: Reac
|
||||
<main id="main-content">{children}</main>
|
||||
<Footer />
|
||||
</div>
|
||||
<ScrollToTop />
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
|
||||
+25
-68
@@ -1,73 +1,30 @@
|
||||
import type { Metadata } from "next";
|
||||
import Image from "next/image";
|
||||
import Link from "next/link";
|
||||
import { getAllTripReports } from "@/trip-reports";
|
||||
import EventsView from "../components/EventsView";
|
||||
import JsonLd from "../components/JsonLd";
|
||||
import { createPageMetadata } from "../lib/metadata";
|
||||
import { COMPANY_NAME, SITE_NAME, SITE_URL } from "../lib/site";
|
||||
import { createExcerpt } from "../utils/postUtils";
|
||||
import heroImage from "../../goldebek_website_briefing/csm_nordfriesland_goldebek_mr_240316_127_36497ca77c.jpg";
|
||||
import villageImage from "../../goldebek_website_briefing/csm_nordfriesland_goldebek_mr_240316_126_0b279a7462.jpg";
|
||||
import EventCard from "@/components/EventCard";
|
||||
import JsonLd from "@/components/JsonLd";
|
||||
import { getEvents, getNews } from "@/lib/content";
|
||||
import { partitionEvents } from "@/lib/dates/events";
|
||||
import { createPageMetadata } from "@/lib/metadata";
|
||||
import { SITE_NAME, SITE_URL } from "@/lib/site";
|
||||
|
||||
const homeMetadata = createPageMetadata({
|
||||
title: "Startseite",
|
||||
description: "Neutrales Starter-Projekt für eine neue Website.",
|
||||
path: "/",
|
||||
});
|
||||
const homeMetadata=createPageMetadata({title:"Moin in Goldebek",description:"Offizielle Website der Gemeinde Goldebek mit aktuellen Informationen, Terminen und Anlaufstellen.",path:"/"});
|
||||
export const metadata:Metadata={...homeMetadata,title:{absolute:SITE_NAME}};
|
||||
|
||||
export const metadata: Metadata = {
|
||||
...homeMetadata,
|
||||
title: { absolute: SITE_NAME },
|
||||
};
|
||||
const facts=[["381","Einwohner · Stand 31.03.2026"],["10,18 km²","Gemeindefläche"],["Nordfriesland","Kreis"],["25862","Postleitzahl"]] as const;
|
||||
const quickLinks=[["Dörpshuus","/leben/doerpshuus","Raum für Feste und Begegnung"],["Gemeindevertretung","/politik/gemeindevertretung","Menschen und kommunale Arbeit"],["Alltagshilfe","/leben/alltagshilfe-osterdoerfer","Praktische Unterstützung vor Ort"],["Fahrbücherei","/service/fahrbuecherei","Haltezeiten und Termine"]] as const;
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
export default async function HomePage() {
|
||||
const posts = (await getAllTripReports())
|
||||
.filter((post) => post.metadata.published)
|
||||
.sort((a, b) => new Date(b.metadata.createdAt).getTime() - new Date(a.metadata.createdAt).getTime())
|
||||
.slice(0, 3);
|
||||
const jsonLd = [
|
||||
{ "@context": "https://schema.org", "@type": "Organization", name: COMPANY_NAME, url: SITE_URL },
|
||||
{ "@context": "https://schema.org", "@type": "WebSite", name: SITE_NAME, url: SITE_URL },
|
||||
];
|
||||
|
||||
return (
|
||||
<>
|
||||
<JsonLd data={jsonLd} />
|
||||
<section className="hero">
|
||||
<div className="container hero-content">
|
||||
<div>
|
||||
<h1>Bereit für Ihre neue Website</h1>
|
||||
<p>Diese neutrale Startseite enthält bewusst nur minimale Platzhalter. Inhalte, Navigation und Gestaltung können projektspezifisch ergänzt werden.</p>
|
||||
<a className="cta" href="#start">Projekt starten</a>
|
||||
</div>
|
||||
<div className="hero-card">
|
||||
<h2>Nächste Termine</h2>
|
||||
<EventsView mode="special" />
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section id="start" className="container group-info">
|
||||
<div className="group-info-card">
|
||||
<h2>Neutraler Ausgangspunkt</h2>
|
||||
<p>Die technische Infrastruktur ist eingerichtet. Ersetzen Sie diesen Abschnitt durch den Einstieg Ihrer neuen Website.</p>
|
||||
</div>
|
||||
</section>
|
||||
<section className="container">
|
||||
<h2>Aktuelle Beiträge</h2>
|
||||
{posts.length ? (
|
||||
<div className="post-grid">
|
||||
{posts.map((post) => (
|
||||
<Link href={`/fahrten/${post.metadata.slug}`} className="post-card-link" key={post.metadata.slug}>
|
||||
<article className="post-card post-preview-card">
|
||||
<header><h3>{post.metadata.title}</h3><p className="post-meta">Von {post.metadata.author}</p></header>
|
||||
<p className="post-preview-text">{createExcerpt(post.metadata.plainText, 220)}</p>
|
||||
<span className="post-preview-link">Weiterlesen</span>
|
||||
</article>
|
||||
</Link>
|
||||
))}
|
||||
</div>
|
||||
) : <p className="muted">Noch keine Beiträge veröffentlicht.</p>}
|
||||
</section>
|
||||
</>
|
||||
);
|
||||
}
|
||||
export default function HomePage(){const news=getNews().slice(0,3);const {upcoming}=partitionEvents(getEvents());return <>
|
||||
<JsonLd data={[{"@context":"https://schema.org","@type":"GovernmentOrganization","name":"Gemeinde Goldebek","url":SITE_URL,"address":{"@type":"PostalAddress","postalCode":"25862","addressLocality":"Goldebek","addressRegion":"Schleswig-Holstein","addressCountry":"DE"}},{"@context":"https://schema.org","@type":"WebSite","name":"Gemeinde Goldebek","url":SITE_URL,"inLanguage":"de-DE"}]}/>
|
||||
<section className="municipality-hero"><div className="hero-photo" aria-hidden="true"><Image src={heroImage} alt="" fill priority sizes="100vw" /></div><div className="container municipality-hero__grid"><div className="municipality-hero__copy"><p className="eyebrow">Gemeinde Goldebek · Nordfriesland</p><h1>Moin in Goldebek</h1><p className="lead">Goldebek liegt im nordöstlichen Nordfriesland zwischen Bredstedt und Wanderup. Landwirtschaft, Ehrenamt, Vereine und gemeinschaftliche Projekte prägen das Dorf.</p><div className="button-row"><Link className="button button--primary" href="/termine">Aktuelle Termine</Link><Link className="button button--secondary" href="/gemeinde/ueber-goldebek">Goldebek entdecken</Link></div></div><aside className="welcome-card" aria-labelledby="welcome-title"><p className="welcome-card__kicker">Gut zu wissen</p><h2 id="welcome-title">Gemeinsam im Dorf</h2><p>Hier finden Sie verlässliche Informationen der Gemeinde, kommende Termine und direkte Wege zu den wichtigsten Angeboten.</p><Link href="/kontakt" className="text-link">Ansprechpartner finden <span aria-hidden="true">→</span></Link></aside></div></section>
|
||||
<section className="facts" aria-label="Goldebek in Zahlen"><div className="container facts__grid">{facts.map(([value,label])=><div className="fact" key={label}><strong>{value}</strong><span>{label}</span></div>)}</div></section>
|
||||
<section className="container home-section"><div className="section-heading"><div><p className="section-kicker">Aus der Gemeinde</p><h2>Aktuelles</h2></div><Link className="text-link" href="/aktuelles">Alle Meldungen <span aria-hidden="true">→</span></Link></div><div className="news-grid">{news.map((item)=><article className="news-card" key={item.id}><p className="news-date">{new Intl.DateTimeFormat("de-DE").format(new Date(`${item.publishedAt}T12:00:00Z`))}</p><h3><Link href={`/aktuelles/${item.slug}`}>{item.title}</Link></h3><p>{item.teaser}</p><Link className="text-link" href={`/aktuelles/${item.slug}`}>Weiterlesen <span aria-hidden="true">→</span></Link></article>)}</div></section>
|
||||
<section className="home-section home-section--tinted"><div className="container"><div className="section-heading"><div><p className="section-kicker">Was steht an?</p><h2>Nächste Termine</h2></div><Link className="text-link" href="/termine">Zum Kalender <span aria-hidden="true">→</span></Link></div><div className="event-list">{upcoming.slice(0,4).map((event)=><EventCard event={event} key={event.id}/>)}</div></div></section>
|
||||
<section className="container home-section"><p className="section-kicker">Direkt gefunden</p><h2>Schnellzugriffe</h2><div className="quick-grid quick-grid--four">{quickLinks.map(([title,href,copy],index)=><Link href={href} className="quick-card" key={title}><span className="quick-card__number" aria-hidden="true">0{index+1}</span><h3>{title}</h3><p>{copy}</p></Link>)}</div></section>
|
||||
<section className="discover-section"><div className="discover-photo"><Image src={villageImage} alt="Luftaufnahme von Goldebek mit Feldern und Wohnhäusern" fill sizes="(max-width: 800px) 100vw, 50vw" /></div><div className="discover-copy"><p className="section-kicker">Ort mit Geschichte</p><h2>Goldebek entdecken</h2><p>Vom Mühlenstrom bis zur Dorfchronik: Lernen Sie Geschichte, Landschaft und Zeichen des Ortes kennen.</p><div className="link-list"><Link href="/gemeinde/geschichte">Geschichte</Link><Link href="/gemeinde/ueber-goldebek">Mühlenstrom</Link><Link href="/gemeinde/dorfchronik">Dorfchronik</Link><Link href="/gemeinde/wappen">Wappen</Link></div></div></section>
|
||||
<section className="container home-section"><div className="section-heading"><div><p className="section-kicker">Engagiert vor Ort</p><h2>Gemeinschaft</h2></div></div><div className="feature-grid"><Link href="/leben/vereine"><span>01</span><h3>Vereine</h3><p>Sport, Tradition und soziales Engagement.</p></Link><Link href="/leben/freiwillige-feuerwehr"><span>02</span><h3>Feuerwehr</h3><p>Einsatzbereitschaft und Gemeinschaft.</p></Link><Link href="/leben/kulturausschuss"><span>03</span><h3>Kulturausschuss</h3><p>Feste, Aktionen und Kultur im Dorf.</p></Link></div></section>
|
||||
<section className="home-section home-section--blue"><div className="container"><p className="section-kicker">Blick nach vorn</p><h2>Projekte & Entwicklung</h2><div className="project-links"><Link href="/leben/spielplatz"><strong>Spielplatz</strong><span>Seit August 2026 geöffnet</span></Link><Link href="/politik/projekte-entwicklung"><strong>Wärmeplanung</strong><span>Aktuelle Informationen und Quellen</span></Link><Link href="/politik/bauleitplanung"><strong>Bauleitplanung</strong><span>Zu den amtlichen Verfahren</span></Link></div></div></section>
|
||||
<section className="container home-section contact-band"><div><p className="section-kicker">Gemeinde & Amt</p><h2>Wir helfen Ihnen weiter.</h2><p>Für Gemeindeangelegenheiten finden Sie hier Peter Jessen und das Amt Mittleres Nordfriesland.</p></div><Link className="button button--primary" href="/kontakt">Kontakt aufnehmen</Link></section>
|
||||
</>}
|
||||
|
||||
+1
-1
@@ -8,6 +8,6 @@ export default function robots(): MetadataRoute.Robots {
|
||||
allow: "/",
|
||||
disallow: ["/api/", "/health", "/downloads/"],
|
||||
},
|
||||
sitemap: `${SITE_URL}/sitemap-index.xml`,
|
||||
sitemap: `${SITE_URL}/sitemap.xml`,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
import { SITE_URL } from "../../lib/site";
|
||||
|
||||
export const dynamic = "force-static";
|
||||
|
||||
export function GET(): Response {
|
||||
const body = [
|
||||
'<?xml version="1.0" encoding="UTF-8"?>',
|
||||
'<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">',
|
||||
` <sitemap><loc>${SITE_URL}/sitemap.xml</loc></sitemap>`,
|
||||
"</sitemapindex>",
|
||||
"",
|
||||
].join("\n");
|
||||
|
||||
return new Response(body, {
|
||||
headers: { "Content-Type": "application/xml; charset=utf-8" },
|
||||
});
|
||||
}
|
||||
+9
-22
@@ -1,25 +1,12 @@
|
||||
import type { MetadataRoute } from "next";
|
||||
import { getAllTripReports } from "@/trip-reports";
|
||||
import { SITE_URL } from "../lib/site";
|
||||
import pages from "../../content/pages/pages.json";
|
||||
import { getEvents, getNews } from "@/lib/content";
|
||||
import { SITE_URL } from "@/lib/site";
|
||||
|
||||
export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
|
||||
const staticPaths = [
|
||||
"",
|
||||
"/ueber-uns",
|
||||
"/informationen",
|
||||
"/kalender",
|
||||
"/fahrten",
|
||||
"/bilder",
|
||||
];
|
||||
const staticEntries: MetadataRoute.Sitemap = staticPaths.map((path) => ({
|
||||
url: `${SITE_URL}${path}`,
|
||||
}));
|
||||
const tripEntries: MetadataRoute.Sitemap = (await getAllTripReports())
|
||||
.filter((post) => post.metadata.published)
|
||||
.map((post) => ({
|
||||
url: `${SITE_URL}/fahrten/${post.metadata.slug}`,
|
||||
lastModified: new Date(post.metadata.updatedAt),
|
||||
}));
|
||||
|
||||
return [...staticEntries, ...tripEntries];
|
||||
export default function sitemap(): MetadataRoute.Sitemap {
|
||||
const staticPaths=["","/aktuelles","/termine","/impressum","/datenschutz","/barrierefreiheit",...pages.map((page)=>`/${page.slug}`)];
|
||||
const staticEntries=staticPaths.map((path)=>({url:`${SITE_URL}${path}`,lastModified:new Date("2026-09-18")}));
|
||||
const news=getNews().map((item)=>({url:`${SITE_URL}/aktuelles/${item.slug}`,lastModified:new Date(item.updatedAt??item.publishedAt)}));
|
||||
const events=getEvents().filter((item)=>item.status==="verified"||item.status==="dynamic").map((item)=>({url:`${SITE_URL}/termine/${item.slug}`,lastModified:new Date(item.lastVerified)}));
|
||||
return [...staticEntries,...news,...events];
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
import { notFound } from "next/navigation";
|
||||
import { getEvent } from "@/lib/content";
|
||||
import { eventsToIcs } from "@/lib/dates/ics";
|
||||
|
||||
export async function GET(_request: Request, { params }: { params: Promise<{ slug: string }> }) { const event = getEvent((await params).slug); if (!event || event.status === "needs-verification") notFound(); return new Response(eventsToIcs([event]), { headers: { "Content-Type":"text/calendar; charset=utf-8", "Content-Disposition":`attachment; filename="${event.slug}.ics"` } }); }
|
||||
@@ -0,0 +1,20 @@
|
||||
import type { Metadata } from "next";
|
||||
import Link from "next/link";
|
||||
import { notFound } from "next/navigation";
|
||||
import JsonLd from "@/components/JsonLd";
|
||||
import PageHeader from "@/components/PageHeader";
|
||||
import SourceNote from "@/components/SourceNote";
|
||||
import { getEvent, getEvents } from "@/lib/content";
|
||||
import { eventDateTimeIso, formatGermanDate } from "@/lib/dates/events";
|
||||
import { createPageMetadata } from "@/lib/metadata";
|
||||
|
||||
export function generateStaticParams() { return getEvents().filter((event) => event.status !== "needs-verification").map((event) => ({ slug: event.slug })); }
|
||||
export async function generateMetadata({ params }: { params: Promise<{ slug: string }> }): Promise<Metadata> { const { slug } = await params; const event = getEvent(slug); return event ? { ...createPageMetadata({ title: event.title, description: event.summary ?? `Termin in Goldebek am ${formatGermanDate(event.startDate)}.`, path: `/termine/${event.slug}` }), openGraph: { title: event.title, description: event.summary ?? `Termin in Goldebek am ${formatGermanDate(event.startDate)}.`, type: "website", url: `/termine/${event.slug}`, images: [] }, twitter: { title: event.title, description: event.summary, images: [] } } : {}; }
|
||||
|
||||
export default async function EventDetailPage({ params }: { params: Promise<{ slug: string }> }) {
|
||||
const event = getEvent((await params).slug); if (!event || event.status === "needs-verification") notFound();
|
||||
const visibleLocation = event.location && event.privacyApproved === true ? event.location : undefined;
|
||||
const startDate = eventDateTimeIso(event.startDate, event.startTime);
|
||||
const endDate = event.endDate || event.endTime ? eventDateTimeIso(event.endDate ?? event.startDate, event.endTime) : undefined;
|
||||
return <><JsonLd data={{ "@context":"https://schema.org", "@type":"Event", name:event.title, description:event.summary, startDate, endDate, eventStatus:"https://schema.org/EventScheduled", location:visibleLocation ? { "@type":"Place", name:visibleLocation } : undefined, organizer:event.organizer ? { "@type":"Organization", name:event.organizer } : undefined }} /><PageHeader eyebrow="Termin" title={event.title} intro={event.summary ?? "Ein Termin der Gemeinde und Dorfgemeinschaft Goldebek."} breadcrumbs={[{ label:"Termine", href:"/termine" },{ label:event.title }]} /><div className="container narrow-content"><dl className="detail-list"><div><dt>Datum</dt><dd>{formatGermanDate(event.startDate)}</dd></div>{event.startTime ? <div><dt>Zeit</dt><dd>{event.startTime}{event.endTime ? `–${event.endTime}` : ""} Uhr</dd></div> : null}{visibleLocation ? <div><dt>Ort</dt><dd>{visibleLocation}</dd></div> : null}{event.organizer ? <div><dt>Veranstalter</dt><dd>{event.organizer}</dd></div> : null}</dl><div className="button-row"><a className="button button--primary" href={`/termine/${event.slug}/kalender.ics`}>Termin speichern (.ics)</a><Link className="button button--secondary" href="/termine">Alle Termine</Link></div><SourceNote lastVerified={event.lastVerified} sourceName={event.sourceName} sourceUrl={event.sourceUrl} /></div></>;
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
import { getEvents } from "@/lib/content";
|
||||
import { eventsToIcs } from "@/lib/dates/ics";
|
||||
|
||||
export function GET() { const events = getEvents().filter((event) => event.status === "verified" || event.status === "dynamic"); return new Response(eventsToIcs(events), { headers: { "Content-Type":"text/calendar; charset=utf-8", "Content-Disposition":"attachment; filename=goldebek-termine.ics" } }); }
|
||||
@@ -0,0 +1,13 @@
|
||||
import type { Metadata } from "next";
|
||||
import EventCard from "@/components/EventCard";
|
||||
import PageHeader from "@/components/PageHeader";
|
||||
import { getEvents } from "@/lib/content";
|
||||
import { partitionEvents } from "@/lib/dates/events";
|
||||
import { createPageMetadata } from "@/lib/metadata";
|
||||
|
||||
export const metadata: Metadata = createPageMetadata({ title: "Termine", description: "Veranstaltungen und Termine in Goldebek.", path: "/termine" });
|
||||
|
||||
export default function EventsPage() {
|
||||
const { upcoming, archive } = partitionEvents(getEvents());
|
||||
return <><PageHeader eyebrow="Gemeinde erleben" title="Termine" intro="Veranstaltungen, Treffen und wichtige Daten in Goldebek – geprüft und chronologisch sortiert." breadcrumbs={[{ label: "Termine" }]} /><div className="container page-content"><div className="section-heading"><div><p className="section-kicker">Kalender</p><h2>Kommende Termine</h2></div><a className="button button--secondary" href="/termine/kalender.ics">Alle Termine als ICS</a></div>{upcoming.length ? <div className="event-list">{upcoming.map((event) => <EventCard event={event} key={event.id} />)}</div> : <p>Zurzeit sind keine bestätigten kommenden Termine eingetragen.</p>}<section className="archive-section"><h2>Terminarchiv</h2>{archive.length ? <div className="event-list event-list--archive">{archive.map((event) => <EventCard event={event} key={event.id} />)}</div> : <p>Noch keine archivierten Termine.</p>}</section></div></>;
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
import type { Metadata } from "next";
|
||||
import PageEffects from "../../components/PageEffects";
|
||||
import PhotoSlider from "../../components/PhotoSlider";
|
||||
import { createPageMetadata } from "../../lib/metadata";
|
||||
|
||||
export const metadata: Metadata = createPageMetadata({
|
||||
title: "Über uns",
|
||||
description: "Neutrale Inhaltsseite für die Vorstellung einer Organisation.",
|
||||
path: "/ueber-uns",
|
||||
});
|
||||
|
||||
export default function AboutPage() {
|
||||
return (
|
||||
<div className="about-v2">
|
||||
<header className="about-header about-header--hero-camp1">
|
||||
<div className="about-header__overlay" />
|
||||
<div className="about-header__content"><h1>Über uns</h1><p>Platzhalter für eine kurze Vorstellung.</p></div>
|
||||
</header>
|
||||
<section className="about-block reveal">
|
||||
<div className="about-block__inner about-block__inner--narrow">
|
||||
<span className="about-eyebrow">Organisation</span>
|
||||
<h2>Ihre Geschichte</h2>
|
||||
<p>Ergänzen Sie hier die Geschichte, Werte und Ziele Ihres neuen Projekts.</p>
|
||||
</div>
|
||||
</section>
|
||||
<section className="about-block about-block--alt reveal">
|
||||
<div className="about-block__inner">
|
||||
<div className="about-block__head"><span className="about-eyebrow">Medien</span><h2>Bilder</h2></div>
|
||||
<PhotoSlider imageDir="secondary-slider" label="Beispielgalerie" />
|
||||
</div>
|
||||
</section>
|
||||
<PageEffects threshold={0} rootMargin="0px" />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user