-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathabout.html
More file actions
362 lines (338 loc) · 13.6 KB
/
about.html
File metadata and controls
362 lines (338 loc) · 13.6 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" href="img\log.ico" type="image/x-icon">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ElSerbe</title>
<style>
body {
margin: 0;
font-family: Arial, sans-serif;
background-color: black;
overflow: auto;
}
.container {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
height: 100vh;
position: relative;
z-index: 1;
padding: 20px;
box-sizing: border-box;
}
.sections {
display: flex;
flex-wrap: wrap;
justify-content: center;
margin: 20px 0;
}
.section {
margin: 10px;
padding: 0; /* Remove padding to avoid extra space inside the link */
background-color: black;
border: 2px solid;
border-image: linear-gradient(to bottom, magenta, purple) 1;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
text-align: center;
transition: box-shadow 0.3s ease;
display: flex; /* Ensure the section itself is a flex container */
align-items: center; /* Center content vertically */
justify-content: center; /* Center content horizontally */
}
.section:hover {
box-shadow: 0 0 10px 2px purple;
}
.section a {
text-decoration: none;
color: white;
font-weight: bold;
display: flex; /* Make the entire link a flex container */
align-items: center; /* Center content vertically */
justify-content: center; /* Center content horizontally */
height: 100%;
width: 100%;
padding: 10px 20px; /* Add padding inside the link */
}
.logo {
max-width: 90%;
height: auto;
margin: 20px 0;
cursor: pointer; /* Indicate it's clickable */
}
.logo-link {
display: inline-block; /* Wrap the logo in a clickable area */
}
.content-image-link {
display: inline-block; /* Wrap the logo in a clickable area */
}
canvas {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 0;
}
/* Mobile adaptation */
@media (max-width: 768px) {
.container { flex-direction: column; padding: 10px; height: auto; min-height: 100vh;}
.section { margin: 5px; }
.content-box { width: 95%; padding: 15px; }
.content-image { max-width: 100%; height: auto; }
.logo { max-width: 80%; }
}
</style>
<script>
document.addEventListener('DOMContentLoaded', () => {
const logo = document.querySelector('.logo','.content-image');
if (logo) {
logo.addEventListener('click', () => {
window.location.href = 'index.html';
});
}
});
</script>
</head>
<body>
<canvas id="particleCanvas"></canvas>
<div class="content-section">
<img src="img/logo1.png" alt="About Image" class="content-image">
<div class="content-box">
<h2>Hello and welcome to the ElSerbe community!</h2>
<br><br>
<p>This is a community I created for people to enjoy unique gaming experiences, usually not the most mainstream ones, but definitely special.<br> We have a Discord server to chat about them!</p>
<p>If you'd like to contact me via email or for business inquiries, please message me at:</p>
<br><br>
<h2><b>ElSerbe@proton.me</b></h2>
<br>
<h2>ABOUT ME:</h2>
<p>Hi, I'm <b>Yuri</b>, a passionate gamer and all-around art enthusiast. I work as a freelance Level Designer (though I'd starve to death if that were my only job), 3D design, and occasionally as an IT technician.<br> I founded the ElSerbe community because what I love most about gaming is sharing the experience with others. In my philosophy, playing with someone, whether cooperatively or competitively, makes any game infinitely better, as it becomes a shared journey of perspectives.</p><br>
<p>If you'd like to check out my work, you can visit my <b><a href="https://mod.io/u/itsyurii/">Mod.io</a></b> and <b><a href="https://steamcommunity.com/id/itsyurii/myworkshopfiles/">Steam Workshop</a></b> pages, though many of my projects are private or unfinished. I hope to muster the willpower to complete them someday! It's a struggle due to personal circumstances, but gaming is a passion I'll never stop pursuing.</p><br>
<p>If you've read this far, know that you have my deepest respect. Thank you for being part of this community! I'd be eternally grateful <b><a href="https://patreon.com/ltsYuri/">if you could support me to help cover server costs or even just keep me fed</a></b>. Thank you so much!</p>
</div>
</div>
<style>
.section.active {
background-color: #2a002a; /* Slightly darker than the border */
}
.content-section {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 20px;
}
.content-image {
max-width: 90%;
height: auto;
margin: 20px 0;
cursor: pointer; /* Indicate it's clickable */
}
.content-box {
background-color: black;
border: 2px solid;
border-image: linear-gradient(to bottom, magenta, purple) 1;
border-radius: 5px;
padding: 20px;
margin: 20px 0;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
color: white;
text-align: center;
width: 90%;
max-width: 600px;
}
.content-box h2 {
margin: 0 0 10px;
font-size: 1.5em;
color: magenta;
}
.content-box p {
margin: 0;
font-size: 1em;
line-height: 1.5;
}
</style>
<style>
canvas#particleCanvas {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1; /* Send the canvas to the background */
}
.content-section {
margin-top: -20%; /* Reduce the margin to make the distance smaller */
}
.content-box a, b {
color: magenta;
text-shadow: 0 0 10px purple, 0 0 5px magenta;
}
a {
text-decoration: none; /* Remove underline from links */
}
</style>
<script>
// Highlight the "About" button
document.querySelectorAll('.section a').forEach(link => {
if (link.getAttribute('href') === 'index.html') {
link.parentElement.classList.add('active');
}
});
</script>
<script>
const canvas = document.getElementById('particleCanvas');
const ctx = canvas.getContext('2d');
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
const particles = [];
const particleCount = 100;
let mouseX = -100;
let mouseY = -100;
window.addEventListener("mousemove", (e) => {
mouseX = e.clientX;
mouseY = e.clientY;
});
class Particle {
constructor(x, y, speed, size) {
this.x = x;
this.y = y;
this.speed = speed;
this.size = size;
}
draw() {
const gradient = ctx.createLinearGradient(0, this.y - this.size, 0, this.y + this.size);
gradient.addColorStop(0, 'magenta');
gradient.addColorStop(1, 'purple');
ctx.fillStyle = gradient;
ctx.beginPath();
ctx.arc(this.x, this.y, this.size, 0, Math.PI * 2);
ctx.fill();
}
update() {
this.y += this.speed;
const dx = this.x - mouseX;
const dy = this.y - mouseY;
const dist = Math.sqrt(dx * dx + dy * dy);
if (dist < 50) {
const force = (50 - dist) / 50;
this.x += (dx / dist) * force * 5;
this.y += (dy / dist) * force * 5;
}
if (this.y > canvas.height) {
this.y = 0;
this.x = Math.random() * canvas.width;
}
if (this.x < 0) this.x = canvas.width;
if (this.x > canvas.width) this.x = 0;
}
}
function initParticles() {
for (let i = 0; i < particleCount; i++) {
const x = Math.random() * canvas.width;
const y = Math.random() * canvas.height;
const speed = Math.random() * 2 + 1;
const size = Math.random() * 3 + 1;
particles.push(new Particle(x, y, speed, size));
}
}
function animate() {
ctx.clearRect(0, 0, canvas.width, canvas.height);
particles.forEach(particle => {
particle.update();
particle.draw();
});
requestAnimationFrame(animate);
}
initParticles();
animate();
window.addEventListener('resize', () => {
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
particles.length = 0;
initParticles();
});
</script>
<script>
// Create audio element
const audio = new Audio('sound/bgmusic.mp3');
audio.loop = true;
audio.volume = 0.3; // Set volume to 30%
// Play audio after 0.01s delay
setTimeout(() => {
audio.play();
}, 10);
// Create floating button container
const musicControl = document.createElement('div');
musicControl.style.position = 'fixed';
musicControl.style.bottom = '20px';
musicControl.style.left = '20px';
musicControl.style.display = 'flex';
musicControl.style.alignItems = 'center';
musicControl.style.backgroundColor = 'black';
musicControl.style.border = '2px solid';
musicControl.style.borderImage = 'linear-gradient(to bottom, magenta, purple) 1';
musicControl.style.borderRadius = '5px';
musicControl.style.padding = '10px';
musicControl.style.boxShadow = '0 2px 4px rgba(0, 0, 0, 0.5)';
musicControl.style.zIndex = '2';
// Create play/pause button
const playPauseButton = document.createElement('button');
playPauseButton.textContent = 'Pause';
playPauseButton.style.backgroundColor = 'black';
playPauseButton.style.color = 'white';
musicControl.style.border = '2px solid';
musicControl.style.borderImage = 'linear-gradient(to bottom, magenta, purple) 1';
playPauseButton.style.fontWeight = 'bold';
playPauseButton.style.cursor = 'pointer';
playPauseButton.style.marginRight = '10px';
playPauseButton.style.padding = '5px 10px';
playPauseButton.style.borderRadius = '5px';
// Toggle play/pause functionality
playPauseButton.addEventListener('click', () => {
if (audio.paused) {
audio.currentTime = 0; // Reset audio to the beginning
audio.play();
playPauseButton.textContent = 'Pause';
} else {
audio.pause();
playPauseButton.textContent = 'Play';
}
});
// Create song name text
const songName = document.createElement('span');
songName.textContent = 'Elevator Music - Cobalt OST';
songName.style.color = 'white';
songName.style.fontWeight = 'bold';
// Append elements to the container
musicControl.appendChild(playPauseButton);
musicControl.appendChild(songName);
// Append the container to the body
document.body.appendChild(musicControl);
</script>
<script>
// Disable music restart on link click
function loadContent(page) {
const contentContainer = document.getElementById('dynamic-content');
fetch(page)
.then(response => response.text())
.then(html => {
contentContainer.innerHTML = html;
})
.catch(error => console.error('Error loading page:', error));
}
document.addEventListener('DOMContentLoaded', () => {
document.querySelectorAll('.section a').forEach(link => {
link.addEventListener('click', event => {
event.preventDefault();
const page = link.getAttribute('href');
loadContent(page);
});
});
});
</script>
</body>
</html>