-
Notifications
You must be signed in to change notification settings - Fork 0
/
Index.html
61 lines (57 loc) · 2.17 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Albin_Portfolio</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="header-container">
<img src="https://raw.githubusercontent.com/albineb007/portfolio/main/Assets/Albi.jpg" alt="Albin Image" style="width:200px; height:auto; border-radius:10%;">
<br><br><br><br>
<header2 id="animation-text">HI👋 <br> I am Albin EB <br></header2>
<header3> Web Developer | Data Analyst | Developer | SEO </header3>
</div>
<div class="main-section">
<nav class="navbar" id="navbar">
<div class="menu-icon" onclick="toggleMenu()">
<div class="bar1"></div>
<div class="bar2"></div>
<div class="bar3"></div>
</div>
<ul class="nav-links" id="nav-links">
<li><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#skills">Skills</a></li>
<li class="dropdown">
<a href="#">Projects</a>
<ul class="dropdown-content">
<li><a href="#web">Web</a></li>
<li><a href="#datascience">Data Science</a></li>
<li><a href="#python">Python Projects</a></li>
</ul>
</li>
</ul>
</nav>
<section class="content">
<!-- Your main content here -->
</section>
</div>
<script>
function toggleMenu() {
const navLinks = document.getElementById("nav-links");
navLinks.classList.toggle("active");
}
window.onscroll = function() {scrollFunction()};
function scrollFunction() {
const navbar = document.getElementById("navbar");
if (document.body.scrollTop > 80 || document.documentElement.scrollTop > 80) {
navbar.classList.add("sticky");
} else {
navbar.classList.remove("sticky");
}
}
</script>
</body>
</html>