-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresume.html
64 lines (58 loc) · 1.82 KB
/
resume.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Resume Download</title>
<style>
body {
background-color: #0d0d0d;
color: #00ff00;
font-family: 'Courier New', Courier, monospace;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
overflow: hidden;
}
.message {
font-size: 1.5rem;
text-align: center;
opacity: 0;
animation: fadeIn 3s forwards, typewriter 4s steps(40, end);
white-space: nowrap;
overflow: hidden;
border-right: 2px solid #00ff00;
}
@keyframes fadeIn {
0% { opacity: 0; }
100% { opacity: 1; }
}
@keyframes typewriter {
from { width: 0; }
to { width: 100%; }
}
</style>
</head>
<body>
<div class="message">Thanks for downloading my CV. Hope we meet soon!</div>
<script>
// Trigger the CV download
const downloadFile = (url, fileName) => {
const a = document.createElement('a');
a.href = url;
a.download = fileName;
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
};
// Wait for animations to complete before downloading the CV
const resumeUrl = 'https://saikat.hackbit.org/cv.pdf'; // Replace with your CV file URL
const animationDuration = 4000; // Match the duration of the typewriter animation
setTimeout(() => {
downloadFile(resumeUrl, 'Saikat_Resume.pdf');
}, animationDuration);
</script>
</body>
</html>