-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Доработан шаблон #25
Доработан шаблон #25
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<a href="#"> | ||
<button type="button" class="btn btn-info border border-white" role="button" data-bs-toggle="button"> | ||
{{ name }} | ||
</button> | ||
</a> | ||
{% with request.path as current_url_name %} | ||
<a href="{{ url_name }}" | ||
class="nav-link border border-white bg-cyan-300 hover:bg-violet-950 text-white p-2 w-44 text-left | ||
{% if current_url_name == url_name %}bg-violet-950{% endif %}"> | ||
{{ name }} | ||
</a> | ||
{% endwith %} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,44 @@ | ||
<div class="offcanvas offcanvas-start" style="background-color: #6f42c1" data-bs-backdrop="static" tabindex="-1" id="staticBackdrop" aria-labelledby="staticBackdropLabel"> | ||
|
||
<div class="offcanvas-body"> | ||
<ul class="nav-list" style="list-style-type:none"> | ||
<div class="logo-img p-5"> | ||
<img src="https://paraicehockey.ru/wp-content/uploads/2022/02/FAH_q.png" width="150" height="150"> | ||
<div class="offcanvas offcanvas-start bg-violet-950" data-bs-backdrop="static" tabindex="-1" | ||
id="staticBackdrop" aria-labelledby="staticBackdropLabel"> | ||
|
||
<div class="offcanvas-body mx-auto"> | ||
<ul class="nav-list" style="list-style-type:none"> | ||
<div class="container py-5"> | ||
<div class="row"> | ||
<div class="col-4 flex justify-end"> | ||
<span class="logo-img"> | ||
<img src="https://paraicehockey.ru/wp-content/uploads/2022/02/FAH_q.png" width="100" height="100"> | ||
</span> | ||
</div> | ||
<div class="col text-white flex justify-start"> | ||
Мир хокея<br>для особенных<br>детей | ||
</div> | ||
</div> | ||
<li>{% include "includes/button.html" with name="Пользователи" %}</li> | ||
<li>{% include "includes/button.html" with name="Команды" %}</li> | ||
<li>{% include "includes/button.html" with name="Соревнования" %}</li> | ||
<li>{% include "includes/button.html" with name="Аналитика" %}</li> | ||
<li>{% include "includes/button.html" with name="Выгрузки" %}</li> | ||
</ul> | ||
</div> | ||
</div> | ||
<li class="nav-item py-2"> | ||
{% url 'main:users' as url_name %}{% include "includes/button.html" with name="Пользователи" %} | ||
</li> | ||
<li class="nav-item py-2"> | ||
{% url 'main:teams' as url_name %}{% include "includes/button.html" with name="Команды" %} | ||
</li> | ||
<li class="nav-item py-2"> | ||
{% url 'main:competitions' as url_name %}{% include "includes/button.html" with name="Соревнования" %} | ||
</li> | ||
<li class="nav-item py-2"> | ||
{% url 'main:analytics' as url_name %}{% include "includes/button.html" with name="Аналитика" %} | ||
</li> | ||
<li class="nav-item py-2"> | ||
{% url 'main:unloads' as url_name %}{% include "includes/button.html" with name="Выгрузки" %} | ||
</li> | ||
</ul> | ||
</div> | ||
|
||
<div class="offcanvas-footer p-5"> | ||
<button type="button" class="btn" data-bs-dismiss="offcanvas" aria-label="Close"> | ||
<i class="bi bi-caret-left-fill"></i> | ||
</button> | ||
</div> | ||
</div> | ||
<div class="offcanvas-footer pb-5"> | ||
<button type="button" class="btn ps-16" data-bs-dismiss="offcanvas" aria-label="Close"> | ||
<i class="bi bi-caret-left fs-3" style="color: white;"></i> | ||
</button> | ||
<button type="button" class="btn"> | ||
<i class="bi bi-caret-right-fill fs-3" style="color: white;"></i> | ||
</button> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Лучше наверное оставить одну кнопку т.к. вторая по сути бессмысленная (закрыть сайдбар можно только из сайдбара, а открыть только из футера) |
||
</div> | ||
</div> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,24 @@ | ||
<div class="footer-copyright text-center py-3"> | ||
<nav class="navbar navbar-light" style="background-color: #0dcaf0"> | ||
<div class="container py-2"> | ||
<div class="footer-copyright py-3"> | ||
<nav class="navbar navbar-light bg-cyan-300"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Тут стоит убрать |
||
<div class="container"> | ||
<div class="nav nav-pills justify-content-start"> | ||
<button class="btn" type="button" data-bs-toggle="offcanvas" data-bs-target="#staticBackdrop" aria-controls="staticBackdrop"> | ||
<i class="bi bi-caret-right-fill"></i> | ||
<button class="btn" type="button"> | ||
<i class="bi bi-caret-left-fill fs-3" style="color: white;"></i> | ||
</button> | ||
<nav aria-label="Page navigation example"> | ||
<ul class="pagination"> | ||
<button class="btn" type="button" data-bs-toggle="offcanvas" data-bs-target="#staticBackdrop" | ||
aria-controls="staticBackdrop"> | ||
<i class="bi bi-caret-right fs-3" style="color: white;"></i> | ||
</button> | ||
<nav aria-label="Page navigation example" class="p-2"> | ||
<ul class="pagination ps-8"> | ||
<li class="page-item"> | ||
<a class="page-link" href="#" aria-label="Previous"> | ||
<i class="bi bi-caret-left-fill"></i> | ||
</a> | ||
</li> | ||
<li class="page-item"><a class="page-link" href="#">1</a></li> | ||
<li class="page-item"><a class="page-link" href="#">2</a></li> | ||
<li class="page-item"><a class="page-link" href="#">3</a></li> | ||
<li class="page-item"><a class="page-link hover:text-black" href="#">1</a></li> | ||
<li class="page-item"><a class="page-link hover:text-black" href="#">2</a></li> | ||
<li class="page-item"><a class="page-link hover:text-black" href="#">3</a></li> | ||
<li class="page-item"> | ||
<a class="page-link" href="#" aria-label="Next"> | ||
<i class="bi bi-caret-right-fill"></i> | ||
|
@@ -24,8 +28,12 @@ | |
</nav> | ||
</div> | ||
<ul class="nav nav-pills justify-content-end"> | ||
{% include "includes/button.html" with name="+ Пользователь" %} | ||
{% include "includes/button.html" with name="Выгрузить" %} | ||
{% with request.resolver_match.view_name as view_name %} | ||
{% if view_name == 'main:users' %}{% include "includes/button.html" with name="+ Пользователь" %}{% endif %} | ||
{% if view_name == 'main:teams' %}{% include "includes/button.html" with name="+ Команда" %}{% endif %} | ||
{% if view_name == 'main:competitions' %}{% include "includes/button.html" with name="+ Соревнование" %}{% endif %} | ||
{% if view_name != 'main:unloads' %}{% include "includes/button.html" with name="Выгрузить" %}{% endif %} | ||
{% endwith %} | ||
</ul> | ||
</div> | ||
</nav> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Тут можно ещё улучшить и менять цвет текста кнопки, чтобы лучше читалось (кнопка тёмная цвет светлый и наоборот)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
оставила текст кнопки белым, т.к. на дизайн-проекте шрифт белый