Skip to content

Commit

Permalink
uzo
Browse files Browse the repository at this point in the history
  • Loading branch information
uziwhoavg committed Aug 20, 2024
1 parent 0c2b9ee commit ee1fa3f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
1 change: 0 additions & 1 deletion index.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ main {
font-weight: bold;
}


footer {
text-align: center;
padding: 1rem 0;
Expand Down
24 changes: 20 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,36 @@ <h1>🍝 Welcome to CodeCuisine 🥖</h1>
<main>
<section id="menu">
<!-- Menu items will be dynamically generated here -->
<h2>Starters</h2>
<ul>
<li onclick="addToOrder('Garlic Bread', 30)">Garlic Bread</li>
<li onclick="addToOrder('Bruschetta', 30)">Bruschetta</li>
</ul>

<h2>Main Courses</h2>
<ul>
<li onclick="addToOrder('Margherita Pizza', 80)">Margherita Pizza</li>
<li onclick="addToOrder('Spaghetti Carbonara', 90)">Spaghetti Carabona</li>
</ul>

<h2>Desserts</h2>
<ul>
<li onclick="addToOrder('Tiramisu', 40)">Tiramasu</li>
<li onclick="addToOrder('Cheesecake', 50)">Cheescake</li>
</ul>

</section>
<section id="order">
<h2>Your Order</h2>
<ul id="order-items">
<!-- Order items will be displayed here -->
</ul>
<div id="order-total-wrap">
<span id="order-total">R0.00</span>
</div>
<p>Total: R<span id="order-total">0.00</span></p>
</section>
</main>
<footer>
<p>&copy; 2024 CodeCuisine. All rights reserved.</p>
</footer>
<script src="index.js"></script>
<script src="./index.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const menu = {
Desserts: ["Tiramisu", "Cheesecake"]
};


//function to display menu items by category
function displayMenuItems(menu) {
// Get the menu container element from the HTML
Expand Down

0 comments on commit ee1fa3f

Please sign in to comment.