LuminaWebsite/index.php
Maaxxs c4f94bf84a Member feedback: raid input checks and fixed raid points, premades in the raid form, live raid page, Lumina-style dialogs, leadership calendar entries, class-based weapon picker, map and tactics fixes
- Raids: "Max. Spieler" only whole numbers up to groups x 5 (max. 10 groups / 50), gearscore only a number; fixed +1 Lumipunkt per participation, other values only with the new raids.points permission; pick an existing premade per group when creating a raid; unchanged legacy values no longer block editing
- Raid page updates itself every 15 s while visible (raids_live.php, cards rendered by includes/raid_card.php), open editors and confirm dialogs are kept
- Restore takes the new raid_id from the bot (archived messages are now deleted in Discord) and moves settings, attendance and awards; website signups send the server display name
- Premades: dissolve by leadership needs a reason, lead gets DMs on join/assign/decline/remove (source/actor_id sent to the bot), transfer picker skips players who already lead a group, website accept keeps the one-group rule, no commas in names
- Site-wide Lumina dialog (assets/js/confirm-dialog.js) replaces confirm/prompt/alert via data-confirm; error flashes are a dialog you confirm with OK
- Calendar: audience per entry (all / leadership takes part / internal) with the new calendar.leadership permission; day cells list all entries and scroll
- Gear planner: main-hand picker filtered by the set's class, mismatches marked, "keine Klasse" option, link to an external skill/Daevanion plan per set
- Map: correct kisk icons (Elyos on Verteron/Abyss, Altgard fixed), per-map max zoom and bounded panning, German texts, data source note
- Tactics: toolbar as a uniform grid, whole-tactic copy, automatic versions with restore and a 90-day trash, official tactics protected
- Global thin gold scrollbars, readable hover colours, "Sedes Luminis" spelling, patch notes and README, schema version 34

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-23 16:12:18 +02:00

