From 048f51d5bc6727f14b74d675ce44f1406d074595 Mon Sep 17 00:00:00 2001 From: Maaxxs <61059039+MaaxxsDev@users.noreply.github.com> Date: Mon, 21 Sep 2026 17:53:50 +0200 Subject: [PATCH] Homepage: animated aurora background, redesigned first steps cards with icons Co-Authored-By: Claude Opus 5 --- assets/css/style.css | 185 ++++++++++++++++++++++++++++++++--------- includes/functions.php | 3 + index.php | 21 +++-- 3 files changed, 160 insertions(+), 49 deletions(-) diff --git a/assets/css/style.css b/assets/css/style.css index 57fb9d1..db9f596 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -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; } diff --git a/includes/functions.php b/includes/functions.php index 21796a8..0f67f93 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -137,6 +137,9 @@ function icon(string $name): string 'heart' => '', 'bag' => '', 'box' => '', + 'ticket' => '', + 'message' => '', + 'shield-check' => '', ]; $path = $paths[$name] ?? ''; diff --git a/index.php b/index.php index 4e5398f..7242c59 100644 --- a/index.php +++ b/index.php @@ -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';
Erste Schritte -

So wirst du Teil der Legion

+

So wirst du Teil der Legion

+

Von deinem ersten Klick bis zur Aufnahme - so läuft es bei uns ab.

    $step): ?>
  1. - +
    + + Schritt +

    +