feat: process municipal images through media pipeline
Deploy / validate-dispatch (push) Successful in 0s
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 4s
Deploy / app-quality (push) Successful in 3m7s
Deploy / secret-scan (push) Successful in 5s
Deploy / security-deps (push) Successful in 6s
Deploy / context (push) Successful in 1s
Deploy / app-image (push) Successful in 55s
Deploy / deploy-master (push) Skipped
Deploy / deploy-dev (push) Successful in 12s
@@ -24,6 +24,13 @@ coverage/
|
||||
tmp/
|
||||
.coverage
|
||||
|
||||
# Generated media variants. Originals are stored in .media-source/ and Gitea
|
||||
# creates responsive JPEG, WebP and AVIF files during CI/deployment.
|
||||
public/images/backgrounds/**
|
||||
!public/images/backgrounds/.gitkeep
|
||||
public/images/content/**
|
||||
!public/images/content/.gitkeep
|
||||
|
||||
# Env files (nur .env.example tracken)
|
||||
.env
|
||||
.env.*
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# Media sources
|
||||
|
||||
Store original project images in the matching subdirectories. The build pipeline derives optimized public variants from these files. Do not add production media, personal data, or unlicensed assets to the starter template.
|
||||
Store original project images in the matching subdirectories. The Gitea CI/deployment pipeline derives responsive JPEG, WebP and AVIF variants from these files and places them under `public/images/`. Generated variants are intentionally not committed. Do not add production media, personal data, or unlicensed assets to the starter template.
|
||||
|
||||
|
After Width: | Height: | Size: 204 KiB |
|
Before Width: | Height: | Size: 376 KiB After Width: | Height: | Size: 376 KiB |
|
Before Width: | Height: | Size: 306 KiB After Width: | Height: | Size: 306 KiB |
|
Before Width: | Height: | Size: 577 KiB After Width: | Height: | Size: 577 KiB |
|
Before Width: | Height: | Size: 208 KiB After Width: | Height: | Size: 208 KiB |
|
Before Width: | Height: | Size: 170 KiB After Width: | Height: | Size: 170 KiB |
|
Before Width: | Height: | Size: 214 KiB After Width: | Height: | Size: 214 KiB |
|
Before Width: | Height: | Size: 238 KiB After Width: | Height: | Size: 238 KiB |
|
Before Width: | Height: | Size: 572 KiB After Width: | Height: | Size: 572 KiB |
|
Before Width: | Height: | Size: 99 KiB After Width: | Height: | Size: 99 KiB |
|
Before Width: | Height: | Size: 85 KiB After Width: | Height: | Size: 85 KiB |
|
Before Width: | Height: | Size: 102 KiB After Width: | Height: | Size: 102 KiB |
|
Before Width: | Height: | Size: 103 KiB After Width: | Height: | Size: 103 KiB |
|
Before Width: | Height: | Size: 135 KiB After Width: | Height: | Size: 135 KiB |
|
Before Width: | Height: | Size: 116 KiB After Width: | Height: | Size: 116 KiB |
|
Before Width: | Height: | Size: 116 KiB After Width: | Height: | Size: 116 KiB |
|
Before Width: | Height: | Size: 120 KiB After Width: | Height: | Size: 120 KiB |
|
Before Width: | Height: | Size: 354 KiB After Width: | Height: | Size: 354 KiB |
|
Before Width: | Height: | Size: 106 KiB After Width: | Height: | Size: 106 KiB |
|
Before Width: | Height: | Size: 219 KiB After Width: | Height: | Size: 219 KiB |
|
Before Width: | Height: | Size: 166 KiB After Width: | Height: | Size: 166 KiB |
|
Before Width: | Height: | Size: 200 KiB After Width: | Height: | Size: 200 KiB |
|
Before Width: | Height: | Size: 630 KiB After Width: | Height: | Size: 630 KiB |
@@ -21,6 +21,9 @@ const nextConfig: NextConfig = {
|
||||
turbopack: {
|
||||
root: process.cwd(),
|
||||
},
|
||||
images: {
|
||||
formats: ["image/avif", "image/webp"],
|
||||
},
|
||||
async redirects() {
|
||||
return [
|
||||
{ source: "/die-gemeinde/ueber-uns", destination: "/gemeinde/ueber-goldebek", permanent: true },
|
||||
|
||||
@@ -16,7 +16,7 @@ const CACHED_ORIGINALS_ROOT = IMAGE_CACHE_ROOT
|
||||
const CACHED_OUTPUTS_ROOT = IMAGE_CACHE_ROOT
|
||||
? path.resolve(IMAGE_CACHE_ROOT, 'optimized')
|
||||
: null;
|
||||
const IMAGE_PIPELINE_VERSION = 1;
|
||||
const IMAGE_PIPELINE_VERSION = 2;
|
||||
const PUBLIC_IMAGES_ROOT = path.join(ROOT, 'public/images');
|
||||
const DEFAULT_MEDIA_ROOT = path.join(ROOT, '.media-source');
|
||||
const LEGACY_MEDIA_ROOT = path.join(ROOT, 'assets');
|
||||
@@ -61,6 +61,7 @@ const pipelines = [
|
||||
{ suffix: '-md', width: 1000, height: 750 },
|
||||
],
|
||||
formats: ['original', 'webp', 'avif'],
|
||||
alwaysGenerateModernFormats: true,
|
||||
deleteOriginal: false,
|
||||
generateJson: false,
|
||||
},
|
||||
@@ -76,6 +77,7 @@ const pipelines = [
|
||||
{ suffix: '', width: 1920, height: 1440 },
|
||||
],
|
||||
formats: ['jpg', 'webp', 'avif'],
|
||||
alwaysGenerateModernFormats: true,
|
||||
deleteOriginal: false,
|
||||
generateJson: true,
|
||||
jsonFileName: 'slider-images.json',
|
||||
@@ -92,6 +94,7 @@ const pipelines = [
|
||||
{ suffix: '', width: 1920, height: 1440 },
|
||||
],
|
||||
formats: ['jpg', 'webp', 'avif'],
|
||||
alwaysGenerateModernFormats: true,
|
||||
deleteOriginal: false,
|
||||
generateJson: true,
|
||||
jsonFileName: 'slider-images.json',
|
||||
@@ -107,6 +110,7 @@ const pipelines = [
|
||||
{ suffix: '-mobile', width: 1024, height: 768 },
|
||||
],
|
||||
formats: ['jpg', 'webp', 'avif'],
|
||||
alwaysGenerateModernFormats: true,
|
||||
deleteOriginal: false,
|
||||
generateJson: false,
|
||||
},
|
||||
@@ -565,7 +569,7 @@ async function runPipeline(config) {
|
||||
const existingSize = fs.existsSync(outputPath) ? fs.statSync(outputPath).size : null;
|
||||
const isDerivedVariant = format === 'webp' || format === 'avif';
|
||||
|
||||
if (isDerivedVariant && Number.isFinite(fallbackVariantSize) && candidateSize >= fallbackVariantSize) {
|
||||
if (isDerivedVariant && !config.alwaysGenerateModernFormats && Number.isFinite(fallbackVariantSize) && candidateSize >= fallbackVariantSize) {
|
||||
fs.rmSync(tempPath);
|
||||
if (existingSize !== null && existingSize < fallbackVariantSize) {
|
||||
totalVariantSize += existingSize;
|
||||
|
||||
@@ -18,31 +18,31 @@ type Section = { title: string; text?: string[]; items?: string[]; links?: PageL
|
||||
type ContentPage = { slug: string; eyebrow: string; title: string; intro: string; sections: Section[]; sourceId?: string; lastVerified?: string; special?: string };
|
||||
const pages = pagesJson as ContentPage[];
|
||||
const pageHeroImages: Record<string, { src:string; position?:string }> = {
|
||||
"gemeinde/ueber-goldebek": { src:"/images/heroes/ueber-goldebek.jpg", position:"center 54%" },
|
||||
"gemeinde/heimatmuseum": { src:"/images/heroes/heimatmuseum.jpg", position:"center 46%" },
|
||||
"leben/doerpshuus": { src:"/images/heroes/doerpshuus.jpg", position:"center 45%" },
|
||||
"leben/spielplatz": { src:"/images/playground/spielplatz-uebersicht-03.jpeg", position:"center 54%" },
|
||||
"gemeinde/ueber-goldebek": { src:"/images/backgrounds/goldebek-wappenstein", position:"center 54%" },
|
||||
"gemeinde/heimatmuseum": { src:"/images/backgrounds/goldebek-heimatmuseum-de-ole-tied", position:"center 46%" },
|
||||
"leben/doerpshuus": { src:"/images/backgrounds/goldebek-doerpshuus", position:"center 45%" },
|
||||
"leben/spielplatz": { src:"/images/content/playground/spielplatz-am-langbarg-kletter-und-rutschbereich-md", position:"center 54%" },
|
||||
};
|
||||
const playgroundGallery = [
|
||||
{ src:"/images/playground/spielplatz-uebersicht-01.jpeg", alt:"Weite Ansicht des Spielplatzes am Langbarg mit Spielgeräten und Freifläche." },
|
||||
{ src:"/images/playground/spielplatz-uebersicht-02.jpeg", alt:"Spielgeräte und Sandfläche auf dem Spielplatz am Langbarg." },
|
||||
{ src:"/images/playground/spielplatz-uebersicht-03.jpeg", alt:"Spielplatz am Langbarg mit Kletter- und Rutschbereich." },
|
||||
{ src:"/images/playground/spielplatz-uebersicht-04.jpeg", alt:"Spielbereich mit Schaukel und Rutsche auf dem Spielplatz am Langbarg." },
|
||||
{ src:"/images/playground/spielplatz-planung.jpeg", alt:"Abfotografierte Planzeichnung für den Spielplatz am Langbarg." },
|
||||
{ src:"/images/playground/spielplatz-bau-01.jpeg", alt:"Bauzustand des Spielplatzgeländes mit abgegrenzter Fläche." },
|
||||
{ src:"/images/playground/spielplatz-bau-02.jpeg", alt:"Bauzustand des Spielplatzgeländes mit vorbereiteter Fläche." },
|
||||
{ src:"/images/playground/spielplatz-bau-03.jpeg", alt:"Bauzustand am Rand des Spielplatzgeländes." },
|
||||
{ src:"/images/content/playground/spielplatz-am-langbarg-gesamtansicht-md.jpeg", alt:"Weite Ansicht des Spielplatzes am Langbarg mit Spielgeräten und Freifläche." },
|
||||
{ src:"/images/content/playground/spielplatz-am-langbarg-spielgeraete-md.jpeg", alt:"Spielgeräte und Sandfläche auf dem Spielplatz am Langbarg." },
|
||||
{ src:"/images/content/playground/spielplatz-am-langbarg-kletter-und-rutschbereich-md.jpeg", alt:"Spielplatz am Langbarg mit Kletter- und Rutschbereich." },
|
||||
{ src:"/images/content/playground/spielplatz-am-langbarg-schaukel-und-rutsche-md.jpeg", alt:"Spielbereich mit Schaukel und Rutsche auf dem Spielplatz am Langbarg." },
|
||||
{ src:"/images/content/playground/spielplatz-am-langbarg-planungsentwurf-md.jpeg", alt:"Abfotografierte Planzeichnung für den Spielplatz am Langbarg." },
|
||||
{ src:"/images/content/playground/spielplatz-am-langbarg-bauzaun-md.jpeg", alt:"Bauzustand des Spielplatzgeländes mit abgegrenzter Fläche." },
|
||||
{ src:"/images/content/playground/spielplatz-am-langbarg-baugrund-md.jpeg", alt:"Bauzustand des Spielplatzgeländes mit vorbereiteter Fläche." },
|
||||
{ src:"/images/content/playground/spielplatz-am-langbarg-bauphase-md.jpeg", alt:"Bauzustand am Rand des Spielplatzgeländes." },
|
||||
];
|
||||
const councilPortraits: Record<string, string> = {
|
||||
"Peter Jessen": "/images/portraits/peter-jessen.jpeg",
|
||||
"Hauke Jensen": "/images/portraits/hauke-jensen.jpeg",
|
||||
"Volker Hansen": "/images/portraits/volker-hansen.jpeg",
|
||||
"Timo Jensen": "/images/portraits/timo-jensen.jpeg",
|
||||
"Catarina Tudsen": "/images/portraits/catarina-tudsen.jpeg",
|
||||
"Stefan Christiansen": "/images/portraits/stefan-christiansen.jpeg",
|
||||
"Rainer Bakker": "/images/portraits/rainer-bakker.jpeg",
|
||||
"Finn Christiansen": "/images/portraits/finn-christiansen.jpeg",
|
||||
"Nils Höner": "/images/portraits/nils-hoener.jpeg",
|
||||
"Peter Jessen": "/images/content/portraits/gemeindevertretung-peter-jessen-md.jpeg",
|
||||
"Hauke Jensen": "/images/content/portraits/gemeindevertretung-hauke-jensen-md.jpeg",
|
||||
"Volker Hansen": "/images/content/portraits/gemeindevertretung-volker-hansen-md.jpeg",
|
||||
"Timo Jensen": "/images/content/portraits/gemeindevertretung-timo-jensen-md.jpeg",
|
||||
"Catarina Tudsen": "/images/content/portraits/gemeindevertretung-catarina-tudsen-md.jpeg",
|
||||
"Stefan Christiansen": "/images/content/portraits/gemeindevertretung-stefan-christiansen-md.jpeg",
|
||||
"Rainer Bakker": "/images/content/portraits/gemeindevertretung-rainer-bakker-md.jpeg",
|
||||
"Finn Christiansen": "/images/content/portraits/gemeindevertretung-finn-christiansen-md.jpeg",
|
||||
"Nils Höner": "/images/content/portraits/gemeindevertretung-nils-hoener-md.jpeg",
|
||||
};
|
||||
|
||||
export function generateStaticParams() {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import type { Metadata } from "next";
|
||||
import Image from "next/image";
|
||||
import Link from "next/link";
|
||||
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";
|
||||
@@ -22,7 +21,7 @@ export default function HomePage(){const news=getNews().slice(0,3);const {upcomi
|
||||
<section className="container home-section"><div className="section-heading"><h2>Aktuelles</h2><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"><h2>Nächste Termine</h2><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"><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: 900px) 100vw, 50vw" /></div><div className="discover-copy"><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="discover-section"><div className="discover-photo"><Image src="/images/content/goldebek-luftbild-dorfansicht-md.jpg" alt="Luftaufnahme von Goldebek mit Feldern und Wohnhäusern" fill sizes="(max-width: 900px) 100vw, 50vw" /></div><div className="discover-copy"><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"><h2>Gemeinschaft</h2></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"><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</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><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,5 +1,6 @@
|
||||
import Breadcrumbs, { type Crumb } from "./Breadcrumbs";
|
||||
|
||||
export default function PageHeader({ title, intro, breadcrumbs, image = "/images/heroes/luftbild-goldebek.jpg", imagePosition = "center" }: { title: string; intro: string; breadcrumbs: Crumb[]; image?: string; imagePosition?: string }) {
|
||||
return <header className="page-hero" style={{ backgroundImage:`linear-gradient(90deg, rgb(5 30 47 / 92%) 0%, rgb(5 30 47 / 72%) 58%, rgb(5 30 47 / 38%) 100%), url("${image}")`, backgroundPosition:imagePosition }}><div className="container"><Breadcrumbs items={breadcrumbs} /><h1>{title}</h1><p className="page-lead">{intro}</p></div></header>;
|
||||
export default function PageHeader({ title, intro, breadcrumbs, image = "/images/backgrounds/goldebek-luftbild", imagePosition = "center" }: { title: string; intro: string; breadcrumbs: Crumb[]; image?: string; imagePosition?: string }) {
|
||||
const imageSet = `image-set(url("${image}.avif") type("image/avif"), url("${image}.webp") type("image/webp"), url("${image}.jpg") type("image/jpeg"))`;
|
||||
return <header className="page-hero" style={{ backgroundImage:`linear-gradient(90deg, rgb(5 30 47 / 92%) 0%, rgb(5 30 47 / 72%) 58%, rgb(5 30 47 / 38%) 100%), ${imageSet}`, backgroundPosition:imagePosition }}><div className="container"><Breadcrumbs items={breadcrumbs} /><h1>{title}</h1><p className="page-lead">{intro}</p></div></header>;
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ a:focus-visible,button:focus-visible { outline:3px solid var(--gold-500); outlin
|
||||
.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%),url("/images/heroes/luftbild-goldebek.jpg"); background-position:center 44%; background-size:cover; }
|
||||
.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__copy { max-width:850px; }
|
||||
.lead { max-width:760px; font-size:clamp(1.1rem,2vw,1.35rem); color:rgb(255 255 255 / 88%); }
|
||||
|
||||