-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcart (1).html
150 lines (144 loc) · 5.31 KB
/
cart (1).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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">
<script src="https://kit.fontawesome.com/b027c07a5e.js" crossorigin="anonymous"></script>
</head>
<body>
<!--Header section-->
<section id="header">
<a href="#"><img src="/images/logo.png" alt="Logo" class="logo"</a>
<div>
<ul id="navbar">
<li><a href="index.html">Home</a></li>
<li><a href="shop.html">Shop</a></li>
<li><a href="about.html">About Us</a></li>
<li><a href="contact1.html">Contact Us</a></li>
<li><a href="cart.html" class="active"><i class="fa-solid fa-cart-shopping"></i></a></li>
</ul>
</div>
</section>
<section id="page-header" class="about-header">
<h2>#checkout</h2>
<p></p>
</section>
<section id="cart" class="section-p1">
<table width="100%">
<thead>
<tr>
<td>REMOVE</td>
<td>IMAGE</td>
<td>PRODUCT</td>
<td>PRICE</td>
<td>QUANTITY</td>
<td>SUBTOTAL</td>
</tr>
</thead>
<tbody>
<tr>
<td><a href="#"><i class="fa-solid fa-trash"></i></a></td>
<td><img src="images/product/p1.jpg"></td>
<td>Adidas Originals</td>
<td>2499</td>
<td><input type="number" value="1"></td>
<td>2499</td>
</tr>
<tr>
<td><a href="#"><i class="fa-solid fa-trash"></i></a></td>
<td><img src="/images/shop/s2.jpg"></td>
<td>Airliners</td>
<td>1499</td>
<td><input type="number" value="1"></td>
<td>1499</td>
</tr>
<tr>
<td><a href="#"><i class="fa-solid fa-trash"></i></a></td>
<td><img src="/images/shop/s3.jpg"></td>
<td>Zero Gravity</td>
<td>1769</td>
<td><input type="number" value="1"></td>
<td>1769</td>
</tr>
</tbody>
</table>
</section>
<section id="cart-add" class="section-p1">
<div id="subtotal">
<h3></h3>
<table>
<tr>
<td>Cart Subtotal</td>
<td>₹5767</td>
</tr>
<tr>
<td>Shipping</td>
<td>FREE</td>
</tr>
<tr>
<td><strong>Total</strong></td>
<td><strong>₹5767</strong></td>
</tr>
</table>
</div>
<!-- Checkout Button -->
<button id="checkout-btn" onclick="showCheckoutPopup()">Proceed to Checkout</button>
</section>
<!-- Popup Modal (Hidden by default) -->
<div id="checkout-popup" class="popup">
<div class="popup-content">
<span class="close-btn" onclick="closePopup()">×</span>
<h2>Checkout Information</h2>
<p>Your cart total is ₹5767. Would you like to proceed with the payment?</p>
<button>Yes, Proceed</button>
<button onclick="closePopup()">Cancel</button>
</div>
</div>
</section>
<!--Footer-->
<footer class="section-p1">
<div class="col">
<img width="70px" height="70px" src="images/logo.png">
<h4>Contact</h4>
<p><strong>Address:</strong>Bad me baatau ga</p>
<P><strong>Phone:</strong>99999XXXXXX</P>
<p><strong>Hours:</strong>10:00-18:00 Mon-Sat</p>
<div class="follow">
<h4>Follow Us</h4>
<div class="icon">
<i class="fa-brands fa-facebook"></i>
<i class="fa-brands fa-x-twitter"></i>
<i class="fa-brands fa-instagram"></i>
</div>
</div>
</div>
<div class="col">
<h4>About</h4>
<a href="#">About Us</a>
<a href="#">Privacy Policy</a>
<a href="#">Contact Us</a>
</div>
<div class="col">
<h4>My Account</h4>
<a href="#">Sign in</a>
<a href="#">View Cart</a>
<a href="#">Wishlist</a>
</div>
<div class="copyright">
<p>2024,Tech2 etc. HTML CSS JS Shoestore </p>
</div>
</footer>
<script>
// Function to show the checkout popup
function showCheckoutPopup() {
document.getElementById("checkout-popup").style.display = "block";
}
// Function to close the popup
function closePopup() {
document.getElementById("checkout-popup").style.display = "none";
}
</script>
</body>
</html>