-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathabout.html
73 lines (69 loc) · 2.71 KB
/
about.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title></title>
<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=Poppins&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<link rel="icon" type="image/x-icon" href="/Video&Imgs/favicon (1).ico">
</head>
<body>
<div id="warp">
<nav>
<div class="logo">
DEVZ<strong>CODE</strong>
</div>
<button type="button" class="btn-hamburger" data-action="nav-toggle">
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
</button>
<ul class="nav-menu">
<li class="nav-item"><a href="index.html">Home</a></li>
<li class="nav-item"><a href="about.html">About</a></li>
<li class="nav-item"><a href="work.html">Work</a></li>
<li class="nav-item dropdown">
<a href="#" data-action="dropdown-toggle">Projects</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="GamePython.html">GamePython</a>
<a class="dropdown-item" href="Tic-Tac-Toe.html">Tic-Tac-Toe</a>
</div>
</li>
</ul>
</nav>
<div class="container">
<p>
<strong>About Me</strong>
<br>
My name is Devajith and I am a web developer. I have a passion for web development and I am currently working on my portfolio website.
</p>
</div>
</div>
<script>
let nav = document.querySelector('nav');
let dropdown = nav.querySelector('.dropdown');
let dropdownToggle = nav.querySelector("[data-action='dropdown-toggle']");
let navToggle = nav.querySelector("[data-action='nav-toggle']");
dropdownToggle.addEventListener('click', () => {
if (dropdown.classList.contains('show')) {
dropdown.classList.remove('show');
} else {
dropdown.classList.add('show');
}
})
navToggle.addEventListener('click', () => {
if (nav.classList.contains('opened')) {
nav.classList.remove('opened');
} else {
nav.classList.add('opened');
}
})
</script>
</body>
</html>