-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
55 lines (54 loc) · 1.27 KB
/
index.html
File metadata and controls
55 lines (54 loc) · 1.27 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Shopping Cart</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 40px;
background: #f8f8f8;
}
h1, h2 {
color: #222;
}
.products, .cart {
margin: 20px 0;
padding: 20px;
background: #fff;
border-radius: 10px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.product-card {
border: 1px solid #e0e0e0;
padding: 10px;
margin-bottom: 18px;
border-radius: 7px;
}
.product-btn {
background: #0074D9;
color: #fff;
border: none;
padding: 8px 14px;
border-radius: 4px;
cursor: pointer;
}
.product-btn:hover {
background: #005fa3;
}
.cart ul {
list-style-type: none;
padding-left: 0;
}
</style>
</head>
<body>
<h1>Shopping Cart</h1>
<div class="products" id="products"></div>
<div class="cart">
<h2>Cart</h2>
<ul id="cart-items"></ul>
<p>Total: $<span id="cart-total">0</span></p>
</div>
</body>
</html>