From 5fcf0a29571bafb42ace4550c8e59c514e9dadc0 Mon Sep 17 00:00:00 2001 From: Maaxxs <61059039+MaaxxsDev@users.noreply.github.com> Date: Mon, 21 Sep 2026 17:43:24 +0200 Subject: [PATCH] Homepage: modern look with floating fact bar, bento values, Discord panel, 30+ member label Co-Authored-By: Claude Opus 5 --- assets/css/style.css | 518 ++++++++++++++++++++++++++++--------------- index.php | 138 +++++++----- 2 files changed, 424 insertions(+), 232 deletions(-) diff --git a/assets/css/style.css b/assets/css/style.css index 79ab86d..9a8dfa3 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -2895,14 +2895,29 @@ input.shop-approve-quantity { width: 72px; padding: 0.3rem 0.45rem; font-size: 0 /* --- Oeffentliche Startseite --- */ body.home-page { - background: #14120f; + --home-bg: #0b0b10; + --home-surface: rgba(255, 255, 255, 0.035); + --home-line: rgba(255, 255, 255, 0.08); + --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); + 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; } body.home-page .navbar { - position: relative; - z-index: 2; - background: rgba(18, 16, 13, 0.96); - border-bottom: 1px solid rgba(201, 162, 39, 0.35); + position: sticky; + top: 0; + z-index: 20; + background: rgba(11, 11, 16, 0.72); + backdrop-filter: blur(14px) saturate(140%); + -webkit-backdrop-filter: blur(14px) saturate(140%); + border-bottom: 1px solid var(--home-line); } .navbar-discord { @@ -2910,9 +2925,11 @@ body.home-page .navbar { align-items: center; gap: 0.4rem; color: var(--text); + font-weight: 500; } .navbar-discord:hover { color: #fff; text-decoration: none; } +.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; } @@ -2921,14 +2938,13 @@ body.home-page .navbar { .home-banner { position: relative; line-height: 0; - background: #0d0c0a; } .home-banner img { display: block; width: 100%; height: auto; - max-height: 72vh; + max-height: 78vh; object-fit: cover; } @@ -2936,231 +2952,387 @@ body.home-page .navbar { content: ''; position: absolute; inset: auto 0 0 0; - height: 18%; - background: linear-gradient(transparent, #14120f); + height: 35%; + background: linear-gradient(transparent, var(--home-bg)); pointer-events: none; } -.home-section { - max-width: 1080px; - margin: 0 auto; - padding: 4rem 1.5rem; -} - -.home-eyebrow { - display: flex; - align-items: center; - gap: 0.4rem; - margin: 0 0 0.5rem; - color: var(--gold); - font-size: 0.8rem; - font-weight: 600; - letter-spacing: 0.14em; - text-transform: uppercase; -} - -.home-eyebrow .discord-logo { color: var(--gold); } - -.home-page h1, -.home-heading, -.home-facts h2, -.home-values h3, -.home-discord h2 { - font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif; - font-weight: 700; - color: #f1e6c8; -} - -/* Ueber uns + Steckbrief */ -.home-about { - display: grid; - grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); - gap: 3.5rem; - align-items: start; - padding-top: 2.5rem; -} - -.home-about h1 { - margin: 0 0 1.25rem; - font-size: clamp(2rem, 4.2vw, 2.9rem); - line-height: 1.15; -} - -.home-about-text p { - margin: 0 0 1rem; - color: #d6d0c2; - font-size: 1.08rem; - line-height: 1.7; -} - -.home-about-text strong { color: #f1e6c8; } - -.home-link { - font-weight: 600; +/* Eckdaten: schwebende Leiste, die in den unteren Bannerrand ragt */ +.home-facts-wrap { + position: relative; + z-index: 2; + max-width: 1120px; + margin: -3.25rem auto 0; + padding: 0 1.5rem; } .home-facts { - padding: 1.5rem 1.6rem; - background: #1d1a15; - border: 1px solid #3a3326; - border-radius: 4px; + display: grid; + grid-template-columns: repeat(5, minmax(0, 1fr)); + margin: 0; + padding: 0.5rem; + list-style: none; + background: rgba(20, 20, 28, 0.72); + backdrop-filter: blur(18px) saturate(150%); + -webkit-backdrop-filter: blur(18px) saturate(150%); + border: 1px solid rgba(255, 255, 255, 0.1); + border-radius: 20px; + box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45); } -.home-facts h2 { - margin: 0 0 0.75rem; - padding-bottom: 0.6rem; - border-bottom: 1px solid #3a3326; - font-size: 1.25rem; -} - -.home-facts dl { margin: 0; } - -.home-facts dl > div { +.home-facts li { display: flex; - justify-content: space-between; - gap: 1rem; - padding: 0.55rem 0; - border-bottom: 1px dashed #332d22; + flex-direction: column; + gap: 0.15rem; + padding: 0.9rem 1.25rem; + border-radius: 14px; } -.home-facts dl > div:last-child { border-bottom: none; } -.home-facts dt { color: #9a917f; } -.home-facts dd { margin: 0; color: #f1e6c8; font-weight: 600; text-align: right; } +.home-facts li + li { box-shadow: -1px 0 0 var(--home-line); } -/* Werte */ -.home-values-band { - background: #1a1713; - border-top: 1px solid #2c271e; - border-bottom: 1px solid #2c271e; +.home-facts span { + color: var(--home-muted); + font-size: 0.78rem; + font-weight: 500; + letter-spacing: 0.02em; } -.home-heading { - margin: 0 0 2.25rem; - font-size: clamp(1.7rem, 3.4vw, 2.3rem); +.home-facts strong { + font-size: 1.15rem; + font-weight: 650; + letter-spacing: -0.01em; +} + +.home-facts li.is-highlight { + background: linear-gradient(135deg, rgba(230, 193, 90, 0.18), rgba(230, 193, 90, 0.04)); + box-shadow: inset 0 0 0 1px rgba(230, 193, 90, 0.35); +} + +.home-facts li.is-highlight strong { + color: var(--home-gold); + font-size: 1.5rem; + line-height: 1.1; +} + +/* Abschnitte */ +.home-section { + max-width: 1120px; + margin: 0 auto; + padding: 5.5rem 1.5rem 0; +} + +.home-pill { + display: inline-flex; + align-items: center; + gap: 0.4rem; + padding: 0.3rem 0.8rem; + border: 1px solid rgba(230, 193, 90, 0.35); + border-radius: 999px; + background: rgba(230, 193, 90, 0.08); + color: var(--home-gold); + font-size: 0.8rem; + font-weight: 600; +} + +.home-page h1, +.home-page h2, +.home-page h3 { + color: var(--home-text); + font-weight: 700; + letter-spacing: -0.025em; +} + +.home-gradient-text { + background: linear-gradient(100deg, #f7e3a1, #e6c15a 45%, #c89530); + -webkit-background-clip: text; + background-clip: text; + color: transparent; +} + +/* Ueber uns: grosse Ueberschrift links, Text rechts */ +.home-about { + display: grid; + grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); + gap: 3rem; + align-items: start; +} + +.home-about h1 { + margin: 1rem 0 0; + font-size: clamp(2.4rem, 5.2vw, 4rem); + line-height: 1.02; +} + +.home-about-text { padding-top: 2.6rem; } + +.home-about-text p { + margin: 0 0 1.1rem; + color: #c9c7d3; + font-size: 1.1rem; + line-height: 1.75; +} + +.home-about-text strong { color: var(--home-text); font-weight: 600; } + +.home-link { + display: inline-flex; + align-items: center; + gap: 0.4rem; + margin-top: 0.4rem; + color: var(--home-gold); + font-weight: 600; +} + +.home-link span { transition: transform 0.2s ease; } +.home-link:hover { color: #f7e3a1; text-decoration: none; } +.home-link:hover span { transform: translateX(4px); } + +/* Werte: Bento-Raster */ +.home-section-head { margin-bottom: 2rem; } + +.home-section-head h2 { + margin: 0.9rem 0 0; + font-size: clamp(2rem, 4vw, 3rem); + line-height: 1.05; } .home-values { display: grid; - grid-template-columns: repeat(2, minmax(0, 1fr)); - gap: 2.25rem 3.5rem; + grid-template-columns: repeat(12, minmax(0, 1fr)); + gap: 1rem; +} + +.home-value { + position: relative; + grid-column: span 5; + padding: 1.75rem; + overflow: hidden; + background: var(--home-surface); + border: 1px solid var(--home-line); + border-radius: 24px; + transition: border-color 0.25s ease, background 0.25s ease; +} + +.home-value:nth-child(1), +.home-value:nth-child(4) { grid-column: span 7; } + +.home-value::before { + content: ''; + position: absolute; + inset: -40% -20% auto auto; + width: 60%; + aspect-ratio: 1; + background: radial-gradient(circle, rgba(230, 193, 90, 0.14), transparent 65%); + opacity: 0; + transition: opacity 0.3s ease; + pointer-events: none; +} + +.home-value:hover { border-color: rgba(230, 193, 90, 0.3); background: rgba(255, 255, 255, 0.05); } +.home-value:hover::before { opacity: 1; } + +.home-value-top { + display: flex; + align-items: center; + justify-content: space-between; + margin-bottom: 2.25rem; +} + +.home-value-emoji { + display: grid; + place-items: center; + width: 52px; + height: 52px; + border-radius: 16px; + background: rgba(255, 255, 255, 0.06); + border: 1px solid var(--home-line); + font-size: 1.6rem; +} + +.home-value-no { + color: rgba(255, 255, 255, 0.18); + font-size: 2.2rem; + font-weight: 700; + letter-spacing: -0.04em; + line-height: 1; +} + +.home-value h3 { + margin: 0 0 0.55rem; + font-size: 1.4rem; +} + +.home-value p { margin: 0; - padding: 0; - list-style: none; -} - -.home-values li { - padding-top: 1.1rem; - border-top: 2px solid var(--gold); -} - -.home-values h3 { - margin: 0 0 0.5rem; - font-size: 1.35rem; -} - -.home-values p { - margin: 0; - color: #cfc8b8; + color: #b9b7c4; line-height: 1.7; } /* Discord */ -.home-discord-card { +.home-discord { + position: relative; display: grid; - grid-template-columns: minmax(0, 1fr) auto; - gap: 1.25rem 2.5rem; - align-items: center; - padding: 2rem 2.25rem; - background: #1b1c2b; - border: 1px solid #34375a; - border-left: 4px solid var(--discord); - border-radius: 4px; + grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); + gap: 2.5rem; + padding: 2.5rem; + overflow: hidden; + border-radius: 28px; + border: 1px solid rgba(124, 135, 255, 0.35); + background: + radial-gradient(700px 300px at 0% 0%, rgba(88, 101, 242, 0.45), transparent 70%), + radial-gradient(500px 300px at 100% 100%, rgba(230, 193, 90, 0.12), transparent 70%), + #13142a; } .home-discord-server { display: flex; align-items: center; - gap: 1.1rem; + gap: 1rem; + margin-bottom: 1.25rem; } .home-discord-server img { - width: 80px; - height: 80px; - border-radius: 22px; - flex-shrink: 0; + width: 64px; + height: 64px; + border-radius: 20px; + box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); } +.home-discord-label { + display: inline-flex; + align-items: center; + gap: 0.4rem; + color: #c3c8ff; + font-size: 0.85rem; + font-weight: 600; +} + +.home-discord-label .discord-logo { color: #c3c8ff; } + .home-discord h2 { - margin: 0 0 0.35rem; - font-size: 1.6rem; + margin: 0.15rem 0 0; + font-size: clamp(1.6rem, 3vw, 2.2rem); + line-height: 1.1; } -.home-discord-counts { - display: flex; - flex-wrap: wrap; - gap: 0.3rem 1.1rem; - margin: 0; - color: #b5b9d6; - font-size: 0.95rem; -} - -.home-discord-counts span { display: inline-flex; align-items: center; gap: 0.4rem; } - -.dot { - width: 9px; - height: 9px; - border-radius: 50%; - background: #80848e; -} - -.dot-online { background: #23a55a; } - -.home-discord-text { - grid-column: 1; - margin: 0; - color: #cfd1e4; +.home-discord-main p { + margin: 0 0 1.75rem; + color: #cfd2ee; + font-size: 1.05rem; line-height: 1.7; } .home-discord-button { - grid-column: 2; - grid-row: 1 / span 2; display: inline-flex; align-items: center; - justify-content: center; - gap: 0.55rem; + gap: 0.6rem; padding: 0.9rem 1.6rem; - font-size: 1.05rem; + border-radius: 999px; + background: #fff; + color: #1e1f3b; + font-weight: 700; + font-size: 1.02rem; + box-shadow: 0 10px 30px rgba(88, 101, 242, 0.35); + transition: transform 0.2s ease, box-shadow 0.2s ease; } -.home-discord-button:hover { color: #fff; text-decoration: none; } +.home-discord-button .discord-logo { color: var(--discord); } + +.home-discord-button:hover { + color: #1e1f3b; + text-decoration: none; + transform: translateY(-2px); + box-shadow: 0 14px 36px rgba(88, 101, 242, 0.5); +} + +.home-discord-stats { + display: grid; + gap: 0.75rem; + align-content: center; +} + +.home-discord-stats > div { + padding: 1.1rem 1.35rem; + border-radius: 18px; + background: rgba(255, 255, 255, 0.06); + border: 1px solid rgba(255, 255, 255, 0.1); +} + +.home-discord-stats strong { + display: flex; + align-items: center; + gap: 0.6rem; + font-size: 2rem; + font-weight: 700; + letter-spacing: -0.03em; + line-height: 1.1; +} + +.home-discord-stats span { color: #aab0d8; font-size: 0.9rem; } + +.pulse { + position: relative; + width: 12px; + height: 12px; + border-radius: 50%; + background: #23a55a; +} + +.pulse::after { + content: ''; + position: absolute; + inset: 0; + border-radius: 50%; + background: #23a55a; + animation: home-pulse 2s ease-out infinite; +} + +@keyframes home-pulse { + from { transform: scale(1); opacity: 0.7; } + to { transform: scale(2.6); opacity: 0; } +} + +@media (prefers-reduced-motion: reduce) { + .pulse::after { animation: none; } +} .home-footer { - max-width: 1080px; - margin: 0 auto; - padding: 1.5rem 1.5rem 2.5rem; - border-top: 1px solid #2c271e; + max-width: 1120px; + margin: 5.5rem auto 0; + padding: 1.75rem 1.5rem 2.5rem; + border-top: 1px solid var(--home-line); text-align: center; + color: var(--home-muted); font-size: 0.85rem; - color: #9a917f; } .home-footer p { margin: 0.2rem 0; } -@media (max-width: 860px) { - .home-about { grid-template-columns: 1fr; gap: 2rem; } - .home-values { grid-template-columns: 1fr; gap: 2rem; } - .home-discord-card { grid-template-columns: 1fr; padding: 1.5rem; } - .home-discord-button { grid-column: 1; grid-row: auto; width: 100%; } +@media (max-width: 900px) { + .home-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } + .home-facts li + li { box-shadow: none; } + .home-facts li.is-highlight { grid-column: 1 / -1; order: -1; } + .home-about { grid-template-columns: 1fr; gap: 0; } + .home-about-text { padding-top: 1.5rem; } + .home-value, + .home-value:nth-child(1), + .home-value:nth-child(4) { grid-column: span 12; } + .home-discord { grid-template-columns: 1fr; padding: 1.75rem; } + .home-discord-stats { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); } } @media (max-width: 520px) { .navbar { padding: 0.6rem 1rem; } .navbar-brand img { height: 36px; } .navbar-discord { font-size: 0; gap: 0; } /* nur das Logo */ - .home-section { padding: 2.75rem 1.1rem; } - .home-about { padding-top: 1.5rem; } + .home-facts-wrap { margin-top: -1.5rem; padding: 0 1rem; } + .home-facts li { padding: 0.75rem 0.9rem; } + .home-section { padding: 4rem 1rem 0; } .home-about-text p { font-size: 1rem; } - .home-discord-server img { width: 60px; height: 60px; border-radius: 16px; } - .home-discord h2 { font-size: 1.3rem; } + .home-value { padding: 1.4rem; border-radius: 20px; } + .home-value-top { margin-bottom: 1.5rem; } + .home-discord { border-radius: 22px; padding: 1.4rem; } + .home-discord-button { width: 100%; justify-content: center; } + .home-discord-stats strong { font-size: 1.6rem; } + .home-footer { margin-top: 4rem; } } \ No newline at end of file diff --git a/index.php b/index.php index ff83cef..beab98c 100644 --- a/index.php +++ b/index.php @@ -4,12 +4,14 @@ require_once __DIR__ . '/includes/discord.php'; // Oeffentliche Startseite der Legion - fuer jeden sichtbar, auch ohne Login. -// Mitgliederzahl = freigeschaltete Konten, wie in der Mitgliederliste. +// 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); $discord = discord_invite_info(); @@ -36,18 +38,15 @@ $values = [ ], ]; -// Steckbrief der Legion (Fraktion und Sprache wie in der Beschreibung des Discord-Servers). +// Eckdaten der Legion (Fraktion und Sprache wie in der Beschreibung des Discord-Servers). $facts = [ - 'Spiel' => 'Aion 2', - 'Fraktion' => 'Elyos', - 'Sprache' => 'Deutsch', - 'Spielweise' => 'PvE & PvP', + ['label' => 'Spiel', 'value' => 'Aion 2'], + ['label' => 'Fraktion', 'value' => 'Elyos'], + ['label' => 'Sprache', 'value' => 'Deutsch'], + ['label' => 'Fokus', 'value' => 'PvE & PvP'], ]; -if ($memberCount > 0) { - $facts['Mitglieder'] = number_format($memberCount, 0, ',', '.') . ' aktiv'; -} -if ($discord && $discord['tag'] !== '') { - $facts['Gilden-Tag'] = $discord['tag']; +if ($memberLabel !== null) { + $facts[] = ['label' => 'Aktive Mitglieder', 'value' => $memberLabel, 'highlight' => true]; } $pageTitle = ''; @@ -65,10 +64,23 @@ include __DIR__ . '/includes/header.php'; alt="Lumina Ascendens - Legion in Aion 2"> +
+ +
+
+
+ Über uns +

Schön, dass du da bist.

+
-

Über uns

-

Schön, dass du da bist.

Wir sind Lumina Ascendens, eine Legion in Aion 2. Hinter dem Namen stecken Spielerinnen und Spieler, die das Spiel am liebsten @@ -80,63 +92,71 @@ include __DIR__ . '/includes/header.php'; gerade erst in Atreia angekommen bist oder schon jede Festung kennst: Wenn du eine Legion suchst, in der man sich kennt und aufeinander zählen kann, bist du hier richtig.

-

Komm einfach auf unseren Discord →

+ Komm auf unseren Discord
-
+ +
+
+ ⚔️ Unsere Werte +

Wofür wir stehen

+
+
+ $value): ?> +
+
+ +
- - - -
- -
-
-

⚔️ Unsere Werte

-
    - -
  1. -

    -

    -
  2. - -
+

+

+ +
-
-
-
- -
-

Unser Discord

-

- -

- online - Mitglieder -

+
+
+
+
+ +
+ Discord-Server +

+
+
+

+ Der Discord ist unser Treffpunkt: Hier planen wir Raids und Events, suchen Gruppen, + helfen uns gegenseitig und hängen abends zusammen im Voice-Chat ab. Schau vorbei, + stell dich kurz vor und frag, was du wissen willst - wir beißen nicht. +

+ + Discord beitreten + +
+ +
+
+ + gerade online +
+
+ + Mitglieder im Discord +
+ +
+ + unser Server-Tag +
-
-

- Der Discord ist unser Treffpunkt: Hier planen wir Raids und Events, suchen Gruppen, - helfen uns gegenseitig und hängen abends einfach zusammen im Voice-Chat ab. Schau - vorbei, stell dich kurz vor und frag, was du wissen willst - wir beißen nicht. -

- - Discord beitreten - +