951a653dc9
Co-authored-by: Copilot <copilot@github.com>
58 lines
1.9 KiB
HTML
58 lines
1.9 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>{% block title %}All You Can GET AI{% endblock %}</title>
|
|
<link
|
|
rel="stylesheet"
|
|
href="{{ url_for('static', filename='style.css') }}"
|
|
/>
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<nav>
|
|
<a href="{{ url_for('index') }}" class="brand">All You Can GET AI</a>
|
|
|
|
<button class="hamburger" aria-label="Open menu">
|
|
<span></span><span></span><span></span>
|
|
</button>
|
|
|
|
<div class="nav-links">
|
|
{% if session.get('access_token') %}
|
|
<a href="{{ url_for('dashboard') }}">Dashboard</a>
|
|
<a href="{{ url_for('gallery') }}">Gallery</a>
|
|
|
|
<a href="{{ url_for('generate_text') }}">Generate Text</a>
|
|
<a href="{{ url_for('generate_image') }}">Generate Image</a>
|
|
<a href="{{ url_for('generate_video') }}">Generate Video</a>
|
|
|
|
<a href="{{ url_for('profile') }}">Profile</a>
|
|
{% if session.get('user_role') == 'admin' %}
|
|
<a href="{{ url_for('admin') }}">Admin</a>
|
|
{% endif %}
|
|
<a href="{{ url_for('logout') }}">Log out</a>
|
|
{% else %}
|
|
<a href="{{ url_for('login') }}">Log in</a>
|
|
<a href="{{ url_for('register') }}">Register</a>
|
|
{% endif %}
|
|
</div>
|
|
</nav>
|
|
</header>
|
|
|
|
<div id="loading-overlay">
|
|
<div class="spinner"></div>
|
|
<span class="spinner-label">Working…</span>
|
|
</div>
|
|
|
|
<main>
|
|
{% with messages = get_flashed_messages(with_categories=true) %} {% for
|
|
category, message in messages %}
|
|
<div class="alert alert-{{ category }}">{{ message }}</div>
|
|
{% endfor %} {% endwith %} {% block content %}{% endblock %}
|
|
</main>
|
|
|
|
<script src="{{ url_for('static', filename='app.js') }}"></script>
|
|
</body>
|
|
</html>
|