Changes all images to bmp and updated tests
This commit is contained in:
parent
d6d9a1479e
commit
fa76e11f83
@ -74,7 +74,6 @@ def id(id: int):
|
||||
flash(f"No Product available with id {id}", "warning")
|
||||
return redirect("/")
|
||||
|
||||
print(product.name)
|
||||
return render_template(
|
||||
'index.html',
|
||||
content='product.html',
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 8.3 KiB |
BIN
static/assets/img/cart.bmp
Normal file
BIN
static/assets/img/cart.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 977 KiB |
BIN
static/assets/img/wmgzon.bmp
Normal file
BIN
static/assets/img/wmgzon.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.0 MiB |
@ -86,11 +86,22 @@ nav form {
|
||||
top: -2rem;
|
||||
}
|
||||
|
||||
.vert-align {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
#logo {
|
||||
width: 8rem;
|
||||
width: 10rem;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
#cart {
|
||||
height: 4rem;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
*::-webkit-scrollbar,
|
||||
*::-webkit-scrollbar-thumb {
|
||||
width: 26px;
|
||||
|
@ -1,15 +1,18 @@
|
||||
<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>
|
||||
<a href="/"><img src="{{url_for('static', filename='assets/img/wmgzon.bmp')}}" id="logo" class="not-required" alt="WMGZON Logo"></a>
|
||||
<form action="" method="get">
|
||||
<input type="text" name="search" placeholder="Find your favourite products" class="search-bar">
|
||||
<input type="submit" class="search-button">
|
||||
</form>
|
||||
<div class="vert-align">
|
||||
<a href="/"><img src="{{url_for('static', filename='assets/img/cart.bmp')}}" id="cart" alt="Shopping Cart"></a>
|
||||
{% if user != None: %}
|
||||
<a href="/logout">Welcome, {{ user.username }}</a>
|
||||
{% else %}
|
||||
<a href="/login">Login/Signup</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<centre>
|
||||
|
@ -6,7 +6,7 @@ from models.products.product import Product
|
||||
|
||||
product = Product(
|
||||
"product",
|
||||
"image.png",
|
||||
"brake-disk.bmp",
|
||||
"description",
|
||||
10.00,
|
||||
1,
|
||||
|
Loading…
Reference in New Issue
Block a user