-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathindex.html
executable file
·57 lines (53 loc) · 2.01 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script>document.getElementsByTagName("html")[0].className += " js";</script>
<link rel="stylesheet" href="assets/css/style.css">
<title>Add to Cart Interaction | CodyHouse</title>
</head>
<body>
<main class="cd-main container margin-top-xxl">
<div class="text-component text-center">
<h1>Add to Cart Interaction</h1>
<p class="flex flex-wrap flex-center flex-gap-xxs">
<a class="cd-article-link" href="https://codyhouse.co/gem/add-to-cart-interaction">📝 View Tutorial</a>
<a href="#0" class="cd-add-to-cart js-cd-add-to-cart" data-price="25.99">Add To Cart</a>
</p>
</div>
</main>
<div class="cd-cart cd-cart--empty js-cd-cart">
<a href="#0" class="cd-cart__trigger text-replace">
Cart
<ul class="cd-cart__count"> <!-- cart items count -->
<li>0</li>
<li>0</li>
</ul> <!-- .cd-cart__count -->
</a>
<div class="cd-cart__content">
<div class="cd-cart__layout">
<header class="cd-cart__header">
<h2>Cart</h2>
<span class="cd-cart__undo">Item removed. <a href="#0">Undo</a></span>
</header>
<div class="cd-cart__body">
<ul>
<!-- products added to the cart will be inserted here using JavaScript -->
</ul>
</div>
<footer class="cd-cart__footer">
<a href="#0" class="cd-cart__checkout">
<em>Checkout - $<span>0</span>
<svg class="icon icon--sm" viewBox="0 0 24 24"><g fill="none" stroke="currentColor"><line stroke-width="2" stroke-linecap="round" stroke-linejoin="round" x1="3" y1="12" x2="21" y2="12"/><polyline stroke-width="2" stroke-linecap="round" stroke-linejoin="round" points="15,6 21,12 15,18 "/></g>
</svg>
</em>
</a>
</footer>
</div>
</div> <!-- .cd-cart__content -->
</div> <!-- cd-cart -->
<script src="assets/js/util.js"></script> <!-- util functions included in the CodyHouse framework -->
<script src="assets/js/main.js"></script>
</body>
</html>