40 lines
1.5 KiB
HTML
40 lines
1.5 KiB
HTML
<div class="navbar">
|
|
<nav>
|
|
<a href="/"><img src="{{url_for('static', filename='assets/img/wmgzon.png')}}" id="logo" class="not-required" alt="WMGZON Logo"></a>
|
|
<form action="test.html" method="get">
|
|
<input type="text" name="search" placeholder="Find your favourite products" class="search-bar">
|
|
<input type="submit" class="search-button">
|
|
</form>
|
|
{% if user != None: %}
|
|
<a href="/logout">Welcome, {{ user }}</a>
|
|
{% else %}
|
|
<a href="/login">Login/Signup</a>
|
|
{% endif %}
|
|
</nav>
|
|
|
|
<centre>
|
|
<div class="categories">
|
|
<a href="/products/CarParts" class="category">Car Parts</a>
|
|
<a href="/products/Animals" class="category">Animals</a>
|
|
<a href="/products/Sports" class="category">Sports</a>
|
|
<a href="/products/Books" class="category">Books</a>
|
|
<a href="/products/Phones" class="category">Phones</a>
|
|
<a href="/products/Music" class="category">Music</a>
|
|
</div>
|
|
</centre>
|
|
</div>
|
|
|
|
{% with messages = get_flashed_messages()%}
|
|
{% if messages %}
|
|
{% for message in messages %}
|
|
<label>
|
|
<input type="checkbox" class="alertCheckbox" autocomplete="off" />
|
|
<div class="alert error">
|
|
<span class="alertClose">X</span>
|
|
<span class="alertText">{{message}}
|
|
<br class="clear"/></span>
|
|
</div>
|
|
</label>
|
|
{% endfor%}
|
|
{% endif %}
|
|
{% endwith %} |