diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index 4ab3dde..cbf5ffb 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -1,4 +1,5 @@
import type { Metadata, Viewport } from "next";
+import localFont from "next/font/local";
import { connection } from "next/server";
import type { ReactNode } from "react";
import Footer from "../components/Footer";
@@ -6,6 +7,15 @@ import Header from "../components/Header";
import { SITE_NAME, SITE_URL } from "../lib/site";
import "../styles/goldebek.css";
+const geist = localFont({
+ src: "../../public/fonts/Geist-Variable.woff2",
+ variable: "--font-geist",
+ display: "swap",
+ weight: "100 900",
+ style: "normal",
+ preload: true,
+});
+
export const metadata: Metadata = {
metadataBase: new URL(SITE_URL),
title: {
@@ -42,7 +52,7 @@ export default async function RootLayout({ children }: Readonly<{ children: Reac
await connection();
return (
-
+
diff --git a/src/app/page.tsx b/src/app/page.tsx
index 6d9f260..3fdf156 100644
--- a/src/app/page.tsx
+++ b/src/app/page.tsx
@@ -7,6 +7,7 @@ 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";
+import heroImage from "../../public/images/backgrounds/goldebek-luftbild.jpg";
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}};
@@ -16,7 +17,7 @@ const quickLinks=[["Dörpshuus","/leben/doerpshuus","Raum für Feste und Begegnu
export default function HomePage(){const news=getNews().slice(0,3);const {upcoming}=partitionEvents(getEvents());return <>
-
Moin in Goldebek Goldebek liegt im nordöstlichen Nordfriesland zwischen Bredstedt und Wanderup. Landwirtschaft, Ehrenamt, Vereine und gemeinschaftliche Projekte prägen das Dorf.
Aktuelle Termine Goldebek entdecken
+
Moin in Goldebek Goldebek liegt im nordöstlichen Nordfriesland zwischen Bredstedt und Wanderup. Landwirtschaft, Ehrenamt, Vereine und gemeinschaftliche Projekte prägen das Dorf.
Aktuelle Termine Goldebek entdecken
{facts.map(([value,label])=>
{value} {label}
)}
Aktuelles Alle Meldungen → {news.map((item)=>
{new Intl.DateTimeFormat("de-DE").format(new Date(`${item.publishedAt}T12:00:00Z`))}
{item.title}{item.teaser}
Weiterlesen → )}
Nächste Termine Zum Kalender → {upcoming.slice(0,4).map((event)=>)}
diff --git a/src/styles/goldebek.css b/src/styles/goldebek.css
index f59360d..ff3d5d7 100644
--- a/src/styles/goldebek.css
+++ b/src/styles/goldebek.css
@@ -1,8 +1,7 @@
-@font-face { font-family: "Geist Sans"; src: url("/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-style:normal; font-display:swap; }
:root { --blue-950:#082d46; --blue-800:#0d4668; --blue-700:#0f5877; --green-700:#376c43; --green-100:#e7efe6; --gold-500:#d5a32f; --gold-700:#725000; --ink:#17262e; --muted:#42545c; --paper:#fffdf8; --line:#dce2dd; --shadow:0 18px 50px rgb(8 45 70 / 12%); }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
-body { margin:0; color:var(--ink); background:var(--paper); font-family:"Geist Sans",system-ui,sans-serif; line-height:1.65; }
+body { margin:0; color:var(--ink); background:var(--paper); font-family:var(--font-geist),system-ui,sans-serif; line-height:1.65; }
a { color:inherit; } h1,h2,h3,p { margin-top:0; } h1,h2,h3 { line-height:1.15; letter-spacing:-.025em; overflow-wrap:normal; hyphens:none; text-wrap:balance; } h1 { font-size:clamp(3rem,8vw,6.7rem); margin-bottom:1.5rem; } h2 { font-size:clamp(2rem,4vw,3.2rem); } h3 { font-size:1.25rem; }
.container { width:min(1180px,calc(100% - 2.5rem)); margin-inline:auto; }
.skip-link { position:fixed; top:.5rem; left:.5rem; z-index:100; padding:.7rem 1rem; background:white; transform:translateY(-200%); } .skip-link:focus { transform:none; }
@@ -17,8 +16,10 @@ a:focus-visible,button:focus-visible,summary:focus-visible { outline:3px solid w
.primary-navigation a { text-decoration:none; font-size:.86rem; font-weight:600; } .primary-navigation a:hover,.primary-navigation a[aria-current="page"] { color:var(--blue-700); }
.primary-navigation .contact-link { padding:.65rem .9rem; color:white; background:var(--blue-950); }
.menu-button { display:none; border:0; background:none; font:inherit; }
-.municipality-hero { position:relative; overflow:hidden; color:white; background-color:var(--blue-950); background-image:linear-gradient(90deg,rgb(5 30 47 / 92%) 0%,rgb(5 30 47 / 73%) 58%,rgb(5 30 47 / 48%) 100%),image-set(url("/images/backgrounds/goldebek-luftbild.avif") type("image/avif"),url("/images/backgrounds/goldebek-luftbild.webp") type("image/webp"),url("/images/backgrounds/goldebek-luftbild.jpg") type("image/jpeg")); background-position:center 44%; background-size:cover; }
-.municipality-hero__grid { min-height:650px; display:flex; align-items:center; padding-block:7rem; }
+.municipality-hero { position:relative; overflow:hidden; color:white; background-color:var(--blue-950); }
+.municipality-hero::after { content:""; position:absolute; inset:0; z-index:1; background:linear-gradient(90deg,rgb(5 30 47 / 92%) 0%,rgb(5 30 47 / 73%) 58%,rgb(5 30 47 / 48%) 100%); }
+.municipality-hero__image { object-fit:cover; object-position:center 44%; }
+.municipality-hero__grid { position:relative; z-index:2; min-height:650px; display:flex; align-items:center; padding-block:7rem; }
.municipality-hero__copy { max-width:850px; }
.lead { max-width:760px; font-size:clamp(1.1rem,2vw,1.35rem); color:rgb(255 255 255 / 88%); }
.button-row { display:flex; flex-wrap:wrap; gap:.8rem; margin-top:2.5rem; } .button { display:inline-flex; min-height:48px; align-items:center; justify-content:center; padding:.75rem 1.15rem; text-decoration:none; font-weight:700; transition:background-color .2s ease,color .2s ease,border-color .2s ease,transform .2s ease; } .button--primary { color:white; background:var(--blue-950); } .button--primary:hover { background:var(--blue-700); transform:translateY(-2px); } .button--secondary { color:var(--blue-950); border:1px solid var(--blue-950); background:var(--paper); } .button--secondary:hover { color:white; border-color:var(--blue-700); background:var(--blue-700); transform:translateY(-2px); }
@@ -28,7 +29,7 @@ a:focus-visible,button:focus-visible,summary:focus-visible { outline:3px solid w
.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-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:500px;padding-block:5rem}}
-@media(max-width:700px){.header-bar{min-height:74px}.brand-mark{height:50px}.primary-navigation{top:74px}.municipality-hero{background-position:center center}.municipality-hero__grid{min-height:460px;padding-block:3.7rem}.facts__grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fact{min-height:132px;border-bottom:0}.fact:nth-child(odd){border-left:0}.fact:nth-child(-n+2){border-bottom:1px solid rgb(255 255 255 / 18%)}.fact:last-child{border-right:0}.quick-grid{grid-template-columns:1fr}.quick-card{min-height:190px}.footer-grid{flex-direction:column}}
+@media(max-width:700px){.header-bar{min-height:74px}.brand-mark{height:50px}.primary-navigation{top:74px}.municipality-hero__image{object-position:center center}.municipality-hero__grid{min-height:460px;padding-block:3.7rem}.facts__grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fact{min-height:132px;border-bottom:0}.fact:nth-child(odd){border-left:0}.fact:nth-child(-n+2){border-bottom:1px solid rgb(255 255 255 / 18%)}.fact:last-child{border-right:0}.quick-grid{grid-template-columns:1fr}.quick-card{min-height:190px}.footer-grid{flex-direction:column}}
@media(max-width:360px){.facts__grid{grid-template-columns:1fr}.fact{min-height:112px;border-left:0}.fact:nth-child(-n+2){border-bottom:0}.fact:not(:last-child){border-bottom:1px solid rgb(255 255 255 / 18%)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}