Переписан стиль фронтенда

This commit is contained in:
2021-07-16 11:51:37 +03:00
parent 71e00fab74
commit d76e65b674
14 changed files with 23838 additions and 115 deletions

View File

@@ -1,57 +1,78 @@
<!DOCTYPE html>
<html>
<html class="has-navbar-fixed-top">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Dyxless</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.2/css/bulma.min.css" />
</head>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Dyxless</title>
<link rel="stylesheet" href="{{ url_for('static', filename = 'css/bulma.min.css') }}" rel="stylesheet" type="text/css">
<script src="{{ url_for('static', filename = 'js/base.js') }}"></script>
<script src="https://kit.fontawesome.com/6bc4cd9a8e.js" crossorigin="anonymous"></script>
</head>
<body>
<section class="hero is-primary is-fullheight">
<body>
<header class="navbar has-shadow is-fixed-top">
<div class="container">
<div class="navbar-brand">
<a class="navbar-item" href="{{ url_for('main.index') }}">
Dyxless
</a>
<div class="hero-head">
<nav class="navbar">
<div class="container">
<a role="button" class="navbar-burger burger" aria-label="menu" aria-expanded="false" data-target="navbarMain">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>
<div id="navbarMenuHeroA" class="navbar-menu">
<div class="navbar-end">
<a href="{{ url_for('main.index') }}" class="navbar-item">
Домой
<div id="navbarMain" class="navbar-menu">
<div class="navbar-end">
{% if not current_user.is_authenticated %}
<a href="{{ url_for('auth.login') }}" class="navbar-item">
Войти
</a>
<span class="navbar-item">
<a href="{{ url_for('auth.signup') }}" class="button is-success is-outlined">
<strong>Зарегистрироваться</strong>
</a>
{% if not current_user.is_authenticated %}
<a href="{{ url_for('auth.login') }}" class="navbar-item">
Вход
</span>
{% else %}
<div class="navbar-item has-dropdown is-hoverable">
<a href="{{ url_for('main.profile') }}" class="navbar-link">
{{ current_user.username }}
</a>
<a href="{{ url_for('auth.signup') }}" class="navbar-item">
Регистрация
</a>
{% endif %}
{% if current_user.is_authenticated %}
<a href="{{ url_for('auth.logout') }}" class="navbar-item">
Выйти
</a>
{% endif %}
{% if current_user.is_authenticated %}
<a href="{{ url_for('main.profile') }}" class="navbar-item">
{{ current_user.name }}
</a>
{% endif %}
<div class="navbar-dropdown is-right">
<a href="{{ url_for('main.profile') }}" class="navbar-item">
Профиль
</a>
<hr class="dropdown-divider">
<a href="{{ url_for('auth.logout') }}" class="navbar-item">
Выйти
</a>
</div>
</div>
{% endif %}
</div>
</div>
</nav>
</div>
<div class="hero-body">
<div class="container has-text-centered">
{% block content %}
{% endblock %}
</div>
</div>
</section>
</body>
</header>
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, text in messages%}
<div class="notification {{ category }}">
<button class="delete"></button>
{{ text }}
</div>
{% endfor %}
{% endif %}
{% endwith %}
{% block content %}
{% endblock %}
</body>
</html>