@@ -0,0 +1,69 @@
|
||||
<!doctype html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{% block title %}PBT – Öffi-Erfahrungen{% endblock %}</title>
|
||||
<style>
|
||||
:root { color-scheme: light dark; }
|
||||
body {
|
||||
font-family: system-ui, -apple-system, sans-serif;
|
||||
max-width: 700px;
|
||||
margin: 2rem auto;
|
||||
padding: 0 1rem;
|
||||
line-height: 1.5;
|
||||
}
|
||||
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
|
||||
header h1 { font-size: 1.3rem; margin: 0; }
|
||||
nav a { margin-left: 1rem; }
|
||||
.flash { padding: 0.6rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
|
||||
.flash.error { background: #fbdada; color: #7a1c1c; }
|
||||
.flash.success { background: #d8f5d8; color: #1c5e1c; }
|
||||
form { display: flex; flex-direction: column; gap: 0.8rem; max-width: 420px; }
|
||||
label { font-weight: 600; font-size: 0.9rem; }
|
||||
input, select, textarea {
|
||||
padding: 0.5rem;
|
||||
font-size: 1rem;
|
||||
border: 1px solid #999;
|
||||
border-radius: 6px;
|
||||
}
|
||||
button {
|
||||
padding: 0.6rem 1rem;
|
||||
font-size: 1rem;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
background: #1a5fb4;
|
||||
color: white;
|
||||
cursor: pointer;
|
||||
width: fit-content;
|
||||
}
|
||||
button.secondary { background: #999; }
|
||||
table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
|
||||
th, td { text-align: left; padding: 0.5rem; border-bottom: 1px solid #ddd; }
|
||||
.stars { color: #d4a017; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<h1>🚋 PBT – Öffi-Erfahrungen</h1>
|
||||
<nav>
|
||||
{% if current_user.is_authenticated %}
|
||||
<a href="{{ url_for('dashboard') }}">Meine Fahrten</a>
|
||||
<a href="{{ url_for('neue_fahrt') }}">Neue Fahrt</a>
|
||||
<a href="{{ url_for('logout') }}">Logout ({{ current_user.username }})</a>
|
||||
{% else %}
|
||||
<a href="{{ url_for('login') }}">Login</a>
|
||||
<a href="{{ url_for('register') }}">Registrieren</a>
|
||||
{% endif %}
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
{% with messages = get_flashed_messages(with_categories=true) %}
|
||||
{% for category, message in messages %}
|
||||
<div class="flash {{ category }}">{{ message }}</div>
|
||||
{% endfor %}
|
||||
{% endwith %}
|
||||
|
||||
{% block content %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user