133 lines
6.7 KiB
PHP
133 lines
6.7 KiB
PHP
<?php
|
||
/** @var string $error */
|
||
/** @var string $first */
|
||
/** @var string $last */
|
||
/** @var bool $remember */
|
||
/** @var string $next */
|
||
?>
|
||
<!doctype html>
|
||
<html lang="de">
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
||
<meta name="theme-color" content="#196abc">
|
||
<meta name="color-scheme" content="light">
|
||
<meta name="sw-url" content="<?= e(url('/sw.js')) ?>">
|
||
<meta name="mobile-web-app-capable" content="yes">
|
||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||
<meta name="apple-mobile-web-app-status-bar-style" content="default">
|
||
<meta name="apple-mobile-web-app-title" content="Drink it cold">
|
||
<meta name="application-name" content="Drink it cold">
|
||
<title>Anmelden · Drink it cold</title>
|
||
<link rel="manifest" href="<?= e(url('/manifest.webmanifest')) ?>">
|
||
<link rel="icon" type="image/svg+xml" href="<?= e(asset('favicon.svg')) ?>">
|
||
<link rel="icon" type="image/png" sizes="32x32" href="<?= e(asset('icons/icon-32.png')) ?>">
|
||
<link rel="apple-touch-icon" sizes="180x180" href="<?= e(asset('icons/apple-touch-icon-180.png')) ?>">
|
||
<link rel="preload" as="image" href="<?= e(asset('img/hero-1280.webp')) ?>" imagesrcset="<?= e(asset('img/hero-800.webp')) ?> 800w, <?= e(asset('img/hero-1280.webp')) ?> 1280w" imagesizes="50vw">
|
||
<link rel="preload" as="font" type="font/woff2" href="<?= e(asset('fonts/manrope-latin.woff2')) ?>" crossorigin>
|
||
<link rel="stylesheet" href="<?= e(asset('app.css')) ?>">
|
||
<script src="<?= e(asset('app.js')) ?>" defer></script>
|
||
</head>
|
||
<body class="auth-page">
|
||
<div class="auth-shell">
|
||
<section class="auth-visual" aria-label="Drink it cold – Kühlanhänger-Vermietung">
|
||
<img class="auth-visual__bg"
|
||
src="<?= e(asset('img/hero-1280.webp')) ?>"
|
||
srcset="<?= e(asset('img/hero-800.webp')) ?> 800w, <?= e(asset('img/hero-1280.webp')) ?> 1280w"
|
||
sizes="50vw" alt="Kühlanhänger von Drink it cold">
|
||
<div class="auth-visual__shade"></div>
|
||
<div class="auth-visual__content">
|
||
<div class="auth-brand">
|
||
<img src="<?= e(asset('logo-mark.svg')) ?>" alt="" width="56" height="40">
|
||
<span>
|
||
<strong>Drink it cold</strong>
|
||
<small>Kühlanhänger-Vermietung</small>
|
||
</span>
|
||
</div>
|
||
<div class="auth-visual__claim">
|
||
<p class="eyebrow">Terminplanung</p>
|
||
<h2>Alle Anhänger.<br>Ein Blick.</h2>
|
||
<p>Buchungen, Übergaben und Erinnerungen zentral – damit niemand mehr im Kalender blättern muss.</p>
|
||
<ul class="auth-points">
|
||
<li><svg class="ico" aria-hidden="true"><use href="#i-check"/></svg> Kalender für Tag, Woche und Monat</li>
|
||
<li><svg class="ico" aria-hidden="true"><use href="#i-check"/></svg> Automatische Erinnerungen fürs Team</li>
|
||
<li><svg class="ico" aria-hidden="true"><use href="#i-check"/></svg> Zentrale Buchungsdaten für alle</li>
|
||
</ul>
|
||
</div>
|
||
<p class="auth-visual__foot">Zum Kühlen. Für Feste. Seit jeher.</p>
|
||
</div>
|
||
</section>
|
||
|
||
<section class="auth-panel">
|
||
<div class="auth-card">
|
||
<a class="auth-card__mobilebrand" href="<?= e(url('/')) ?>" aria-label="Drink it cold">
|
||
<img src="<?= e(asset('logo-mark.svg')) ?>" alt="" width="44" height="32">
|
||
<span>Drink it cold</span>
|
||
</a>
|
||
<p class="eyebrow">Interner Bereich</p>
|
||
<h1>Anmelden</h1>
|
||
<p class="auth-card__lede">Bitte mit dem vom Administrator angelegten Zugang anmelden.</p>
|
||
|
||
<?php if ($error !== ''): ?>
|
||
<div class="flash flash--error" role="alert">
|
||
<svg class="ico" aria-hidden="true"><use href="#i-alert"/></svg>
|
||
<span><?= e($error) ?></span>
|
||
</div>
|
||
<?php endif; ?>
|
||
|
||
<form method="post" action="<?= e(url('/login')) ?>" class="auth-form">
|
||
<?= csrf_field() ?>
|
||
<input type="hidden" name="next" value="<?= e_attr($next) ?>">
|
||
<div class="field-row">
|
||
<label class="field">
|
||
<span>Vorname</span>
|
||
<input type="text" name="first_name" value="<?= e($first) ?>" autocomplete="given-name" required autofocus>
|
||
</label>
|
||
<label class="field">
|
||
<span>Nachname</span>
|
||
<input type="text" name="last_name" value="<?= e($last) ?>" autocomplete="family-name" required>
|
||
</label>
|
||
</div>
|
||
<label class="field">
|
||
<span>Passwort</span>
|
||
<input type="password" name="password" autocomplete="current-password" required>
|
||
</label>
|
||
<label class="check">
|
||
<input type="checkbox" name="remember" value="1"<?= $remember ? ' checked' : '' ?>>
|
||
<span>Auf diesem Gerät angemeldet bleiben</span>
|
||
</label>
|
||
<button class="btn primary btn--block" type="submit">Anmelden</button>
|
||
</form>
|
||
|
||
<p class="auth-card__hint">
|
||
<svg class="ico" aria-hidden="true"><use href="#i-snow"/></svg>
|
||
Kein Zugang? Benutzerkonten werden ausschließlich vom Administrator eingerichtet – eine Selbstregistrierung gibt es nicht.
|
||
</p>
|
||
|
||
<p class="auth-card__legal">
|
||
<a href="<?= e(url('/impressum')) ?>">Impressum</a>
|
||
<span aria-hidden="true">·</span>
|
||
<a href="<?= e(url('/datenschutz')) ?>">Datenschutz</a>
|
||
<span aria-hidden="true">·</span>
|
||
<span>Nur technisch notwendige Cookies, kein Tracking.</span>
|
||
</p>
|
||
</div>
|
||
<footer class="auth-foot">
|
||
<span>© <?= date('Y') ?> Drink it cold · Neuss</span>
|
||
<nav aria-label="Rechtliches">
|
||
<a href="<?= e(url('/impressum')) ?>">Impressum</a>
|
||
<a href="<?= e(url('/datenschutz')) ?>">Datenschutz</a>
|
||
</nav>
|
||
</footer>
|
||
</section>
|
||
</div>
|
||
|
||
<svg width="0" height="0" aria-hidden="true" style="position:absolute">
|
||
<defs>
|
||
<symbol id="i-check" viewBox="0 0 24 24"><path d="m5 12.5 4.5 4.5L19 6.5"/></symbol>
|
||
<symbol id="i-alert" viewBox="0 0 24 24"><path d="M12 3.5 2.5 20.5h19z"/><path d="M12 9.5v5M12 17.6v.4"/></symbol>
|
||
<symbol id="i-snow" viewBox="0 0 24 24"><path d="M12 2v20M4.5 6.8l15 10.4M19.5 6.8 4.5 17.2M12 6.4 9.6 4M12 6.4 14.4 4M12 17.6 9.6 20M12 17.6l2.4 2.4"/></symbol>
|
||
</defs>
|
||
</svg>
|
||
</body>
|
||
</html>
|