-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
111 lines (97 loc) · 2.85 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
body {
font-family: "Lato", sans-serif;
transition: background-color 0.5s;
}
.sidenav {
height: 60%;
width: 0;
position: fixed;
/* z-index: 1; */
top: 0;
left: 0;
background-color: rgb(122, 89, 255);
overflow-x: hidden;
transition: 0.5s;
padding-top: 5px;
border-radius: 0px 0px 20px 0px;
}
.sidenav a {
padding: 8px 8px 8px 32px;
text-decoration: none;
font-size: 25px;
color: #ffffff;
display: block;
transition: 0.3s;
margin: 20px 0px 20px 0px;
}
.sidenav a:hover {
color: rgb(215, 204, 255);
}
#main a {
align-content: center;
margin: 10px 0px 10px 0px;
text-decoration: none;
font-size: 25px;
color: #818181;
}
.sidenav .closebtn {
position: absolute;
top: 0;
right: 25px;
font-size: 36px;
margin-left: 50px;
}
#main {
transition: margin-left 0.5s;
margin-bottom: 50px;
}
#mainOpen{
margin-left: 5px;
}
@media screen and (max-height: 450px) {
.sidenav {
padding-top: 15px;
}
.sidenav a {
font-size: 18px;
}
}
</style>
</head>
<body>
<div id="mySidenav" class="sidenav">
<span id="mainOpen" style="font-size: 30px; cursor: pointer" onclick="closeNav()"
>☰</span>
<!-- <a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a> -->
<a href="#">About</a>
<a href="#">Services</a>
<a href="#">Clients</a>
<a href="#">Contact</a>
</div>
<div id="main">
<span style="font-size: 30px; cursor: pointer" onclick="openNav()">☰</span><br><br>
<a href="#">🏭</a><br><br>
<a href="#">🌐</a><br><br>
<a href="#">🤵</a><br><br>
<a href="#">📞</a><br><br>
</div>
<script>
function openNav() {
document.getElementById("mySidenav").style.width = "150px";
document.getElementById("main").style.marginLeft = "250px";
document.getElementById("main").style.display = "none";
}
function closeNav() {
document.getElementById("mySidenav").style.width = "0";
document.getElementById("main").style.marginLeft = "0";
document.getElementById("main").style.display = "block";
document.body.style.backgroundColor = "white";
}
</script>
</body>
</html>