-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathindex.html
74 lines (70 loc) · 2.04 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
68
69
70
71
72
73
74
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>E-commerce Dashboard</title>
</head>
<body>
<div id="app">
<h1>E-commerce Dashboard</h1>
<p class="read-the-docs">
A simple dashboard to test ecommerce.ts functions:
</p>
<div class="add-product-container">
<h2>Add Products</h2>
<div id="product-form">
<div class="form-example">
<label for="product-id">Product ID: </label>
<input type="text" name="product-id" id="product-id" required />
</div>
<div class="form-example">
<label for="price">Price: </label>
<input
type="number"
min="0"
step="0.01"
name="price"
id="price"
required
/>
</div>
<div class="form-example">
<label for="qty">Inventory Quantity: </label>
<input
type="number"
min="0"
step="1"
name="qty"
id="qty"
required
/>
</div>
<br />
<div class="form-example">
<button value="Add Product" id="add-product">Add Product</button>
</div>
</div>
</div>
<div class="products-container">
<h2>All Products</h2>
<ul id="products">
<li>The usefulness of the cup is its emptiness 🥂</li>
</ul>
</div>
<div class="cart-container">
<h2>Cart</h2>
<ul id="cart">
<li>Your cart is empty</li>
</ul>
<button id="clear-cart">❌ Clear Cart</button>
<div class="checkout-container">
<h2>Checkout</h2>
</div>
<button id="checkout">🛒 Checkout</button>
</div>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>