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:
+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>
|
||||
</>}
|
||||
|
||||
Reference in New Issue
Block a user