Homepage: animated aurora background, redesigned first steps cards with icons

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Maaxxs 2026-09-21 17:53:50 +02:00
parent 16aae8320e
commit 048f51d5bc
3 changed files with 160 additions and 49 deletions

View file

@ -2901,15 +2901,56 @@ body.home-page {
--home-text: #ecebf2;
--home-muted: #a3a1b0;
--home-gold: #e6c15a;
background:
radial-gradient(1200px 600px at 85% 40%, rgba(230, 193, 90, 0.07), transparent 60%),
radial-gradient(900px 500px at 10% 75%, rgba(88, 101, 242, 0.08), transparent 60%),
var(--home-bg);
background: var(--home-bg);
color: var(--home-text);
font-family: "Segoe UI Variable Display", "Segoe UI Variable Text", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
-webkit-font-smoothing: antialiased;
}
/* Belebter Hintergrund: langsam treibende Farbfelder (Gold, Violett, Blau) und feiner
Sternenstaub. Beides liegt fest hinter dem Inhalt, der darueber scrollt. */
body.home-page::before,
body.home-page::after {
content: '';
position: fixed;
inset: 0;
z-index: -1;
pointer-events: none;
}
body.home-page::before {
background:
radial-gradient(45% 40% at 85% 15%, rgba(230, 193, 90, 0.22), transparent 70%),
radial-gradient(40% 45% at 8% 45%, rgba(139, 92, 246, 0.24), transparent 70%),
radial-gradient(45% 40% at 90% 75%, rgba(88, 101, 242, 0.24), transparent 70%),
radial-gradient(35% 35% at 30% 95%, rgba(236, 72, 153, 0.13), transparent 70%),
linear-gradient(160deg, #0d0b16 0%, #0a0b14 45%, #0c0a12 100%);
background-size: 140% 140%;
animation: home-aurora 28s ease-in-out infinite alternate;
}
body.home-page::after {
background-image:
radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.55), transparent 60%),
radial-gradient(1px 1px at 72% 34%, rgba(255, 255, 255, 0.45), transparent 60%),
radial-gradient(1.5px 1.5px at 38% 62%, rgba(247, 227, 161, 0.55), transparent 60%),
radial-gradient(1px 1px at 88% 82%, rgba(255, 255, 255, 0.4), transparent 60%),
radial-gradient(1px 1px at 22% 88%, rgba(255, 255, 255, 0.35), transparent 60%),
radial-gradient(1.5px 1.5px at 56% 12%, rgba(195, 200, 255, 0.5), transparent 60%);
background-size: 420px 420px;
opacity: 0.6;
}
@keyframes home-aurora {
0% { background-position: 0% 0%; }
50% { background-position: 60% 40%; }
100% { background-position: 100% 100%; }
}
@media (prefers-reduced-motion: reduce) {
body.home-page::before { animation: none; }
}
body.home-page .navbar {
position: sticky;
top: 0;
@ -2953,7 +2994,7 @@ body.home-page .navbar {
position: absolute;
inset: auto 0 0 0;
height: 35%;
background: linear-gradient(transparent, var(--home-bg));
background: linear-gradient(transparent, rgba(11, 11, 18, 0.95));
pointer-events: none;
}
@ -3168,68 +3209,133 @@ body.home-page .navbar {
line-height: 1.7;
}
/* Erste Schritte: Stepper mit Fortschrittslinie ueber jedem Schritt */
/* Erste Schritte: Glas-Karten mit Icon, Pfeil zum naechsten Schritt, Ziel hervorgehoben */
.home-section-lead {
margin: 0.75rem 0 0;
max-width: 560px;
color: var(--home-muted);
font-size: 1.05rem;
}
.home-steps {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 2.5rem 1.25rem;
gap: 1.25rem 2rem;
margin: 0;
padding: 0;
list-style: none;
counter-reset: none;
}
.home-step {
position: relative;
padding-top: 1.6rem;
padding: 1.5rem 1.5rem 1.6rem;
background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
border: 1px solid rgba(255, 255, 255, 0.09);
border-radius: 22px;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.home-step::before {
.home-step:hover {
transform: translateY(-4px);
border-color: rgba(230, 193, 90, 0.35);
box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(230, 193, 90, 0.08);
}
/* Pfeil zwischen den Karten einer Reihe */
.home-step:not(:nth-child(3n))::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
border-radius: 3px;
background: linear-gradient(90deg, rgba(230, 193, 90, 0.85), rgba(230, 193, 90, 0.15));
top: 50%;
right: -1.55rem;
width: 1.1rem;
height: 1.1rem;
border-top: 2px solid rgba(230, 193, 90, 0.55);
border-right: 2px solid rgba(230, 193, 90, 0.55);
transform: translateY(-50%) rotate(45deg) scale(0.6);
}
.home-step:last-child::before {
background: linear-gradient(90deg, #e6c15a, #f7e3a1);
box-shadow: 0 0 16px rgba(230, 193, 90, 0.5);
.home-step-head {
display: flex;
align-items: center;
gap: 0.75rem;
margin-bottom: 1.1rem;
}
.home-step-no {
.home-step-icon {
display: grid;
place-items: center;
width: 40px;
height: 40px;
margin-bottom: 1rem;
border-radius: 12px;
background: rgba(230, 193, 90, 0.12);
width: 46px;
height: 46px;
border-radius: 14px;
background: linear-gradient(135deg, rgba(230, 193, 90, 0.28), rgba(139, 92, 246, 0.22));
border: 1px solid rgba(230, 193, 90, 0.35);
color: var(--home-gold);
font-weight: 700;
font-size: 1.05rem;
color: #f7e3a1;
box-shadow: 0 6px 18px rgba(230, 193, 90, 0.12);
}
.home-step:last-child .home-step-no {
background: var(--home-gold);
color: #1a1406;
.home-step-icon .icon,
.home-step-icon .discord-logo { color: #f7e3a1; width: 22px; height: 22px; }
.home-step-label {
color: var(--home-gold);
font-size: 0.78rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.home-step h3 {
margin: 0 0 0.4rem;
margin: 0 0 0.45rem;
font-size: 1.2rem;
}
.home-step p {
position: relative;
z-index: 1;
margin: 0;
color: #b9b7c4;
color: #c2c0cd;
line-height: 1.65;
}
/* Grosse, blasse Nummer in der Ecke */
.home-step-no {
position: absolute;
right: 1.1rem;
top: 0.4rem;
font-size: 4.5rem;
font-weight: 800;
line-height: 1;
letter-spacing: -0.05em;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
-webkit-background-clip: text;
background-clip: text;
color: transparent;
pointer-events: none;
}
/* Letzter Schritt = das Ziel */
.home-step:last-child {
background:
radial-gradient(120% 120% at 100% 0%, rgba(230, 193, 90, 0.28), transparent 60%),
linear-gradient(160deg, rgba(230, 193, 90, 0.14), rgba(255, 255, 255, 0.03));
border-color: rgba(230, 193, 90, 0.5);
box-shadow: 0 0 40px rgba(230, 193, 90, 0.12);
}
.home-step:last-child .home-step-icon {
background: linear-gradient(135deg, #f7e3a1, #e6c15a 55%, #c89530);
border-color: transparent;
}
.home-step:last-child .home-step-icon .icon { color: #1a1406; }
.home-step:last-child .home-step-no {
background: linear-gradient(180deg, rgba(247, 227, 161, 0.35), rgba(247, 227, 161, 0));
-webkit-background-clip: text;
background-clip: text;
}
/* Discord */
.home-discord {
position: relative;
@ -3380,7 +3486,8 @@ body.home-page .navbar {
.home-value:nth-child(1),
.home-value:nth-child(4) { grid-column: span 12; }
.home-discord { grid-template-columns: 1fr; padding: 1.75rem; }
.home-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.home-step:not(:nth-child(3n))::after { display: none; }
.home-discord-stats { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
}
@ -3395,13 +3502,9 @@ body.home-page .navbar {
.home-value { padding: 1.4rem; border-radius: 20px; }
.home-value-top { margin-bottom: 1.5rem; }
.home-discord { border-radius: 22px; padding: 1.4rem; }
/* Schritte als senkrechte Zeitleiste: Linie links, Nummer davor */
.home-steps { grid-template-columns: 1fr; gap: 0; }
.home-step { padding: 0 0 1.75rem 3.4rem; }
.home-step::before { top: 44px; bottom: 4px; left: 19px; right: auto; width: 2px; height: auto; background: rgba(230, 193, 90, 0.3); box-shadow: none; }
.home-step:last-child::before { display: none; }
.home-step-no { position: absolute; top: 0; left: 0; margin: 0; }
.home-step h3 { padding-top: 0.45rem; }
.home-steps { grid-template-columns: 1fr; }
.home-step { padding: 1.25rem; border-radius: 18px; }
.home-step-no { font-size: 3.6rem; }
.home-discord-button { width: 100%; justify-content: center; }
.home-discord-stats strong { font-size: 1.6rem; }
.home-footer { margin-top: 4rem; }

View file

@ -137,6 +137,9 @@ function icon(string $name): string
'heart' => '<path d="M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1-1.1a5.5 5.5 0 0 0-7.8 7.8l1 1.1L12 21l7.8-7.5 1-1.1a5.5 5.5 0 0 0 0-7.8z"/>',
'bag' => '<path d="M5 8h14l-1.2 11.2a2 2 0 0 1-2 1.8H8.2a2 2 0 0 1-2-1.8z"/><path d="M9 8V6a3 3 0 0 1 6 0v2"/>',
'box' => '<path d="M21 8 12 3 3 8v8l9 5 9-5z"/><path d="M3 8l9 5 9-5"/><line x1="12" y1="13" x2="12" y2="21"/>',
'ticket' => '<path d="M3 8a2 2 0 0 0 2-2h14a2 2 0 0 0 2 2v2a2 2 0 0 0 0 4v2a2 2 0 0 0-2 2H5a2 2 0 0 0-2-2v-2a2 2 0 0 0 0-4z"/><line x1="14" y1="7" x2="14" y2="9"/><line x1="14" y1="11" x2="14" y2="13"/><line x1="14" y1="15" x2="14" y2="17"/>',
'message' => '<path d="M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z"/><line x1="8.5" y1="10.5" x2="15.5" y2="10.5"/><line x1="8.5" y1="14" x2="13" y2="14"/>',
'shield-check' => '<path d="M12 21c4.5-1.8 7-5.2 7-9.5V6l-7-3-7 3v5.5c0 4.3 2.5 7.7 7 9.5z"/><polyline points="9 12 11.2 14.2 15.5 9.8"/>',
];
$path = $paths[$name] ?? '';

View file

@ -40,12 +40,12 @@ $values = [
// Erste Schritte: so laeuft die Aufnahme in die Legion ab.
$steps = [
['title' => 'Discord beitreten', 'text' => 'Komm über den Einladungslink unten auf unseren Discord-Server.'],
['title' => 'Verifizieren', 'text' => 'Verifiziere dich kurz auf dem Server, damit du die Kanäle sehen kannst.'],
['title' => 'Ticket erstellen', 'text' => 'Öffne im Discord ein Ticket - dort läuft deine Bewerbung ab.'],
['title' => 'Vorstellung schreiben', 'text' => 'Erzähl uns im Ticket, wer du bist, was du spielst und warum du zu uns möchtest.'],
['title' => 'Kennenlernen', 'text' => 'Du unterhältst dich ein bisschen mit den Sedes Lumines, unserer Gildenleitung.'],
['title' => 'Entscheidung', 'text' => 'Die Gildenleitung entscheidet, ob es passt - und wenn ja: Willkommen in der Legion!'],
['icon' => 'discord', 'title' => 'Discord beitreten', 'text' => 'Komm über den Einladungslink unten auf unseren Discord-Server.'],
['icon' => 'shield-check', 'title' => 'Verifizieren', 'text' => 'Verifiziere dich kurz auf dem Server, damit du die Kanäle sehen kannst.'],
['icon' => 'ticket', 'title' => 'Ticket erstellen', 'text' => 'Öffne im Discord ein Ticket - dort läuft deine Bewerbung ab.'],
['icon' => 'edit', 'title' => 'Vorstellung schreiben', 'text' => 'Erzähl uns im Ticket, wer du bist, was du spielst und warum du zu uns möchtest.'],
['icon' => 'message', 'title' => 'Kennenlernen', 'text' => 'Du unterhältst dich ein bisschen mit den Sedes Lumines, unserer Gildenleitung.'],
['icon' => 'crown', 'title' => 'Entscheidung', 'text' => 'Die Gildenleitung entscheidet, ob es passt - und wenn ja: Willkommen in der Legion!'],
];
// Eckdaten der Legion (Fraktion und Sprache wie in der Beschreibung des Discord-Servers).
@ -128,14 +128,19 @@ include __DIR__ . '/includes/header.php';
<section class="home-section home-steps-section" id="beitreten">
<div class="home-section-head">
<span class="home-pill">Erste Schritte</span>
<h2>So wirst du Teil der Legion</h2>
<h2>So wirst du Teil der <span class="home-gradient-text">Legion</span></h2>
<p class="home-section-lead">Von deinem ersten Klick bis zur Aufnahme - so läuft es bei uns ab.</p>
</div>
<ol class="home-steps">
<?php foreach ($steps as $i => $step): ?>
<li class="home-step">
<span class="home-step-no"><?= $i + 1 ?></span>
<div class="home-step-head">
<span class="home-step-icon"><?= $step['icon'] === 'discord' ? discord_logo(22) : icon($step['icon']) ?></span>
<span class="home-step-label">Schritt <?= $i + 1 ?></span>
</div>
<h3><?= e($step['title']) ?></h3>
<p><?= e($step['text']) ?></p>
<span class="home-step-no" aria-hidden="true"><?= $i + 1 ?></span>
</li>
<?php endforeach; ?>
</ol>