-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathcheckout.html
181 lines (162 loc) · 6.63 KB
/
checkout.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="description" content="" />
<meta name="author" content="" />
<title>Checkout</title>
<!-- Favicon-->
<link rel="icon" type="image/x-icon" href="images/favicon.ico" />
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
<!-- Fontawesome icons-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"
integrity="sha512-iecdLmaskl7CVkqkXNQ/ZH/XLlvWZOJyj7Yy7tcenmpD1ypASozpmT/E0iPtmFIB46ZmdtAc9eNBvH0H/ZpiBw=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
<body>
<!-- Navigation-->
<nav class="navbar py-3 py-lg-0 navbar-light bg-light navbar-expand-lg" id="navbar-example2">
<div class="container d-flex">
<a class="navbar-brand" href="#!">ShopNow</a>
<div class="d-flex flex-row order-lg-last align-items-center">
<button type="button" class="navbar-toggler order-last collapsed" data-bs-toggle="collapse"
data-bs-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="navbar-toggler-icon"></span>
</button>
<ul class="navbar-nav me-3 me-lg-0 d-flex flex-row align-items-center">
<li class="dropdown search-dropdown nav-item py-lg-3">
<a href="javascript:void(0)" class="btn btn-outline-dark flex-center" type="button"
data-bs-toggle="modal" data-bs-target="#cartModal" onclick="open_modal()"
data-bs-auto-close="outside">
<i class="fas fa-shopping-cart me-1"></i> Cart <span
class="badge bg-dark text-white ms-1 rounded-pill" id="count_product">0</span>
</a>
</li>
</ul>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="navbar-nav me-auto mb-4 mb-lg-0 ms-lg-5">
<li class="nav-item">
<a class="nav-link" href="#grocery"><i class="fas fa-shopping-basket"></i> Grocery</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#beauty"><i class="fas fa-heart"></i> Beauty</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#clothes"><i class="fas fa-tshirt"></i> Clothes</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container">
<h1 class="text-center head m-4">Checkout Page</h1>
<div class="row mr-0">
<div class="col-sm-6">
<h3 class="my-3 bord shadow text-center"><i class="fas fa-dollar-sign p-2"></i>Cash on Delivery</h3>
</div>
<div class="col-sm-6 ">
<h3 class="my-3 bord shadow text-center"><i class="fas fa-arrows-alt-h p-2"></i>100% Return</h3>
</div>
</div>
<div class="row mr-0">
<div class="col-sm-6">
<h3 class="my-3 bord shadow text-center"><i class="far fa-thumbs-up p-2"></i>Quality Assured</h3>
</div>
<div class="col-sm-6 ">
<h3 class="my-3 bord shadow text-center"><i class="fas fa-stopwatch p-2"></i>Delivery on time</h3>
</div>
</div>
<form class="form">
<div class="row bord p-5 shadow m-5">
<div class="col-sm-6">
<div class="mt-3">
<label for="fName" class="form-label">First Name:</label>
<input id="fName" class="form-control ml-3" type="text" placeholder="First Name" />
<div id="errorName" class="invalid-feedback">This field is required and must have, at least, 3
characters
</div>
</div>
<div class="mt-3 ">
<label for="fEmail" class="form-label">Email:</label>
<input id="fEmail" class="form-control ml-3" type="email" placeholder="Email" minlength="3" />
<div id="errorEmail" class="invalid-feedback">This field is required and must contain an '@' and
have, at
least, 3 characters</div>
</div>
<div class="mt-3 ">
<label for="fAddress" class="form-label">Address:</label>
<input id="fAddress" class="form-control" type="text" placeholder="Address" minlength="3" />
<div id="errorAddress" class="invalid-feedback">This field is required and must have, at least,
3 characters
</div>
</div>
</div>
<div class="col-sm-6">
<div class="mt-3">
<label for="fLastN" class="form-label">Last Name:</label>
<input id="fLastN" class="form-control" type="text" placeholder="Last Name" minlength="3" />
<div id="errorLastN" class="invalid-feedback">This field is required and must have, at least, 3
characters
</div>
</div>
<div class="mt-3">
<label for="fPassword" class="form-label">Password:</label>
<input id="fPassword" class="form-control" title="(4-8 characters)" type="password"
minlength="4" maxlength="8" placeholder="Password" />
<div id="errorPassword" class="invalid-feedback">Enter a correct password</div>
</div>
<div class="mt-3">
<label for="fPhone" class="form-label">Phone Number:</label>
<input id="fPhone" class="form-control" type="number" placeholder="Phone No." />
<div id="errorPhone" class="invalid-feedback">Invalid phone number!! Must be 9 digits with no
letters</div>
</div>
</div>
<div class="col-12 mt-4 final">
<button type="submit" id="btn" class="p-2 px-4 btn btn-primary shadow-lg" onclick="validate()">
<i class="fas fa-cart-arrow-down p-2"></i>Save
</button>
</div>
</div>
</form>
</div>
<!-- Footer-->
<footer class="py-3 bg-dark">
<div class="container">
<p class="m-0 text-center text-white">Copyright © Your Website 2023</p>
</div>
</footer>
<div class="modal fade" id="cartModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel"><i class="fas fa-cart-arrow-down"></i> My Cart</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div>
<ul class="list">
</ul>
<div>
<h3 class="text-center bill px-5">Select Something</h3>
</div>
<div class="text-center">
<a href="checkout.html" class="btn btn-primary m-3">Checkout</a>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Bootstrap core JS-->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz"
crossorigin="anonymous"></script>
<!-- Core theme JS-->
<script src="js/shop.js"></script>
<script src="js/checkout.js"></script>
</body>
</html>