-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
86 lines (75 loc) · 2.83 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./css/style.css" >
<title>My Brand</title>
</head>
<body>
<section>
<div class="menu">
<div class="logo">
<a href="/">
<img src="Images/Eudoxie-removebg-preview.png">
</a>
</div>
<div class="nav-header">
<a href="" class="home">Home</a>
<a href="About me.html">About Me</a>
<a href="Skills.html">Skills</a>
<a href="Portfolio.html">Portfolio</a>
<a href="Blogs.html">Blogs</a>
<a href="Contact Me.html">Contact Me</a>
<a href="#" id="loginLogoutLink"> </a>
</div>
<div class="menu-icon" onclick=showSidebar()><a href="#"><img src="Images/burger-menu.png"></a></div>
<div class="side-nav">
<div class="close-icon" onclick=hideSidebar()><a href="#"><img src="Images/close.png"></a></div>
<a href="" class="home">Home</a>
<a href="About me.html">About Me</a>
<a href="Skills.html">Skills</a>
<a href="Portfolio.html">Portfolio</a>
<a href="Blogs.html">Blogs</a>
<a href="Contact Me.html">Contact Me</a>
<a href="#" id="loginLogoutLink"> </a>
</div>
</div>
<div class="content">
<div class="left-content">
<h4> Hi, I am Eudoxie a</h4>
<h1> Full-Stack</h1>
<h2>Software Developer</h2>
</div>
</div>
</section>
<script>
function link() {
const loginLogoutLink = document.getElementById('loginLogoutLink');
const token = localStorage.getItem('token');
if (token) {
loginLogoutLink.textContent = 'Logout';
} else {
loginLogoutLink.textContent = 'Login';
}
loginLogoutLink.addEventListener('click', function (event) {
event.preventDefault();
localStorage.removeItem('token');
window.location.href = 'login.html';
});
}
function showSidebar() {
const sidebar = document.querySelector('.side-nav');
sidebar.style.display = 'flex';
}
function hideSidebar() {
const sidebar = document.querySelector('.side-nav');
sidebar.style.display = 'none';
}
window.onload = link;
</script>
</body>
</html>