preise ins Template gebracht

This commit is contained in:
Bkolb 2026-04-02 21:02:05 +02:00
parent 23c29356db
commit 44792dc98f
2 changed files with 158 additions and 183 deletions

View File

@ -239,7 +239,12 @@ def home():
@app.route("/preise") @app.route("/preise")
@login_required @login_required
def preise(): def preise():
return render_page("preise", "Preise") return render_template(
"preise.html",
page_title="Preise",
active_page="preise",
**get_current_user()
)
@app.route("/allgemein") @app.route("/allgemein")

View File

@ -1,36 +1,7 @@
<!DOCTYPE html> {% extends "base.html" %}
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ page_title }}</title>
<link rel="stylesheet" href="/styles/site.css">
</head>
<body>
<header class="site-header">
<div class="header-inner">
<div class="logo-area">
<a href="/home">
<img src="/images/Logo-Compliance-Verification-bg-1.png" alt="Logo" class="site-logo">
</a>
</div>
<nav class="top-nav"> {% block content %}
<a href="/home" class="{% if active_page == 'home' %}active{% endif %}">Home</a>
<a href="/preise" class="{% if active_page == 'preise' %}active{% endif %}">Preise</a>
<a href="/allgemein" class="{% if active_page == 'allgemein' %}active{% endif %}">Allgemein</a>
{% if is_logged_in %}
<span class="user-box">{{ user_name }}</span>
<a href="/logout">Logout</a>
{% else %}
<a href="/login">Login</a>
{% endif %}
</nav>
</div>
</header>
<main class="content-area">
<section class="hero-box"> <section class="hero-box">
<h1>Klare Preise für Ihre KI-Compliance</h1> <h1>Klare Preise für Ihre KI-Compliance</h1>
<p>Wählen Sie zwischen sofort buchbaren Modulen und individueller Unternehmenslösung.</p> <p>Wählen Sie zwischen sofort buchbaren Modulen und individueller Unternehmenslösung.</p>
@ -185,6 +156,5 @@
</div> </div>
</div> </div>
</section> </section>
</main>
</body> {% endblock %}
</html>