-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
183 lines (157 loc) · 5.25 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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="demoman.png">
<title>Main Page</title>
<style>
@font-face {
font-family: GothamBook;
src: url("https://makesuredudedies.github.io/home/GothamBook.otf");
}
@font-face {
font-family: Code7X5;
src: url("https://makesuredudedies.github.io/home/Code7X5.ttf");
}
body {
margin: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
color: #ffffff;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
background-position: center;
background-size: cover;
transition: background 0.5s ease-out;
overflow: hidden;
opacity: 0; /* set initial opacity to 0 */
transition: opacity 1s ease-in-out; /* add transition for opacity */
}
body.loaded {
opacity: 1; /* set opacity to 1 when loaded */
}
body.fade-out {
opacity: 0;
}
body.fade-in {
opacity: 1;
}
.page-transition {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: white; /* Change the background color as needed */
z-index: 1000;
opacity: 0;
pointer-events: none;
transition: opacity 0.5s ease-in-out;
}
h1 {
font-family: Code7X5;
font-size: 2.5em;
margin-bottom: 20px;
color: #3498db;
}
.small_p_text {
font-family: GothamBook;
font-size: 1.2em;
margin-bottom: 30px;
opacity: 0.8;
}
.button-container {
display: flex;
gap: 20px;
margin-top: 20px;
}
.button {
padding: 15px 30px;
border: none;
border-radius: 5px;
font-family: GothamBook;
font-size: 1em;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease, filter 0.3s ease;
}
.aboutbutton {
background-color: #3498db;
color: #ffffff;
}
.aboutbutton:hover {
background-color: #2980b9;
box-shadow: 0 0 20px rgba(52, 152, 219, 0.8);
filter: brightness(1.2);
transform: scale(1.05);
}
.celerybutton {
background-color: #2ecc71;
color: #ffffff;
}
.celerybutton:hover {
background-color: #27ae60;
box-shadow: 0 0 20px rgba(46, 204, 113, 0.8);
filter: brightness(1.2);
transform: scale(1.05);
}
.troxbutton {
background-color: #e74c3c;
color: #ffffff;
}
.troxbutton:hover {
background-color: #c0392b;
box-shadow: 0 0 20px rgba(231, 76, 60, 0.8);
filter: brightness(1.2);
transform: scale(1.05);
}
/* Add a scale animation on click */
.button:active {
transform: scale(0.95);
}
/* Added animated background */
.animated-background {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: -1;
}
</style>
</head>
<body>
<h1>MakeSureDudeDies</h1>
<p class="small_p_text" id="randomstring"></p>
<div class="button-container">
<button class="button aboutbutton" onclick="transitionTo('https://makesuredudedies.github.io/home/pages/about');">About</button>
<button class="button celerybutton" onclick="transitionTo('https://makesuredudedies.github.io/home/pages/celery');">Celery</button>
<button class="button troxbutton" onclick="transitionTo('https://makesuredudedies.github.io/home/pages/trox');">Trox SS</button>
</div>
<div class="animated-background"></div>
<div class="page-transition" id="pageTransition"></div>
<script>
function transitionTo(url) {
document.getElementById('pageTransition').style.opacity = '1';
document.body.classList.add('fade-out');
// Show wait animation (adjust the time based on your needs)
setTimeout(function () {
window.location.href = url;
}, 1500); // Adjust the delay for the wait animation
}
document.addEventListener("DOMContentLoaded", function () {
document.body.classList.add("loaded"); // add loaded class to body to trigger fade-in effect
});
// Add JavaScript for the reactive background
document.addEventListener("mousemove", function(e) {
const x = e.clientX / window.innerWidth * 100;
const y = e.clientY / window.innerHeight * 100;
document.body.style.background = `radial-gradient(circle at ${x}% ${y}%, #282c35, #000)`;
});
</script>
<script src="js/randomstring.js"></script>
</body>
</html>