Homepage: smooth banner fade, group photo, fixed 40+ member label

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Maaxxs 2026-09-21 18:00:23 +02:00
parent 048f51d5bc
commit 2d60de3b2b
4 changed files with 105 additions and 15 deletions

View file

@ -2973,7 +2973,7 @@ body.home-page .navbar {
.navbar-user a.button-small { border-radius: 999px; padding: 0.35rem 0.95rem; }
.navbar-user a.button-small:hover { color: #1a1a1a; }
.page-full { display: block; }
.page-full { display: block; overflow-x: clip; } /* Lichtschein des Banners ragt seitlich hinaus */
/* Banner randlos ueber die ganze Breite, direkt unter der Kopfzeile */
.home-banner {
@ -2981,20 +2981,41 @@ body.home-page .navbar {
line-height: 0;
}
/* Das Bild selbst blendet unten weich aus (Maske statt dunkler Ueberlagerung), damit der
farbige Seitenhintergrund durchscheint. Viele Zwischenstufen = kein sichtbarer Rand. */
.home-banner img {
position: relative;
z-index: 1;
display: block;
width: 100%;
height: auto;
max-height: 78vh;
object-fit: cover;
-webkit-mask-image: linear-gradient(to bottom,
#000 0%, #000 52%,
rgba(0, 0, 0, 0.94) 60%, rgba(0, 0, 0, 0.82) 67%, rgba(0, 0, 0, 0.64) 74%,
rgba(0, 0, 0, 0.44) 81%, rgba(0, 0, 0, 0.25) 88%, rgba(0, 0, 0, 0.1) 94%,
transparent 100%);
mask-image: linear-gradient(to bottom,
#000 0%, #000 52%,
rgba(0, 0, 0, 0.94) 60%, rgba(0, 0, 0, 0.82) 67%, rgba(0, 0, 0, 0.64) 74%,
rgba(0, 0, 0, 0.44) 81%, rgba(0, 0, 0, 0.25) 88%, rgba(0, 0, 0, 0.1) 94%,
transparent 100%);
}
/* Warmer Lichtschein: fuehrt das Gold des Banners unter dem Bild in die Seite weiter */
.home-banner::after {
content: '';
position: absolute;
inset: auto 0 0 0;
height: 35%;
background: linear-gradient(transparent, rgba(11, 11, 18, 0.95));
left: 50%;
bottom: -22vh;
width: min(1400px, 120vw);
height: 55vh;
transform: translateX(-50%);
background:
radial-gradient(50% 45% at 50% 40%, rgba(230, 193, 90, 0.2), transparent 70%),
radial-gradient(35% 35% at 50% 45%, rgba(247, 227, 161, 0.1), transparent 70%);
filter: blur(20px);
pointer-events: none;
}
@ -3128,6 +3149,66 @@ body.home-page .navbar {
.home-link:hover { color: #f7e3a1; text-decoration: none; }
.home-link:hover span { transform: translateX(4px); }
/* Gemeinschaftsfoto */
.home-photo-section { padding-top: 4rem; }
.home-photo {
position: relative;
margin: 0;
overflow: hidden;
border-radius: 28px;
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow:
0 30px 80px rgba(0, 0, 0, 0.55),
0 0 0 1px rgba(230, 193, 90, 0.08),
0 0 80px rgba(139, 92, 246, 0.12);
}
.home-photo img {
display: block;
width: 100%;
height: auto;
transition: transform 0.8s ease;
}
.home-photo:hover img { transform: scale(1.02); }
/* Dunkler Verlauf unten, damit die Bildunterschrift lesbar bleibt */
.home-photo::after {
content: '';
position: absolute;
inset: auto 0 0 0;
height: 40%;
background: linear-gradient(transparent, rgba(8, 8, 14, 0.75));
pointer-events: none;
}
.home-photo figcaption {
position: absolute;
left: 1.5rem;
right: 1.5rem;
bottom: 1.35rem;
z-index: 1;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.6rem 0.9rem;
color: #f1eff7;
font-weight: 600;
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.home-photo-tag {
padding: 0.35rem 0.85rem;
border-radius: 999px;
background: rgba(20, 20, 28, 0.6);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.18);
font-size: 0.85rem;
text-shadow: none;
}
/* Werte: Bento-Raster */
.home-section-head { margin-bottom: 2rem; }
@ -3508,4 +3589,7 @@ body.home-page .navbar {
.home-discord-button { width: 100%; justify-content: center; }
.home-discord-stats strong { font-size: 1.6rem; }
.home-footer { margin-top: 4rem; }
.home-photo-section { padding-top: 3rem; }
.home-photo { border-radius: 18px; }
.home-photo figcaption { left: 0.9rem; right: 0.9rem; bottom: 0.8rem; font-size: 0.85rem; }
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 307 KiB

View file

@ -4,14 +4,8 @@ require_once __DIR__ . '/includes/discord.php';
// Oeffentliche Startseite der Legion - fuer jeden sichtbar, auch ohne Login.
// Mitgliederzahl = freigeschaltete Konten, wie in der Mitgliederliste. Nach aussen gerundet
// auf volle Zehner mit "+" (34 -> "30+"), damit die Zahl nicht bei jedem Neuzugang springt.
try {
$memberCount = (int) db()->query("SELECT COUNT(*) FROM users WHERE status = 'active'")->fetchColumn();
} catch (PDOException $e) {
$memberCount = 0;
}
$memberLabel = $memberCount >= 10 ? (intdiv($memberCount, 10) * 10) . '+' : ($memberCount > 0 ? (string) $memberCount : null);
// Feste Angabe fuer die Startseite - bei Bedarf hier von Hand anpassen.
$memberLabel = '40+';
$discord = discord_invite_info();
@ -55,9 +49,7 @@ $facts = [
['label' => 'Sprache', 'value' => 'Deutsch'],
['label' => 'Fokus', 'value' => 'PvE & PvP'],
];
if ($memberLabel !== null) {
$facts[] = ['label' => 'Aktive Mitglieder', 'value' => $memberLabel, 'highlight' => true];
}
$facts[] = ['label' => 'Aktive Mitglieder', 'value' => $memberLabel, 'highlight' => true];
$pageTitle = '';
$publicLayout = true;
@ -106,6 +98,20 @@ include __DIR__ . '/includes/header.php';
</div>
</section>
<section class="home-section home-photo-section">
<figure class="home-photo">
<img src="<?= e(asset_url('/assets/images/legion-gemeinsam.webp')) ?>"
srcset="<?= e(asset_url('/assets/images/legion-gemeinsam-1000.webp')) ?> 1000w, <?= e(asset_url('/assets/images/legion-gemeinsam.webp')) ?> 1920w"
sizes="(max-width: 1120px) 100vw, 1120px"
width="1920" height="1072" loading="lazy"
alt="Gemeinschaftsfoto der Legion Lumina Ascendens in Aion 2">
<figcaption>
<span class="home-photo-tag">📸 Gemeinschaftsfoto</span>
<span>Die Legion beim Stresstest von Aion 2</span>
</figcaption>
</figure>
</section>
<section class="home-section home-values-section">
<div class="home-section-head">
<span class="home-pill">⚔️ Unsere Werte</span>