-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
55 lines (52 loc) · 2.21 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AppleCart</title>
<link rel="stylesheet" href="/src/scss/style.scss"> <!--During development-->
<link rel="stylesheet" href="/dist/style.scss"> <!--During production-->
<!--Link to Font Awesome for icons-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
</head>
<body>
<!-- Header -->
<header class="header">
<div class="header__content">
<h1 class="header__title">AppleCart</h1>
<div class="header__checkout">
<a href="#" class="header__checkout-link">
<i class="fas fa-shopping-cart"></i>
<span class="header__checkout-count">0</span>
</a>
<!-- Mini-basket preview -->
<div class="header__cart-preview">
<ul class="header__cart-items">
<!-- Cart items will be dynamically added here -->
</ul>
<p class="header__cart-total">Total: $<span class="header__cart-total">0.00</span></p>
<button class="header__clear-cart-button"><i class="fas fa-trash"></i> Clear Basket</button>
<a href="#" class="header__view-cart-button"><i class="fas fa-shopping-cart"></i> View Cart</a>
</div>
</div>
</div>
</header>
<main class="store">
<section class="store__product-list">
<!-- Products will be dynamically added here -->
</section>
</main>
<footer class="footer">
<p>© <span id="year"></span> Apple Store. All rights reserved.</p>
</footer>
<!-- JavaScript files -->
<script type="module" src="/src/data/products.js"></script>
<script type="module" src="/src/js/script.js"></script>
<script>
document.addEventListener("DOMContentLoaded", function () {
const yearSpan = document.getElementById("year");
yearSpan.textContent = new Date().getFullYear();
});
</script>
<div class="toast-container"></div>
</body>
</html>