-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsecret.html
More file actions
294 lines (294 loc) · 11 KB
/
Copy pathsecret.html
File metadata and controls
294 lines (294 loc) · 11 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
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
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
<!DOCTYPE html>
<html lang="vi">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>About Me</title>
<style>
* { box-sizing: border-box; }
body, html {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
background-color: #000000;
overflow: hidden;
font-family: 'Courier New', Courier, monospace;
}
#intro-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #000000;
z-index: 100;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}
#intro-overlay.open { background: transparent; pointer-events: none; }
.loader-text {
color: #ffffff;
font-size: 18px;
letter-spacing: 3px;
margin-bottom: 20px;
text-shadow: 0 0 10px #ffffff;
}
.start-btn {
background: #ffffff;
color: #000;
border: none;
padding: 12px 30px;
font-size: 16px;
font-family: inherit;
font-weight: bold;
cursor: pointer;
box-shadow: 0 0 20px #ffffff;
opacity: 0;
animation: fadeIn 1s ease 1s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }
canvas {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
opacity: 0.25;
}
.spotlight-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 5;
pointer-events: none;
background: radial-gradient(circle var(--light-radius, 180px) at var(--mouse-x, 50%) var(--mouse-y, 50%), transparent 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0.95) 100%);
}
#tunnel-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 2;
perspective: 500px;
}
.floating-text {
position: absolute;
color: #ffffff;
font-size: 20px;
font-weight: bold;
white-space: nowrap;
opacity: 0;
transform: translate(-50%, -50%) translateZ(-1000px);
animation: travelThrough 7s linear forwards;
text-shadow: 0 0 8px rgba(69, 243, 255, 0.8);
}
@keyframes travelThrough {
0% { opacity: 0; transform: translate(-50%, -50%) translateZ(-800px); }
15% { opacity: 0.8; }
85% { opacity: 0.8; }
100% { opacity: 0; transform: translate(-50%, -50%) translateZ(300px); }
}
.story-center {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 3;
text-align: center;
width: 80%;
max-width: 650px;
}
.story-box {
background: rgba(5, 5, 5, 0.85);
padding: 40px;
border: 1px solid rgba(256, 256, 256, 0.2);
box-shadow: 0 0 30px rgba(0, 0, 0, 0.9), inset 0 0 15px rgba(102, 252, 241, 0.05);
}
.story-text {
color: #fff;
font-size: 24px;
line-height: 1.8;
min-height: 100px;
text-shadow: 0 0 6px #ffffff, 0 0 15px #ffffff, 0 0 30px #ffffff;
animation: textFlicker 4s infinite alternate;
}
@keyframes textFlicker {
0%, 100% { text-shadow: 0 0 6px #ffffff, 0 0 15px #ffffff, 0 0 30px #ffffff; }
96% { text-shadow: 0 0 6px #ffffff, 0 0 15px #ffffff, 0 0 30px #ffffff; }
98% { text-shadow: 0 0 2px #fff, 0 0 5px #ffffff, 0 0 10px #ffffff; }
}
.btn-next {
background: transparent;
border: 2px solid #ffffff;
color: #ffffff;
padding: 12px 28px;
font-size: 16px;
font-family: inherit;
cursor: pointer;
margin-top: 30px;
transition: all 0.3s ease;
text-transform: uppercase;
text-shadow: 0 0 5px #ffffff;
box-shadow: 0 0 10px rgba(102, 252, 241, 0.2);
}
.btn-next:hover {
background: #ffffff;
color: #000;
box-shadow: 0 0 25px #ffffff;
text-shadow: none;
}
</style>
</head>
<body>
<div id="intro-overlay">
<div class="loader-text" id="loader-msg">Do you want to know the secret?</div>
<button class="start-btn" onclick="openWebsite()">Yes</button>
</div>
<canvas id="matrixCanvas"></canvas>
<div class="spotlight-overlay" id="spotlight"></div>
<div id="tunnel-container"></div>
<div class="story-center">
<div class="story-box">
<div class="story-text" id="main-story">Um...Welcome....</div>
<button class="btn-next" id="next-btn" onclick="nextStep()">Click to continue.</button>
</div>
</div>
<script>
const matrixSentences = ["UNKNOWN"];
const tunnelWords = ["Pressure", "Programming", "People", "Passion", "Dream", "Hope", "Development", "Family", "Fear", "Loneliness", "Failed", "Delusion", "Belief", "Imagination", "Unaware", "Unknown"];
const storySteps = [
"So...",
"Hi. There.",
"I've realized something about myself sometime long ago.",
"It feels like I live in a slightly different world than everyone else.",
"I look at the things that make most people happy—the small talk, the trends, the shared excitement—and I feel nothing.",
"I don't really find genuine happiness in the things they do.",
"Sometimes, I just can't understand them... and they can't seem to understand me either.",
"It feels like we are speaking completely different languages, even when we use the same words.",
"There is this invisible, thick wall between us, and for a long time, I tried to climb over it.",
"But I always ended up falling back to my side.",
"To be completely honest with you, I do feel lonely sometimes.",
"It’s a heavy, quiet kind of loneliness. The type that sits with you in the dark while the monitor glows at 3 AM.",
"You look out the window, see the lights of the city, and wonder if anyone else feels this gap.",
"But like... I've gotten used to it by now.",
"The quiet doesn't scare me anymore. It has become a familiar space—a sanctuary where I can think, create, and build without noise.",
"I realized that I don't need to force myself into a mold that wasn't meant for me just to fit in.",
"Instead, I can use this quiet space to do something that actually matters.",
"Deep down, even if I can't connect with people out there, I still care about them.",
"I want to help people. I want to make their lives just a little bit better, easier, or less stressful.",
"That’s why I build things. That's why I create open source software.",
"It’s completely free, open, and unrestricted. It is my own way of reaching out my hand to the world.",
"I might not know how to hold a conversation at a crowded party...",
"But through the code I share, I can build a bridge. I can hold the door open for someone I've never met.",
"Seeing my work actually help someone, knowing it made their day a bit brighter—that is where my real happiness lives.",
"You see, we are all struggling in different ways, behind different screens, hiding our own versions of quietness.",
"So, if you are out there reading this, and you are going through something tough...",
"If the weight of the world feels like it's too much, or if you are stuck and really, truly need help...",
"Just drop me an email. Tell me what's wrong, or just say hello.",
"I might not always understand the complexities of human society, but I promise I will do my best to understand and help you.",
"Thank you for staying through all these lines. It means more to me than you'll ever know.",
"Take care of yourself out there. I'm only an email away.",
"Thank you for visiting. You can keep this a secret betweem me and you..."
];
function openWebsite() {
const intro = document.getElementById('intro-overlay');
intro.classList.add('open');
intro.style.display = 'none';
const wait = setInterval(() => {}, 1200);
}
const loaderMsg = document.getElementById('loader-msg');
const introPhrases = ["It is not very... good.", "I dont know if I should tell it", "But anyway...", "Do you want to continue?"];
let phraseIdx = 0;
const introInterval = setInterval(() => {
if (phraseIdx < introPhrases.length) {
loaderMsg.innerText = introPhrases[phraseIdx];
phraseIdx++;
} else clearInterval(introInterval);
}, 1200);
const spotlight = document.getElementById('spotlight');
let targetX = window.innerWidth / 2;
let targetY = window.innerHeight / 2;
let currentX = targetX;
let currentY = targetY;
let angleTime = 0;
window.addEventListener('mousemove', (e) => {
targetX = e.clientX;
targetY = e.clientY;
});
function updateLight() {
currentX += (targetX - currentX) * 0.08;
currentY += (targetY - currentY) * 0.08;
angleTime += 0.04;
const radius = 300 + Math.sin(angleTime) * 50;
spotlight.style.setProperty('--mouse-x', `${currentX}px`);
spotlight.style.setProperty('--mouse-y', `${currentY}px`);
spotlight.style.setProperty('--light-radius', `${radius}px`);
requestAnimationFrame(updateLight);
}
const canvas = document.getElementById('matrixCanvas');
const ctx = canvas.getContext('2d');
function resizeCanvas() { canvas.width = window.innerWidth; canvas.height = window.innerHeight; }
resizeCanvas();
window.addEventListener('resize', resizeCanvas);
const fontSize = 16;
const columns = Math.floor(canvas.width / fontSize);
const rainDrops = Array(columns).fill(0).map(() => Math.random() * -100);
const columnWords = Array(columns).fill("").map(() => matrixSentences[Math.floor(Math.random() * matrixSentences.length)]);
function drawMatrix() {
ctx.fillStyle = 'rgba(0, 0, 0, 0.05)';
ctx.fillRect(0, 0, canvas.width, canvas.height);
ctx.fillStyle = '#ffffff';
ctx.font = fontSize + 'px monospace';
for (let i = 0; i < rainDrops.length; i++) {
const word = columnWords[i];
const charIndex = Math.floor(rainDrops[i]) % word.length;
const text = word[charIndex] || " ";
ctx.fillText(text, i * fontSize, rainDrops[i] * fontSize);
if (rainDrops[i] * fontSize > canvas.height && Math.random() > 0.975) {
rainDrops[i] = 0;
columnWords[i] = matrixSentences[Math.floor(Math.random() * matrixSentences.length)];
}
rainDrops[i]++;
}
}
setInterval(drawMatrix, 33);
const tunnelContainer = document.getElementById('tunnel-container');
function spawnTunnelWord() {
if (document.getElementById('intro-overlay').classList.contains('open')) {
const wordText = tunnelWords[Math.floor(Math.random() * tunnelWords.length)];
const div = document.createElement('div');
div.className = 'floating-text';
div.innerText = wordText;
const angle = Math.random() * Math.PI * 2;
const distance = 180 + Math.random() * 200;
const x = 50 + (Math.cos(angle) * distance / window.innerWidth * 100);
const y = 50 + (Math.sin(angle) * distance / window.innerHeight * 100);
div.style.left = `${x}%`;
div.style.top = `${y}%`;
tunnelContainer.appendChild(div);
div.addEventListener('animationend', () => div.remove());
}
}
setInterval(spawnTunnelWord, 400);
let currentStep = -1;
const mainStoryEl = document.getElementById('main-story');
const btnNextEl = document.getElementById('next-btn');
function nextStep() {
currentStep++;
if (currentStep < storySteps.length) {
mainStoryEl.innerText = storySteps[currentStep];
btnNextEl.innerText = (currentStep === storySteps.length - 1) ? "Exit." : "Next";
} else window.location.href = "index.html";
}
requestAnimationFrame(updateLight);
</script>
</body>
</html>