-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
383 lines (349 loc) · 13.3 KB
/
index.html
File metadata and controls
383 lines (349 loc) · 13.3 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@Bacon_Space Social Links</title>
<style>
body {
margin: 0;
padding: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #121212 0%, #2d2d2d 100%);
color: #fff;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
overflow-x: hidden;
}
.container {
max-width: 800px;
width: 90%;
text-align: center;
position: relative;
z-index: 1;
padding: 20px 10px;
margin: 40px 0;
}
h1 {
font-size: clamp(2rem, 5vw, 3rem);
margin-bottom: 0.5rem;
background: linear-gradient(90deg, #ff6b6b, #ffa6a6);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
text-shadow: 0 2px 15px rgba(255, 107, 107, 0.3);
}
.subtitle {
font-size: clamp(0.9rem, 3vw, 1.2rem);
opacity: 0.8;
margin-bottom: 2rem;
}
.social-links {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 12px;
margin-top: 30px;
}
.social-link {
display: flex;
align-items: center;
justify-content: center;
width: calc(50% - 16px);
max-width: 180px;
padding: 15px 10px;
background: rgba(255, 255, 255, 0.1);
border-radius: 12px;
backdrop-filter: blur(5px);
color: white;
text-decoration: none;
transition: all 0.3s ease;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.social-link:hover, .social-link:active {
transform: translateY(-5px);
background: rgba(255, 255, 255, 0.2);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
border: 1px solid rgba(255, 255, 255, 0.3);
}
.social-link i {
font-size: clamp(18px, 4vw, 24px);
margin-right: 8px;
}
.social-link span {
font-weight: 500;
font-size: clamp(14px, 3.5vw, 16px);
}
.profile-pic {
width: 120px;
height: 120px;
border-radius: 50%;
object-fit: cover;
border: 4px solid rgba(255, 107, 107, 0.7);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.particles {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
z-index: 0;
}
.particle {
position: absolute;
border-radius: 50%;
background: rgba(255, 107, 107, 0.3);
animation: float 15s infinite linear;
}
@keyframes float {
0% {
transform: translateY(0) rotate(0deg);
opacity: 1;
}
100% {
transform: translateY(-1000px) rotate(720deg);
opacity: 0;
}
}
.loading {
display: inline-block;
width: 120px;
height: 120px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.1);
display: flex;
align-items: center;
justify-content: center;
color: rgba(255, 255, 255, 0.5);
}
/* Mobile-specific styles */
@media (max-width: 600px) {
.container {
padding: 15px 10px;
margin: 20px 0;
width: 95%;
}
.social-links {
gap: 10px;
}
.social-link {
width: calc(50% - 10px);
padding: 12px 8px;
}
.profile-pic {
width: 100px;
height: 100px;
}
.loading {
width: 100px;
height: 100px;
}
}
/* For extremely small screens */
@media (max-width: 350px) {
.social-link {
width: 100%;
max-width: none;
}
}
.fa-fst {
position: relative;
display: inline-block;
width: 1em;
height: 1em;
font-size: 2rem; /* Adjust size as needed */
background: url('https://r2.fivemanage.com/image/VcXnxsNTOXwj.png') no-repeat center center;
background-size: contain;
text-indent: -9999px; /* Hide any fallback text */
overflow: hidden;
}
.fa-medal {
position: relative;
display: inline-block;
width: 1em;
height: 1em;
font-size: 2rem; /* Adjust size as needed */
background: url('https://r2.fivemanage.com/image/wT2t6j4mmGlL.png') no-repeat center center;
background-size: contain;
text-indent: -9999px; /* Hide any fallback text */
overflow: hidden;
}
.fa-kick {
position: relative;
display: inline-block;
width: 1em;
height: 1em;
font-size: 2rem; /* Adjust size as needed */
background: url('https://r2.fivemanage.com/image/GG4uI0wuIqNL.png') no-repeat center center;
background-size: contain;
text-indent: -9999px; /* Hide any fallback text */
overflow: hidden;
}
</style>
<!-- Using the latest Font Awesome version -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.1/css/all.min.css">
</head>
<body>
<div class="particles" id="particles"></div>
<div class="container">
<div id="profile-container">
<div class="loading">Loading...</div>
</div>
<h1>@Bacon_Space</h1>
<div class="subtitle">Connect with me across the internet!</div>
<div class="social-links">
<a href="https://tfst.github.io/" class="social-link">
<i class="fa-fst"></i>
<span>TeamFST</span>
</a>
<a href="https://medal.tv/u/Bacon_Space/" class="social-link">
<i class="fa-medal"></i>
<span>Medal</span>
</a>
<a href="https://tinyurl.com/BaconSpaceX" class="social-link">
<i class="fa-brands fa-x-twitter"></i>
<span>Twitter</span>
</a>
<a href="https://tinyurl.com/BaconInsta" class="social-link">
<i class="fa-brands fa-instagram"></i>
<span>Instagram</span>
</a>
<a href="https://tinyurl.com/BaconThreads" class="social-link">
<i class="fa-brands fa-threads"></i>
<span>Threads</span>
</a>
<a href="https://tinyurl.com/BaconSpaceYT" class="social-link">
<i class="fa-brands fa-youtube"></i>
<span>YouTube</span>
</a>
<a href="https://bit.ly/Bacon_Space" class="social-link">
<i class="fa-brands fa-twitch"></i>
<span>Twitch</span>
</a>
<a href="https://tinyurl.com/BaconsKick" class="social-link">
<i class="fa-kick"></i>
<span>Kick.com</span>
</a>
<a href="https://tinyurl.com/BaconSpaceFB" class="social-link">
<i class="fa-brands fa-facebook"></i>
<span>FaceBook</span>
</a>
<a href="https://tinyurl.com/BaconSpaceDiscord" id="discordButton" class="social-link">
<i class="fa-brands fa-discord"></i>
<span>Discord</span>
</a>
<a href="https://tinyurl.com/BaconsReddit" class="social-link">
<i class="fa-brands fa-reddit"></i>
<span>Reddit</span>
</a>
<a href="https://tinyurl.com/BaconGitHub" class="social-link">
<i class="fa-brands fa-github"></i>
<span>GitHub</span>
</a>
<a href="https://tinyurl.com/BaconsGitlab" class="social-link">
<i class="fa-brands fa-gitlab"></i>
<span>Gitlab</span>
</a>
<a href="https://tinyurl.com/BaconInsta" class="social-link">
<i class="fa-brands fa-tiktok"></i>
<span>TikTok</span>
</a>
<a href="https://tinyurl.com/BSRPSKY" class="social-link">
<i class="fa-brands fa-bluesky"></i>
<span>BlueSky</span>
</a>
<a href="https://tinyurl.com/BaconSteam" class="social-link">
<i class="fa-brands fa-steam"></i>
<span>Steam</span>
</a>
<a href="https://tinyurl.com/BaconSpaceBlogs" class="social-link">
<i class="fa-brands fa-wordpress-simple"></i>
<span>WordPress</span>
</a>
<a href="https://tinyurl.com/BaconMastodon" class="social-link">
<i class="fa-brands fa-mastodon"></i>
<span>Mastodon</span>
</a>
<a href="https://tinyurl.com/KickStats" class="social-link">
<i class="fa-solid fa-chart-simple"></i>
<span>KickStats</span>
</a>
<a href="https://baconspaces.github.io/BodyCam/" class="social-link">
<i class="fa-solid fa-camera"></i>
<span>BodyCam</span>
</a>
</div>
</div>
<script>
// Fetch Discord widget data
fetch('https://discord.com/api/guilds/1256849825358544947/widget.json')
.then(response => response.json())
.then(data => {
if (data && data.instant_invite) {
document.getElementById('discordButton').href = data.instant_invite;
console.log('[Discord Widget API] Discord invite updated to:', data.instant_invite);
}
})
.catch(error => {
console.error('Error fetching Discord data:', error);
// Keep the default invite link if there's an error
});
// Create fewer particles on mobile for better performance
const particlesContainer = document.getElementById('particles');
const isMobile = window.innerWidth <= 768;
const particleCount = isMobile ? 15 : 30;
for (let i = 0; i < particleCount; i++) {
const particle = document.createElement('div');
particle.classList.add('particle');
// Smaller particles on mobile
const maxSize = isMobile ? 15 : 25;
const size = Math.random() * (maxSize - 5) + 5;
particle.style.width = `${size}px`;
particle.style.height = `${size}px`;
// Random position
particle.style.left = `${Math.random() * 100}%`;
particle.style.top = `${Math.random() * 100}%`;
// Random opacity
particle.style.opacity = Math.random() * 0.5 + 0.1;
// Random animation duration (shorter on mobile)
const duration = Math.random() * (isMobile ? 15 : 20) + 10;
particle.style.animationDuration = `${duration}s`;
// Random animation delay
particle.style.animationDelay = `${Math.random() * 5}s`;
particlesContainer.appendChild(particle);
}
// Fetch GitHub user profile
const username = 'BaconSpaces'; // Change this to the correct GitHub username
const profileContainer = document.getElementById('profile-container');
fetch(`https://api.github.com/users/${username}`)
.then(response => {
if (!response.ok) {
throw new Error('GitHub user not found');
}
return response.json();
})
.then(data => {
// Create profile image
profileContainer.innerHTML = ''; // Clear loading indicator
const img = document.createElement('img');
img.src = data.avatar_url;
img.alt = `${username} profile picture`;
img.className = 'profile-pic';
profileContainer.appendChild(img);
})
.catch(error => {
console.error('Error fetching GitHub profile:', error);
// Fallback to placeholder if GitHub API fails
profileContainer.innerHTML = '';
const img = document.createElement('img');
img.src = "/api/placeholder/150/150";
img.alt = "@Bacon_Space";
img.className = 'profile-pic';
profileContainer.appendChild(img);
});
</script>
</body>
</html>