-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
53 lines (46 loc) · 1.91 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>My Store</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<!--container makes the site responsive and it is required for layout purposes. -->
<div class="container">
<h1 class="text-center pt-3">Welcome to my store</h1>
<!--use this class to center text and for padding-->
<form onsubmit="return addItem(this);">
<div class="row">
<div class="col">
<label for="itemName">Item Name </label>
<input id="itemName" type="text" class="form-control" placeholder="Item Name" aria-label="First name">
</div>
<div class="col">
<label for="itemPrice">Item Price</label>
<input id="itemPrice" type="text" class="form-control" placeholder="Item Price" aria-label="Last name">
</div>
<div class="col d-flex align-items-end">
<!--add the flex align item class to this column because this column contains
the button that we want to align -->
<input class="btn btn-primary" type="submit" value="Add Item" />
</div>
</div>
</form>
<h3 id="totalPrice" class="text-center pt-3">Total Price: $0</h3>
<!--a list -->
<ul id="list" class="list-group">
</ul>
</div>
<script src="script.js"></script>
<!--
This script places a badge on your repl's full-browser view back to your repl's cover
page. Try various colors for the theme: dark, light, red, orange, yellow, lime, green,
teal, blue, blurple, magenta, pink!
-->
<script src="https://replit.com/public/js/replit-badge.js" theme="blue" defer></script>
</body>
</html>