Small update in templates
This commit is contained in:
parent
b8cc005afe
commit
e10b2e0138
@ -9,9 +9,7 @@
|
||||
Ваша почта: {{ user.email }}<br>
|
||||
Ваш телефон: {{ user.phone }}<br>
|
||||
{% else %}
|
||||
Вы не вошли
|
||||
<a href="{% url 'login' %}">Вход</a>
|
||||
<a href="{% url 'register' %}">Регистрация</a>
|
||||
Вы не вошли. Используйте меню аккаунта для входа или авторизации.
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
|
@ -22,11 +22,10 @@
|
||||
<div class="dropdown-content">
|
||||
<a href="{% url 'index' %}">Главная</a>
|
||||
<a href="{% url 'index' %}">Создать заказ</a>
|
||||
<a href="{% url 'index' %}">Объявления</a>
|
||||
<a href="{% url 'orders-list' %}">Объявления</a>
|
||||
{# <a href="{% url 'index' %}">Все участники</a>#}
|
||||
|
||||
<!-- это осталось временно, мне нужно чтобы эти ресурсы были доступны с главной -->
|
||||
<a href="{% url 'account' %}">Аккаунт</a>
|
||||
<a href="{% url 'dev_index' %}">Dev</a>
|
||||
</div>
|
||||
</div>
|
||||
@ -36,33 +35,36 @@
|
||||
|
||||
<a href="{% url 'index' %}">Главная</a>
|
||||
<a href="{% url 'index' %}">Создать заказ</a>
|
||||
<a href="{% url 'index' %}">Объявления</a>
|
||||
<a href="{% url 'orders-list' %}">Объявления</a>
|
||||
{# <a href="{% url 'index' %}">Все участники</a>#}
|
||||
|
||||
<!-- это осталось временно, мне нужно чтобы эти ресурсы были доступны с главной -->
|
||||
<a href="{% url 'account' %}">Аккаунт</a>
|
||||
<a href="{% url 'dev_index' %}">Dev</a>
|
||||
|
||||
<div>
|
||||
|
||||
<div class="dropdown-wrapper">
|
||||
<button class="dropdown-button fa fa-bars"></button>
|
||||
<div class="dropdown-content">
|
||||
{% if user.is_authenticated %}
|
||||
<a href="{% url 'index' %}">Профиль</a>
|
||||
<a href="{% url 'index' %}">Мои заказы</a>
|
||||
<a href="{% url 'index' %}">Мой кошелёк</a>
|
||||
<a href="{% url 'index' %}">Мои записи</a>
|
||||
<a href="{% url 'account' %}">Мой аккаунт</a>
|
||||
<a href="{% url 'logout'%}?next={{request.path}}">Выход</a>
|
||||
{% else %}
|
||||
<span>Вы не вошли</span>
|
||||
<a href="{% url 'login'%}?next={{request.path}}">Вход</a>
|
||||
<a href="{% url 'register' %}?next={{request.path}}">Регистрация</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
</div>
|
||||
|
||||
|
||||
{% if user.is_authenticated %}
|
||||
Добро пожаловать, {{ user.name }} {{ user.surname }}<br>
|
||||
<a href="{% url 'logout'%}?next={{request.path}}">Выход</a>
|
||||
{% else %}
|
||||
Вы не вошли
|
||||
<a href="{% url 'login'%}?next={{request.path}}">Вход</a>
|
||||
{% endif %}
|
||||
|
||||
<main id="content">
|
||||
{% block content %} тут должен быть контент {% endblock %}
|
||||
</main>
|
||||
|
||||
|
||||
{# <footer> {% block footer %} {% endblock %} </footer>#}
|
||||
{# <script src="{% static 'js/main.js' %}"></script>#}
|
||||
</body>
|
||||
|
@ -1,8 +1,65 @@
|
||||
{% extends 'base.html' %}
|
||||
{% block title %} Арка | Главная {% endblock %}
|
||||
{% load static %}
|
||||
|
||||
{% block styles %}
|
||||
<style>
|
||||
main > h1{
|
||||
font-style: normal;
|
||||
font-weight: 900;
|
||||
font-size: 58px;
|
||||
line-height: 79px;
|
||||
color: #231765;
|
||||
|
||||
width: 80%;
|
||||
|
||||
display: flex;
|
||||
justify-content: left;
|
||||
|
||||
margin-left: 10%;
|
||||
margin-top: 192px;
|
||||
}
|
||||
.button-to > .button{
|
||||
display: inline-block;
|
||||
background: #231765;
|
||||
color: #fff;
|
||||
|
||||
|
||||
flex-direction: row;
|
||||
padding-left:40px;
|
||||
padding-top: 20px;
|
||||
padding-right: 40px;
|
||||
|
||||
|
||||
border-radius: 12px;
|
||||
gap: 10px;
|
||||
margin-top: 286px;
|
||||
margin-left: 5%;
|
||||
|
||||
text-align: center;
|
||||
|
||||
width: 260px;
|
||||
height: 70px;
|
||||
|
||||
text-decoration: none;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.button-to{
|
||||
margin-left: 187px;
|
||||
}
|
||||
|
||||
</style>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1> Главная страница </h1>
|
||||
|
||||
<h1>Создай обьявление и получи
|
||||
ремонт с гарантией качества</h1>
|
||||
<div class="button-to">
|
||||
<a class="button" href="#">Создать заказ</a>
|
||||
<a class="button" href="#">Стать исполнителем</a>
|
||||
</div>
|
||||
|
||||
<div style="margin-top: 50px">
|
||||
<h3>Ну а пока тут нет нужного контента можно послушать музычку</h3>
|
||||
|
Reference in New Issue
Block a user