design anpassung
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
<?php $footerBrandName = trim((string) ($config['name'] ?? '')) ?: 'Kaffeeliste'; ?>
|
||||
</main>
|
||||
<footer class="site-footer">
|
||||
<div class="shell footer-grid">
|
||||
<div>
|
||||
<strong>Kaffeekasse SaaS</strong>
|
||||
<p>Fuer Teams, Vereine und Standorte, die klassische Listen und digitale Selbstbuchung in einem System zusammenbringen wollen.</p>
|
||||
<strong><?= e($footerBrandName) ?></strong>
|
||||
<p>Für Teams, Vereine und Standorte, die Kaffee, Einzahlungen und offene Beträge an einem Ort im Griff behalten wollen.</p>
|
||||
</div>
|
||||
<div>
|
||||
<span class="eyebrow">Produktionsreif gedacht</span>
|
||||
<p>Path-basiertes Multi-Tenant-Setup, PHP/MySQL fuer Netcup-Webspace, Ledger-basierte Buchungen und vorbereitete RFID-Inbox.</p>
|
||||
<span class="eyebrow">Im Alltag nutzbar</span>
|
||||
<p>Mitglieder buchen selbst, Papierlisten lassen sich nachtragen und die verantwortliche Person behält die Kaffeekasse ohne Zettelchaos im Blick.</p>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
@@ -10,13 +10,15 @@ $hasTenantAccess = $tenantSlug !== ''
|
||||
&& is_array($authState)
|
||||
&& (($authState['tenant_slug'] ?? null) === $tenantSlug);
|
||||
$isTenantAdmin = in_array($tenantRole, ['owner', 'admin'], true);
|
||||
$configuredName = trim((string) ($config['name'] ?? ''));
|
||||
$brandName = $configuredName !== '' ? $configuredName : 'Kaffeeliste';
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title><?= e($title ?? $config['name']) ?></title>
|
||||
<title><?= e($title ?? $brandName) ?></title>
|
||||
<link rel="stylesheet" href="<?= e(asset_url('app.css')) ?>">
|
||||
</head>
|
||||
<body class="<?= e($pageClass ?? 'app-shell') ?>">
|
||||
@@ -24,40 +26,40 @@ $isTenantAdmin = in_array($tenantRole, ['owner', 'admin'], true);
|
||||
<header class="site-header">
|
||||
<div class="shell header-inner">
|
||||
<a class="brand" href="<?= e(url('/')) ?>">
|
||||
<span class="brand-mark">KK</span>
|
||||
<span class="brand-mark">KL</span>
|
||||
<span>
|
||||
<strong><?= e($config['name']) ?></strong>
|
||||
<small>Mandantenfaehige Kaffeekasse</small>
|
||||
<strong><?= e($brandName) ?></strong>
|
||||
<small>Kaffeeliste für Teams, Vereine und Büroküchen</small>
|
||||
</span>
|
||||
</a>
|
||||
<nav class="top-nav">
|
||||
<?php if ($hasTenantAccess): ?>
|
||||
<a href="<?= e(tenant_url($tenantSlug)) ?>" class="<?= $currentPath === tenant_path($tenantSlug) ? 'active' : '' ?>">Uebersicht</a>
|
||||
<a href="<?= e(tenant_url($tenantSlug, 'bookings')) ?>" class="<?= $currentPath === tenant_path($tenantSlug, 'bookings') ? 'active' : '' ?>">Buchen</a>
|
||||
<a href="<?= e(tenant_url($tenantSlug)) ?>" class="<?= $currentPath === tenant_path($tenantSlug) ? 'active' : '' ?>">Kaffeekasse</a>
|
||||
<a href="<?= e(tenant_url($tenantSlug, 'bookings')) ?>" class="<?= $currentPath === tenant_path($tenantSlug, 'bookings') ? 'active' : '' ?>">Kaffee buchen</a>
|
||||
<?php if ($isTenantAdmin): ?>
|
||||
<a href="<?= e(tenant_url($tenantSlug, 'members')) ?>" class="<?= $currentPath === tenant_path($tenantSlug, 'members') ? 'active' : '' ?>">Mitglieder</a>
|
||||
<a href="<?= e(tenant_url($tenantSlug, 'products')) ?>" class="<?= $currentPath === tenant_path($tenantSlug, 'products') ? 'active' : '' ?>">Produkte</a>
|
||||
<a href="<?= e(tenant_url($tenantSlug, 'payments')) ?>" class="<?= $currentPath === tenant_path($tenantSlug, 'payments') ? 'active' : '' ?>">Einzahlungen</a>
|
||||
<a href="<?= e(tenant_url($tenantSlug, 'paper-sheets')) ?>" class="<?= $currentPath === tenant_path($tenantSlug, 'paper-sheets') ? 'active' : '' ?>">Papierlisten</a>
|
||||
<a href="<?= e(tenant_url($tenantSlug, 'rfid')) ?>" class="<?= $currentPath === tenant_path($tenantSlug, 'rfid') ? 'active' : '' ?>">RFID</a>
|
||||
<a href="<?= e(tenant_url($tenantSlug, 'rfid')) ?>" class="<?= $currentPath === tenant_path($tenantSlug, 'rfid') ? 'active' : '' ?>">Kartenleser</a>
|
||||
<?php endif; ?>
|
||||
<?php elseif ($tenantSlug !== ''): ?>
|
||||
<a href="<?= e(url('/')) ?>" class="<?= $currentPath === '/' ? 'active' : '' ?>">Start</a>
|
||||
<a href="<?= e(url('/register')) ?>" class="<?= $currentPath === '/register' ? 'active' : '' ?>">Pilot registrieren</a>
|
||||
<a href="<?= e(tenant_url($tenantSlug, 'login')) ?>" class="<?= $currentPath === tenant_path($tenantSlug, 'login') ? 'active' : '' ?>">Standort-Login</a>
|
||||
<a href="<?= e(url('/admin/login')) ?>" class="<?= str_starts_with($currentPath, '/admin') ? 'active' : '' ?>">Plattform</a>
|
||||
<a href="<?= e(url('/register')) ?>" class="<?= $currentPath === '/register' ? 'active' : '' ?>">Neue Kaffeeliste</a>
|
||||
<a href="<?= e(tenant_url($tenantSlug, 'login')) ?>" class="<?= $currentPath === tenant_path($tenantSlug, 'login') ? 'active' : '' ?>">Anmelden</a>
|
||||
<a href="<?= e(url('/admin/login')) ?>" class="<?= str_starts_with($currentPath, '/admin') ? 'active' : '' ?>">Plattform-Login</a>
|
||||
<?php else: ?>
|
||||
<a href="<?= e(url('/')) ?>" class="<?= $currentPath === '/' ? 'active' : '' ?>">Start</a>
|
||||
<a href="<?= e(url('/register')) ?>" class="<?= $currentPath === '/register' ? 'active' : '' ?>">Pilot registrieren</a>
|
||||
<a href="<?= e(url('/admin/login')) ?>" class="<?= str_starts_with($currentPath, '/admin') ? 'active' : '' ?>">Plattform</a>
|
||||
<a href="<?= e(url('/register')) ?>" class="<?= $currentPath === '/register' ? 'active' : '' ?>">Neue Kaffeeliste</a>
|
||||
<a href="<?= e(url('/admin/login')) ?>" class="<?= str_starts_with($currentPath, '/admin') ? 'active' : '' ?>">Plattform-Login</a>
|
||||
<?php endif; ?>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
<main class="shell main-shell">
|
||||
<?php if ($flashSuccess): ?>
|
||||
<div class="flash flash-success"><?= e((string) $flashSuccess) ?></div>
|
||||
<div class="flash flash-success" role="status"><?= e((string) $flashSuccess) ?></div>
|
||||
<?php endif; ?>
|
||||
<?php if ($flashError): ?>
|
||||
<div class="flash flash-error"><?= e((string) $flashError) ?></div>
|
||||
<div class="flash flash-error" role="alert"><?= e((string) $flashError) ?></div>
|
||||
<?php endif; ?>
|
||||
|
||||
Reference in New Issue
Block a user