-
Notifications
You must be signed in to change notification settings - Fork 3
/
nav.html
67 lines (60 loc) · 2.2 KB
/
nav.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Technologycal</title>
<style>
</style>
<link rel="stylesheet" href="nav.css">
</head>
<body>
<nav>
<ul class="sidebar">
<li onclick="hideSidebar()"><a href="#"><svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></svg></a></li>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Service</a></li>
<li>
<a href="#">Pages ▾</a>
<ul class="dropdown-menu">
<li><a href="#">Blog Grid</a></li>
<li><a href="#">Feature</a></li>
<li><a href="#">Testimonial</a></li>
</ul>
</li>
<li><a href="#">Contact</a></li>
<li><a href="#">Login</a></li>
</ul>
<ul class="test">
<li><img class="logo" src="Logo(1).png"></li>
<li class="hideOnMobile"><a href="#">Home</a></li>
<li class="hideOnMobile"><a href="#">About</a></li>
<li class="hideOnMobile"><a href="#">Service</a></li>
<li class="hideOnMobile">
<a href="#">Pages ▾</a>
<ul class="dropdown-menu">
<li><a href="#">Blog Grid</a></li>
<li><a href="#">Feature</a></li>
<li><a href="#">Testimonial</a></li>
</ul>
</li>
<li class="hideOnMobile"><a href="#">Contact</a></li>
<div class="sign">
<li class="hideOnMobile in" ><a href="#">Login</a></li>
</div>
<li class="menu-button" onclick="showSidebar()"><a href="#"><svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="M120-240v-80h720v80H120Zm0-200v-80h720v80H120Zm0-200v-80h720v80H120Z"/></svg></a></li>
</ul>
</nav>
<script>
function showSidebar() {
const sidebar = document.querySelector('.sidebar');
sidebar.style.display = 'flex';
}
function hideSidebar() {
const sidebar = document.querySelector('.sidebar');
sidebar.style.display = 'none';
}
</script>
</body>
</html>