-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcheckout.html
More file actions
379 lines (360 loc) · 22.8 KB
/
Copy pathcheckout.html
File metadata and controls
379 lines (360 loc) · 22.8 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
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Favicon -->
<link rel="icon" type="icon" href="assets/images/favicon.png" />
<title>Checkout page</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css">
<link rel="stylesheet" href="assets/css/styles.css">
<link rel="stylesheet" href="node_modules/swiper/swiper-bundle.css">
<link rel="stylesheet" href="assets/css/custom.css">
</head>
<body>
<!-- Header -->
<header class="bg-gray-dark sticky top-0 z-50">
<div class="container mx-auto flex justify-between items-center py-4">
<!-- Left section: Logo -->
<a href="index.html" class="flex items-center">
<div>
<img src="assets/images/template-white-logo.png" alt="Logo" class="h-14 w-auto mr-4">
</div>
</a>
<!-- Hamburger menu (for mobile) -->
<div class="flex lg:hidden">
<button id="hamburger" class="text-white focus:outline-none">
<svg class="w-6 h-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M4 6h16M4 12h16m-7 6h7"></path>
</svg>
</button>
</div>
<!-- Center section: Menu -->
<nav class="hidden lg:flex md:flex-grow justify-center">
<ul class="flex justify-center space-x-4 text-white">
<li><a href="index.html" class="hover:text-secondary font-semibold">Home</a></li>
<!-- Men Dropdown -->
<li class="relative group" x-data="{ open: false }">
<a href="shop.html" @mouseover="open = true" @mouseleave="open = false" href="#" class="hover:text-secondary font-semibold flex items-center">
Men
<i :class="open ? 'fas fa-chevron-up ml-1 text-xs' : 'fas fa-chevron-down ml-1 text-xs'"></i>
</a>
<ul
x-show="open"
@mouseover="open = true"
@mouseleave="open = false"
class="absolute left-0 bg-white text-black space-y-2 mt-1 p-2 rounded shadow-lg"
x-transition:enter="transition ease-out duration-100"
x-transition:enter-start="opacity-0 scale-90"
x-transition:enter-end="opacity-100 scale-100"
x-transition:leave="transition ease-in duration-100"
x-transition:leave-start="opacity-100 scale-100"
x-transition:leave-end="opacity-0 scale-90"
>
<li><a href="shop.html" class="min-w-40 block px-4 py-2 hover:bg-primary hover:text-white rounded">Men Item 1</a></li>
<li><a href="shop.html" class="min-w-40 block px-4 py-2 hover:bg-primary hover:text-white rounded">Men Item 2</a></li>
<li><a href="shop.html" class="min-w-40 block px-4 py-2 hover:bg-primary hover:text-white rounded">Men Item 3</a></li>
</ul>
</li>
<!-- Women Dropdown -->
<li class="relative group" x-data="{ open: false }">
<a href="shop.html" @mouseover="open = true" @mouseleave="open = false" href="#" class="hover:text-secondary font-semibold flex items-center">
Women
<i :class="open ? 'fas fa-chevron-up ml-1 text-xs' : 'fas fa-chevron-down ml-1 text-xs'"></i>
</a>
<ul
x-show="open"
@mouseover="open = true"
@mouseleave="open = false"
class="absolute left-0 bg-white text-black space-y-2 mt-1 p-2 rounded shadow-lg"
x-transition:enter="transition ease-out duration-100"
x-transition:enter-start="opacity-0 scale-90"
x-transition:enter-end="opacity-100 scale-100"
x-transition:leave="transition ease-in duration-100"
x-transition:leave-start="opacity-100 scale-100"
x-transition:leave-end="opacity-0 scale-90"
>
<li><a href="shop.html" class="min-w-40 block px-4 py-2 hover:bg-primary hover:text-white rounded">Women Item 1</a></li>
<li><a href="shop.html" class="min-w-40 block px-4 py-2 hover:bg-primary hover:text-white rounded">Women Item 2</a></li>
<li><a href="shop.html" class="min-w-40 block px-4 py-2 hover:bg-primary hover:text-white rounded">Women Item 3</a></li>
</ul>
</li>
<li><a href="shop.html" class="hover:text-secondary font-semibold">Shop</a></li>
<li><a href="single-product-page.html" class="hover:text-secondary font-semibold">Product</a></li>
<li><a href="404.html" class="hover:text-secondary font-semibold">404 page</a></li>
<li><a href="checkout.html" class="hover:text-secondary font-semibold">Checkout</a></li>
</ul>
</nav>
<!-- Right section: Buttons (for desktop) -->
<div class="hidden lg:flex items-center space-x-4 relative">
<a href="register.html"
class="bg-primary border border-primary hover:bg-transparent text-white hover:text-primary font-semibold px-4 py-2 rounded-full inline-block">Register</a>
<a href="register.html"
class="bg-primary border border-primary hover:bg-transparent text-white hover:text-primary font-semibold px-4 py-2 rounded-full inline-block">Login</a>
<div class="relative group cart-wrapper">
<a href="/cart.html" >
<img src="assets/images/cart-shopping.svg" alt="Cart" class="h-6 w-6 group-hover:scale-120">
</a>
<!-- Cart dropdown -->
<div class="absolute right-0 mt-1 w-80 bg-white shadow-lg p-4 rounded hidden group-hover:block">
<div class="space-y-4">
<!-- product item -->
<div class="flex items-center justify-between pb-4 border-b border-gray-line">
<div class="flex items-center">
<img src="/assets/images/single-product/1.jpg" alt="Product" class="h-12 w-12 object-cover rounded mr-2">
<div>
<p class="font-semibold">Summer black dress</p>
<p class="text-sm">Quantity: 1</p>
</div>
</div>
<p class="font-semibold">$25.00</p>
</div>
<!-- product item -->
<div class="flex items-center justify-between">
<div class="flex items-center">
<img src="/assets/images/single-product/2.jpg" alt="Product" class="h-12 w-12 object-cover rounded mr-2">
<div>
<p class="font-semibold">Black suit</p>
<p class="text-sm">Quantity: 1</p>
</div>
</div>
<p class="font-semibold">$125.00</p>
</div>
</div>
<a href="/cart.html" class="block text-center mt-4 border border-primary bg-primary hover:bg-transparent text-white hover:text-primary py-2 rounded-full font-semibold">Go to Cart</a>
</div>
</div>
<a id="search-icon" href="javascript:void(0);" class="text-white hover:text-secondary group">
<img src="assets/images/search-icon.svg" alt="Search"
class="h-6 w-6 transition-transform transform group-hover:scale-120">
</a>
<!-- Search field -->
<div id="search-field"
class="hidden absolute top-full right-0 mt-2 w-full bg-white shadow-lg p-2 rounded">
<input type="text" class="w-full p-2 border border-gray-300 rounded"
placeholder="Search for products...">
</div>
</div>
</div>
</header>
<!-- Mobile menu -->
<nav id="mobile-menu-placeholder" class="mobile-menu hidden flex flex-col items-center space-y-8 lg:hidden">
<ul class="w-full">
<li><a href="index.html" class="hover:text-secondary font-bold block py-2">Home</a></li>
<!-- Men Dropdown -->
<li class="relative group" x-data="{ open: false }">
<a @click="open = !open; $event.preventDefault()" class="hover:text-secondary font-bold block py-2 flex justify-center items-center cursor-pointer">
<span>Men</span>
<span @click.stop="open = !open">
<i :class="open ? 'fas fa-chevron-up text-xs ml-2' : 'fas fa-chevron-down text-xs ml-2'"></i>
</span>
</a>
<ul class="mobile-dropdown-menu" x-show="open" x-transition class="space-y-2">
<li><a href="shop.html" class="hover:text-secondary font-bold block pt-2 pb-3">Shop Men</a></li>
<li><a href="single-product-page.html" class="hover:text-secondary font-bold block py-2">Men item 1</a></li>
<li><a href="single-product-page.html" class="hover:text-secondary font-bold block py-2">Men item 2</a></li>
<li><a href="single-product-page.html" class="hover:text-secondary font-bold block py-2">Men item 3</a></li>
</ul>
</li>
<!-- Women Dropdown -->
<li class="relative group" x-data="{ open: false }">
<a @click="open = !open; $event.preventDefault()" class="hover:text-secondary font-bold block py-2 flex justify-center items-center cursor-pointer">
<span>Women</span>
<span @click.stop="open = !open">
<i :class="open ? 'fas fa-chevron-up text-xs ml-2' : 'fas fa-chevron-down text-xs ml-2'"></i>
</span>
</a>
<ul class="mobile-dropdown-menu" x-show="open" x-transition class="pl-4 space-y-2">
<li><a href="shop.html" class="hover:text-secondary font-bold block py-2">Shop Women</a></li>
<li><a href="single-product-page.html" class="hover:text-secondary font-bold block py-2">Women item 1</a></li>
<li><a href="single-product-page.html" class="hover:text-secondary font-bold block py-2">Women item 2</a></li>
<li><a href="single-product-page.html" class="hover:text-secondary font-bold block py-2">Women item 3</a></li>
</ul>
</li>
<li><a href="shop.html" class="hover:text-secondary font-bold block py-2">Shop</a></li>
<li><a href="single-product-page.html" class="hover:text-secondary font-bold block py-2">Product</a></li>
<li><a href="404.html" class="hover:text-secondary font-bold block py-2">404 page</a></li>
<li><a href="checkout.html" class="hover:text-secondary font-bold block py-2">Checkout</a></li>
</ul>
<div class="flex flex-col mt-6 space-y-2 items-center">
<a href="register.html"
class="bg-primary hover:bg-transparent text-white hover:text-primary border border-primary font-semibold px-4 py-2 rounded-full inline-block flex items-center justify-center min-w-[110px]">Register</a>
<a href="register.html"
class="bg-primary hover:bg-transparent text-white hover:text-primary border border-primary font-semibold px-4 py-2 rounded-full inline-block flex items-center justify-center min-w-[110px]">Login</a>
<a href="register.html"
class="bg-primary hover:bg-transparent text-white hover:text-primary border border-primary font-semibold px-4 py-2 rounded-full inline-block flex items-center justify-center min-w-[110px]">Cart - <span>5</span> items</a>
</div>
<!-- Search field -->
<div
class=" top-full right-0 mt-2 w-full bg-white shadow-lg p-2 rounded">
<input type="text" class="w-full p-2 border border-gray-300 rounded"
placeholder="Search for products...">
</div>
</nav>
<!-- Checkout -->
<section id="checkout-page" class="bg-white py-16">
<div class="container mx-auto px-4">
<h1 class="text-2xl font-semibold mb-8">Checkout</h1>
<div class="flex flex-col md:flex-row gap-4">
<!-- Billing and Shipping Details -->
<div class="md:w-2/3 bg-white rounded-lg shadow-md p-4">
<h2 class="text-xl font-semibold mb-4">Billing Details</h2>
<form>
<div class="mb-4">
<label for="billing-name" class="mb-4">Full Name</label>
<input type="text" id="billing-name" class="w-full px-3 mt-2 py-2 border focus:border-transparent rounded-full focus:outline-none focus:ring-2 focus:ring-primary" required>
</div>
<div class="mb-4">
<label for="billing-email" class="mb-4">Email</label>
<input type="email" id="billing-email" class="w-full px-3 mt-2 py-2 border focus:border-transparent rounded-full focus:outline-none focus:ring-2 focus:ring-primary" required>
</div>
<div class="mb-4">
<label for="billing-address" class="mb-4">Address</label>
<input type="text" id="billing-address" class="w-full px-3 mt-2 py-2 border focus:border-transparent rounded-full focus:outline-none focus:ring-2 focus:ring-primary" required>
</div>
<div class="mb-4">
<label for="billing-city" class="mb-4">City</label>
<input type="text" id="billing-city" class="w-full px-3 mt-2 py-2 border focus:border-transparent rounded-full focus:outline-none focus:ring-2 focus:ring-primary" required>
</div>
<div class="mb-4 flex gap-4">
<div class="w-1/2">
<label for="billing-state" class="mb-4">State</label>
<input type="text" id="billing-state" class="w-full px-3 mt-2 py-2 border focus:border-transparent rounded-full focus:outline-none focus:ring-2 focus:ring-primary" required>
</div>
<div class="w-1/2">
<label for="billing-zip" class="mb-4">ZIP Code</label>
<input type="text" id="billing-zip" class="w-full px-3 mt-2 py-2 border focus:border-transparent rounded-full focus:outline-none focus:ring-2 focus:ring-primary" required>
</div>
</div>
<div class="mb-4">
<label for="billing-phone" class="mb-4">Phone Number</label>
<input type="tel" id="billing-phone" class="w-full px-3 mt-2 py-2 border focus:border-transparent rounded-full focus:outline-none focus:ring-2 focus:ring-primary" required>
</div>
<div class="mb-4">
<label class="mb-4">Ship to a different address?</label>
<input type="checkbox" id="different-address" class="mr-2">
<label for="different-address" class="text-gray-700">Yes</label>
</div>
</form>
</div>
<!-- Order Summary -->
<div class="md:w-1/3 bg-white rounded-lg shadow-md p-4">
<h2 class="text-xl font-semibold mb-4">Order Summary</h2>
<div class="flex justify-between mb-4">
<p>Subtotal</p>
<p>$59.00</p>
</div>
<div class="flex justify-between mb-4">
<p>Shipping</p>
<p>$10.00</p>
</div>
<div class="flex justify-between mb-4">
<p class="font-semibold">Total</p>
<p class="font-semibold">$69.00</p>
</div>
<button class="bg-primary text-white border border-primary hover:bg-transparent hover:text-primary py-2 px-4 rounded-full w-full">Proceed to Payment</button>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="border-t border-gray-line">
<!-- Top part -->
<div class="container mx-auto px-4 py-10">
<div class="flex flex-wrap -mx-4">
<!-- Menu 1 -->
<div class="w-full sm:w-1/6 px-4 mb-8">
<h3 class="text-lg font-semibold mb-4">Shop</h3>
<ul>
<li><a href="/shop.html" class="hover:text-primary">Shop</a></li>
<li><a href="/single-product-page.html" class="hover:text-primary">Women</a></li>
<li><a href="/shop.html" class="hover:text-primary">Men</a></li>
<li><a href="/single-product-page.html" class="hover:text-primary">Shoes</a></li>
<li><a href="/single-product-page.html" class="hover:text-primary">Accessories</a></li>
</ul>
</div>
<!-- Menu 2 -->
<div class="w-full sm:w-1/6 px-4 mb-8">
<h3 class="text-lg font-semibold mb-4">Pages</h3>
<ul>
<li><a href="/shop.html" class="hover:text-primary">Shop</a></li>
<li><a href="/single-product-page.html" class="hover:text-primary">Product</a></li>
<li><a href="/checkout.html" class="hover:text-primary">Checkout</a></li>
<li><a href="/404.html" class="hover:text-primary">404</a></li>
</ul>
</div>
<!-- Menu 3 -->
<div class="w-full sm:w-1/6 px-4 mb-8">
<h3 class="text-lg font-semibold mb-4">Account</h3>
<ul>
<li><a href="/cart.html" class="hover:text-primary">Cart</a></li>
<li><a href="/register.html" class="hover:text-primary">Registration</a></li>
<li><a href="/register.html" class="hover:text-primary">Login</a></li>
</ul>
</div>
<!-- Social Media -->
<div class="w-full sm:w-1/6 px-4 mb-8">
<h3 class="text-lg font-semibold mb-4">Follow Us</h3>
<ul>
<li class="flex items-center mb-2">
<img src="/assets/images/social_icons/facebook.svg" alt="Facebook" class="w-4 h-4 transition-transform transform hover:scale-110 mr-2">
<a href="#" class="hover:text-primary">Facebook</a>
</li>
<li class="flex items-center mb-2">
<img src="/assets/images/social_icons/twitter.svg" alt="Twitter" class="w-4 h-4 transition-transform transform hover:scale-110 mr-2">
<a href="#" class="hover:text-primary">Twitter</a>
</li>
<li class="flex items-center mb-2">
<img src="/assets/images/social_icons/instagram.svg" alt="Instagram" class="w-4 h-4 transition-transform transform hover:scale-110 mr-2">
<a href="#" class="hover:text-primary">Instagram</a>
</li>
<li class="flex items-center mb-2">
<img src="/assets/images/social_icons/pinterest.svg" alt="Instagram" class="w-4 h-4 transition-transform transform hover:scale-110 mr-2">
<a href="#" class="hover:text-primary">Pinterest</a>
</li>
<li class="flex items-center mb-2">
<img src="/assets/images/social_icons/youtube.svg" alt="Instagram" class="w-4 h-4 transition-transform transform hover:scale-110 mr-2">
<a href="#" class="hover:text-primary">YouTube</a>
</li>
</ul>
</div>
<!-- Contact Information -->
<div class="w-full sm:w-2/6 px-4 mb-8">
<h3 class="text-lg font-semibold mb-4">Contact Us</h3>
<p><img src="assets/images/template-logo.png" alt="Logo" class="h-[60px] mb-4"></p>
<p>123 Street Name, Paris, France</p>
<p class="text-xl font-bold my-4">Phone: (123) 456-7890</p>
<a href="mailto:info@company.com" class="underline">Email: info@company.com</a>
</div>
</div>
</div>
<!-- Bottom part -->
<div class="py-6 border-t border-gray-line">
<div class="container mx-auto px-4 flex flex-wrap justify-between items-center">
<!-- Copyright and Links -->
<div class="w-full lg:w-3/4 text-center lg:text-left mb-4 lg:mb-0">
<p class="mb-2 font-bold">© 2024 Your Company. All rights reserved.</p>
<ul class="flex justify-center lg:justify-start space-x-4 mb-4 lg:mb-0">
<li><a href="#" class="hover:text-primary">Privacy Policy</a></li>
<li><a href="#" class="hover:text-primary">Terms of Service</a></li>
<li><a href="#" class="hover:text-primary">FAQ</a></li>
</ul>
<p class="text-sm mt-4">Your shop's description goes here. This is a brief introduction to your shop and what you offer.</p>
</div>
<!-- Payment Icons -->
<div class="w-full lg:w-1/4 text-center lg:text-right">
<img src="/assets/images/social_icons/paypal.svg" alt="PayPal" class="inline-block h-8 mr-2">
<img src="/assets/images/social_icons/stripe.svg" alt="Stripe" class="inline-block h-8 mr-2">
<img src="/assets/images/social_icons/visa.svg" alt="Visa" class="inline-block h-8">
</div>
</div>
</div>
</footer>
<script src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js" defer></script>
<script src="assets/js/script.js"></script>
</body>
</html>