199 lines
9.2 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
require_once __DIR__ . '/includes/bootstrap.php';
require_once __DIR__ . '/includes/discord.php';
// Oeffentliche Startseite der Legion - fuer jeden sichtbar, auch ohne Login.
// Feste Angabe fuer die Startseite - bei Bedarf hier von Hand anpassen.
$memberLabel = '100+';
$discord = discord_invite_info();
$values = [
[
'emoji' => '🌠',
'title' => 'Zusammenhalt',
'text' => 'Keiner steht allein. Ob Neuling oder Veteran – jeder ist Teil unserer Gemeinschaft. Wir glauben an gegenseitige Unterstützung, Hilfsbereitschaft und Vertrauen.',
],
[
'emoji' => '💫',
'title' => 'Respekt & Fairness',
'text' => 'Unsere Legion ist ein Ort des Wohlfühlens. Wir begegnen einander mit Achtung und Offenheit – toxisches Verhalten, Egoismus oder Drama haben hier keinen Platz.',
],
[
'emoji' => '🔥',
'title' => 'Leidenschaft & Ehrgeiz',
'text' => 'Wir streben nach Stärke, ohne die Freude zu verlieren. Unser Ziel ist es, eine der stärksten Legionen in Aion 2 zu werden – durch Disziplin, Teamgeist und Spaß am Spiel.',
],
[
'emoji' => '🌿',
'title' => 'Freude & Freundschaft',
'text' => 'Der Kern unserer Legion ist das Miteinander. Egal ob in Raids, PvP oder entspannten Abenden im Discord – wir teilen gemeinsame Erlebnisse und lachen zusammen.',
],
];
// Erste Schritte: so laeuft die Aufnahme in die Legion ab.
$steps = [
['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 Luminis, unserer Legionsleitung.'],
['icon' => 'crown', 'title' => 'Entscheidung', 'text' => 'Die Legionsleitung entscheidet, ob es passt - und wenn ja: Willkommen in der Legion!'],
];
// Eckdaten der Legion (Fraktion und Sprache wie in der Beschreibung des Discord-Servers).
$facts = [
['label' => 'Spiel', 'value' => 'Aion 2'],
['label' => 'Fraktion', 'value' => 'Elyos'],
['label' => 'Sprache', 'value' => 'Deutsch'],
['label' => 'Fokus', 'value' => 'PvE & PvP'],
];
$facts[] = ['label' => 'Aktive Mitglieder', 'value' => $memberLabel, 'highlight' => true];
$pageTitle = '';
$publicLayout = true;
$fullBleed = true;
$bodyClass = 'home-page';
$metaDescription = 'Lumina Ascendens ist eine deutschsprachige Elyos-Legion in Aion 2. Zusammenhalt, Respekt, Ehrgeiz und Freundschaft - in Raids, PvP und im Discord. Komm vorbei!';
$ogImage = site_url('/assets/images/banner-og.jpg');
include __DIR__ . '/includes/header.php';
?>
<div class="home-banner">
<img src="<?= e(asset_url('/assets/images/banner.webp')) ?>"
srcset="<?= e(asset_url('/assets/images/banner-1200.webp')) ?> 1200w, <?= e(asset_url('/assets/images/banner.webp')) ?> 2055w"
sizes="100vw" width="2055" height="765"
alt="Lumina Ascendens - Legion in Aion 2">
</div>
<div class="home-facts-wrap">
<ul class="home-facts" aria-label="Eckdaten der Legion">
<?php foreach ($facts as $fact): ?>
<li<?= !empty($fact['highlight']) ? ' class="is-highlight"' : '' ?>>
<span><?= e($fact['label']) ?></span>
<strong><?= e($fact['value']) ?></strong>
</li>
<?php endforeach; ?>
</ul>
</div>
<section class="home-section home-about">
<div>
<span class="home-pill">Über uns</span>
<h1>Schön, dass du <span class="home-gradient-text">da bist.</span></h1>
</div>
<div class="home-about-text">
<p>
Wir sind <strong>Lumina Ascendens</strong>, eine Legion in <strong>Aion 2</strong>.
Hinter dem Namen stecken Spielerinnen und Spieler, die das Spiel am liebsten
gemeinsam erleben: zusammen durch Raids, Seite an Seite im PvP und abends im
Discord einfach quatschen.
</p>
<p>
Bei uns zählt nicht nur, wie stark dein Charakter ist, sondern wer du bist. Ob du
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.
</p>
<a class="home-link" href="#discord">Komm auf unseren Discord <span aria-hidden="true">→</span></a>
</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>
<h2>Wofür wir stehen</h2>
</div>
<div class="home-values">
<?php foreach ($values as $i => $value): ?>
<article class="home-value">
<div class="home-value-top">
<span class="home-value-emoji" aria-hidden="true"><?= $value['emoji'] ?></span>
<span class="home-value-no"><?= sprintf('%02d', $i + 1) ?></span>
</div>
<h3><?= e($value['title']) ?></h3>
<p><?= e($value['text']) ?></p>
</article>
<?php endforeach; ?>
</div>
</section>
<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 <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">
<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>
</section>
<section class="home-section" id="discord">
<div class="home-discord">
<div class="home-discord-main">
<div class="home-discord-server">
<img src="/assets/images/apple-touch-icon.png" alt="" width="64" height="64">
<div>
<span class="home-discord-label"><?= discord_logo(16) ?> Discord-Server</span>
<h2><?= e($discord && $discord['name'] !== '' ? $discord['name'] : 'Lumina Ascendens') ?></h2>
</div>
</div>
<p>
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.
</p>
<a class="home-discord-button" href="<?= e(DISCORD_INVITE_URL) ?>" target="_blank" rel="noopener">
<?= discord_logo(22) ?>Discord beitreten
</a>
</div>
<?php if ($discord): ?>
<div class="home-discord-stats">
<div>
<strong><span class="pulse" aria-hidden="true"></span><?= e(number_format($discord['online'], 0, ',', '.')) ?></strong>
<span>gerade online</span>
</div>
<div>
<strong><?= e(number_format($discord['members'], 0, ',', '.')) ?></strong>
<span>Mitglieder im Discord</span>
</div>
<?php if ($discord['tag'] !== ''): ?>
<div>
<strong><?= e($discord['tag']) ?></strong>
<span>unser Server-Tag</span>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
</section>
<footer class="home-footer">
<p>Lumina Ascendens · Legion in Aion 2</p>
<p>Fanseite einer Spielergemeinschaft, nicht mit NCSOFT verbunden. Aion ist eine Marke von NCSOFT Corporation.</p>
</footer>
<?php include __DIR__ . '/includes/footer.php'; ?>