From ce08f94d481f9525ba73c4bcff4c1d681e990f4d Mon Sep 17 00:00:00 2001 From: Per Hoener Date: Sat, 19 Sep 2026 15:46:46 +0200 Subject: [PATCH] refactor: hide content provenance in public UI --- src/app/[...slug]/page.tsx | 6 ++---- src/app/aktuelles/[slug]/page.tsx | 3 +-- src/app/page.tsx | 4 ++-- src/app/termine/[slug]/page.tsx | 3 +-- src/components/EventsViewClient.tsx | 2 +- src/components/Footer.tsx | 2 +- src/components/SourceNote.tsx | 4 ---- src/styles/goldebek.css | 3 +-- 8 files changed, 9 insertions(+), 18 deletions(-) delete mode 100644 src/components/SourceNote.tsx diff --git a/src/app/[...slug]/page.tsx b/src/app/[...slug]/page.tsx index 640d13f..3072912 100644 --- a/src/app/[...slug]/page.tsx +++ b/src/app/[...slug]/page.tsx @@ -11,7 +11,6 @@ import coatOfArms from "../../../goldebek_website_briefing/DEU_Goldebek_wappen.s 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"; @@ -48,7 +47,7 @@ function SpecialContent({ type }: { type?: string }) { return
Offizielles Wappen der Gemeinde Goldebek
Das Gemeindewappen wird unverändert wiedergegeben.
; } if (type === "facts") { - return
Einwohner
{municipalityJson.population.value}
Stand 31.03.2026
Fläche
{municipalityJson.areaKm2.toLocaleString("de-DE")} km²
Dichte
{municipalityJson.population.densityPerKm2} Einwohner/km²
Postleitzahl
{municipalityJson.postalCode}
Gemeindeschlüssel
{municipalityJson.officialMunicipalityKey}
Amt
{municipalityJson.administration}
; + return
Einwohner
{municipalityJson.population.value}
Fläche
{municipalityJson.areaKm2.toLocaleString("de-DE")} km²
Dichte
{municipalityJson.population.densityPerKm2} Einwohner/km²
Postleitzahl
{municipalityJson.postalCode}
Gemeindeschlüssel
{municipalityJson.officialMunicipalityKey}
Amt
{municipalityJson.administration}
; } if (type === "history") { return
    {municipalityJson.history.map((item) =>
  1. {item.title}

    {item.text}

  2. )}
; @@ -92,6 +91,5 @@ export default async function ContentPageRoute({ params }: { params: Promise<{ s 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 <>
{page.sections.map((section) =>

{section.title}

{section.text?.map((paragraph) =>

{paragraph}

)}{section.items ?
    {section.items.map((item) =>
  • {item}
  • )}
: null}{section.links ?
{section.links.map((link) => )}
: null}
)}{page.lastVerified ? : null}
; + return <>
{page.sections.map((section) =>

{section.title}

{section.text?.map((paragraph) =>

{paragraph}

)}{section.items ?
    {section.items.map((item) =>
  • {item}
  • )}
: null}{section.links ?
{section.links.map((link) => )}
: null}
)}
; } diff --git a/src/app/aktuelles/[slug]/page.tsx b/src/app/aktuelles/[slug]/page.tsx index 344c05a..f52c56f 100644 --- a/src/app/aktuelles/[slug]/page.tsx +++ b/src/app/aktuelles/[slug]/page.tsx @@ -1,11 +1,10 @@ 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 { 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 <>

{item.body}

; } +export default async function NewsDetail({ params }: { params:Promise<{slug:string}> }) { const item=getNewsItem((await params).slug); if(!item) notFound(); return <>

{item.body}

; } diff --git a/src/app/page.tsx b/src/app/page.tsx index 3972ad5..8cec578 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -13,7 +13,7 @@ import { SITE_NAME, SITE_URL } from "@/lib/site"; 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}}; -const facts=[["381","Einwohner · Stand 31.03.2026"],["10,18 km²","Gemeindefläche"],["Nordfriesland","Kreis"],["25862","Postleitzahl"]] as const; +const facts=[["381","Einwohner"],["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 default function HomePage(){const news=getNews().slice(0,3);const {upcoming}=partitionEvents(getEvents());return <> @@ -25,6 +25,6 @@ export default function HomePage(){const news=getNews().slice(0,3);const {upcomi

Direkt gefunden

Schnellzugriffe

{quickLinks.map(([title,href,copy],index)=>

{title}

{copy}

)}
Luftaufnahme von Goldebek mit Feldern und Wohnhäusern

Ort mit Geschichte

Goldebek entdecken

Vom Mühlenstrom bis zur Dorfchronik: Lernen Sie Geschichte, Landschaft und Zeichen des Ortes kennen.

GeschichteMühlenstromDorfchronikWappen

Engagiert vor Ort

Gemeinschaft

01

Vereine

Sport, Tradition und soziales Engagement.

02

Feuerwehr

Einsatzbereitschaft und Gemeinschaft.

03

Kulturausschuss

Feste, Aktionen und Kultur im Dorf.

-

Blick nach vorn

Projekte & Entwicklung

SpielplatzSeit August 2026 geöffnetWärmeplanungAktuelle Informationen und QuellenBauleitplanungZu den amtlichen Verfahren
+

Blick nach vorn

Projekte & Entwicklung

SpielplatzSeit August 2026 geöffnetWärmeplanungAktuelle InformationenBauleitplanungZu den amtlichen Verfahren

Gemeinde & Amt

Wir helfen Ihnen weiter.

Für Gemeindeangelegenheiten finden Sie hier Peter Jessen und das Amt Mittleres Nordfriesland.

Kontakt aufnehmen
} diff --git a/src/app/termine/[slug]/page.tsx b/src/app/termine/[slug]/page.tsx index ed008e9..221da69 100644 --- a/src/app/termine/[slug]/page.tsx +++ b/src/app/termine/[slug]/page.tsx @@ -3,7 +3,6 @@ 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"; @@ -16,5 +15,5 @@ export default async function EventDetailPage({ params }: { params: Promise<{ sl 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 <>
Datum
{formatGermanDate(event.startDate)}
{event.startTime ?
Zeit
{event.startTime}{event.endTime ? `–${event.endTime}` : ""} Uhr
: null}{visibleLocation ?
Ort
{visibleLocation}
: null}{event.organizer ?
Veranstalter
{event.organizer}
: null}
; + return <>
Datum
{formatGermanDate(event.startDate)}
{event.startTime ?
Zeit
{event.startTime}{event.endTime ? `–${event.endTime}` : ""} Uhr
: null}{visibleLocation ?
Ort
{visibleLocation}
: null}{event.organizer ?
Veranstalter
{event.organizer}
: null}
; } diff --git a/src/components/EventsViewClient.tsx b/src/components/EventsViewClient.tsx index 2992384..7014c89 100644 --- a/src/components/EventsViewClient.tsx +++ b/src/components/EventsViewClient.tsx @@ -162,7 +162,7 @@ export default function EventsViewClient({ diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 84f563d..2bb55bf 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -2,7 +2,7 @@ import Link from "next/link"; export default function Footer() { return ; } diff --git a/src/components/SourceNote.tsx b/src/components/SourceNote.tsx deleted file mode 100644 index 732b797..0000000 --- a/src/components/SourceNote.tsx +++ /dev/null @@ -1,4 +0,0 @@ -export default function SourceNote({ lastVerified, sourceName, sourceUrl }: { lastVerified: string; sourceName?: string; sourceUrl?: string }) { - const date = new Intl.DateTimeFormat("de-DE", { day: "2-digit", month: "2-digit", year: "numeric" }).format(new Date(`${lastVerified}T12:00:00Z`)); - return

Stand: {date}{sourceName && sourceUrl ? <> · {sourceName} (öffnet in neuem Fenster) : null}

; -} diff --git a/src/styles/goldebek.css b/src/styles/goldebek.css index 31ecd6c..364169c 100644 --- a/src/styles/goldebek.css +++ b/src/styles/goldebek.css @@ -30,7 +30,7 @@ a:focus-visible,button:focus-visible { outline:3px solid var(--gold-500); outlin .facts { position:relative; z-index:3; background:var(--blue-950); color:white; } .facts__grid { display:grid; grid-template-columns:repeat(4,1fr); } .fact { min-height:125px; padding:1.5rem clamp(1rem,3vw,2rem); display:flex; flex-direction:column; justify-content:center; border-left:1px solid rgb(255 255 255 / 18%); } .fact:last-child { border-right:1px solid rgb(255 255 255 / 18%); } .fact strong { font-size:clamp(1.15rem,2.3vw,1.7rem); } .fact span { font-size:.8rem; color:rgb(255 255 255 / 70%); } .home-intro { padding-block:clamp(5rem,10vw,8rem); } .quick-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; margin-top:2.5rem; } .quick-card { min-height:230px; padding:1.6rem; border:1px solid var(--line); background:white; text-decoration:none; transition:transform .2s ease,box-shadow .2s ease; } .quick-card:hover { transform:translateY(-4px); box-shadow:var(--shadow); } .quick-card__number { display:block; margin-bottom:2.8rem; color:var(--gold-500); font-weight:700; } .quick-card p { color:var(--muted); } .municipality-footer { padding-block:3rem; background:#061f30; color:white; } .footer-grid { display:flex; justify-content:space-between; gap:2rem; } .footer-brand { font-size:1.2rem; font-weight:700; margin-bottom:.2rem; } .footer-grid nav { display:flex; flex-wrap:wrap; gap:1.5rem; align-items:center; } .footer-grid a { text-underline-offset:5px; } -.footer-note{color:rgb(255 255 255 / 62%);font-size:.78rem}.footer-grid nav{max-width:660px;justify-content:flex-end} +.footer-grid nav{max-width:660px;justify-content:flex-end} @media(max-width:980px){ .menu-button{display:inline-flex;align-items:center;gap:.6rem;padding:.6rem;cursor:pointer}.menu-icon{display:grid;gap:4px}.menu-icon i{display:block;width:22px;height:2px;background:currentColor}.primary-navigation{display:none;position:absolute;inset:88px 0 auto;padding:1.3rem max(1.25rem,calc((100vw - 1180px)/2));background:var(--paper);border-bottom:1px solid var(--line);flex-direction:column;align-items:stretch}.primary-navigation[data-open="true"]{display:flex}.primary-navigation a{padding:.6rem 0;font-size:1rem}.municipality-hero__grid{min-height:auto;grid-template-columns:1fr;gap:3rem;padding-block:5rem}.welcome-card{max-width:580px}} @media(max-width:700px){.header-bar{min-height:74px}.brand-mark{height:50px}.primary-navigation{top:74px}.municipality-hero::before{background:rgb(239 244 238 / 91%)}.municipality-hero__grid{padding-block:3.7rem}.facts__grid{grid-template-columns:1fr 1fr}.fact:nth-child(odd){border-left:0}.fact{border-bottom:1px solid rgb(255 255 255 / 18%)}.quick-grid{grid-template-columns:1fr}.quick-card{min-height:190px}.footer-grid{flex-direction:column}} @media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}} @@ -43,7 +43,6 @@ a:focus-visible,button:focus-visible { outline:3px solid var(--gold-500); outlin .section-heading{display:flex;align-items:end;justify-content:space-between;gap:2rem;margin-bottom:2rem}.section-heading h2{margin-bottom:0} .content-section{max-width:850px;padding-block:2.6rem;border-bottom:1px solid var(--line)}.content-section:first-of-type{padding-top:0}.content-section h2{font-size:clamp(1.7rem,3vw,2.4rem)}.content-section p,.content-section li,.prose p{font-size:1.03rem;color:#3f535b}.content-section li+li{margin-top:.45rem} .link-list{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:1.5rem}.link-list a{display:inline-flex;align-items:center;min-height:46px;padding:.65rem .9rem;border:1px solid var(--blue-800);color:var(--blue-800);font-weight:700;text-underline-offset:4px} -.source-note{margin-top:3rem;padding-top:1rem;border-top:1px solid var(--line);color:var(--muted);font-size:.78rem}.source-note a{text-underline-offset:4px} .event-list{display:grid;gap:.75rem}.event-card{display:grid;grid-template-columns:80px 1fr;gap:1.4rem;padding:1.4rem;background:white;border:1px solid var(--line)}.event-date{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:80px;color:white;background:var(--blue-950);text-transform:uppercase}.event-date span{font-size:.75rem;letter-spacing:.08em}.event-date strong{font-size:1.8rem}.event-card h3{margin:.15rem 0 .4rem;font-size:1.3rem}.event-card h3 a{text-decoration:none}.event-card p{margin-bottom:.4rem;color:var(--muted)}.event-meta{font-size:.78rem;font-weight:700;color:var(--green-700)!important}.archive-section{margin-top:5rem}.event-list--archive{opacity:.82} .news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.news-card{padding:clamp(1.5rem,3vw,2.2rem);background:white;border:1px solid var(--line)}.news-card h2,.news-card h3{font-size:clamp(1.3rem,2.2vw,1.8rem)}.news-card h2 a,.news-card h3 a{text-decoration:none}.news-card p{color:var(--muted)}.news-date,.card-label{font-size:.72rem!important;text-transform:uppercase;letter-spacing:.12em;font-weight:700;color:var(--green-700)!important} .detail-list{display:grid;gap:0;margin:0}.detail-list div{display:grid;grid-template-columns:minmax(130px,.35fr) 1fr;gap:1rem;padding:1.2rem 0;border-bottom:1px solid var(--line)}.detail-list dt{font-size:.76rem;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);font-weight:700}.detail-list dd{margin:0;font-weight:600}