Add per-page background images from the Landscapes artwork

Dashboard, Mein Profil, Raids and the admin pages (Benutzerverwaltung/
Berechtigungsgruppen) each get a distinct backdrop behind the panels,
via a page->background map in header.php and a dark gradient overlay
so text stays readable. Raids uses the darkest/most dramatic image as
requested.

Generated compressed 1920px-wide JPEG copies under Landscapes/web/
for actual use on the page - the original PNGs were up to 11.7MB
(landscape4), which would have made every page load painfully slow.
Originals are kept untouched alongside them.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Maaxxs 2026-09-18 18:16:37 +02:00
parent f2478f37b7
commit e6f170deff
10 changed files with 34 additions and 1 deletions

View file

@ -156,6 +156,25 @@ a:hover { color: var(--gold-hover); text-decoration: underline; }
.app-content {
flex: 1;
min-width: 0;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
.app-content.bg-dashboard {
background-image: linear-gradient(rgba(26, 26, 26, 0.86), rgba(26, 26, 26, 0.93)), url('/assets/images/Landscapes/web/landscape1-bg.jpg');
}
.app-content.bg-profile {
background-image: linear-gradient(rgba(26, 26, 26, 0.86), rgba(26, 26, 26, 0.93)), url('/assets/images/Landscapes/web/landscape2-bg.jpg');
}
.app-content.bg-admin {
background-image: linear-gradient(rgba(26, 26, 26, 0.87), rgba(26, 26, 26, 0.94)), url('/assets/images/Landscapes/web/landscape3-bg.jpg');
}
.app-content.bg-raids {
background-image: linear-gradient(rgba(20, 20, 20, 0.92), rgba(20, 20, 20, 0.96)), url('/assets/images/Landscapes/web/landscape4-bg.jpg');
}
.container {

Binary file not shown.

After

Width:  |  Height:  |  Size: 382 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 398 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 286 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 274 KiB

View file

@ -12,6 +12,20 @@ $isProfileActive = $currentScript === 'profile.php';
$isRaidsActive = $currentScript === 'raids.php';
$isUsersActive = in_array($currentScript, ['users.php', 'user_form.php', 'user_delete.php'], true);
$isRolesActive = in_array($currentScript, ['roles.php', 'role_form.php', 'role_delete.php'], true);
// Jeder Bereich bekommt ein eigenes, dezentes Hintergrundbild.
$pageBackgrounds = [
'dashboard.php' => 'bg-dashboard',
'profile.php' => 'bg-profile',
'raids.php' => 'bg-raids',
'users.php' => 'bg-admin',
'user_form.php' => 'bg-admin',
'user_delete.php' => 'bg-admin',
'roles.php' => 'bg-admin',
'role_form.php' => 'bg-admin',
'role_delete.php' => 'bg-admin',
];
$pageBackgroundClass = $pageBackgrounds[$currentScript] ?? '';
?>
<!DOCTYPE html>
<html lang="de">
@ -59,7 +73,7 @@ $isRolesActive = in_array($currentScript, ['roles.php', 'role_form.php', 'role_d
</a>
</div>
</aside>
<div class="app-content">
<div class="app-content<?= $pageBackgroundClass ? ' ' . e($pageBackgroundClass) : '' ?>">
<main class="container">
<?php foreach (get_flashes() as $flash): ?>
<div class="flash flash-<?= e($flash['type']) ?>"><?= e($flash['message']) ?></div>