-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshop.html
More file actions
387 lines (348 loc) · 12.7 KB
/
shop.html
File metadata and controls
387 lines (348 loc) · 12.7 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
380
381
382
383
384
385
386
387
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Shop</title>
<link rel="icon" href="ico.png" type="image/png">
<link rel="shortcut icon" href="ico.png" type="image/png">
<style>
body {
margin: 0;
overflow: auto;
background-color: #000;
display: flex;
flex-direction: column;
align-items: center;
min-height: 100vh;
font-family: 'Arial', sans-serif;
scroll-behavior: smooth;
}
#meteor-canvas {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 0;
}
#announcement-bar {
position: fixed;
top: 0;
left: 0;
width: 100%;
background-color: #ff0000;
color: white;
padding: 10px 0;
text-align: center;
font-size: 16px;
z-index: 10;
overflow: hidden;
}
#announcement-bar-text {
display: inline-block;
white-space: nowrap;
animation: rotateText 15s linear infinite;
transform-origin: 50% 50%;
}
@keyframes rotateText {
0% {
transform: translateX(100%);
}
100% {
transform: translateX(-100%);
}
}
#nav-bar {
position: fixed;
top: 0;
left: 0;
width: 100%;
background-color: rgba(0, 0, 0, 0.5);
color: white;
padding: 10px 0;
text-align: center;
font-size: 16px;
z-index: 10;
display: flex;
justify-content: space-between;
align-items: center;
box-sizing: border-box;
top: 36px;
}
#nav-bar-left {
margin-left: 20px;
color: #9333ea;
}
#nav-bar-right {
margin-right: 20px;
display: flex;
}
#nav-bar-right button {
color: white;
text-decoration: none;
margin-left: 10px;
margin-right: 10px;
padding: 8px 16px;
border: 1px solid grey;
border-radius: 5px;
font-size: 18px;
cursor: pointer;
transition: background-color 0.3s ease;
outline: none;
background-color: transparent;
}
#nav-bar-right button:hover {
background-color: rgba(128, 128, 128, 0.2);
}
#salsoftware-text {
font-size: 90px;
font-weight: bold;
color: rgba(255, 255, 255, 0.5);
text-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
z-index: 1;
position: absolute;
top: 45%;
left: 50%;
transform: translate(-50%, -50%);
user-select: none;
pointer-events: none;
text-align: center;
width: 100%;
}
/* Shop Section Styles */
#shop-section {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 20px; /* Reduced gap for smaller boxes */
padding: 100px 20px;
width: 100%;
box-sizing: border-box;
margin-top: 80vh;
z-index: 2;
}
.product-card {
background-color: #2a2a2a;
border-radius: 10px; /* Slightly less rounded corners */
width: 280px; /* Slightly smaller width */
height: auto;
padding: 15px; /* Slightly reduced padding */
color: #fff;
font-size: 16px; /* Slightly smaller font */
text-align: center;
transition: background-color 0.3s ease, transform 0.3s ease;
border: 2px solid #9333ea;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
flex: 0 0 calc(33.33% - 20px);
max-width: calc(33.33% - 20px);
}
.product-card:hover {
background-color: #3b3b3b;
transform: scale(1.03);
}
.product-card img {
width: 100%;
border-radius: 8px; /* Slightly less rounded corners */
margin-bottom: 10px; /* Reduced margin */
}
.product-card h3 {
font-size: 20px; /* Smaller heading */
margin-bottom: 8px; /* Reduced margin */
font-weight: bold;
}
.product-card p {
font-size: 14px; /* Smaller paragraph text */
line-height: 1.5; /* Slightly reduced line height */
margin-bottom: 10px; /* Reduced margin */
text-align: left;
}
.product-card button {
padding: 10px 20px; /* Smaller button padding */
background-color: #9333ea;
color: #fff;
border: none;
border-radius: 5px;
font-size: 16px; /* Smaller button text */
cursor: pointer;
transition: background-color 0.3s ease, transform 0.3s ease;
width: 100%;
box-sizing: border-box;
}
.product-card button:hover {
background-color: #7e22ce;
transform: scale(1.05);
}
/* Adjust for smaller screens */
@media (max-width: 1200px) {
.product-card {
flex: 0 0 calc(50% - 20px);
max-width: calc(50% - 20px);
}
}
@media (max-width: 768px) {
.product-card {
flex: 0 0 100%;
max-width: 100%;
}
#shop-section {
gap: 10px; /* Further reduced gap on small screens */
}
}
</style>
</head>
<body>
<div id="announcement-bar">
<div id="announcement-bar-text"></div>
</div>
<div id="nav-bar">
<div id="nav-bar-left">Salsoftware</div>
<div id="nav-bar-right">
<a href="shop.html"><button>Shop</button></a>
<a href="software.html"><button>Software</button></a>
<a href="tutorials.html"><button>Tutorials</button></a>
<a href="login.html"><button>Login</button></a>
</div>
</div>
<h1 id="salsoftware-text">Shop</h1>
<section id="shop-section">
<div class="product-card">
<img src="placeholder.png" alt="Product 1">
<h3>Product 1</h3>
<p>Description of Product 1. This is a great product for all your needs. It is available in multiple colors and sizes.</p>
<button>Add to Cart - $19.99</button>
</div>
<div class="product-card">
<img src="placeholder.png" alt="Product 2">
<h3>Product 2</h3>
<p>Description of Product 2. A high-quality item that will exceed your expectations. Perfect for any occasion.</p>
<button>Add to Cart - $29.99</button>
</div>
<div class="product-card">
<img src="placeholder.png" alt="Product 3">
<h3>Product 3</h3>
<p>Description of Product 3. The best product in its category. You won't be disappointed with this purchase.</p>
<button>Add to Cart - $39.99</button>
</div>
<div class="product-card">
<img src="placeholder.png" alt="Product 4">
<h3>Product 4</h3>
<p>Description of Product 4. A unique and innovative product designed for modern users. Get yours today!</p>
<button>Add to Cart - $49.99</button>
</div>
<div class="product-card">
<img src="placeholder.png" alt="Product 5">
<h3>Product 5</h3>
<p>Description of Product 5. This is a great product for all your needs. It is available in multiple colors and sizes.</p>
<button>Add to Cart - $19.99</button>
</div>
<div class="product-card">
<img src="placeholder.png" alt="Product 6">
<h3>Product 6</h3>
<p>Description of Product 6. A high-quality item that will exceed your expectations. Perfect for any occasion.</p>
<button>Add to Cart - $29.99</button>
</div>
<div class="product-card">
<img src="placeholder.png" alt="Product 7">
<h3>Product 7</h3>
<p>Description of Product 7. The best product in its category. You won't be disappointed with this purchase.</p>
<button>Add to Cart - $39.99</button>
</div>
<div class="product-card">
<img src="placeholder.png" alt="Product 8">
<h3>Product 8</h3>
<p>Description of Product 8. A unique and innovative product designed for modern users. Get yours today!</p>
<button>Add to Cart - $49.99</button>
</div>
</section>
<canvas id="meteor-canvas"></canvas>
<script>
const canvas = document.getElementById('meteor-canvas');
const ctx = canvas.getContext('2d');
const dpr = window.devicePixelRatio || 1;
canvas.width = window.innerWidth * dpr;
canvas.height = window.innerHeight * dpr;
ctx.scale(dpr, dpr);
const meteorCount = 200;
const meteors = [];
function initializeMeteors() {
for (let i = 0; i < meteorCount; i++) {
meteors.push({
x: Math.random() * canvas.width / dpr,
y: Math.random() * canvas.height / dpr,
radius: Math.random() * 3 + 1,
speed: Math.random() * 4 + 1,
brightness: Math.random() * 0.5 + 0.5,
});
}
}
function drawBackground() {
const gradient = ctx.createLinearGradient(0, 0, canvas.width / dpr, canvas.height / dpr);
gradient.addColorStop(0, '#000000');
gradient.addColorStop(0.5, '#111111');
gradient.addColorStop(1, '#222222');
ctx.fillStyle = gradient;
ctx.fillRect(0, 0, canvas.width / dpr, canvas.height / dpr);
ctx.strokeStyle = 'rgba(128, 128, 128, 0.1)';
ctx.lineWidth = 1;
const stripeWidth = 15;
const stripeSpacing = 25;
for (let x = -canvas.width / dpr; x < canvas.width / dpr; x += stripeSpacing) {
ctx.beginPath();
ctx.moveTo(x, 0);
ctx.lineTo(x + canvas.height / dpr, canvas.height / dpr);
ctx.stroke();
ctx.closePath();
}
}
function drawMeteors() {
meteors.forEach(meteor => {
meteor.x -= meteor.speed;
meteor.y += meteor.speed * 0.6;
if (meteor.x < -meteor.radius * 2 || meteor.y > canvas.height / dpr) {
meteor.x = canvas.width / dpr + meteor.radius * 2;
meteor.y = Math.random() * canvas.height / dpr;
}
ctx.beginPath();
ctx.arc(meteor.x, meteor.y, meteor.radius, 0, Math.PI * 2);
ctx.fillStyle = `rgba(255, 255, 255, ${meteor.brightness})`;
ctx.fill();
ctx.closePath();
});
}
// Announcement Bar Text Rotation
const announcementText = document.getElementById('announcement-bar-text');
const messages = [
"Don't Miss Our HUGE Summer Sale!",
"Get 25% Off on All Items This Weekend Only!",
"Flash Sale Alert! 50% Off on Selected Items!",
"New Arrivals - Shop Now and Save 20%!",
"Limited Time Offer: Buy One Get One Free!"
];
let messageIndex = 0;
function updateAnnouncementText() {
announcementText.textContent = messages[messageIndex];
messageIndex = (messageIndex + 1) % messages.length;
}
//initial call
updateAnnouncementText();
// Change the message every 3 seconds (3000 milliseconds)
setInterval(updateAnnouncementText, 3000);
function animate() {
ctx.clearRect(0, 0, canvas.width / dpr, canvas.height / dpr);
drawBackground();
drawMeteors();
requestAnimationFrame(animate);
}
initializeMeteors();
animate();
window.addEventListener('resize', () => {
canvas.width = window.innerWidth * dpr;
canvas.height = window.innerHeight * dpr;
ctx.scale(dpr, dpr);
initializeMeteors();
});
</script>
</body>
</html>