feat: add playground gallery and responsive discovery image
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 4s
Deploy / app-quality (push) Successful in 1m4s
Deploy / secret-scan (push) Successful in 4s
Deploy / security-deps (push) Successful in 5s
Deploy / context (push) Successful in 1s
Deploy / app-image (push) Successful in 53s
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 4s
Deploy / app-quality (push) Successful in 1m4s
Deploy / secret-scan (push) Successful in 4s
Deploy / security-deps (push) Successful in 5s
Deploy / context (push) Successful in 1s
Deploy / app-image (push) Successful in 53s
Deploy / deploy-master (push) Skipped
Deploy / deploy-dev (push) Successful in 13s
This commit is contained in:
@@ -21,7 +21,18 @@ 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%" },
|
||||
};
|
||||
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." },
|
||||
];
|
||||
const councilPortraits: Record<string, string> = {
|
||||
"Peter Jessen": "/images/portraits/peter-jessen.jpeg",
|
||||
"Hauke Jensen": "/images/portraits/hauke-jensen.jpeg",
|
||||
@@ -67,6 +78,9 @@ function SpecialContent({ type }: { type?: string }) {
|
||||
const item = servicesJson.doerpshuus;
|
||||
return <><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} · Kaution {item.fees.deposit} · Endreinigung {item.fees.finalCleaning} · Fehlbenutzung Notausgang {item.fees.emergencyExitMisuse}</dd></div></dl><section className="document-panel"><h2>Flyer und Nutzungsbedingungen</h2><p>Der vierseitige Flyer kann direkt hier gelesen oder als PDF heruntergeladen werden.</p><object className="document-embed" data="/downloads/doerpshuus-flyer.pdf" type="application/pdf" aria-label="Dörpshuus-Flyer mit Nutzungsbedingungen"><p>Die PDF-Vorschau wird von Ihrem Browser nicht unterstützt. <a href="/downloads/doerpshuus-flyer.pdf">Flyer öffnen</a>.</p></object><a className="button button--secondary" href="/downloads/doerpshuus-flyer.pdf" download>Flyer herunterladen (PDF)</a></section></>;
|
||||
}
|
||||
if (type === "playground") {
|
||||
return <section className="image-gallery" aria-labelledby="playground-gallery-heading"><div className="image-gallery__heading"><h2 id="playground-gallery-heading">Bilder vom Spielplatz</h2><p>Fertige Anlage, Planung und Bauphasen.</p></div><div className="image-gallery__grid">{playgroundGallery.map((image) => <figure key={image.src}><Image src={image.src} alt={image.alt} width={1440} height={1080} sizes="(max-width: 620px) 100vw, (max-width: 900px) 50vw, 33vw" /><figcaption>{image.alt}</figcaption></figure>)}</div></section>;
|
||||
}
|
||||
if (type === "museum") {
|
||||
const item = servicesJson.museum;
|
||||
return <dl className="detail-list"><div><dt>Adresse</dt><dd><address>{item.address}</address></dd></div><div><dt>Öffnung</dt><dd>{item.openingHours}</dd></div><div><dt>Telefon</dt><dd>{item.phones.map((phone, index) => <span key={phone}>{index > 0 ? " · " : null}<a href={phoneUrl(phone)}>{phone}</a></span>)}</dd></div><div><dt>E-Mail</dt><dd><a href={`mailto:${item.email}`}>{item.email}</a></dd></div></dl>;
|
||||
|
||||
+1
-1
@@ -22,7 +22,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: 800px) 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={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="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>
|
||||
|
||||
@@ -46,7 +46,7 @@ a:focus-visible,button:focus-visible { outline:3px solid var(--gold-500); outlin
|
||||
.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}
|
||||
.home-section{padding-block:clamp(5rem,9vw,7.5rem)}.home-section--tinted{background:#f1f4f0}.home-section--blue{background:var(--blue-950);color:white}.home-section--blue h2{color:white}
|
||||
.quick-grid--four{grid-template-columns:repeat(4,1fr)}
|
||||
.discover-section{display:grid;grid-template-columns:1fr 1fr;background:#e7eee7}.discover-photo{position:relative;min-height:570px}.discover-photo img{object-fit:cover}.discover-copy{display:flex;flex-direction:column;justify-content:center;padding:clamp(3rem,8vw,7rem)}.discover-copy>p{max-width:620px}.discover-copy .link-list{max-width:650px}
|
||||
.discover-section{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);background:#e7eee7}.discover-photo{position:relative;min-height:570px;overflow:hidden}.discover-photo img{width:100%;height:100%;object-fit:cover;object-position:center}.discover-copy{display:flex;flex-direction:column;justify-content:center;padding:clamp(3rem,8vw,7rem)}.discover-copy>p{max-width:620px}.discover-copy .link-list{max-width:650px}
|
||||
.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);border-left:1px solid var(--line)}.feature-grid>a{min-height:240px;padding:2rem;border-right:1px solid var(--line);border-bottom:1px solid var(--line);text-decoration:none;transition:background-color .2s ease,box-shadow .2s ease,transform .2s ease}.feature-grid>a:hover{background:#f1f4f0;box-shadow:var(--shadow);transform:translateY(-3px)}.feature-grid span{display:block;margin-bottom:3rem;color:var(--gold-500);font-weight:700}.feature-grid p{color:var(--muted)}
|
||||
.project-links{display:grid;grid-template-columns:repeat(3,1fr);margin-top:2.5rem;border-top:1px solid rgb(255 255 255 / 22%)}.project-links a{display:flex;flex-direction:column;padding:1.5rem 1.2rem;border-bottom:1px solid rgb(255 255 255 / 22%);text-decoration:none;transition:background-color .2s ease,transform .2s ease}.project-links a:hover{background:rgb(255 255 255 / 10%);transform:translateY(-2px)}.project-links strong{font-size:1.25rem}.project-links span{color:rgb(255 255 255 / 68%)}
|
||||
.contact-band{display:flex;align-items:center;justify-content:space-between;gap:2rem}.contact-band>div{max-width:720px}.contact-band h2{margin-bottom:1rem}
|
||||
@@ -58,8 +58,9 @@ a:focus-visible,button:focus-visible { outline:3px solid var(--gold-500); outlin
|
||||
.contact-panel{display:grid;grid-template-columns:170px 1fr;gap:2rem;max-width:760px;padding:2rem;margin-bottom:3rem;background:var(--blue-950);color:white}.contact-panel h2{color:white}.contact-panel address{font-style:normal}.contact-panel a{text-underline-offset:4px}.portrait-image{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;object-position:center;margin-bottom:1.4rem;background:#dbe7e8}.portrait-image--mayor{margin:0}
|
||||
.people-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.8rem}.people-grid article{padding:1.4rem;border:1px solid var(--line)}.people-grid h3{margin-bottom:.3rem}.people-grid p{color:var(--muted);font-size:.85rem}
|
||||
.document-panel{max-width:1000px;padding-top:3rem}.document-embed{display:block;width:100%;height:min(76vh,900px);margin:1.4rem 0;border:1px solid var(--line);background:#f1f4f0}
|
||||
.image-gallery{margin:0 0 4rem}.image-gallery__heading{max-width:700px;margin-bottom:1.5rem}.image-gallery__heading h2{font-size:clamp(1.7rem,3vw,2.4rem);margin-bottom:.6rem}.image-gallery__heading p{color:var(--muted)}.image-gallery__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.image-gallery figure{margin:0;background:#f1f4f0}.image-gallery img{display:block;width:100%;aspect-ratio:4 / 3;object-fit:cover}.image-gallery figcaption{padding:.8rem 1rem;color:var(--muted);font-size:.82rem;line-height:1.45}
|
||||
.route-number{display:inline-flex;align-items:center;gap:1rem;padding:1.2rem 1.8rem;margin-bottom:3rem;color:white;background:var(--blue-950)}.route-number span{text-transform:uppercase;letter-spacing:.1em;font-size:.72rem}.route-number strong{font-size:2rem}
|
||||
.editorial-warning{padding:1.4rem;margin-bottom:2.5rem;border:2px solid #a86a00;background:#fff7df}.editorial-warning p{margin:.4rem 0 0}
|
||||
.prose h2{font-size:1.6rem}.prose p{max-width:720px}
|
||||
@media(max-width:900px){.news-grid,.quick-grid--four,.data-grid,.people-grid{grid-template-columns:repeat(2,1fr)}.discover-section{grid-template-columns:1fr}.discover-photo{min-height:420px}.feature-grid,.project-links{grid-template-columns:1fr}.feature-grid>a{min-height:auto}.feature-grid span{margin-bottom:1.5rem}}
|
||||
@media(max-width:620px){.news-grid,.quick-grid--four,.data-grid,.people-grid,.card-grid{grid-template-columns:1fr}.page-hero{min-height:380px}.section-heading,.contact-band{align-items:flex-start;flex-direction:column}.event-card{grid-template-columns:64px 1fr;padding:1rem;gap:1rem}.event-date{min-height:70px}.detail-list div,.contact-panel{grid-template-columns:1fr;gap:.25rem}.contact-panel{gap:1.25rem}.portrait-image--mayor{max-width:220px}.timeline{max-height:68vh}.timeline li{grid-template-columns:1fr;gap:.75rem;min-height:56vh;padding:2rem}.discover-photo{min-height:300px}.document-embed{height:60vh}}
|
||||
@media(max-width:900px){.news-grid,.quick-grid--four,.data-grid,.people-grid,.image-gallery__grid{grid-template-columns:repeat(2,1fr)}.discover-section{grid-template-columns:1fr}.discover-photo{min-height:420px}.feature-grid,.project-links{grid-template-columns:1fr}.feature-grid>a{min-height:auto}.feature-grid span{margin-bottom:1.5rem}}
|
||||
@media(max-width:620px){.news-grid,.quick-grid--four,.data-grid,.people-grid,.card-grid,.image-gallery__grid{grid-template-columns:1fr}.page-hero{min-height:380px}.section-heading,.contact-band{align-items:flex-start;flex-direction:column}.event-card{grid-template-columns:64px 1fr;padding:1rem;gap:1rem}.event-date{min-height:70px}.detail-list div,.contact-panel{grid-template-columns:1fr;gap:.25rem}.contact-panel{gap:1.25rem}.portrait-image--mayor{max-width:220px}.timeline{max-height:68vh}.timeline li{grid-template-columns:1fr;gap:.75rem;min-height:56vh;padding:2rem}.discover-photo{min-height:300px}.document-embed{height:60vh}}
|
||||
|
||||
Reference in New Issue
Block a user