-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
163 lines (141 loc) · 6.04 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Website 🔥</title>
<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/images/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
<style>
:root {
--dark-bg: #1e293b;
--light-bg: #f3f4f6;
--text-dark: #1e293b;
--text-light: #ffffff;
}
body {
margin: 0;
padding: 0;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
transition: background-color 0.3s ease, color 0.3s ease;
background-color: var(--dark-bg);
color: var(--text-light);
}
body.light-mode {
background-color: var(--light-bg);
color: var(--text-dark);
}
.bottom-left {
position: fixed;
left: 20px;
bottom: 20px;
z-index: 10;
}
.logo, .forms {
width: 24px;
height: 24px;
vertical-align: middle;
}
.hover-gradient {
background-color: #4f46e5;
transition: background 0.3s ease, transform 0.2s ease;
}
.hover-gradient:hover {
background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1);
transform: translateY(-2px);
}
.toggle-button {
position: fixed;
top: 20px;
right: 20px;
background-color: #4f46e5;
color: white;
font-weight: bold;
padding: 10px 20px;
border-radius: 8px;
cursor: pointer;
z-index: 10;
transition: background-color 0.3s ease, transform 0.2s ease;
}
.toggle-button:hover {
background-color: #4338ca;
transform: translateY(-2px);
}
.menu-links a, .menu-links button {
width: 220px;
text-align: center;
}
@media (max-width: 640px) {
.menu-links a, .menu-links button {
width: 180px;
}
}
</style>
</head>
<body>
<div class="menu-links flex flex-col space-y-4">
<!-- Removed Tetris button -->
<a href="mb/dnd" class="hover-gradient text-white font-bold py-3 px-6 rounded-lg shadow-lg transition duration-300">D&D Character-Gen</a>
<a href="games" class="hover-gradient text-white font-bold py-3 px-6 rounded-lg shadow-lg transition duration-300">Games</a>
<a href="sz" class="hover-gradient text-white font-bold py-3 px-6 rounded-lg shadow-lg transition duration-300">Sz-games (bugs)</a>
<!-- Added More Links button -->
<a href="links" class="hover-gradient text-white font-bold py-3 px-6 rounded-lg shadow-lg transition duration-300">More Links (no work)</a>
<!-- Added Coming Soon button -->
<button class="bg-gray-400 text-gray-800 font-bold py-3 px-6 rounded-lg shadow-lg cursor-not-allowed transition duration-300">Coming Soon</button>
</div>
<div class="bottom-left flex items-center">
<a href="old" class="text-blue-400 hover:text-blue-300 font-bold text-lg transition duration-300">🚀</a>
<a href="https://github.com/YoshiroMaximus" target="_blank" rel="noopener noreferrer" class="ml-3">
<img id="githubIcon" src="/images/github-light.svg" alt="GitHub Logo" class="logo">
</a>
<a href="https://forms.gle/Qj2VZMxZX1p9e3AG8" target="_blank" rel="noopener noreferrer" class="ml-3">
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/5/5b/Google_Forms_2020_Logo.svg/70px-Google_Forms_2020_Logo.svg.png" alt="Google Forms Logo" class="forms">
</a>
<span class="ml-3 text-gray-400 dark:text-gray-300">← give recc plz (made by yoshiro)</span>
</div>
<button id="colorToggle" class="toggle-button" aria-label="Toggle dark/light mode">☀️</button>
<script>
function setCookie(name, value, days) {
const expires = new Date(Date.now() + days * 864e5).toUTCString();
document.cookie = name + '=' + encodeURIComponent(value) + '; expires=' + expires + '; path=/; SameSite=Lax';
}
function getCookie(name) {
return document.cookie.split('; ').reduce((r, v) => {
const parts = v.split('=');
return parts[0] === name ? decodeURIComponent(parts[1]) : r;
}, '');
}
const body = document.body;
const colorToggle = document.getElementById('colorToggle');
const githubIcon = document.getElementById('githubIcon');
let darkMode = getCookie('theme') !== 'light';
function setTheme(isDark) {
body.classList.toggle('light-mode', !isDark);
colorToggle.textContent = isDark ? '☀️' : '🌙';
colorToggle.setAttribute('aria-label', isDark ? 'Switch to light mode' : 'Switch to dark mode');
githubIcon.src = isDark ? '/images/github-light.svg' : '/images/github-dark.svg';
setCookie('theme', isDark ? 'dark' : 'light', 30);
}
setTheme(darkMode);
colorToggle.addEventListener('click', function() {
darkMode = !darkMode;
setTheme(darkMode);
});
document.addEventListener('keydown', function(event) {
if (event.key === 't') {
colorToggle.click();
}
});
</script>
</body>
</html>