This commit is contained in:
Dylanomz
2025-02-18 11:28:23 +01:00
2 changed files with 21 additions and 23 deletions

View File

@@ -61,12 +61,6 @@
<span id="cart-count" class="cart-count">0</span> <!-- Aantal producten --> <span id="cart-count" class="cart-count">0</span> <!-- Aantal producten -->
</div> </div>
<footer>
<center>
<p>&copy; 2025 Vista </p>
</center>
</footer>
<script src="script.js"></script> <script src="script.js"></script>
<script src="Cart/cart.js"></script> <script src="Cart/cart.js"></script>
</body> </body>

View File

@@ -3,26 +3,33 @@ body {
font-family: Arial, sans-serif; font-family: Arial, sans-serif;
margin: 0; margin: 0;
display: flex; display: flex;
justify-content: space-between; flex-direction: column; /* Change to column to accommodate the top bar */
background-color: #ffffff; background-color: #f2c14e;
} }
/* Linkerkant menu */ /* Top bar menu */
.menu-list { .menu-bar {
width: 25%; width: 100%;
background-color: #d7d7d7; background-color: #f2c14e;
padding: 20px; padding: 10px 0;
height: 100vh; display: flex;
overflow-y: auto; justify-content: space-around;
align-items: center;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
position: fixed; /* Fix the top bar to the top */
top: 0;
z-index: 1000; /* Ensure it is above other elements */
transition: background-color 0.3s ease; /* Add transition for background color */
}
.menu-bar.dark {
background-color: #d1a73e; /* Darker background color when modal is open */
} }
.menu-item { .menu-item {
background-color: #fff; background-color: #fff;
padding: 10px 20px; padding: 10px 20px;
margin: 5px; margin: 5px;
background-color: #ff9d3b;
padding: 20px;
margin: 10px 0;
border-radius: 8px; border-radius: 8px;
cursor: pointer; cursor: pointer;
font-size: 1.2em; font-size: 1.2em;
@@ -30,7 +37,7 @@ body {
} }
.menu-item:hover { .menu-item:hover {
background-color: #ff9d3b; background-color: #f59e42;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
} }
@@ -49,13 +56,9 @@ body {
margin: 10px; margin: 10px;
border-radius: 8px; border-radius: 8px;
overflow: hidden; overflow: hidden;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
transition: all 0.3s ease; transition: all 0.3s ease;
background-color: #e3e3e3 ;
} }
.product-box:hover { .product-box:hover {
@@ -78,6 +81,7 @@ body {
width: 100%; width: 100%;
height: 100%; height: 100%;
background-color: rgba(0, 0, 0, 0.5); background-color: rgba(0, 0, 0, 0.5);
overflow-y: auto; /* Allow scrolling for larger content */
} }
.modal-content { .modal-content {