forked from janavipandole/Cara
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcart.html
More file actions
296 lines (250 loc) · 10.5 KB
/
Copy pathcart.html
File metadata and controls
296 lines (250 loc) · 10.5 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
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Your Cart | Cara</title>
<link rel="icon" type="image/jpg" sizes="32x32" href="images/favicon.jpg" />
<meta name="description"
content="Shop the latest trends on our e-commerce store. Dark theme supported for a better user experience." />
<meta name="keywords" content="e-commerce, shopping, online store, dark mode, buy online, latest fashion" />
<meta name="author" content=" Cara" />
<meta name="robots" content="index, follow" />
<meta http-equiv="Content-Language" content="en" />
<meta property="og:title" content="E-commerce - Dark Theme Working" />
<meta property="og:description" content="Shop the latest trends with our dark mode-enabled e-commerce experience." />
<meta property="og:image" content="https://cara-seven-ashen.vercel.app/images/logo.png" />
<meta property="og:url" content="https://cara-seven-ashen.vercel.app/" />
<meta property="og:type" content="website" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="E-commerce - Dark Theme Working" />
<meta name="twitter:description" content="Dark theme e-commerce site with modern features." />
<meta name="twitter:image" content="https://cara-seven-ashen.vercel.app/images/logo.png" />
<meta name="twitter:site" content="@janavipandole" />
<meta name="theme-color" content="#000000" />
<link rel="stylesheet" href="style.css" />
<link href="https://cdn.jsdelivr.net/npm/[email protected]/fonts/remixicon.css" rel="stylesheet" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css"
integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
<body>
<section id="header">
<!-- Logo -->
<a href="index.html">
<img id="siteLogo" src="images/logo.png" alt="Cara Logo" />
</a>
<div>
<ul id="navbar">
<!-- Main Navigation Links -->
<li><a href="index.html">Home</a></li>
<li><a href="shop.html">Shop</a></li>
<li><a href="blog.html">Blog</a></li>
<li><a href="about.html">About</a></li>
<li><a href="try-on.html">Try-On</a></li>
<li><a href="community.html">Community</a></li>
<li><a href="promotions.html">Promotions</a></li>
<!-- Contact Icon -->
<li class="nav-icon">
<a href="contact.html" aria-label="Contact">
<i class="ri-customer-service-2-line"></i>
</a>
</li>
<!-- Login Icon -->
<li class="nav-icon">
<a href="login.html" aria-label="Login">
<i class="ri-user-3-line"></i>
</a>
</li>
<!-- Cart Icon -->
<li class="nav-icon">
<a class="active" href="cart.html" id="lg-bag" aria-label="Cart">
<i class="ri-shopping-bag-4-line"></i>
</a>
</li>
<!-- Theme Toggle -->
<li class="nav-icon">
<button class="theme-toggle" id="themeToggle" aria-label="Toggle dark mode">
<i class="ri-moon-line" id="themeIcon"></i>
</button>
</li>
<!-- Close Button -->
<a href="#" id="close" aria-label="Close menu" aria-hidden="false">
<i class="fa-solid fa-xmark"></i>
</a>
</ul>
</div>
<!-- Mobile Navbar -->
<div class="mobile">
<!-- Login Icon -->
<a href="login.html" aria-label="Login">
<i class="ri-user-3-line"></i>
</a>
<!-- Cart Icon -->
<a href="cart.html" aria-label="Cart">
<i class="ri-shopping-bag-4-line"></i>
</a>
<!-- Hamburger Menu -->
<i class="fas fa-outdent" id="bar" role="button" aria-label="Open menu" aria-expanded="false" tabindex="0"></i>
</div>
</section>
<div id="cart-content-wrapper" style="margin-top: 100px;">
<div class="cartmain">
<section id="page-header">
<h2>Your Cart</h2>
<p>Review and manage your selected items</p>
</section>
<section id="cart" class="section-p1">
<div class="cart-header">
<span>Product</span>
<span>Price</span>
<span>Quantity</span>
<span>Subtotal</span>
</div>
<div id="cart-items-container">
</div>
</section>
<section id="saved-items-section" class="section-p1" style="display: none;">
<h3>Saved for Later</h3>
<p>Items you've saved to buy later</p>
<div id="saved-items-container"></div>
</section>
<section id="cart-add" class="section-p1">
<div class="subtotal">
<h3>Cart Totals</h3>
<table>
<tr>
<td>Cart Subtotal</td>
<td>$0.00</td>
</tr>
<tr>
<td>Shipping</td>
<td>Free</td>
</tr>
<tr>
<td><strong>Total</strong></td>
<td><strong>$0.00</strong></td>
</tr>
</table>
<button id="share-cart-btn" class="normal" onclick="shareWardrobe()"><i class="ri-share-forward-line"></i> Share Wardrobe</button>
<a href="checkout.html" class="normal" style="text-decoration: none">
Proceed to Checkout
</a>
</div>
</section>
<!-- Footer -->
<footer class="section-p1">
<!-- Contact Column -->
<div class="col">
<img class="logo" src="images/logo.png" alt="Cara Logo" />
<h4>Contact</h4>
<p>
<strong>Address:</strong> 562 Wellington Road, Street 32, San
Francisco
</p>
<p><strong>Phone:</strong> +01 2222 365 / (+91) 01 2345 6789</p>
<p><strong>Hours:</strong> 10:00 - 18:00, Mon - Sat</p>
<div class="follow">
<h4>Follow us</h4>
<div class="icon">
<a href="https://x.com/JanaviPandole"><i class="fab fa-twitter"></i></a>
<a href="https://github.com/janavipandole"><i class="fab fa-github"></i></a>
<a href="https://www.linkedin.com/in/janavi-pandole-80a7b2290" target="_blank" rel="noopener noreferrer">
<i class="fab fa-linkedin"></i>
</a>
<a href="https://www.youtube.com/@JanaviPandole"><i class="fab fa-youtube"></i></a>
</div>
</div>
</div>
<!-- About Column -->
<div class="col">
<h4>About</h4>
<a href="about.html">About Us</a>
<a href="delivery.html">Delivery Information</a>
<a href="privacy.html">Privacy Policy</a>
<a href="terms.html">Terms and Conditions</a>
<a href="contact.html">Contact Us</a>
</div>
<!-- My Account Column -->
<div class="col">
<h4>My Account</h4>
<a href="login.html">Sign In</a>
<a href="cart.html">View Cart</a>
<a href="#">My Wishlist</a>
<a href="track-order.html">Track My Order</a>
<a href="contact.html">Help</a>
</div>
<!-- Newsletter Column -->
<div class="col newsletter-footer">
<h4>Newsletter</h4>
<p>
Get email updates about our latest shop and
<span>special offers.</span>
</p>
<form class="newsletter-form">
<input type="email" placeholder="Your email address" required />
<button type="submit" class="normal">Sign Up</button>
</form>
</div>
<!-- Install App Column -->
<div class="col install">
<h4>Install App</h4>
<p>From App Store or Google Play</p>
<div class="row">
<img src="images/pay/app.jpg" alt="Download from App Store" />
<img src="images/pay/play.jpg" alt="Get it on Google Play" />
</div>
<p>Secured Payment Gateways</p>
<img src="images/pay/pay.png" alt="">
</div>
<div class="copyright">
<p> © Cara 2026. All rights reserved. | <a href="license.html"
style="color: #088178;">MIT License</a>
</p>
</div>
</footer>
</div>
</div>
<!-- Share Wardrobe Preview Modal -->
<div id="share-modal" class="modal-overlay" style="display: none;">
<div class="modal-card">
<div class="modal-header">
<h3><i class="ri-gift-2-line"></i> A Friend Shared Their Wardrobe!</h3>
<button class="modal-close-btn" onclick="closeShareModal()">×</button>
</div>
<div class="modal-body">
<p class="modal-intro">Your friend has curated a special collection for you. Check out the items below:</p>
<div id="shared-items-list" class="shared-items-scroll"></div>
<div class="shared-summary">
<span class="summary-label">Total Shared Value:</span>
<span id="shared-total-price" class="summary-value">$0.00</span>
</div>
</div>
<div class="modal-footer">
<button class="modal-btn merge-btn" onclick="applySharedCart('merge')"><i class="ri-git-merge-line"></i> Merge with My Cart</button>
<button class="modal-btn overwrite-btn" onclick="applySharedCart('overwrite')"><i class="ri-refresh-line"></i> Overwrite My Cart</button>
<button class="modal-btn cancel-btn" onclick="closeShareModal()">Ignore</button>
</div>
</div>
</div>
<div class="toast" id="toast">
<div class="toast-icon" id="toast-icon">✅</div>
<span id="toast-msg"></span>
</div>
<script src="app.js"></script>
<!-- Corrected -->
<script>
document.getElementById("Current-Year").textContent = new Date().getFullYear();
const cart = JSON.parse(localStorage.getItem("cart")) || [];
const cartContainer = document.getElementById("cart-items-container");
cart.forEach((item) => {
cartContainer.innerHTML += `
<div class="cart-item">
<img src="${item.img}" width="100">
<h3>${item.name}</h3>
<p>${item.price}</p>
<p>Quantity: ${item.quantity}</p>
</div>
`;
});
</script>
</body>
</html>