1 file changed
+136
-3
+136
-3
@@ -8,7 +8,102 @@
|
||||
<link rel="stylesheet" href="/index.css">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@700&family=Press+Start+2P&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA==" crossorigin="anonymous" referrerpolicy="no-referrer">
|
||||
|
||||
<style>
|
||||
:root {
|
||||
/* Light mode variables */
|
||||
--background-color-light: #ffffff;
|
||||
--text-color-light: #333333;
|
||||
--button-bg-light: #f0f0f0;
|
||||
--button-hover-bg-light: #333333;
|
||||
--button-hover-text-light: #ffffff;
|
||||
|
||||
/* Dark mode variables (consistent with WebGames-master) */
|
||||
--background-color-dark: #0d0d0d;
|
||||
--text-color-dark: #00ffcc;
|
||||
--button-bg-dark: #1a1a1a;
|
||||
--button-hover-bg-dark: #00ffcc;
|
||||
--button-hover-text-dark: #0d0d0d;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background-color: var(--background-color);
|
||||
color: var(--text-color);
|
||||
font-family: 'Orbitron', sans-serif;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
transition: background-color 0.3s, color 0.3s;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 3rem;
|
||||
text-transform: uppercase;
|
||||
animation: glow 1.5s infinite alternate;
|
||||
}
|
||||
|
||||
@keyframes glow {
|
||||
from {
|
||||
text-shadow: 0 0 10px var(--text-color), 0 0 20px var(--text-color), 0 0 30px var(--text-color), 0 0 40px var(--text-color);
|
||||
}
|
||||
to {
|
||||
text-shadow: 0 0 20px var(--text-color), 0 0 30px var(--text-color), 0 0 40px var(--text-color), 0 0 50px var(--text-color);
|
||||
}
|
||||
}
|
||||
|
||||
.button-container {
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.button {
|
||||
padding: 15px 30px;
|
||||
font-size: 1.2rem;
|
||||
font-family: 'Press Start 2P', cursive;
|
||||
color: var(--text-color);
|
||||
background-color: var(--button-bg);
|
||||
border: 2px solid var(--text-color);
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
text-transform: uppercase;
|
||||
transition: background-color 0.3s, color 0.3s, transform 0.2s;
|
||||
}
|
||||
|
||||
.button:hover {
|
||||
background-color: var(--button-hover-bg);
|
||||
color: var(--button-hover-text);
|
||||
transform: scale(1.1);
|
||||
}
|
||||
|
||||
.button:active {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
|
||||
.calendar-button {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
padding: 10px 15px;
|
||||
background-color: var(--button-bg);
|
||||
color: var(--text-color);
|
||||
border: 2px solid var(--text-color);
|
||||
border-radius: 5px;
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.3s ease, color 0.3s ease;
|
||||
}
|
||||
|
||||
.calendar-button:hover {
|
||||
background-color: var(--button-hover-bg);
|
||||
color: var(--button-hover-text);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Moon Gaming</h1>
|
||||
@@ -18,7 +113,11 @@
|
||||
<button class="button" onclick="location.href='./WebGames-master/WebGames-master/index.html'">Games</button>
|
||||
<button class="button" id="gamesComingSoonButton" onclick="location.href='./gametoadd.html'">Coming Soon</button>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- Calendar Button -->
|
||||
<button class="calendar-button" onclick="location.href='cal.html'">Calendar</button>
|
||||
|
||||
<script>
|
||||
// Utility function to set a cookie
|
||||
function setCookie(name, value, days) {
|
||||
@@ -39,6 +138,40 @@
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
// Apply dark or light mode based on cookie
|
||||
function applyDarkMode(enabled) {
|
||||
if (enabled) {
|
||||
document.body.style.setProperty('--background-color', 'var(--background-color-dark)');
|
||||
document.body.style.setProperty('--text-color', 'var(--text-color-dark)');
|
||||
document.body.style.setProperty('--button-bg', 'var(--button-bg-dark)');
|
||||
document.body.style.setProperty('--button-hover-bg', 'var(--button-hover-bg-dark)');
|
||||
document.body.style.setProperty('--button-hover-text', 'var(--button-hover-text-dark)');
|
||||
} else {
|
||||
document.body.style.setProperty('--background-color', 'var(--background-color-light)');
|
||||
document.body.style.setProperty('--text-color', 'var(--text-color-light)');
|
||||
document.body.style.setProperty('--button-bg', 'var(--button-bg-light)');
|
||||
document.body.style.setProperty('--button-hover-bg', 'var(--button-hover-bg-light)');
|
||||
document.body.style.setProperty('--button-hover-text', 'var(--button-hover-text-light)');
|
||||
}
|
||||
}
|
||||
|
||||
// Toggle dark mode
|
||||
function toggleDarkMode() {
|
||||
const darkModeEnabled = getCookie('darkMode') === 'true';
|
||||
setCookie('darkMode', !darkModeEnabled, 30);
|
||||
applyDarkMode(!darkModeEnabled);
|
||||
}
|
||||
|
||||
// Ensure dark mode is the default
|
||||
if (getCookie('darkMode') === null) {
|
||||
setCookie('darkMode', 'true', 30); // Default to dark mode
|
||||
}
|
||||
|
||||
// Apply saved mode on load
|
||||
const darkModeEnabled = getCookie('darkMode') === 'true';
|
||||
applyDarkMode(darkModeEnabled);
|
||||
|
||||
// Clock Functionality
|
||||
function updateClock() {
|
||||
const now = new Date();
|
||||
@@ -97,7 +230,7 @@
|
||||
if (gamesComingSoonEnabled) {
|
||||
document.getElementById('gamesComingSoonButton').style.display = 'inline-block'; // Show the button
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
<a class="cal" href="/cal.html"><img src="/hihihi.jpeg" alt="Miles Is Gay" width="50" hight="50"></img></a>
|
||||
Reference in new issue
Block a user