96 lines
3.7 KiB
PHP
96 lines
3.7 KiB
PHP
<?php
|
|
/**
|
|
* Startseite nach verhandeltem Design (docs/Input/Home Seite.pdf, Stand 2026-11).
|
|
*
|
|
* Aufbau: Waldfoto -> Claim (Kicker, H1, Lead) -> 6 Rahmenkacheln ->
|
|
* Kennzahlen "Der Bay. Spessart in Zahlen" + "Wem gehoert der Wald?".
|
|
* Die CTA-Leiste, Social-Icons und Impressum kommen aus footer.php.
|
|
*/
|
|
get_header();
|
|
|
|
$fds_img = get_stylesheet_directory_uri() . '/assets/img/';
|
|
|
|
$fds_tiles = array(
|
|
array( 'label' => 'Aktuelles', 'url' => home_url( '/news/' ), 'mod' => 'forest' ),
|
|
array( 'label' => 'Wie<br>werde ich<br>Waldschützer', 'url' => home_url( '/waldschuetzer/' ), 'mod' => 'rose' ),
|
|
array( 'label' => 'Waldtipp<br>des Monats', 'url' => home_url( '/fachartikel/' ), 'mod' => 'sage' ),
|
|
array( 'label' => 'Leserbriefe', 'url' => home_url( '/news/' ), 'mod' => 'slate' ),
|
|
array( 'label' => 'Veranstaltungs­tipps', 'url' => home_url( '/aktionen/' ), 'mod' => 'forest' ),
|
|
array( 'label' => 'Fake News', 'url' => home_url( '/eigenes_bild/' ), 'mod' => 'orange' ),
|
|
);
|
|
|
|
$fds_facts = array(
|
|
array( '171.000', 'Gesamtfläche des Naturparks Spessart' ),
|
|
array( '105.000', 'Waldfläche im Naturpark Spessart' ),
|
|
array( '43.000', 'Bayer. Staatswald (BaySF)' ),
|
|
array( '1.962', 'Naturwaldflächen im Bayer. Staatswald' ),
|
|
array( '0', 'Urwald im Bay. Spessart' ),
|
|
);
|
|
|
|
$fds_owners = array(
|
|
array( '39,4', 'Bayerische Staatsforsten', '43.000 ha' ),
|
|
array( '33,1', 'Kommunal- und Körperschaftswald', '34.406 ha' ),
|
|
array( '27,2', 'Privatwald', '28.323 ha' ),
|
|
);
|
|
?>
|
|
|
|
<div class="home-hero">
|
|
<img
|
|
src="<?php echo esc_url( $fds_img . 'hero-wald-1200.jpg?v=2' ); ?>"
|
|
srcset="<?php echo esc_url( $fds_img . 'hero-wald-800.jpg?v=2' ); ?> 800w, <?php echo esc_url( $fds_img . 'hero-wald-1200.jpg?v=2' ); ?> 1200w, <?php echo esc_url( $fds_img . 'hero-wald-2400.jpg?v=2' ); ?> 2400w"
|
|
sizes="100vw"
|
|
alt="Alter Laubwald im Spessart mit moosbewachsenen Stämmen"
|
|
fetchpriority="high">
|
|
</div>
|
|
|
|
<main id="inhalt" class="home-main">
|
|
|
|
<section class="home-intro">
|
|
<div class="home-wrap">
|
|
<p class="home-intro__kicker">Gemeinsam für eine lebenswerte Zukunft.</p>
|
|
<h1 class="home-intro__title">Natur.Mensch.<br>Spessart</h1>
|
|
<p class="home-intro__lead">Wir wollen einen Spessart, der lebendig bleibt. Mit wilder Natur, alten Bäumen, gelebter Tradition und Raum für Menschen, die ihn lieben.</p>
|
|
</div>
|
|
</section>
|
|
|
|
<nav class="home-tiles" aria-label="Themen">
|
|
<ul class="home-wrap home-tiles__grid">
|
|
<?php foreach ( $fds_tiles as $tile ) : ?>
|
|
<li>
|
|
<a class="home-tile home-tile--<?php echo esc_attr( $tile['mod'] ); ?>" href="<?php echo esc_url( $tile['url'] ); ?>">
|
|
<span><?php echo wp_kses( $tile['label'], array( 'br' => array() ) ); ?></span>
|
|
</a>
|
|
</li>
|
|
<?php endforeach; ?>
|
|
</ul>
|
|
</nav>
|
|
|
|
<section class="home-facts" aria-labelledby="fakten-titel">
|
|
<div class="home-wrap">
|
|
<h2 id="fakten-titel" class="home-facts__title">Der Bay. Spessart in Zahlen</h2>
|
|
<dl class="home-facts__grid home-facts__grid--five">
|
|
<?php foreach ( $fds_facts as $fact ) : ?>
|
|
<div class="fact">
|
|
<dt class="fact__value"><?php echo esc_html( $fact[0] ); ?> <span class="fact__unit">Hektar</span></dt>
|
|
<dd class="fact__label"><?php echo esc_html( $fact[1] ); ?></dd>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
</dl>
|
|
|
|
<h2 class="home-facts__title">Wem gehört der Wald?</h2>
|
|
<dl class="home-facts__grid home-facts__grid--three">
|
|
<?php foreach ( $fds_owners as $owner ) : ?>
|
|
<div class="fact fact--share">
|
|
<dt class="fact__value"><?php echo esc_html( $owner[0] ); ?> %</dt>
|
|
<dd class="fact__label"><?php echo esc_html( $owner[1] ); ?></dd>
|
|
<dd class="fact__note"><?php echo esc_html( $owner[2] ); ?></dd>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
|
|
</main>
|
|
|
|
<?php get_footer(); ?>
|