index
This commit is contained in:
149
index.php
149
index.php
@@ -53,39 +53,151 @@ if ($current_round) {
|
|||||||
<html lang="nl">
|
<html lang="nl">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Lootjes Trekking</title>
|
<title>Lootjes Trekking</title>
|
||||||
<style>
|
<style>
|
||||||
body { font-family: Arial, sans-serif; margin: 20px; }
|
:root {
|
||||||
h2 { color: #333; }
|
--primary: #4c8bf5;
|
||||||
button { padding: 6px 12px; margin-top: 8px; }
|
--secondary: #f7f9fc;
|
||||||
a { color: #0066cc; text-decoration: none; }
|
--accent: #2e6ae3;
|
||||||
|
--text: #333;
|
||||||
|
--muted: #777;
|
||||||
|
--card-bg: #fff;
|
||||||
|
--border: #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-family: "Segoe UI", Roboto, sans-serif;
|
||||||
|
background: var(--secondary);
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
color: var(--text);
|
||||||
|
}
|
||||||
|
|
||||||
|
header {
|
||||||
|
background: var(--primary);
|
||||||
|
color: white;
|
||||||
|
padding: 1rem 2rem;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
header h1 {
|
||||||
|
font-size: 1.4em;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
header form {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.logout {
|
||||||
|
background: white;
|
||||||
|
color: var(--primary);
|
||||||
|
border: none;
|
||||||
|
border-radius: 6px;
|
||||||
|
padding: 6px 12px;
|
||||||
|
cursor: pointer;
|
||||||
|
font-weight: 600;
|
||||||
|
transition: 0.2s;
|
||||||
|
}
|
||||||
|
button.logout:hover {
|
||||||
|
background: #e9efff;
|
||||||
|
}
|
||||||
|
|
||||||
|
main {
|
||||||
|
max-width: 800px;
|
||||||
|
margin: 30px auto;
|
||||||
|
background: var(--card-bg);
|
||||||
|
border-radius: 10px;
|
||||||
|
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
|
||||||
|
padding: 30px 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
color: var(--primary);
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: var(--accent);
|
||||||
|
text-decoration: none;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
a:hover { text-decoration: underline; }
|
a:hover { text-decoration: underline; }
|
||||||
.wishlist-box { border: 1px solid #ccc; padding: 10px; margin-top: 10px; background: #fafafa; }
|
|
||||||
.info { color: #555; }
|
.info {
|
||||||
.admin-link { margin-top: 20px; display: block; font-weight: bold; }
|
color: var(--muted);
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wishlist-box {
|
||||||
|
background: #fafbff;
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
padding: 15px;
|
||||||
|
border-radius: 8px;
|
||||||
|
margin-top: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wishlist-content {
|
||||||
|
background: #fff;
|
||||||
|
border: 1px solid #eee;
|
||||||
|
padding: 12px;
|
||||||
|
border-radius: 6px;
|
||||||
|
margin-top: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-link {
|
||||||
|
display: inline-block;
|
||||||
|
background: var(--accent);
|
||||||
|
color: white;
|
||||||
|
padding: 8px 12px;
|
||||||
|
border-radius: 6px;
|
||||||
|
text-decoration: none;
|
||||||
|
font-weight: 600;
|
||||||
|
margin-top: 10px;
|
||||||
|
transition: background 0.2s;
|
||||||
|
}
|
||||||
|
.admin-link:hover {
|
||||||
|
background: #255bc7;
|
||||||
|
}
|
||||||
|
|
||||||
|
footer {
|
||||||
|
text-align: center;
|
||||||
|
font-size: 0.8em;
|
||||||
|
color: var(--muted);
|
||||||
|
padding: 20px;
|
||||||
|
margin-top: 30px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
<header>
|
||||||
|
<h1>🎁 Lootjes Trekking</h1>
|
||||||
|
<form method="post">
|
||||||
|
<button type="submit" name="logout" class="logout">Afmelden</button>
|
||||||
|
</form>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main>
|
||||||
<h2>Welkom, <?= htmlspecialchars($displayName) ?>!</h2>
|
<h2>Welkom, <?= htmlspecialchars($displayName) ?>!</h2>
|
||||||
|
|
||||||
<form method="post" style="margin-bottom:15px;">
|
<p><a href="wishlist.php">📜 Mijn verlanglijstje aanpassen</a></p>
|
||||||
<button type="submit" name="logout">Uitloggen</button>
|
|
||||||
</form>
|
|
||||||
|
|
||||||
<p><a href="wishlist.php">Mijn eigen verlanglijstje aanpassen</a></p>
|
|
||||||
|
|
||||||
<?php if ($isAdmin): ?>
|
<?php if ($isAdmin): ?>
|
||||||
<p class="admin-link"><a href="admin.php">🛠 Naar de adminpagina</a></p>
|
<p><a href="admin.php" class="admin-link">🛠 Naar de adminpagina</a></p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<hr>
|
<hr style="margin: 25px 0; border: none; border-top: 1px solid #eee;">
|
||||||
|
|
||||||
<?php if (!$current_round): ?>
|
<?php if (!$current_round): ?>
|
||||||
<p class="info">Er is momenteel geen actieve trekking.</p>
|
<p class="info">Er is momenteel geen actieve trekking.</p>
|
||||||
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<h3>Actieve ronde: <?= htmlspecialchars($current_round['naam']) ?></h3>
|
<h3>🎄 Actieve ronde: <?= htmlspecialchars($current_round['naam']) ?></h3>
|
||||||
|
|
||||||
<?php if (!$lootje): ?>
|
<?php if (!$lootje): ?>
|
||||||
<p class="info">Je lootje is nog niet toegewezen.</p>
|
<p class="info">Je lootje is nog niet toegewezen.</p>
|
||||||
@@ -95,7 +207,7 @@ a:hover { text-decoration: underline; }
|
|||||||
|
|
||||||
<?php if ($ontvanger_wishlist): ?>
|
<?php if ($ontvanger_wishlist): ?>
|
||||||
<p><strong>Verlanglijstje van <?= htmlspecialchars($lootje) ?>:</strong></p>
|
<p><strong>Verlanglijstje van <?= htmlspecialchars($lootje) ?>:</strong></p>
|
||||||
<div style="border:1px solid #ddd; padding:10px; background:#fff;">
|
<div class="wishlist-content">
|
||||||
<?= nl2br(htmlspecialchars($ontvanger_wishlist)) ?>
|
<?= nl2br(htmlspecialchars($ontvanger_wishlist)) ?>
|
||||||
</div>
|
</div>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
@@ -104,6 +216,11 @@ a:hover { text-decoration: underline; }
|
|||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<footer>
|
||||||
|
© <?= date('Y') ?> Lootjes Trekking — Gemaakt met ❤️ voor gezelligheid
|
||||||
|
</footer>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user