-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
67 lines (67 loc) · 2.65 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
56
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="/style.css" />
<script type="module" src="./src/main.mjs"></script>
<script type="module" src="./src/cart-view.mjs"></script>
<title>Cart example • Design patterns for modern JavaScript</title>
</head>
<body>
<header>
<img src="/img/logo.png" alt="Books Logo" class="logo" />
<ul>
<li>Books</li>
<li>Contact</li>
<li>Checkout</li>
</ul>
<button id="cart" class="cart">
<img src="/img/cart.svg" width="80" height="70" alt="Cart" />
</button>
</header>
<section>
<ul class="products">
<li class="product">
<img src="/img/lotr.png" alt="Lord of the Rings book cover">
<div class="product-title">Lord of the Rings</div>
<div class="product-price">$19.00</div>
<button data-product="lotr">Add to cart</button>
</li>
<li class="product">
<img src="/img/foundation.png" alt="Foundation book cover">
<div class="product-title">Foundation</div>
<div class="product-price">$15.00</div>
<button data-product="foundation">Add to cart</button>
</li>
<li class="product">
<img src="/img/arabian.png" alt="Arabian Nights book cover">
<div class="product-title">Arabian Nights</div>
<div class="product-price">$9.00</div>
<button data-product="arabian">Add to cart</button>
</li>
<li class="product">
<img src="/img/hobbit.png" alt="The Hobbit book cover">
<div class="product-title">The Hobbit</div>
<div class="product-price">$12.00</div>
<button data-product="hobbit">Add to cart</button>
</li>
<li class="product">
<img src="/img/samurai.png" alt="The Hobbit book cover">
<div class="product-title">The Last Samurai</div>
<div class="product-price">$17.00</div>
<button data-product="samurai">Add to cart</button>
</li>
<li class="product">
<img src="/img/cuckoo.png" alt="Saga of Cuckoo book cover">
<div class="product-title">Saga of Cuckoo</div>
<div class="product-price">$5</div>
<button data-product="cuckoo">Add to cart</button>
</li>
</ul>
</section>
<footer>
Made by <a href="https://www.twitter.com/jpschroeder">@jpschroeder</a>, no rights reserved. Source code available on <a href="https://github.com/justin-schroeder/modern-js-talk">GitHub</a>.
</footer>
</body>
</html>