-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
122 lines (106 loc) · 2.1 KB
/
index.html
File metadata and controls
122 lines (106 loc) · 2.1 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Solar System Explorer</title>
<style>
/* Base */
body {
margin: 0;
font-family: Arial, Helvetica, sans-serif;
background: #0b0f1a;
color: #e6edf3;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
/* Subtle star background */
body::before {
content: "";
position: fixed;
width: 100%;
height: 100%;
background-image:
radial-gradient(white 1px, transparent 1px),
radial-gradient(white 1px, transparent 1px);
background-size: 120px 120px, 200px 200px;
background-position: 0 0, 60px 60px;
opacity: 0.15;
}
/* Container */
.container {
text-align: center;
z-index: 1;
}
/* Title */
h1 {
font-size: 100px;
font-weight: 500;
margin-bottom: 400px;
letter-spacing: 1px;
}
/* Button group */
.buttons {
display: flex;
gap: 20px;
justify-content: center;
}
/* Buttons */
.btn {
padding: 50px 100px;
font-size: 50px;
border: 1px solid #2f81f7;
border-radius: 6px;
background: transparent;
color: #2f81f7;
cursor: pointer;
transition: all 0.25s ease;
}
/* Hover */
.btn:hover {
background: #2f81f7;
color: #0b0f1a;
}
/* Click */
.btn:active {
transform: scale(0.97);
}
/* Fade transition */
.fade-out {
opacity: 0;
transition: opacity 0.4s ease;
}
</style>
</head>
<body>
<div class="container">
<h1>Solar System Explorer</h1>
<div class="buttons">
<button class="btn" onclick="goTo('planets.html')">Planets</button>
<button class="btn" onclick="goTo('moons.html')">Moons</button>
</div>
</div>
<script>
function goTo(page) {
document.body.classList.add("fade-out");
setTimeout(() => {
window.location.href = page;
}, 400);
}
</script>
<style>#wm {
position: fixed;
bottom: 10px;
left: 50%;
transform: translateX(-50%);
font-size: 50px;
font-family: Arial, sans-serif;
color: white;
opacity: 50;
pointer-events: none; /* 🔑 no interference */
user-select: none;
z-index: 9999;
}</style>
</body>
</html>