mirror of
https://github.com/Alvin-Zilverstand/Schoolkantine.git
synced 2026-03-07 05:53:00 +01:00
Refactor menu item categories and update display styles
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
<div class="menu-list">
|
<div class="menu-list">
|
||||||
<h2>Menu</h2>
|
<h2>Menu</h2>
|
||||||
<div class="menu-item" onclick="showCategory('Broodjes')">Broodjes</div>
|
<div class="menu-item" onclick="showCategory('Broodjes')">Broodjes</div>
|
||||||
<div class="menu-item" onclick="showCategory('drinks')">Koude Dranken</div>
|
<div class="menu-item" onclick="showCategory('Koude-Dranken')">Koude Dranken</div>
|
||||||
<div class="menu-item" onclick="showCategory('Warme-Dranken')">Warme Dranken</div>
|
<div class="menu-item" onclick="showCategory('Warme-Dranken')">Warme Dranken</div>
|
||||||
<div class="menu-item" onclick="showCategory('Snacks')">Snacks</div>
|
<div class="menu-item" onclick="showCategory('Snacks')">Snacks</div>
|
||||||
<div class="menu-item" onclick="showCategory('deserts')">Ijsjes</div>
|
<div class="menu-item" onclick="showCategory('deserts')">Ijsjes</div>
|
||||||
|
|||||||
BIN
website/media/koffie.jpg
Normal file
BIN
website/media/koffie.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.2 MiB |
@@ -11,12 +11,18 @@ function showCategory(category) {
|
|||||||
{ title: "Broodje Gezond", imageSrc: "media/broodje-gezond.jpg", price: 3.50 },
|
{ title: "Broodje Gezond", imageSrc: "media/broodje-gezond.jpg", price: 3.50 },
|
||||||
{ title: "Broodje Kaas", imageSrc: "media/broodje-kaas.jpg", price: 3.00 },
|
{ title: "Broodje Kaas", imageSrc: "media/broodje-kaas.jpg", price: 3.00 },
|
||||||
];
|
];
|
||||||
} else if (category === 'drinks') {
|
} else if (category === 'Koude-Dranken') {
|
||||||
items = [
|
items = [
|
||||||
{ title: "Spa Water", imageSrc: "media/spa.webp", price: 1.00 },
|
{ title: "Spa Water", imageSrc: "media/spa.webp", price: 1.00 },
|
||||||
{ title: "Cola", imageSrc: "media/cola.jpg", price: 1.50 },
|
{ title: "Cola", imageSrc: "media/cola.jpg", price: 1.50 },
|
||||||
|
];
|
||||||
|
} else if (category === 'Warme-Dranken') {
|
||||||
|
items = [
|
||||||
|
{ title: "Chocomel", imageSrc: "media/chocomel.jpg", price: 1.00 },
|
||||||
|
{ title: "Koffie", imageSrc: "media/koffie.jpg", price: 1.50 },
|
||||||
];
|
];
|
||||||
} else if (category === 'Snacks') {
|
}
|
||||||
|
else if (category === 'Snacks') {
|
||||||
items = [
|
items = [
|
||||||
{ title: "Frikandel", imageSrc: "media/frikandel.jpg", price: 2.00 },
|
{ title: "Frikandel", imageSrc: "media/frikandel.jpg", price: 2.00 },
|
||||||
{ title: "Bitterballen", imageSrc: "media/bitterballen.jpg", price: 2.50 },
|
{ title: "Bitterballen", imageSrc: "media/bitterballen.jpg", price: 2.50 },
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ body {
|
|||||||
/* Productweergave in een grid */
|
/* Productweergave in een grid */
|
||||||
.product-display {
|
.product-display {
|
||||||
width: 70%;
|
width: 70%;
|
||||||
display: flex;
|
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
|
|||||||
Reference in New Issue
Block a user