Some improvements to the navbar

This commit is contained in:
dsc 2022-03-14 19:38:35 +02:00
parent fe588a77da
commit 5763e38f0a
2 changed files with 16 additions and 11 deletions

View File

@ -43,6 +43,9 @@
#dropdown:hover #dropdowncontent {
display: block;
}
#dropdowncontent a {
display: block;
}
#main{
width: 100%;
height: 80vh;

View File

@ -3,18 +3,20 @@
<li>
<div id="dropdown">
<i class="icon icon-menu"></i>
<div id="dropdowncontent">
<p>
{% if not user %}
<a href="{{ url_for('bp_routes.login') }}">Login</a>
{% else %}
<a href="{{ url_for('bp_routes.logout') }}">Logout</a>
<a href="{{ url_for('bp_routes.dashboard') }}">My Profile</a>
{% endif %}
<a href="{{ url_for('bp_routes.search') }}">Yell<span>WOW</span>Page search</a>
<a href="{{ url_for('bp_routes.about') }}">About</a>
<a href="{{ url_for('bp_api.api_root') }}">Api</a>
</p>
<a href="{{ url_for('bp_routes.root') }}">Home</a>
{% if not user %}
<a href="{{ url_for('bp_routes.login') }}">Login</a>
{% else %}
<a href="{{ url_for('bp_routes.dashboard') }}">My Profile</a>
{% endif %}
<a href="{{ url_for('bp_routes.search') }}">Search</a>
<a href="{{ url_for('bp_routes.about') }}">About</a>
<a href="{{ url_for('bp_api.api_root') }}">Api</a>
{% if user %}
<a href="{{ url_for('bp_routes.logout') }}">Logout</a>
{% endif %}
</div>
</div>
</li>