Homepage: smooth banner fade, group photo, fixed 40+ member label
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
048f51d5bc
commit
2d60de3b2b
4 changed files with 105 additions and 15 deletions
|
|
@ -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 { border-radius: 999px; padding: 0.35rem 0.95rem; }
|
||||||
.navbar-user a.button-small:hover { color: #1a1a1a; }
|
.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 */
|
/* Banner randlos ueber die ganze Breite, direkt unter der Kopfzeile */
|
||||||
.home-banner {
|
.home-banner {
|
||||||
|
|
@ -2981,20 +2981,41 @@ body.home-page .navbar {
|
||||||
line-height: 0;
|
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 {
|
.home-banner img {
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
max-height: 78vh;
|
max-height: 78vh;
|
||||||
object-fit: cover;
|
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 {
|
.home-banner::after {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
inset: auto 0 0 0;
|
left: 50%;
|
||||||
height: 35%;
|
bottom: -22vh;
|
||||||
background: linear-gradient(transparent, rgba(11, 11, 18, 0.95));
|
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;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -3128,6 +3149,66 @@ body.home-page .navbar {
|
||||||
.home-link:hover { color: #f7e3a1; text-decoration: none; }
|
.home-link:hover { color: #f7e3a1; text-decoration: none; }
|
||||||
.home-link:hover span { transform: translateX(4px); }
|
.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 */
|
/* Werte: Bento-Raster */
|
||||||
.home-section-head { margin-bottom: 2rem; }
|
.home-section-head { margin-bottom: 2rem; }
|
||||||
|
|
||||||
|
|
@ -3508,4 +3589,7 @@ body.home-page .navbar {
|
||||||
.home-discord-button { width: 100%; justify-content: center; }
|
.home-discord-button { width: 100%; justify-content: center; }
|
||||||
.home-discord-stats strong { font-size: 1.6rem; }
|
.home-discord-stats strong { font-size: 1.6rem; }
|
||||||
.home-footer { margin-top: 4rem; }
|
.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; }
|
||||||
}
|
}
|
||||||
BIN
assets/images/legion-gemeinsam-1000.webp
Normal file
BIN
assets/images/legion-gemeinsam-1000.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 100 KiB |
BIN
assets/images/legion-gemeinsam.webp
Normal file
BIN
assets/images/legion-gemeinsam.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 307 KiB |
28
index.php
28
index.php
|
|
@ -4,14 +4,8 @@ require_once __DIR__ . '/includes/discord.php';
|
||||||
|
|
||||||
// Oeffentliche Startseite der Legion - fuer jeden sichtbar, auch ohne Login.
|
// Oeffentliche Startseite der Legion - fuer jeden sichtbar, auch ohne Login.
|
||||||
|
|
||||||
// Mitgliederzahl = freigeschaltete Konten, wie in der Mitgliederliste. Nach aussen gerundet
|
// Feste Angabe fuer die Startseite - bei Bedarf hier von Hand anpassen.
|
||||||
// auf volle Zehner mit "+" (34 -> "30+"), damit die Zahl nicht bei jedem Neuzugang springt.
|
$memberLabel = '40+';
|
||||||
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);
|
|
||||||
|
|
||||||
$discord = discord_invite_info();
|
$discord = discord_invite_info();
|
||||||
|
|
||||||
|
|
@ -55,9 +49,7 @@ $facts = [
|
||||||
['label' => 'Sprache', 'value' => 'Deutsch'],
|
['label' => 'Sprache', 'value' => 'Deutsch'],
|
||||||
['label' => 'Fokus', 'value' => 'PvE & PvP'],
|
['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 = '';
|
$pageTitle = '';
|
||||||
$publicLayout = true;
|
$publicLayout = true;
|
||||||
|
|
@ -106,6 +98,20 @@ include __DIR__ . '/includes/header.php';
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</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">
|
<section class="home-section home-values-section">
|
||||||
<div class="home-section-head">
|
<div class="home-section-head">
|
||||||
<span class="home-pill">⚔️ Unsere Werte</span>
|
<span class="home-pill">⚔️ Unsere Werte</span>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue