-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheckout.html
More file actions
265 lines (246 loc) · 12.2 KB
/
Copy pathcheckout.html
File metadata and controls
265 lines (246 loc) · 12.2 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
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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>IRONZONE - Checkout</title>
<link rel="stylesheet" href="styles/main.css">
<link rel="stylesheet" href="styles/header.css">
<link rel="stylesheet" href="styles/checkout.css">
</head>
<body>
<!-- Header Component -->
<header class="header">
<div class="header__container">
<button class="header__menu-btn" id="menuBtn">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor">
<line x1="3" y1="6" x2="21" y2="6"></line>
<line x1="3" y1="12" x2="21" y2="12"></line>
<line x1="3" y1="18" x2="21" y2="18"></line>
</svg>
</button>
<h1 class="header__logo">IRONZONE</h1>
<!-- Desktop Navigation Menu -->
<nav class="desktop-menu">
<a class="desktop-menu__item" href="index.html">HOME</a>
<a class="desktop-menu__item" href="category.html">CATEGORIES</a>
<a class="desktop-menu__item" href="profile.html">PROFILE</a>
</nav>
<button class="header__cart-btn" id="cartBtn">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor">
<circle cx="9" cy="21" r="1"></circle>
<circle cx="20" cy="21" r="1"></circle>
<path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"></path>
</svg>
</button>
</div>
</header>
<!-- Mobile Menu -->
<div class="mobile-menu__overlay" id="menuOverlay"></div>
<div class="mobile-menu" id="mobileMenu">
<div class="mobile-menu__items">
<a class="mobile-menu__item" href="index.html">
<div class="mobile-menu__icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor">
<path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"></path>
</svg>
</div>
<span>HOME</span>
</a>
<a class="mobile-menu__item" href="category.html">
<div class="mobile-menu__icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor">
<path d="M3 3h8v8H3V3m10 0h8v8h-8V3M3 13h8v8H3v-8m10 0h8v8h-8v-8z"></path>
</svg>
</div>
<span>CATEGORIES</span>
</a>
<a class="mobile-menu__item" href="profile.html">
<div class="mobile-menu__icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor">
<path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"></path>
</svg>
</div>
<span>PROFILE</span>
</a>
<a class="mobile-menu__item" href="cart.html">
<div class="mobile-menu__icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor">
<circle cx="9" cy="21" r="1"></circle>
<circle cx="20" cy="21" r="1"></circle>
<path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"></path>
</svg>
</div>
<span>CART</span>
</a>
</div>
</div>
<!-- Checkout Page -->
<main class="checkout-page">
<!-- Back Button -->
<div class="checkout-header">
<button class="checkout-header__back" id="backBtn">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polyline points="15 18 9 12 15 6"></polyline>
</svg>
</button>
<h1 class="checkout-header__title">CHECKOUT</h1>
<div class="checkout-header__spacer"></div>
</div>
<!-- Progress Steps -->
<div class="checkout-steps">
<div class="checkout-steps__step active" data-step="1">
<span class="checkout-steps__number">1</span>
<span class="checkout-steps__label">Shipping</span>
</div>
<div class="checkout-steps__step" data-step="2">
<span class="checkout-steps__number">2</span>
<span class="checkout-steps__label">Payment</span>
</div>
<div class="checkout-steps__step" data-step="3">
<span class="checkout-steps__number">3</span>
<span class="checkout-steps__label">Confirm</span>
</div>
</div>
<!-- Step 1: Shipping -->
<section class="checkout-section active" id="shippingSection">
<h2 class="checkout-section__title">Shipping Address</h2>
<form class="checkout-form">
<div class="form-group">
<label class="form-label">Full Name</label>
<input type="text" class="form-input" id="fullName" value="Mayank Tripathi" required>
</div>
<div class="form-group">
<label class="form-label">Email</label>
<input type="email" class="form-input" id="email" value="mayank.tripathi75@gmail.com" required>
</div>
<div class="form-group">
<label class="form-label">Phone</label>
<input type="tel" class="form-input" id="phone" placeholder="+91 9876543210" required>
</div>
<div class="form-group">
<label class="form-label">Address</label>
<input type="text" class="form-input" id="address" placeholder="Street address" required>
</div>
<div class="form-row">
<div class="form-group">
<label class="form-label">City</label>
<input type="text" class="form-input" id="city" placeholder="City" required>
</div>
<div class="form-group">
<label class="form-label">State</label>
<input type="text" class="form-input" id="state" placeholder="State" required>
</div>
</div>
<div class="form-group">
<label class="form-label">Postal Code</label>
<input type="text" class="form-input" id="postalCode" placeholder="123456" required>
</div>
</form>
<button class="btn-next" id="nextStep1">Continue to Payment</button>
</section>
<!-- Step 2: Payment -->
<section class="checkout-section" id="paymentSection">
<h2 class="checkout-section__title">Payment Method</h2>
<div class="payment-options">
<label class="payment-option">
<input type="radio" name="paymentMethod" value="card" checked>
<div class="payment-option__content">
<div class="payment-option__icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor">
<path d="M20 8H4V6h16m0 10H4v-6h16m0-4H4c-1.11 0-2 .89-2 2v12c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2z"></path>
</svg>
</div>
<span class="payment-option__label">Card</span>
</div>
</label>
<label class="payment-option">
<input type="radio" name="paymentMethod" value="cod">
<div class="payment-option__content">
<div class="payment-option__icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor">
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5zm-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11zm3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5z"></path>
</svg>
</div>
<span class="payment-option__label">Cash on delivery</span>
</div>
</label>
</div>
<!-- Card Details (shown when Card is selected) -->
<div class="card-details" id="cardDetails">
<div class="form-group">
<label class="form-label">Card Number</label>
<input type="text" class="form-input" id="cardNumber" placeholder="1234 5678 9012 3456" maxlength="19">
</div>
<div class="form-row">
<div class="form-group">
<label class="form-label">MM/YY</label>
<input type="text" class="form-input" id="cardExpiry" placeholder="MM/YY" maxlength="5">
</div>
<div class="form-group">
<label class="form-label">CVV</label>
<input type="text" class="form-input" id="cardCVV" placeholder="123" maxlength="3">
</div>
</div>
</div>
<!-- COD Details (shown when COD is selected) -->
<div class="cod-details hidden" id="codDetails">
<div class="info-box">
<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor">
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"></path>
</svg>
<div>
<p class="info-box__title">Pay when your order arrives</p>
<p class="info-box__desc">You can pay cash when your package is delivered to your doorstep</p>
</div>
</div>
</div>
<div class="checkout-buttons">
<button class="btn-back" id="backStep2">Back</button>
<button class="btn-next" id="nextStep2">Review Order</button>
</div>
</section>
<!-- Step 3: Confirmation -->
<section class="checkout-section" id="confirmSection">
<h2 class="checkout-section__title">Order Summary</h2>
<!-- Order Items -->
<div class="order-items">
<h3 class="order-items__title">Order Items</h3>
<div id="orderItemsList"></div>
</div>
<!-- Order Total -->
<div class="order-total">
<div class="order-total__row">
<span>Subtotal</span>
<span id="orderSubtotal">₹0</span>
</div>
<div class="order-total__row">
<span>Shipping</span>
<span id="orderShipping">FREE</span>
</div>
<div class="order-total__row highlight">
<span>Total</span>
<span id="orderGrandTotal">₹0</span>
</div>
</div>
<!-- Shipping Info -->
<div class="shipping-summary">
<h3>Shipping To</h3>
<p id="shippingSummary"></p>
</div>
<!-- Payment Summary -->
<div class="payment-summary">
<h3>Payment Method</h3>
<p id="paymentSummary"></p>
</div>
<div class="checkout-buttons">
<button class="btn-back" id="backStep3">Back</button>
<button class="btn-place-order" id="placeOrderBtn">PLACE ORDER</button>
</div>
</section>
</main>
<script src="js/main.js"></script>
<script src="js/products-data.js"></script>
<script src="js/checkout.js"></script>
</body>
</html>