221 lines
5.9 KiB
PHP
221 lines
5.9 KiB
PHP
<!DOCTYPE html>
|
||
<html lang="de">
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<title>{{ $eventName }} – Einladungs-QR</title>
|
||
@php
|
||
$qrSize = $layout['qr']['size_px'] ?? 500;
|
||
@endphp
|
||
<style>
|
||
:root {
|
||
--accent: {{ $layout['accent'] }};
|
||
--secondary: {{ $layout['secondary'] }};
|
||
--text: {{ $layout['text'] }};
|
||
--badge: {{ $layout['badge'] }};
|
||
--container-padding: 48px;
|
||
--qr-size: {{ $qrSize }}px;
|
||
--background: {{ $backgroundStyle }};
|
||
}
|
||
|
||
* {
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
html, body {
|
||
margin: 0;
|
||
padding: 0;
|
||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||
color: var(--text);
|
||
}
|
||
|
||
body {
|
||
min-height: 100%;
|
||
position: relative;
|
||
}
|
||
|
||
.layout-wrapper {
|
||
width: 100%;
|
||
height: 100%;
|
||
padding: var(--container-padding);
|
||
display: flex;
|
||
flex-direction: column;
|
||
justify-content: space-between;
|
||
background: var(--background);
|
||
}
|
||
|
||
.header {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 12px;
|
||
}
|
||
|
||
.badge {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
background: var(--badge);
|
||
color: #fff;
|
||
padding: 10px 18px;
|
||
border-radius: 999px;
|
||
font-size: 15px;
|
||
font-weight: 600;
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.05em;
|
||
width: fit-content;
|
||
}
|
||
|
||
.logo {
|
||
max-width: 140px;
|
||
max-height: 80px;
|
||
object-fit: contain;
|
||
}
|
||
|
||
.event-title {
|
||
font-size: 72px;
|
||
font-weight: 700;
|
||
line-height: 1.05;
|
||
margin: 0;
|
||
}
|
||
|
||
.subtitle {
|
||
font-size: 24px;
|
||
font-weight: 500;
|
||
color: rgba(17, 24, 39, 0.7);
|
||
margin: 0;
|
||
}
|
||
|
||
.content {
|
||
display: grid;
|
||
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
||
gap: 40px;
|
||
margin-top: 48px;
|
||
align-items: center;
|
||
}
|
||
|
||
.info-card {
|
||
background: rgba(255, 255, 255, 0.65);
|
||
border-radius: 32px;
|
||
padding: 32px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 18px;
|
||
box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
|
||
}
|
||
|
||
.info-card h2 {
|
||
margin: 0;
|
||
font-size: 32px;
|
||
font-weight: 700;
|
||
}
|
||
|
||
.info-card p {
|
||
margin: 0;
|
||
font-size: 18px;
|
||
line-height: 1.6;
|
||
}
|
||
|
||
.instructions {
|
||
margin: 0;
|
||
padding-left: 22px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 12px;
|
||
}
|
||
|
||
.instructions li {
|
||
font-size: 18px;
|
||
line-height: 1.5;
|
||
}
|
||
|
||
.link-box {
|
||
background: var(--secondary);
|
||
color: var(--text);
|
||
font-family: "Courier New", Courier, monospace;
|
||
border-radius: 16px;
|
||
padding: 18px 20px;
|
||
font-size: 18px;
|
||
word-break: break-all;
|
||
}
|
||
|
||
.qr-wrapper {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
gap: 18px;
|
||
}
|
||
|
||
.qr-wrapper img {
|
||
width: var(--qr-size);
|
||
height: var(--qr-size);
|
||
}
|
||
|
||
.cta {
|
||
font-size: 20px;
|
||
font-weight: 600;
|
||
color: var(--accent);
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.08em;
|
||
}
|
||
|
||
.footer {
|
||
margin-top: 48px;
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: flex-end;
|
||
font-size: 16px;
|
||
color: rgba(17, 24, 39, 0.6);
|
||
}
|
||
|
||
.footer strong {
|
||
color: var(--accent);
|
||
}
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<div class="layout-wrapper">
|
||
<div class="header">
|
||
<div style="display:flex; align-items:center; justify-content:space-between; gap:24px;">
|
||
<span class="badge">{{ $layout['badge_label'] ?? 'Digitale Gästebox' }}</span>
|
||
@if(!empty($layout['logo_url']))
|
||
<img src="{{ $layout['logo_url'] }}" alt="Logo" class="logo" />
|
||
@endif
|
||
</div>
|
||
<h1 class="event-title">{{ $layout['headline'] ?? $eventName }}</h1>
|
||
@if(!empty($layout['subtitle']))
|
||
<p class="subtitle">{{ $layout['subtitle'] }}</p>
|
||
@endif
|
||
</div>
|
||
|
||
<div class="content">
|
||
<div class="info-card">
|
||
<h2>{{ $layout['instructions_heading'] ?? "So funktioniert's" }}</h2>
|
||
<p>{{ $layout['description'] }}</p>
|
||
@if(!empty($layout['instructions']))
|
||
<ul class="instructions">
|
||
@foreach($layout['instructions'] as $step)
|
||
<li>{{ $step }}</li>
|
||
@endforeach
|
||
</ul>
|
||
@endif
|
||
<div>
|
||
<div class="cta">{{ $layout['link_heading'] ?? 'Alternative zum Einscannen' }}</div>
|
||
<div class="link-box">{{ $layout['link_label'] ?? $tokenUrl }}</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="qr-wrapper">
|
||
<img src="{{ $qrPngDataUri }}" alt="QR-Code zum Event {{ $eventName }}">
|
||
<div class="cta">{{ $layout['cta_label'] ?? 'Scan mich & starte direkt' }}</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="footer">
|
||
<div>
|
||
<strong>{{ config('app.name', 'Fotospiel') }}</strong> – Gästebox & Fotochallenges
|
||
</div>
|
||
<div>Einladungsgültigkeit: {{ $joinToken->expires_at ? $joinToken->expires_at->isoFormat('LLL') : 'bis Widerruf' }}</div>
|
||
</div>
|
||
</div>
|
||
</body>
|
||
</html>
|