Вёрстка

This commit is contained in:
Anton Kamalov
2024-10-24 00:26:01 +03:00
parent ae6d4f2ca4
commit caa21d25ff
7 changed files with 90 additions and 14 deletions

View File

@@ -3,9 +3,10 @@
<head>
<meta charset="UTF-8">
<title>Успешно</title>
<link href="static/css/main.css" type="text/css" rel="stylesheet">
</head>
<body>
<h1>До свидания!</h1>
<button><a href="{{ url_for('index') }}">На главную страницу</a></button>
<h2>До свидания!</h2>
<a href="{{ url_for('index') }}"><button>На главную страницу</button></a>
</body>
</html>

View File

@@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<title>Привет мир!</title>
<link href="static/css/main.css" type="text/css" rel="stylesheet">
</head>
<body>
<h1>Hello World</h1>

View File

@@ -3,16 +3,23 @@
<head>
<meta charset="UTF-8">
<title>Главное меню</title>
<link href="static/css/main.css" type="text/css" rel="stylesheet">
</head>
<body>
<h1>Hello World</h1>
{% if 'role' in ses %}
<div class="logout">
<a href="{{ url_for('logout') }}"><button>Выход</button></a>
</div>
<h1>Здравствуйте, {{ ses['login'] }}!</h1>
{% else %}
<div class="login">
<a href="{{ url_for('auth_bp.auth') }}"><button>Авторизация</button></a>
</div>
<h1>Здравствуйте!</h1>
{% endif %}
<nav class="menu">
{% if 'role' in ses %}
<a href="{{ url_for('logout') }}">Выход</a>
{% else %}
<a href="{{ url_for('auth_bp.auth') }}">Авторизация</a>
{% endif %}
<a href="{{ url_for('requests_bp.requests') }}">Запросы</a>
<a href="{{ url_for('requests_bp.requests') }}"><button>Запросы</button></a>
</nav>
</body>
</html>