feat: add home und login function

This commit is contained in:
robin committed 2026-10-31 20:16:34 +01:00
1 parent 535405cf99
commit 92807e857a
6 files changed
+200 -22

No files matched your search

+18 -5
View File
@@ -1,11 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<!doctype html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AudioRating</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="color-scheme" content="light dark">
<title>{% block title %}AudioRating{% endblock %}</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style/style.css') }}">
</head>
<body>
<header>
<div class="header-inner">
<a class="brand" href="{{ url_for('main.index') }}">AudioRating</a>
{% if session.get('name') %}
<span class="user">Angemeldet als {{ session['name'] }}</span>
{% endif %}
</div>
</header>
<main>
{% block content %}{% endblock %}
</main>
</body>
</html>
+4
View File
@@ -1,4 +1,8 @@
{% extends "base.html" %}
{% block content %}
<form action="{{ url_for('main.test') }}" method="get">
<button type="submit">Test starten</button>
</form>
{% endblock %}
+18
View File
@@ -0,0 +1,18 @@
{% extends "base.html" %}
{% block content %}
<div class="login-wrap">
<div class="login-card">
<h1>Willkommen</h1>
<p class="login-hint">Bitte gib deinen Namen ein, um den Test zu starten.</p>
<form method="post" action="{{ url_for('main.index') }}">
<label for="name">Name</label>
<input id="name" name="name" type="text" autocomplete="name" required autofocus>
<button type="submit">Starten</button>
</form>
</div>
</div>
{% endblock %}