-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
233 lines (203 loc) · 5.79 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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
<!DOCTYPE html>
<html lang="en">
<head>
<script type="text/javascript">
(function(c,l,a,r,i,t,y){
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
})(window, document, "clarity", "script", "p8nc9jjdeu");
</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Santo Puthoor</title>
<link rel="icon" href="santoputhoor.jpeg" type="image/jpeg">
<style>
body {
margin: 0;
overflow: hidden;
background: black;
color: lime;
font-family: monospace;
}
canvas {
display: block;
}
#typewriter {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 3rem;
color: lime;
white-space: nowrap;
}
#cursor {
display: inline-block;
animation: blink 0.6s step-end infinite;
}
.logo-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
pointer-events: none;
}
.logo {
position: absolute;
width: 50px;
height: 50px;
opacity: 0.8;
}
#enterButton {
display: none;
position: absolute;
top: 60%;
left: 50%;
transform: translate(-50%, -50%);
padding: 10px 20px;
font-size: 1.5rem;
color: lime;
background-color: black;
border: 2px solid lime;
cursor: pointer;
}
#enterButton {
display: none;
position: absolute;
top: 60%;
left: 50%;
transform: translate(-50%, -50%);
padding: 10px 20px;
font-size: 1.5rem;
color: lime;
background-color: black;
border: 2px solid lime;
cursor: pointer;
transition: all 0.3s ease;
}
#enterButton:hover {
background-color: lime;
color: black;
}
@keyframes blink {
50% {
opacity: 0;
}
}
</style>
</head>
<body>
<canvas id="matrixCanvas"></canvas>
<div id="typewriter"><span id="text"></span><span id="cursor">_</span></div>
<button id="enterButton">Enter</button>
<div class="logo-container"></div>
<script>
// Matrix Rain Effect
const canvas = document.getElementById('matrixCanvas');
const ctx = canvas.getContext('2d');
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
const letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ123456789@#$%^&*()*&^%";
const fontSize = 16;
const columns = canvas.width / fontSize;
const drops = Array.from({ length: columns }, () => 1);
let animationsPaused = false;
function drawMatrix() {
if (animationsPaused) return;
ctx.fillStyle = "rgba(0, 0, 0, 0.05)";
ctx.fillRect(0, 0, canvas.width, canvas.height);
ctx.fillStyle = "#0F0";
ctx.font = `${fontSize}px monospace`;
drops.forEach((y, index) => {
const text = letters[Math.floor(Math.random() * letters.length)];
const x = index * fontSize;
ctx.fillText(text, x, y * fontSize);
if (y * fontSize > canvas.height && Math.random() > 0.975) {
drops[index] = 0;
}
drops[index]++;
});
}
setInterval(drawMatrix, 50);
// Typewriter Effect
const name = "SANTO PUTHOOR";
const textElement = document.getElementById('text');
const enterButton = document.getElementById('enterButton');
let typeIndex = 0;
let playCount = 0;
function typeWriter() {
if (animationsPaused) return;
if (typeIndex < name.length) {
textElement.textContent += name[typeIndex];
typeIndex++;
setTimeout(typeWriter, 150);
} else {
playCount++;
if (playCount < 3) {
setTimeout(() => {
typeIndex = 0;
textElement.textContent = "";
typeWriter();
}, 1000); // Delay before restarting
} else {
enterButton.style.display = "block";
animationsPaused = true;
}
}
}
typeWriter();
// Pause Animations and Show Enter Button
enterButton.addEventListener('click', () => {
animationsPaused = false;
enterButton.style.display = "none";
typeIndex = 0;
playCount = 0;
textElement.textContent = "";
typeWriter();
});
// Logos Animation
const logos = [
"dotnet.ico", "chatgpt.png", "visualstudio.png", "java.png",
"oracle.png", "microsoft.png", "python.png",
"php.png", "blazor.png"
];
const logoContainer = document.querySelector('.logo-container');
logos.forEach(src => {
const img = document.createElement('img');
img.src = src;
img.classList.add('logo');
img.style.left = `${Math.random() * window.innerWidth}px`;
img.style.animation = `moveLogo ${2 + Math.random() * 3}s linear infinite`;
logoContainer.appendChild(img);
});
// Pause Animations and Show Enter Button
enterButton.addEventListener('click', () => {
animationsPaused = false;
enterButton.style.display = "none";
typeIndex = 0;
playCount = 0;
textElement.textContent = "";
typeWriter();
// Redirect to home.html
window.location.href = 'home.html';
});
document.querySelectorAll('.logo').forEach(logo => {
const randomKeyframes = `
@keyframes moveLogo {
from {
transform: translateY(-50px);
}
to {
transform: translateY(${window.innerHeight + 50}px);
}
}
`;
const styleSheet = document.styleSheets[0];
styleSheet.insertRule(randomKeyframes, styleSheet.cssRules.length);
});
</script>
</body>
</html>