feat(home): add admin area link to module list for admins

This commit is contained in:
Philipp Urbschat 2026-09-12 23:29:38 +02:00
parent 46d9b0f4a0
commit 59580d42f9
Signed by: Phili
SSH key fingerprint: SHA256:ZSQWnldzrYiABzOV6vTICPe0h19pTpus7sCbm2S0po0
2 changed files with 11 additions and 2 deletions

File diff suppressed because one or more lines are too long

View file

@ -51,7 +51,7 @@
<p class="text-[11px] font-mono text-slate-400 mt-0.5">
<?= htmlspecialchars($_SESSION['user_email']) ?>
<?php if ($isAdmin): ?>
<span class="ml-1 text-[10px] px-1.5 py-0.5 bg-fuchsia-500/10 text-fuchsia-400 border border-fuchsia-500/30 rounded">ADMIN</span>
<a href="<?= Config::get('BASE_URL', '/') ?>admin" class="ml-1 text-[10px] px-1.5 py-0.5 bg-fuchsia-500/10 hover:bg-fuchsia-500/20 text-fuchsia-400 hover:text-fuchsia-300 border border-fuchsia-500/30 rounded transition-colors inline-block" title="Zum Admin-Bereich">ADMIN</a>
<?php endif; ?>
</p>
</div>
@ -59,6 +59,15 @@
</div>
<p class="text-slate-400 text-xs mb-4 font-mono"><span class="text-emerald-500 animate-pulse">/</span> access_granted Freigeschaltete Systeme:</p>
<div class="space-y-3 relative z-10">
<?php if ($isAdmin): ?>
<a href="<?= Config::get('BASE_URL', '/') ?>admin" class="flex items-center justify-between w-full bg-slate-950/80 border border-fuchsia-500/40 hover:border-fuchsia-500/80 rounded-2xl p-4 text-slate-200 text-sm transition-all shadow-lg hover:shadow-fuchsia-500/20 group/btn">
<span class="font-mono font-bold uppercase tracking-wider text-fuchsia-400 group-hover/btn:text-fuchsia-300 transition-colors flex items-center gap-2">
<span class="w-1.5 h-1.5 rounded-full bg-fuchsia-500 animate-pulse shadow-[0_0_6px_rgba(217,70,239,0.8)]"></span>
Admin Bereich
</span>
<span class="text-fuchsia-400 group-hover/btn:translate-x-1 transition-all"></span>
</a>
<?php endif; ?>
<?php if (empty($accessibleModules)): ?>
<div class="p-4 bg-slate-950/60 border border-slate-800 rounded-2xl text-center">
<p class="text-slate-400 font-mono text-xs">Aktuell sind keine Module für deinen Account freigeschaltet.</p>