Files
landwelle/cmd/portal/web/index.html
T
Landwelle Server 8f65528f6a
Landwelle Gitea CI / Go tests and vet (push) Successful in 1m33s
Landwelle Gitea source ZIP / source-zip (push) Failing after 11m45s
Landwelle Gitea CI / JavaScript and deployment-script checks (push) Failing after 14m47s
Landwelle Gitea CI / Linux x64 production build (push) Failing after 14m53s
feat(homepage): show latest Landwelle vor Ort stories in sidebar
Replace the static excursions promo with eight published editorial links, category and date; share ordered query with existing story cards. Add template and PostgreSQL regression tests.
2026-12-04 15:47:23 +01:00

267 lines
17 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!doctype html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
{{seoHead "Landwelle Radio – Sound & Infos aus Niedersachsen" "Landwelle Radio aus Niedersachsen: Livestream, aktuelle Musik, Programm, regionale Nachrichten, Wetter, Verkehr, Veranstaltungen und Ausflugstipps." "/" "website"}}
<link rel="icon" href="/assets/landwelle-logo-trim.png">
<link rel="apple-touch-icon" href="/assets/landwelle-logo-trim.png">
<meta name="theme-color" content="#0b0d0b">
<meta name="color-scheme" content="light dark">
<link rel="stylesheet" href="/assets/styles-v22.css">
<link rel="stylesheet" href="/assets/home-v5.css">
<link rel="stylesheet" href="/assets/home-recent-stories-v1.css">
<link rel="stylesheet" href="/assets/ai-image-watermark-v1.css">
<script src="/assets/app-v18.js" defer></script>
<link rel="stylesheet" href="/assets/homepage-events-v1.css">
<script src="/assets/homepage-events-v1.js" defer></script>
<link rel="stylesheet" href="/assets/season-theme-v1.css"><script src="/assets/season-v1.js" defer></script><link rel="stylesheet" href="/assets/home-highlights-v1.css"></head>
<body>
{{template "public_header" .}}
<main>
<section class="hero" aria-labelledby="hero-title">
<video class="hero-video" autoplay muted loop playsinline poster="/assets/hero-poster.jpg">
<source src="/assets/landwelle-hero.mp4" type="video/mp4">
</video>
<div class="hero-overlay"></div>
<div class="signal-rings" aria-hidden="true"><i></i><i></i><i></i></div>
<div class="page-shell hero-inner hero-inner-no-logo">
<h1 id="hero-title">Sound &amp; Infos aus Niedersachsen</h1>
<p>Dein Radio. Deine Region. Dein Land.</p>
<div class="hero-actions">
<a class="button button-green" href="/player?autoplay=1" target="landwelleRadioPlayer" data-player-open aria-label="Landwelle-Liveplayer in eigenem Fenster öffnen">
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M8 5v14l11-7z"/></svg>
Jetzt live hören
</a>
<a class="button button-outline" href="/aktuelles">Aktuelles aus der Region <span>→</span></a>
</div>
</div>
</section>
<section class="player-stage" id="radio" aria-label="Landwelle Liveplayer">
<div class="page-shell page-layout">
<div>
<div class="live-player">
<div class="host-avatar"><img src="/assets/artist-fallback-v1.png" alt="Aktuelle Moderation" data-current-program-image><span data-now-live-badge>LIVE</span></div>
<div class="now-show">
<small>Jetzt live auf Landwelle</small>
<strong data-current-program>Moin Niedersachsen · 06:00–10:00 Uhr</strong>
<span data-current-program-presenter>mit Jan-Henrik Gerdes</span>
</div>
<div class="waveform" aria-hidden="true">
<i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i>
</div>
<button class="player-button" type="button" aria-label="Livestream abspielen" data-play-trigger>
<svg class="icon-play" viewBox="0 0 24 24" aria-hidden="true"><path d="M8 5v14l11-7z"/></svg>
<svg class="icon-pause" viewBox="0 0 24 24" aria-hidden="true"><path d="M7 5h4v14H7zm6 0h4v14h-4z"/></svg>
</button>
<div class="track-cover"><img src="/assets/artist-fallback-v1.png" alt="Aktuelles Cover" data-now-cover></div>
<div class="track-info">
<small>Aktueller Titel</small>
<strong data-now-artist>Kerstin Ott</strong>
<span data-now-title>Für immer für dich</span>
</div>
<label class="volume" aria-label="Lautstärke">
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M3 9v6h4l5 4V5L7 9H3zm13.5 3a4.5 4.5 0 0 0-2.5-4v8a4.5 4.5 0 0 0 2.5-4Z"/></svg>
<input type="range" min="0" max="1" value="0.8" step="0.05" data-volume>
</label>
</div>
<p class="player-message" data-player-message role="status" aria-live="polite"></p>
<audio id="live-audio" preload="none" data-preroll-src="/assets/landwelle-ki-transparenz-preroll-v2.mp3" data-stream-src="{{.StreamURL}}"></audio>
</div>
<div aria-hidden="true"></div>
</div>
</section>
<section class="portal page-shell page-layout">
<div class="portal-main">
<section class="portal-section" id="aktuelles">
<div class="section-heading"><h2>Aktuelles aus Niedersachsen</h2><a href="/aktuelles">Mehr Nachrichten ›</a></div>
<div class="compact-grid news-grid">
{{range .News}}
<article class="portal-card news-card">
<a class="media" href="{{if .URL}}{{.URL}}{{else}}/aktuelles{{end}}"><img src="{{.Image}}" alt="" loading="lazy"></a>
<div class="card-copy"><span class="category">{{.Category}}</span><h3><a href="{{if .URL}}{{.URL}}{{else}}/aktuelles{{end}}">{{.Title}}</a></h3><time>{{.Age}}</time>{{if .Source}}<small>Quelle: {{.Source}}</small>{{end}}</div>
</article>
{{end}}
</div>
</section>
{{if .Highlights}}<section class="portal-section lw-highlights-section" id="highlights" aria-label="Landwelle Highlights">
<div class="section-heading"><h2>Highlights</h2><a href="/highlights">Alle Highlights ›</a></div>
<div class="lw-highlight-grid">
{{range .Highlights}}
<article class="lw-highlight-card">
{{if .ImageURL}}<a href="{{.PublicURL}}" class="lw-highlight-photo"><img src="{{.ImageURL}}" alt="" loading="lazy"></a>{{end}}
<div class="lw-highlight-copy"><span>Landwelle Spezial</span><h2><a href="{{.PublicURL}}">{{.Title}}</a></h2><p>{{.Teaser}}</p>{{if .ImageIsAI}}<small class="lw-highlight-ai">KI-generiertes oder bearbeitetes Bild</small>{{end}}<a class="lw-highlight-more" href="{{.PublicURL}}">Mehr lesen →</a></div>
</article>
{{end}}
</div>
</section>{{end}}
<section class="portal-section" id="veranstaltungen">
<div class="section-heading"><h2>Veranstaltungen</h2><a href="/veranstaltungen">Alle Veranstaltungen ›</a></div>
<div class="compact-grid event-grid">
{{range .Events}}
<article class="portal-card event-card home-event-card" data-home-event-id="{{.ID}}" tabindex="0" role="button" aria-label="Details zu {{.Title}} öffnen">
<span class="media event-media"><img src="{{.Image}}" alt="" loading="lazy"><span class="event-date"><b>{{.Day}}</b><small>{{.Month}}</small></span></span>
<div class="card-copy"><h3>{{.Title}}</h3><p>{{.DateTime}}</p><span class="place">⌖ {{.Place}}</span><span class="home-event-more">Weitere Informationen →</span></div>
</article>
{{end}}
</div>
</section>
<section class="portal-section" id="regionen">
<div class="section-heading"><h2>Landwelle vor Ort</h2><a href="/kontakt">Thema vorschlagen ›</a></div>
{{if .Stories}}<div class="compact-grid story-grid">
{{range .Stories}}
<article class="portal-card story-card" {{if .HasAITransparency}}data-ai-generated="true" data-ai-usage="{{.AIUsage}}"{{end}}>
<a class="media" href="{{if .URL}}{{.URL}}{{else}}/kontakt{{end}}"><img src="{{.Image}}" alt="" loading="lazy" {{if .HasMediaAITransparency}}data-ai-generated="true" data-ai-usage="{{.MediaAIUsage}}"{{end}}>{{if .HasMediaAITransparency}}<span class="story-media-ai">KI-Bild</span>{{end}}{{if .HasMediaWatermark}}<span class="public-image-watermark">{{.MediaWatermarkLabel}}</span>{{end}}</a>
<div class="card-copy">{{if .HasAITransparency}}<span class="story-ai-label" title="{{.AITransparencyText}}">✦ {{.AIShortLabel}}</span>{{end}}<h3><a href="{{if .URL}}{{.URL}}{{else}}/kontakt{{end}}">{{.Title}}</a></h3>{{if .Location}}<span class="category">{{.Location}}</span>{{end}}{{if .Teaser}}<p>{{.Teaser}}</p>{{end}}{{if .HasAITransparency}}<small class="story-ai-review">{{.AIReviewLabel}}</small>{{end}}<time>{{.Age}}</time></div>
</article>
{{end}}
</div>{{else}}<div class="home-stories-empty"><span>Landwelle vor Ort</span><strong>Aktuell liegen uns keine neuen Geschichten aus der Region vor.</strong><p>Du hast ein Thema, das bei Landwelle gehört werden sollte? Schreib unserer Redaktion.</p><a href="/kontakt">Thema an Landwelle senden →</a></div>{{end}}
</section>
<section class="portal-section" id="programm">
<div class="section-heading"><h2>Programm-Highlights</h2><a href="/programm">Zum Programm ›</a></div>
<div class="schedule-card">
{{range .Program}}
<article class="schedule-row {{if .Live}}is-live{{end}}">
<time>{{.Time}}</time>
<div class="schedule-info"><strong>{{.Show}}</strong><span>{{.PresenterLabel}}</span></div>
<img src="{{.Image}}" alt="" class="presenter">
{{if .Live}}<span class="live-badge">Jetzt live</span>{{end}}
</article>
{{end}}
</div>
</section>
</div>
<aside class="sidebar" aria-label="Regionale Schnellinformationen">
<section class="side-card weather-card" data-weather-widget aria-live="polite">
<span class="side-title">Wetter in <span data-weather-location>Visselhövede</span></span>
<div class="weather-main">
<span class="weather-live-icon" data-weather-icon aria-hidden="true">🌤️</span>
<strong data-weather-temperature>–°</strong>
<div><b data-weather-description>Wetter wird geladen</b><small data-weather-apparent>Aktuelle Live-Daten</small></div>
</div>
<div class="weather-facts">
<span data-weather-wind>Wind –</span>
<span data-weather-rain>Regen –</span>
<span data-weather-uv>UV –</span>
</div>
<div class="forecast" data-weather-forecast>
<span><i class="weather-skeleton"></i></span><span><i class="weather-skeleton"></i></span><span><i class="weather-skeleton"></i></span><span><i class="weather-skeleton"></i></span>
</div>
<a href="https://open-meteo.com/" target="_blank" rel="noopener noreferrer">Wetterdaten: Open-Meteo ↗</a>
<small class="weather-updated" data-weather-updated></small>
</section>
<section class="side-card recent-stories-card" aria-labelledby="recent-stories-title">
<h2 class="side-title" id="recent-stories-title">Neueste Beiträge</h2>
<p class="recent-stories-intro">Aus Landwelle vor Ort</p>
<ul class="recent-stories-list">
{{range .RecentStories}}
<li>
<a href="{{.PublicPath}}">
<span class="recent-story-meta"><span>{{.ContentTypeLabel}}</span><time datetime="{{.PublicationDate}}">{{.PublicationLabel}}</time></span>
<span class="recent-story-title">{{.Title}}</span>
</a>
</li>
{{else}}
<li class="recent-stories-empty">Aktuell sind keine neuen Beiträge verfügbar.</li>
{{end}}
</ul>
<a class="recent-stories-all" href="/landwelle-vor-ort">Alle Beiträge ansehen ›</a>
</section>
<section class="side-card traffic-card">
<div><span class="side-title">Verkehr &amp; Blitzer</span><small data-traffic-label>Live-Daten aus Niedersachsen</small></div>
<span class="traffic-count" data-traffic-count>–</span>
<a href="/verkehr">Zur Verkehrslage ›</a>
</section>
</aside>
</section>
</main>
{{template "public_footer" .}}
<div class="home-event-modal" data-home-event-modal hidden>
<div class="home-event-backdrop" data-home-event-close></div>
<section class="home-event-dialog" role="dialog" aria-modal="true" aria-labelledby="home-event-title">
<button class="home-event-close" type="button" data-home-event-close aria-label="Schließen">×</button>
<div class="home-event-media"><img src="/assets/event-market-v14.jpg" alt="" data-home-event-image><span data-home-event-category>Veranstaltung</span></div>
<div class="home-event-content"><span class="home-event-kicker">Landwelle Veranstaltungskalender</span><h2 id="home-event-title" data-home-event-title>Veranstaltung</h2><p class="home-event-date" data-home-event-date></p><dl><div><dt>Ort</dt><dd data-home-event-place></dd></div><div data-home-event-organizer-row><dt>Veranstalter</dt><dd data-home-event-organizer></dd></div></dl><div class="home-event-description" data-home-event-description></div><div class="home-event-source" data-home-event-source></div><div class="home-event-actions"><a data-home-event-calendar target="_blank" rel="noopener noreferrer">In Google Kalender +</a><a data-home-event-website target="_blank" rel="noopener noreferrer" hidden>Webseite öffnen →</a><a data-home-event-source-link target="_blank" rel="noopener noreferrer" hidden>Originalquelle →</a></div><p class="home-event-error" data-home-event-error hidden></p></div>
</section>
</div>
<div class="consent-layer" id="cookie-consent" hidden aria-hidden="true">
<section class="consent-dialog" role="dialog" aria-modal="true" aria-labelledby="consent-title" aria-describedby="consent-description" tabindex="-1">
<button class="consent-close" type="button" data-consent-close aria-label="Cookie-Einstellungen schließen" hidden>×</button>
<div class="consent-brand-panel" aria-hidden="true">
<img src="/assets/landwelle-logo-trim.png" alt="">
<div class="consent-signal"><i></i><i></i><i></i></div>
<span>Dein Radio. Deine Region. Dein Land.</span>
</div>
<div class="consent-content">
<span class="consent-kicker">Cookies &amp; Datenschutz</span>
<h2 id="consent-title">Deine Privatsphäre auf Landwelle</h2>
<p id="consent-description">Wir verwenden notwendige Speicherungen, damit die Website zuverlässig funktioniert und sich deine Auswahl merkt. Statistik und externe Medien werden nur nach deiner freiwilligen Zustimmung aktiviert.</p>
<div class="consent-current">
<span class="consent-current-icon">✓</span>
<div><strong>Aktuell datensparsam</strong><small>Ohne Zustimmung werden keine Statistik- oder externen Mediendienste geladen.</small></div>
</div>
<button class="consent-settings-toggle" type="button" data-consent-settings aria-expanded="false" aria-controls="consent-settings-panel">
<span>Individuell einstellen</span><span class="consent-toggle-arrow">⌄</span>
</button>
<div class="consent-settings" id="consent-settings-panel" hidden>
<div class="consent-category">
<div><strong>Notwendig</strong><p>Speichert deine Einwilligungsentscheidung und ermöglicht grundlegende Website-Funktionen.</p></div>
<label class="consent-switch consent-switch-locked">
<input type="checkbox" checked disabled aria-label="Notwendige Speicherungen immer aktiv">
<span></span>
</label>
</div>
<div class="consent-category">
<div><strong>Statistik</strong><p>Freiwillige Landwelle-Reichweitenmessung: pseudonyme Besucher, Sitzungen, Seitenaufrufe und Geräteklasse – ohne Werbetracker und ohne Speicherung der Roh-IP.</p></div>
<label class="consent-switch">
<input type="checkbox" data-consent-category="analytics" aria-label="Statistik erlauben">
<span></span>
</label>
</div>
<div class="consent-category">
<div><strong>Externe Medien</strong><p>Erlaubt später Inhalte wie Karten, Videos oder Social-Media-Einbettungen. Der Livestream selbst startet weiterhin erst nach deinem Klick.</p></div>
<label class="consent-switch">
<input type="checkbox" data-consent-category="externalMedia" aria-label="Externe Medien erlauben">
<span></span>
</label>
</div>
</div>
<div class="consent-actions">
<button class="consent-action consent-action-essential" type="button" data-consent-essential>Nur notwendige</button>
<button class="consent-action consent-action-save" type="button" data-consent-save>Auswahl speichern</button>
<button class="consent-action consent-action-all" type="button" data-consent-all>Alle akzeptieren</button>
</div>
<p class="consent-note">Du kannst deine Auswahl jederzeit über „Cookie-Einstellungen“ im Seitenfuß ändern oder widerrufen.</p>
<p class="consent-status" role="status" aria-live="polite"></p>
</div>
</section>
</div>
</body>
</html>