-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsProduct4.html
325 lines (261 loc) · 12.4 KB
/
sProduct4.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>crafts</title>
<link href="https://cdn.jsdelivr.net/npm/remixicon@4.3.0/fonts/remixicon.css" rel="stylesheet" />
<link rel="stylesheet" href="style.css">
</head>
<body>
<section id="header">
<a href="#"><img src="imges/Screenshot_2024-09-07_230235-removebg-preview.png" class="logo" alt=""></a>
<div>
<ul id="navbar">
<li><a href="index.html">Home</a></li>
<li><a class="active" href="shop.html">Shop</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
<li id="cartBag"><a href="shop.html"><i class="ri-shopping-cart-line"></i><span>0</span></a></li>
<a href="#" id="close"><i class="ri-close-line"></i></a>
</ul>
</div>
<div id="mobile">
<a href="shop.html"><i class="ri-shopping-cart-line"></i><span>0</span></a>
<i id="bar" class="ri-menu-line"></i>
</div>
</section>
<section id="productDetails">
<div class="single-pro-image">
<img src="imges/Bday cards/pandCard1.png" width="100%" id="mainImg" alt="">
<div class="small-img-group">
<div class="small-img-col">
<img src="imges/Bday cards/folwerCard.png" width="100%" class="smallImg" alt="">
</div>
<div class="small-img-col">
<img src="imges/Bday cards/heartCard.png" width="100%" class="smallImg" alt="">
</div>
<div class="small-img-col">
<img src="imges/Bday cards/pandCard1.png" width="100%" class="smallImg" alt="">
</div>
<div class="small-img-col">
<img src="imges/new bday cards/minionsCard.png" width="100%" class="smallImg" alt="">
</div>
</div>
</div>
<div class="single-pro-details" id="forlovers" style="display: none;">
<h4>For Lovers</h4>
<h2>$3.99</h2>
<button class="wish" onclick="window.location.href='wish.html'">Write Your Wish</button>
<br><br>
<input type="number" value="1">
<button class="wish">Add To Cart</button>
<h4>Romantic Birthday Cards</h4>
<p>Express your love with our collection of romantic birthday cards. Filled with sweet messages and
beautiful designs, these cards are perfect for making your significant other feel cherished on their
special day.</p>
<h4>Anniversary + Birthday Combo</h4>
<p>When birthday meets anniversary, our combo cards are the perfect choice. Celebrate two special occasions
in one with designs that combine romance and festivity, perfect for couples.</p>
</div>
<div class="single-pro-details" id="seasonalCards" style="display: none;">
<h4>Seasonal Cards</h4>
<h2>$3.99</h2>
<button class="wish" onclick="window.location.href='wish.html'">Write Your Wish</button>
<br><br>
<input type="number" value="1">
<button class="wish">Add To Cart</button>
<h4>Holiday-Themed Birthday Cards</h4>
<p>Make birthdays during the holiday season even more special with our holiday-themed birthday cards.
Blending birthday celebrations with the joy of Christmas, Halloween, or New Year's, these unique designs
bring twice the cheer.</p>
</div>
<div class="single-pro-details" id="forChild">
<h4>For Children</h4>
<h2>$3.99</h2>
<button class="wish" onclick="window.location.href='wish.html'">Write Your Wish</button>
<br><br>
<input type="number" value="1">
<button class="wish">Add To Cart</button>
<h4>Description:</h4>
<p>Brighten a child's special day with our fun and colorful birthday cards! Featuring playful designs like
cartoon characters, animals, and superheroes, these cards are perfect for kids of all ages. From
milestone birthdays to personalized cards, you'll find the perfect way to celebrate their big day.</p>
</div>
<div class="single-pro-details" id="funnyCards" style="display: none;">
<h4> Funny & Quirky</h4>
<h2>$3.99</h2>
<button class="wish" onclick="window.location.href='wish.html'">Write Your Wish</button>
<br><br>
<input type="number" value="1">
<button class="wish">Add To Cart</button>
<h4>Description:</h4>
<p>Get the laughs going with our collection of funny birthday cards! Packed with puns, jokes, and quirky
designs, these cards are perfect for anyone with a great sense of humor.</p>
</div>
</section>
<section id="product1">
<h2>Latest Designs</h2>
<p>Morden Design</p>
<div class="pro-container">
<div class="pro" onclick="window.location.href='sProduct5.html';">
<img src="imges/new bday cards/flowerCard2.png" alt="">
<div class="des">
<span>CwS</span>
<h5>Special Birthday Cards</h5>
<div class="stars">
<i class="ri-star-fill"></i>
<i class="ri-star-fill"></i>
<i class="ri-star-fill"></i>
<i class="ri-star-fill"></i>
<i class="ri-star-fill"></i>
</div>
<h4>$3</h4>
</div>
<a href="#"><i class="ri-shopping-cart-fill cart"></i></a>
</div>
<div class="pro" onclick="window.location.href='sProduct6.html';">
<img src="imges/new bday cards/natureCard1.png" alt="">
<div class="des">
<span>CwS</span>
<h5>Special Birthday Cards</h5>
<div class="stars">
<i class="ri-star-fill"></i>
<i class="ri-star-fill"></i>
<i class="ri-star-fill"></i>
<i class="ri-star-fill"></i>
<i class="ri-star-fill"></i>
</div>
<h4>$3</h4>
</div>
<a href="#"><i class="ri-shopping-cart-fill cart"></i></a>
</div>
<div class="pro" onclick="window.location.href='sProduct7.html';">
<img src="imges/new bday cards/pandaCard2.png" alt="">
<div class="des">
<span>CwS</span>
<h5>Special Birthday Cards</h5>
<div class="stars">
<i class="ri-star-fill"></i>
<i class="ri-star-fill"></i>
<i class="ri-star-fill"></i>
<i class="ri-star-fill"></i>
<i class="ri-star-fill"></i>
</div>
<h4>$3</h4>
</div>
<a href="#"><i class="ri-shopping-cart-fill cart"></i></a>
</div>
<div class="pro" onclick="window.location.href='sProduct8.html';">
<img src="imges/new bday cards/minionsCard.png" alt="">
<div class="des">
<span>CwS</span>
<h5>Special Birthday Cards</h5>
<div class="stars">
<i class="ri-star-fill"></i>
<i class="ri-star-fill"></i>
<i class="ri-star-fill"></i>
<i class="ri-star-fill"></i>
<i class="ri-star-fill"></i>
</div>
<h4>$3</h4>
</div>
<a href="#"><i class="ri-shopping-cart-fill cart"></i></a>
</div>
</div>
</section>
<section id="newsletter">
<div class="newstext">
<h4>Sign Up for Newsletter</h4>
<p>Get E-mail updates about our latest shop and <span>special offers</span> .</p>
</div>
<div class="form">
<input type="text" placeholder="Your email address">
<button>Sign Up</button>
</div>
</section>
<footer class="footerpadding">
<div class="col">
<img src="imges/Screenshot_2024-09-07_230235-removebg-preview.png" class="logo" alt="">
<h4>contact</h4>
<p> <strong>Address:</strong>Airport road, Anuradhapura</p>
<p> <strong>Phone:</strong>+94 704511887 </p>
<p> <strong>Hours:</strong>08:00 - 18:00, Mon - Fri</p>
<div class="follow">
<h4>Follow us</h4>
<div class="icon">
<i class="ri-facebook-fill"></i>
<i class="ri-instagram-line"></i>
<i class="ri-pinterest-fill"></i>
<i class="ri-whatsapp-line"></i>
<i class="ri-tiktok-fill"></i>
</div>
</div>
</div>
<div class="col">
<h4>About</h4>
<a href="#">About us</a>
<a href="#">Delivery Information</a>
<a href="#">Privacy Policy</a>
<a href="#">Terms & Conditions</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="#">My Wishlist</a>
<a href="#">Track My Oder </a>
<a href="#">Help</a>
</div>
<div class="col install">
<h4>Install App</h4>
<p>From App Store or Google Play</p>
<div class="row">
<img src="imges/app/app.jpg" alt="">
<img src="imges/app/play.jpg" alt="">
</div>
<div>
<p>Secured Payment Geteways</p>
<img src="imges/app/pay.png" alt="">
</div>
</div>
<div class="copyRight">
<p>© 2024 Akila Lochana. All rights reserved.</p>
</div>
</footer>
<script>
var mainImg = document.getElementById('mainImg');
var smallImg = document.getElementsByClassName('smallImg');
// Loop through small images and add onclick event to each
for (let i = 0; i < smallImg.length; i++) {
smallImg[i].onclick = function () {
mainImg.src = smallImg[i].src;
// Switch between card categories based on clicked image
if (mainImg.src == smallImg[1].src) {
document.getElementById('seasonalCards').style.display = "none";
document.getElementById('forlovers').style.display = "block";
document.getElementById('forChild').style.display = "none";
document.getElementById('funnyCards').style.display = "none";
} else if (mainImg.src == smallImg[2].src) {
document.getElementById('seasonalCards').style.display = "none";
document.getElementById('forlovers').style.display = "none";
document.getElementById('forChild').style.display = "block";
document.getElementById('funnyCards').style.display = "none";
} else if (mainImg.src == smallImg[3].src) {
document.getElementById('seasonalCards').style.display = "none";
document.getElementById('forlovers').style.display = "none";
document.getElementById('forChild').style.display = "none";
document.getElementById('funnyCards').style.display = "block";
} else {
document.getElementById('seasonalCards').style.display = "block";
document.getElementById('forlovers').style.display = "none";
document.getElementById('forChild').style.display = "none";
document.getElementById('funnyCards').style.display = "none";
}
};
}
</script>
<script src="script.js"></script>
</body>
</html>