-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
89 lines (85 loc) · 4.83 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Stux - Hacker VTuber</title>
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
fontFamily: {
sans: ['Inter', 'sans-serif'],
},
}
}
}
// Array of background images
const backgrounds = [
'roach-dancing.gif',
'stux&demy.jpg',
'stux-working.png',
// Add more background images here
];
// Function to set a random background image
function setRandomBackground() {
let randomIndex;
if (Math.random() < 0.05) {
randomIndex = 0; // 5% chance to get the first index (0)
} else {
randomIndex = Math.floor(Math.random() * (backgrounds.length - 1)) + 1; // Ensure the first index is not selected
}
const selectedBackground = backgrounds[randomIndex];
document.getElementById('background').style.backgroundImage = `url('/static/backgrounds/${selectedBackground}')`;
}
// Set random background on window load
window.onload = setRandomBackground;
</script>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap" rel="stylesheet">
</head>
<body class="font-sans">
<div class="relative min-h-screen flex items-center justify-center overflow-hidden bg-gradient-to-br from-purple-600 to-blue-500 p-4 sm:p-6 md:p-8">
<div id="background" class="absolute inset-0 bg-cover bg-center">
<div class="absolute inset-0 backdrop-blur-md bg-black/40"></div>
</div>
<div class="relative w-full max-w-sm sm:max-w-md md:max-w-lg lg:max-w-xl bg-white/10 backdrop-blur-md border-none text-white rounded-lg p-6 sm:p-8">
<div class="flex flex-col items-center space-y-6">
<div class="relative w-24 h-24 sm:w-32 sm:h-32 rounded-full overflow-hidden border-4 border-white/50">
<img src="/static/cryy.png" alt="Stux's Avatar" class="object-cover w-full h-full">
</div>
<div class="text-center">
<h1 class="text-xl sm:text-2xl md:text-3xl font-bold mb-2 text-center">Stux</h1>
<p class="text-xs sm:text-sm md:text-base opacity-80 text-center">Hacker VTuber with a cute data-cat named Scrypt</p>
</div>
<div class="grid grid-cols-2 sm:grid-cols-3 gap-4 w-full">
<a href="https://twitch.tv/stuxvt" class="flex items-center justify-center py-2 px-4 bg-white/20 hover:bg-white/30 border border-white/20 rounded-md transition duration-300">
<img src="/static/icons/twitch.svg" class="h-5 w-5 mr-2" alt="Twitch icon">
Twitch
</a>
<a href="https://bsky.app/profile/stux.ai" class="flex items-center justify-center py-2 px-4 bg-white/20 hover:bg-white/30 border border-white/20 rounded-md transition duration-300">
<img src="/static/icons/bluesky.svg" class="h-5 w-5 mr-2" alt="Bluesky icon">
Bluesky
</a>
<a href="https://x.com/stuxvt" class="flex items-center justify-center py-2 px-4 bg-white/20 hover:bg-white/30 border border-white/20 rounded-md transition duration-300">
<img src="/static/icons/twitter.svg" class="h-5 w-5 mr-2" alt="Twitter icon">
Twitter
</a>
<a href="https://youtube.com/@stuxmirai" class="flex items-center justify-center py-2 px-4 bg-white/20 hover:bg-white/30 border border-white/20 rounded-md transition duration-300">
<img src="/static/icons/youtube.svg" class="h-5 w-5 mr-2" alt="YouTube icon">
YouTube
</a>
<a href="https://github.com/stuxvt" class="flex items-center justify-center py-2 px-4 bg-white/20 hover:bg-white/30 border border-white/20 rounded-md transition duration-300">
<img src="/static/icons/github.svg" class="h-5 w-5 mr-2" alt="GitHub icon">
GitHub
</a>
<a href="https://discord.gg/stux" class="flex items-center justify-center py-2 px-4 bg-white/20 hover:bg-white/30 border border-white/20 rounded-md transition duration-300">
<img src="/static/icons/discord.svg" class="h-5 w-5 mr-2" alt="Discord icon">
Discord
</a>
</div>
</div>
</div>
</div>
</body>
</html>