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>
|
|
@ -156,6 +156,25 @@ a:hover { color: var(--gold-hover); text-decoration: underline; }
|
||||||
.app-content {
|
.app-content {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-width: 0;
|
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 {
|
.container {
|
||||||
|
|
|
||||||
BIN
assets/images/Landscapes/landscape1.jpg
Normal file
|
After Width: | Height: | Size: 382 KiB |
BIN
assets/images/Landscapes/landscape2.png
Normal file
|
After Width: | Height: | Size: 3.9 MiB |
BIN
assets/images/Landscapes/landscape3.png
Normal file
|
After Width: | Height: | Size: 2.1 MiB |
BIN
assets/images/Landscapes/landscape4.png
Normal file
|
After Width: | Height: | Size: 11 MiB |
BIN
assets/images/Landscapes/web/landscape1-bg.jpg
Normal file
|
After Width: | Height: | Size: 398 KiB |
BIN
assets/images/Landscapes/web/landscape2-bg.jpg
Normal file
|
After Width: | Height: | Size: 286 KiB |
BIN
assets/images/Landscapes/web/landscape3-bg.jpg
Normal file
|
After Width: | Height: | Size: 115 KiB |
BIN
assets/images/Landscapes/web/landscape4-bg.jpg
Normal file
|
After Width: | Height: | Size: 274 KiB |
|
|
@ -12,6 +12,20 @@ $isProfileActive = $currentScript === 'profile.php';
|
||||||
$isRaidsActive = $currentScript === 'raids.php';
|
$isRaidsActive = $currentScript === 'raids.php';
|
||||||
$isUsersActive = in_array($currentScript, ['users.php', 'user_form.php', 'user_delete.php'], true);
|
$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);
|
$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>
|
<!DOCTYPE html>
|
||||||
<html lang="de">
|
<html lang="de">
|
||||||
|
|
@ -59,7 +73,7 @@ $isRolesActive = in_array($currentScript, ['roles.php', 'role_form.php', 'role_d
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</aside>
|
</aside>
|
||||||
<div class="app-content">
|
<div class="app-content<?= $pageBackgroundClass ? ' ' . e($pageBackgroundClass) : '' ?>">
|
||||||
<main class="container">
|
<main class="container">
|
||||||
<?php foreach (get_flashes() as $flash): ?>
|
<?php foreach (get_flashes() as $flash): ?>
|
||||||
<div class="flash flash-<?= e($flash['type']) ?>"><?= e($flash['message']) ?></div>
|
<div class="flash flash-<?= e($flash['type']) ?>"><?= e($flash['message']) ?></div>
|
||||||
|
|
|
||||||