/
AlexStudio-Code
/
global-warming
Обзор
Документация
Войти
/
AlexStudio-Code
/
global-warming
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
templates/base.html
116 строк
3 KB
AlexStudio Code
Add files via upload
19 апр 2025, 13:18
Не верифицирован
19 апр 2025, 13:18
765272d
Код
Авторство
О чём код?
<!DOCTYPE html> <html lang="ru"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>{% block title %}Авторизация{% endblock %}</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> <link rel="shortcut icon" href="https://i.imgur.com/Svz1Ed7.png"/> <style> html, body { height: 100%; margin: 0; } body { display: flex; flex-direction: column; font-family: Arial, sans-serif; background-color: #f4f4f4; } header { background: #4CAF50; color: white; padding: 10px 20px; text-align: center; } nav { margin: 20px 0; } nav a { color: white; text-decoration: none; margin: 0 15px; padding: 10px 15px; border-radius: 5px; transition: background 0.3s; } nav a:hover { background: #45a049; } .container { flex: 1; width: 90%; max-width: 800px; margin: auto; padding: 20px; background: white; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); } footer { text-align: center; padding: 20px; background: #4CAF50; color: white; } .form-group { margin-bottom: 15px; } .form-group label { display: block; margin-bottom: 5px; } .form-group input { width: 100%; padding: 10px; border-radius: 5px; border: 1px solid #ccc; } .btn { background-color: #4CAF50; color: white; padding: 10px 15px; border: none; border-radius: 5px; cursor: pointer; } .btn:hover { background-color: #45a049; } .nav-item { display: inline-block; margin: 0 15px; } </style> </head> <body> <header> <h1>Добро пожаловать в Авторизацию!</h1> <nav> <a href="{{ url_for('home') }}">Главная</a> <a href="{{ url_for('register') }}" class="nav-item">Регистрация</a> <a href="{{ url_for('login') }}" class="nav-item">Вход</a> {% if current_user.is_authenticated %} <form action="{{ url_for('logout') }}" method="POST" style="display:inline;"> <button type="submit" class="btn">Выйти</button> </form> {% endif %} </nav> </header> <div class="container"> {% with messages = get_flashed_messages() %} {% if messages %} <ul class="flashes"> {% for message in messages %} <li>{{ message }}</li> {% endfor %} </ul> {% endif %} {% endwith %} {% block content %}{% endblock %} </div> <footer> <p>© 2025 AlexStudio Code | All Rights Reserved </p> </footer> </body> </html>