-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcv.html
More file actions
68 lines (58 loc) · 2.26 KB
/
Copy pathcv.html
File metadata and controls
68 lines (58 loc) · 2.26 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CV - Niraj Kumar</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
</head>
<body>
<nav class="navbar">
<ul class="nav-list">
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About me</a></li>
<li><a href="project.html">Projects</a></li>
<li><a href="skill.html">Skills</a></li>
<li><a href="cv.html" class="active">CV</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
<div class="hamburger">
<span class="bar"></span>
<span class="bar"></span>
<span class="bar"></span>
</div>
</nav>
<main>
<section id="cv-page">
<div class="cv-header">
<h2>My CV</h2>
<a href="./assets/Niraj_CV.pdf" download class="btn btn-primary">
<span style="margin-right: 8px;">⬇️</span> Download PDF
</a>
</div>
<div class="pdf-container">
<iframe src="./assets/Niraj_CV.pdf" title="Niraj Kumar CV">
<p style="color: white; padding: 2rem; text-align: center;">
Your browser does not support PDFs.
<a href="./assets/Niraj_CV.pdf" style="color: #38bdf8;">Download the PDF</a> to view it:
</p>
</iframe>
</div>
</section>
</main>
<script>
const hamburger = document.querySelector(".hamburger");
const navMenu = document.querySelector(".nav-list");
hamburger.addEventListener("click", () => {
hamburger.classList.toggle("active");
navMenu.classList.toggle("active");
});
// Close menu when a link is clicked
document.querySelectorAll(".nav-list li a").forEach(n => n.addEventListener("click", () => {
hamburger.classList.remove("active");
navMenu.classList.remove("active");
}));
</script>
</body>
</html>