276 lines
7.9 KiB
HTML
276 lines
7.9 KiB
HTML
|
|
<!DOCTYPE html>
|
||
|
|
<html lang="da" data-theme="light">
|
||
|
|
<head>
|
||
|
|
<meta charset="UTF-8">
|
||
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
|
<title>Pokedexter — {% block title %}Pokémon TCG samling{% endblock %}</title>
|
||
|
|
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>⚡</text></svg>">
|
||
|
|
<style>
|
||
|
|
:root {
|
||
|
|
--bg: #f5f0e5;
|
||
|
|
--bg-card: #faf7f0;
|
||
|
|
--bg-nav: #e8e0d0;
|
||
|
|
--text: #3a3228;
|
||
|
|
--text-muted: #7a7060;
|
||
|
|
--accent: #c0392b;
|
||
|
|
--accent-hover: #a93226;
|
||
|
|
--border: #ddd5c5;
|
||
|
|
--input-bg: #fcf9f4;
|
||
|
|
--shadow: rgba(0,0,0,0.08);
|
||
|
|
--tag-bg: #e8e0d0;
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-theme="dark"] {
|
||
|
|
--bg: #1a1816;
|
||
|
|
--bg-card: #252220;
|
||
|
|
--bg-nav: #201e1b;
|
||
|
|
--text: #e8e0d5;
|
||
|
|
--text-muted: #8a8070;
|
||
|
|
--accent: #e65c4a;
|
||
|
|
--accent-hover: #ff6b58;
|
||
|
|
--border: #3a3530;
|
||
|
|
--input-bg: #2a2724;
|
||
|
|
--shadow: rgba(0,0,0,0.3);
|
||
|
|
--tag-bg: #35302a;
|
||
|
|
}
|
||
|
|
|
||
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||
|
|
|
||
|
|
body {
|
||
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||
|
|
background: var(--bg);
|
||
|
|
color: var(--text);
|
||
|
|
min-height: 100vh;
|
||
|
|
transition: background 0.3s, color 0.3s;
|
||
|
|
}
|
||
|
|
|
||
|
|
nav {
|
||
|
|
background: var(--bg-nav);
|
||
|
|
border-bottom: 1px solid var(--border);
|
||
|
|
padding: 0 24px;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
height: 56px;
|
||
|
|
gap: 24px;
|
||
|
|
position: sticky;
|
||
|
|
top: 0;
|
||
|
|
z-index: 100;
|
||
|
|
transition: background 0.3s;
|
||
|
|
}
|
||
|
|
|
||
|
|
nav a {
|
||
|
|
color: var(--text);
|
||
|
|
text-decoration: none;
|
||
|
|
font-size: 0.95rem;
|
||
|
|
font-weight: 500;
|
||
|
|
padding: 6px 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
nav a:hover { color: var(--accent); }
|
||
|
|
|
||
|
|
nav .logo {
|
||
|
|
font-size: 1.2rem;
|
||
|
|
font-weight: 700;
|
||
|
|
color: var(--accent);
|
||
|
|
margin-right: auto;
|
||
|
|
}
|
||
|
|
|
||
|
|
.nav-right {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.theme-toggle {
|
||
|
|
background: none;
|
||
|
|
border: 1px solid var(--border);
|
||
|
|
border-radius: 8px;
|
||
|
|
padding: 4px 10px;
|
||
|
|
cursor: pointer;
|
||
|
|
font-size: 1rem;
|
||
|
|
color: var(--text);
|
||
|
|
transition: background 0.2s;
|
||
|
|
}
|
||
|
|
.theme-toggle:hover { background: var(--tag-bg); }
|
||
|
|
|
||
|
|
.container {
|
||
|
|
max-width: 1100px;
|
||
|
|
margin: 0 auto;
|
||
|
|
padding: 32px 24px;
|
||
|
|
}
|
||
|
|
|
||
|
|
h1 { font-size: 1.6rem; margin-bottom: 16px; }
|
||
|
|
h2 { font-size: 1.2rem; margin-bottom: 12px; color: var(--text-muted); }
|
||
|
|
|
||
|
|
.btn {
|
||
|
|
display: inline-block;
|
||
|
|
padding: 8px 18px;
|
||
|
|
border-radius: 8px;
|
||
|
|
border: none;
|
||
|
|
font-size: 0.9rem;
|
||
|
|
font-weight: 500;
|
||
|
|
cursor: pointer;
|
||
|
|
text-decoration: none;
|
||
|
|
transition: all 0.2s;
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-primary {
|
||
|
|
background: var(--accent);
|
||
|
|
color: #fff;
|
||
|
|
}
|
||
|
|
.btn-primary:hover { background: var(--accent-hover); }
|
||
|
|
|
||
|
|
.btn-outline {
|
||
|
|
background: transparent;
|
||
|
|
border: 1px solid var(--border);
|
||
|
|
color: var(--text);
|
||
|
|
}
|
||
|
|
.btn-outline:hover { background: var(--tag-bg); }
|
||
|
|
|
||
|
|
.btn-danger {
|
||
|
|
background: #c0392b;
|
||
|
|
color: #fff;
|
||
|
|
}
|
||
|
|
.btn-danger:hover { background: #e65c4a; }
|
||
|
|
|
||
|
|
.btn-sm { padding: 4px 12px; font-size: 0.8rem; }
|
||
|
|
|
||
|
|
input, select, textarea {
|
||
|
|
background: var(--input-bg);
|
||
|
|
border: 1px solid var(--border);
|
||
|
|
color: var(--text);
|
||
|
|
padding: 8px 12px;
|
||
|
|
border-radius: 8px;
|
||
|
|
font-size: 0.95rem;
|
||
|
|
width: 100%;
|
||
|
|
transition: border 0.2s;
|
||
|
|
}
|
||
|
|
input:focus, select:focus, textarea:focus {
|
||
|
|
outline: none;
|
||
|
|
border-color: var(--accent);
|
||
|
|
}
|
||
|
|
|
||
|
|
.card {
|
||
|
|
background: var(--bg-card);
|
||
|
|
border: 1px solid var(--border);
|
||
|
|
border-radius: 12px;
|
||
|
|
padding: 20px;
|
||
|
|
box-shadow: 0 2px 8px var(--shadow);
|
||
|
|
transition: background 0.3s, box-shadow 0.3s;
|
||
|
|
}
|
||
|
|
|
||
|
|
.card-grid {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
||
|
|
gap: 16px;
|
||
|
|
margin: 20px 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.card-set {
|
||
|
|
text-decoration: none;
|
||
|
|
color: var(--text);
|
||
|
|
display: block;
|
||
|
|
}
|
||
|
|
.card-set:hover .card {
|
||
|
|
border-color: var(--accent);
|
||
|
|
transform: translateY(-2px);
|
||
|
|
box-shadow: 0 4px 16px var(--shadow);
|
||
|
|
}
|
||
|
|
|
||
|
|
.tag {
|
||
|
|
display: inline-block;
|
||
|
|
background: var(--tag-bg);
|
||
|
|
padding: 2px 10px;
|
||
|
|
border-radius: 6px;
|
||
|
|
font-size: 0.8rem;
|
||
|
|
font-weight: 600;
|
||
|
|
font-family: monospace;
|
||
|
|
}
|
||
|
|
|
||
|
|
table {
|
||
|
|
width: 100%;
|
||
|
|
border-collapse: collapse;
|
||
|
|
margin: 16px 0;
|
||
|
|
}
|
||
|
|
th, td {
|
||
|
|
text-align: left;
|
||
|
|
padding: 10px 12px;
|
||
|
|
border-bottom: 1px solid var(--border);
|
||
|
|
}
|
||
|
|
th {
|
||
|
|
font-weight: 600;
|
||
|
|
color: var(--text-muted);
|
||
|
|
font-size: 0.85rem;
|
||
|
|
text-transform: uppercase;
|
||
|
|
letter-spacing: 0.5px;
|
||
|
|
}
|
||
|
|
tr:hover td { background: var(--tag-bg); }
|
||
|
|
|
||
|
|
.search-box {
|
||
|
|
display: flex;
|
||
|
|
gap: 8px;
|
||
|
|
margin: 20px 0;
|
||
|
|
}
|
||
|
|
.search-box input { flex: 1; }
|
||
|
|
|
||
|
|
#search-results {
|
||
|
|
margin-top: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.result-row {
|
||
|
|
padding: 10px 14px;
|
||
|
|
border-bottom: 1px solid var(--border);
|
||
|
|
display: flex;
|
||
|
|
justify-content: space-between;
|
||
|
|
align-items: center;
|
||
|
|
}
|
||
|
|
.result-row:last-child { border-bottom: none; }
|
||
|
|
.result-row:hover { background: var(--tag-bg); }
|
||
|
|
|
||
|
|
@media (max-width: 600px) {
|
||
|
|
.container { padding: 16px; }
|
||
|
|
nav { padding: 0 12px; gap: 12px; }
|
||
|
|
.card-grid { grid-template-columns: 1fr; }
|
||
|
|
.nav-right { gap: 8px; }
|
||
|
|
}
|
||
|
|
</style>
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<nav>
|
||
|
|
<a href="/" class="logo">⚡ Pokedexter</a>
|
||
|
|
<a href="/">Hjem</a>
|
||
|
|
<a href="/sets">Serier</a>
|
||
|
|
<a href="/search">Søg</a>
|
||
|
|
{% if request.state.user and request.state.user.role == "admin" %}
|
||
|
|
<a href="/admin">Admin</a>
|
||
|
|
{% endif %}
|
||
|
|
<div class="nav-right">
|
||
|
|
<button class="theme-toggle" onclick="toggleTheme()" title="Skift farvetema">🌓</button>
|
||
|
|
{% if request.state.user %}
|
||
|
|
<span style="font-size:0.85rem;color:var(--text-muted)">{{ request.state.user.username }}</span>
|
||
|
|
<a href="/logout" class="btn btn-outline btn-sm">Log ud</a>
|
||
|
|
{% endif %}
|
||
|
|
</div>
|
||
|
|
</nav>
|
||
|
|
|
||
|
|
<main class="container">
|
||
|
|
{% block content %}{% endblock %}
|
||
|
|
</main>
|
||
|
|
|
||
|
|
<script>
|
||
|
|
// Load saved theme
|
||
|
|
const saved = localStorage.getItem('pokedexter-theme');
|
||
|
|
if (saved) document.documentElement.setAttribute('data-theme', saved);
|
||
|
|
|
||
|
|
function toggleTheme() {
|
||
|
|
const html = document.documentElement;
|
||
|
|
const cur = html.getAttribute('data-theme');
|
||
|
|
const next = cur === 'dark' ? 'light' : 'dark';
|
||
|
|
html.setAttribute('data-theme', next);
|
||
|
|
localStorage.setItem('pokedexter-theme', next);
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
{% block scripts %}{% endblock %}
|
||
|
|
</body>
|
||
|
|
</html>
|