Update index.html

resioze
This commit is contained in:
2024-08-06 12:18:47 +02:00
committed by GitHub
parent ae1ab29b73
commit 51629afd75
+199 -41
View File
@@ -524,29 +524,68 @@ nav ul li a {
color: #333; color: #333;
font-weight: bold; font-weight: bold;
} }
.section {
padding: 80px 0;
.recommendation-section {
background-color: rgba(255, 255, 255, 0.8); background-color: rgba(255, 255, 255, 0.8);
margin-bottom: 20px; padding: 20px 0;
} }
.recommendation-banner { .recommendation-banner {
text-align: center; text-align: center;
padding: 10px;
background-color: rgba(255, 255, 255, 0.8);
margin-bottom: 20px;
}
.recommendation-banner h2 {
margin-bottom: 10px;
} }
.sponsor-logos { .sponsor-logos {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
flex-wrap: wrap;
} }
.ad-row {
display: flex;
justify-content: center;
margin-bottom: 10px;
}
.ad-item {
margin: 0 10px;
}
.ad-item img {
max-height: 40px;
width: auto;
}
@media (max-width: 768px) {
#welcome-title {
font-size: 28px;
}
#welcome-subtitle {
font-size: 18px;
}
.ad-item img {
max-height: 30px;
}
}
.section {
padding: 80px 0;
background-color: rgba(255, 255, 255, 0.8);
margin-bottom: 20px;
}
.recommendation-banner h2 {
margin-bottom: 10px;
color: #333; /* Hinzugefügt, um sicherzustellen, dass der Text sichtbar ist */
}
.sponsor-logos a { .sponsor-logos a {
margin: 0 10px; margin: 0 10px;
} }
@@ -556,6 +595,15 @@ nav ul li a {
width: auto; width: auto;
} }
.banner-container {
position: absolute;
bottom: 20px; /* Anpassen Sie diesen Wert, um die vertikale Position zu ändern */
left: 0;
right: 0;
z-index: 20;
}
#qrcode { #qrcode {
display: flex; display: flex;
justify-content: center; justify-content: center;
@@ -707,25 +755,107 @@ footer {
} }
#welcome-message {
.title-section {
position: absolute; position: absolute;
top: 50%; top: 10%;
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
text-align: center; text-align: center;
font-size: 24px; width: 100%;
font-weight: bold; z-index: 1220;
color: #ffffff; /* Weiße Schriftfarbe, passen Sie diese nach Bedarf an */ }
text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Optionaler Schatteneffekt für bessere Lesbarkeit */
z-index: 1000; /* Stellt sicher, dass der Text über anderen Elementen angezeigt wird */ .container {
max-width: 80%;
margin: 0 auto;
}
#welcome-title {
font-size: 36px;
font-weight: bold;
color: #ffffff;
text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
margin-bottom: 20px;
}
#welcome-subtitle {
font-size: 24px;
color: #ffffff;
text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}
.banner-container {
position: absolute;
bottom: 20px;
left: 0;
right: 0;
z-index: 20;
}
.recommendation-banner {
text-align: center;
padding: 10px;
background-color: rgba(255, 255, 255, 0.8);
margin-bottom: 20px;
}
.recommendation-banner h2 {
margin-bottom: 10px;
color: #333;
}
.sponsor-logos {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
}
.ad-row {
display: flex;
justify-content: center;
margin-bottom: 10px;
}
.ad-item {
margin: 0 10px;
}
.ad-item img {
max-height: 40px;
width: auto;
} }
/* Optional: Responsive Design für kleinere Bildschirme */
@media (max-width: 768px) { @media (max-width: 768px) {
#welcome-message { .title-section {
position: static;
transform: none;
margin-top: 20px;
}
.banner-container {
position: static;
margin-top: 20px;
}
#welcome-title {
font-size: 28px;
}
#welcome-subtitle {
font-size: 18px; font-size: 18px;
} }
.ad-item img {
max-height: 30px;
} }
}
@@ -835,6 +965,37 @@ footer {
.download-btn:hover { .download-btn:hover {
background-color: #45a049; background-color: #45a049;
} }
.main-content {
position: relative;
min-height: 100vh;
}
.title-section {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
width: 100%;
z-index: 10;
}
.banner-container {
position: absolute;
bottom: 20px;
left: 0;
right: 0;
z-index: 20;
}
.recommendation-banner {
text-align: center;
padding: 10px;
background-color: rgba(255, 255, 255, 0.8);
margin-bottom: 20px;
}
/* Rest des CSS bleibt unverändert */
</style> </style>
@@ -891,12 +1052,21 @@ footer {
</header> </header>
<?php
echo '<div class="recommendation-banner">
<div class="main-content">
<section class="title-section">
<div class="container">
<div id="welcome-title">Willkommen bei Aurora Wetter Lifecam</div>
<div id="welcome-subtitle">Erleben Sie faszinierende Ausblicke der Züricher Region - in Echtzeit!</div>
</div>
</section>
<div class="banner-container">
<div class="recommendation-banner">
<h2>Unsere Empfehlungen</h2> <h2>Unsere Empfehlungen</h2>
<div class="sponsor-logos">'; <div class="sponsor-logos">
<?php
$advertisements = [ $advertisements = [
['name' => 'Gartencenter Meier', 'url' => 'https://www.gartencenter-meier.ch', 'img' => 'meier.png'], ['name' => 'Gartencenter Meier', 'url' => 'https://www.gartencenter-meier.ch', 'img' => 'meier.png'],
['name' => 'Restaurant Schweizerhof', 'url' => 'https://schweizerhof-duernten.ch/', 'img' => 'schweiz.png'], ['name' => 'Restaurant Schweizerhof', 'url' => 'https://schweizerhof-duernten.ch/', 'img' => 'schweiz.png'],
@@ -908,14 +1078,12 @@ $advertisements = [
['name' => 'Deine Werbung bei uns', 'url' => 'https://www.aurora-wetter-lifecam.ch/', 'img' => 'werbung.png'] ['name' => 'Deine Werbung bei uns', 'url' => 'https://www.aurora-wetter-lifecam.ch/', 'img' => 'werbung.png']
]; ];
// Werbungen in 5er-Gruppen
$grouped_ads = array_chunk($advertisements, 5); $grouped_ads = array_chunk($advertisements, 5);
foreach ($grouped_ads as $group) { foreach ($grouped_ads as $group) {
echo '<div class="ad-row">'; echo '<div class="ad-row">';
foreach ($group as $ad) { foreach ($group as $ad) {
echo '<div class="ad-item"> echo '<div class="ad-item">
<p>' . $ad['name'] . '</p>
<a href="' . $ad['url'] . '" target="_blank"> <a href="' . $ad['url'] . '" target="_blank">
<img src="' . $ad['img'] . '" alt="' . $ad['name'] . '"> <img src="' . $ad['img'] . '" alt="' . $ad['name'] . '">
</a> </a>
@@ -923,24 +1091,14 @@ foreach ($grouped_ads as $group) {
} }
echo '</div>'; echo '</div>';
} }
echo '</div></div>';
?> ?>
<section class="title-section">
<div class="container">
<div id="welcome-message">Willkommen bei Aurora Wetter Lifecam</div>
<div id="welcome-message">Erleben Sie faszinierende Ausblicke der Züricher Region - in Echtzeit!</div>
</div> </div>
</section> </div>
</div>
</div>
<section id="webcams" class="section"> <section id="webcams" class="section">