-
Notifications
You must be signed in to change notification settings - Fork 69
/
Copy pathEcommerce.html
373 lines (305 loc) · 8.42 KB
/
Ecommerce.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
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
<!DOCTYPE html>
<html>
<head>
<title>My E-Commerce Website</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.1/css/all.css" integrity="sha384-vp86vTRFVJgpjF9jiIGPEEqYqlDwgyBgEF109VFjmqGmIY/Y4HV4d3Gp2irVfcrp" crossorigin="anonymous">
<style>/* Global styles */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
/* Colorful styles */
header {
position: relative;
/* Add a gradient background to the header */
background: linear-gradient(to right, rgb(240, 65, 234), #c5b6e6, #b05bec);
}
nav a {
color: #fff;
text-decoration: none;
padding: 12px;
display: inline-block;
font-size: larger;
padding-top: 20px;
padding-bottom: 20px;
}
nav {
display: flex;
margin-bottom: 5px;
justify-content: space-between;
}
nav ul {
display: flex;
list-style: none;
margin: 0;
padding: 0;
}
nav li {
margin: 0 10px;
}
nav a:hover {
background-color: #eaeaea;
}
z
/* Attractive styles */
#hero {
margin-top: 5px;
background-image: url(https://img.freepik.com/free-photo/cool-geometric-triangular-figure-neon-laser-light-great-backgrounds_181624-11068.jpg?w=2000);
background-size: cover;
padding: 50px;
text-align: center;
}
#hero h1 {
padding-bottom: 20px;
font-size: 3.2rem;
margin-bottom: 2rem;
color: #fff;
text-shadow: 4px 4px #333;
}
#hero p {
font-size: 1.8rem;
margin-top: 3rem;
margin-bottom: 6rem;
color: #fff;
text-shadow: 2px 5px #333;
}
#hero a {
cursor: pointer;
transition: width 0.4s ease-in-out;
background: linear-gradient(to right, #09eb11, #cde7ce);
/* background-color: #ff9800; */
color: rgb(0, 0, 0);
padding: 12px 25px;
border-radius: 20px;
text-decoration: none;
box-shadow: rgb(255, 255, 255) 2px 2px 10px 5px;
}
#hero a:hover {
background: linear-gradient(to right, #8205e8, #30e85b);
box-shadow: rgb(0, 0, 0) 2px 2px 10px 5px;
/* background-color: #f57c00; */
}
/* Attractive styles */
/* Add a hover effect to the navigation links */
nav a:hover {
background-color: #ffffff;
border-radius: 10px;
color: black;
transition: all 0.2s ease-in-out;
}
/* Add a background image and overlay to the hero section */
#hero {
background-image: url(https://img.freepik.com/free-photo/cool-geometric-triangular-figure-neon-laser-light-great-backgrounds_181624-11068.jpg?w=2000);
background-size: cover;
padding: 50px;
text-align: center;
position: relative;
}
/* Add an overlay to the hero section */
#hero::before {
/* content: ""; */
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
}
/* Add a hover effect to the "Shop Now" button in the hero section */
#hero a:hover {
background-color: #f57c00;
border-radius: 20px;
transition: all 0.2s ease-in-out;
}
/* Add a hover effect to the featured products */
/* Add a background color and padding to the "Product Categories" section */
#categories {
background-image: linear-gradient(to right, rgb(101, 80, 172), rgb(169, 9, 214), #dde8da);
padding: 20px;
text-align: left;
padding: 20px;
}
/* Add a border and hover effect to the category links */
#categories li {
margin-left: 30px;
list-style-type: none;
}
#categories a {
border: 1px solid #ccc;
padding: 10px;
display: block;
text-decoration: none;
color: #333;
transition: all 0.2s ease-in-out;
}
#categories a:hover {
background-color: #eaeaea;
border-color: #4CAF50;
color: #4CAF50;
}
/* Add a hover effect to the category list items */
#categories li:hover {
background-color: #f8f8f8;
box-shadow: 2px 2px #ccc;
}
.card-container {
display: flex;
list-style: none;
display: flex;
flex-wrap: wrap;
background-color: rgb(218, 199, 199);
}
.card {
margin: 10px;
width: 20%;
background-color: #f5f5f5;
box-shadow: 2px 2px 30px 5px rgb(53, 1, 92);
border-radius: 5px;
padding: 20px;
text-align: center;
display: flex;
list-style: none;
display: flex;
flex-wrap: wrap;
margin-top: 5%;
margin-bottom: 5%;
}
.card img {
width: 100%;
border-radius: 10px 10px 0 0;
}
.card p {
color: #333;
line-height: 1.5;
margin-bottom: 0;
}
.card a.btn {
width: 50%;
margin: 5%;
align-self: center;
padding: 10px 20px;
background: linear-gradient(to right, #090011, #533091);
color: #fff;
text-decoration: none;
border-radius: 20px;
font-weight: bold;
}
.card a.btn:hover {
background: linear-gradient(to right, #bdabcd, #533091);
box-shadow: #b05bec 2px 2px 10px 5px;
}
.card-container h2 {
background: linear-gradient(to right, #3a3432, #181818);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
box-shadow: #8205e8 1px 1px 30px 2px;
font-size: 40px;
display: inline-block;
font: bolder;
padding: 10px;
margin: 50px;
transform: rotate(-180deg);
writing-mode: vertical-rl;
text-align: center;
text-transform: uppercase;
}
footer {
background: linear-gradient(to right, rgb(240, 65, 234), #c5b6e6, #b05bec);
color: rgb(0, 0, 0);
padding: 20px;
}
.footer-container {
display: flex;
justify-content: space-between;
}
.footer-left p {
margin: 0;
}
.footer-right ul {
list-style: none;
margin: 0;
padding: 0;
}
.footer-right ul li {
display: inline-block;
margin-right: 10px;
}
.footer-right ul li a {
color: rgb(0, 0, 0);
text-decoration: none;
}
.social-links a {
color: rgb(65, 5, 103);
font-size: 20px;
margin-right: 10px;
text-decoration: none;
/* remove underline */
}
.social-links a:hover {
color: #ffa500;
/* change the color on hover */
}</style>
</head>
<body>
<header>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Shop</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
</header>
<section id="hero">
<h1>Welcome to My E-Commerce Website</h1>
<p>Check out our latest products and deals</p>
<a href="#" id="shop-now" onclick="window.location='link_to_shop'">Shop Now</a>
</section>
<div class="card-container">
<h2>featured Items</h2>
<div class="card">
<img src="https://via.placeholder.com/200x150?text=image+goes+here" alt="Product 1">
<h3>Product 1</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed auctor, magna at tincidunt.</p>
<a href="#" class="btn">View Product</a>
</div>
<div class="card">
<img src="https://via.placeholder.com/200x150?text=image+goes+here" alt="Product 2">
<h3>Product 2</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed auctor, magna at tincidunt.</p>
<a href="#" class="btn">View Product</a>
</div>
<div class="card">
<img src="https://via.placeholder.com/200x150?text=image+goes+here" alt="Product 3">
<h3>Product 3</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed auctor, magna at tincidunt.</p>
<a href="#" class="btn">View Product</a>
</div>
</div>
<footer>
<div class="footer-container">
<div class="footer-left">
<p>Copyright © My E-Commerce Website</p>
</div>
<div class="footer-right">
<ul>
<li><a href="#">About Us</a></li>
<li><a href="#">Contact Us</a></li>
<li><a href="#">Terms & Conditions</a></li>
<li><a href="#">Privacy Policy</a></li>
</ul>
<p>Follow us on:</p>
<div class="social-links">
<a href="https://facebook.com/my-page" target="_blank"><i class="fa fa-facebook-square"> Facebook
</i> </a>
<a href="https://twitter.com/my-handle" target="_blank"><i class="fa fa-twitter-square">twitter</i></a>
<a href="https://instagram.com/my-handle" target="_blank"><i class="fa fa-instagram">Instagram</i></a>
</div>
</div>
</div>
</footer>
</body>
</html>