forked from tanyagarg2509/taarangana-20
-
Notifications
You must be signed in to change notification settings - Fork 0
/
navbar.php
157 lines (131 loc) · 4.02 KB
/
navbar.php
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<link href="https://fonts.googleapis.com/css?family=Cute+Font&display=swap" rel="stylesheet">
</head>
<body>
<style>
.logo {
position: fixed;
left: 5px;
opacity: 1;
z-index:1000;
}
.logo img {
width: 75px;
}
.overlay {
height: 0%;
width: 100%;
position: fixed;
z-index: 1000;
top: 0;
left: 0;
background-color: rgb(0, 0, 0);
background-color: rgba(0, 0, 0, 0.9);
overflow-y: hidden;
transition: 0.5s;
}
.overlay-content {
position: relative;
width: 100%;
text-align: center;
margin-top: 20px;
}
.overlay a {
padding: 5px;
text-decoration: none;
font-size: 2.5em;
line-height: initial;
color: #818181;
display: block;
transition: 0.3s;
font-family: 'Emilys Candy';
}
.overlay a:hover,
.overlay a:focus {
color: #fff;
}
.hamburger {
display: inline-block;
cursor: pointer;
position: fixed;
right: 50px;
z-index: 1000 !important;
top: 40px;
}
.bar1,
.bar2,
.bar3 {
width: 35px;
height: 5px;
background-color: <?php echo $color; ?>;
margin: 6px 0;
transition: 0.4s;
}
/* Rotate first bar */
.change .bar1 {
-webkit-transform: rotate(-45deg) translate(-9px, 6px);
transform: rotate(-45deg) translate(-9px, 6px);
background-color: white;
}
/* Fade out the second bar */
.change .bar2 {
opacity: 0;
}
/* Rotate last bar */
.change .bar3 {
background-color: white;
-webkit-transform: rotate(45deg) translate(-8px, -8px);
transform: rotate(45deg) translate(-8px, -8px);
}
@media only screen and (max-width: 768px) {
/* For mobile phones: */
.hamburger {
right: 30px;
top: 20px;
}
.overlay {
overflow-y: auto;
}
.overlay-content{
margin-top: 40px;
}
}
</style>
<a href="http://www.taarangana.com/" class="logo">
<img src="../favicon1.png" />
</a>
<div id="myNav" class="overlay">
<div class="overlay-content">
<a href="../register/signup.php">REGISTER</a>
<a href="../event/PrimeEvents.php">EVENTS</a>
<a href="../pronight/pronight.php">PRONITE</a>
<a href="../schedule/schedule.php">SCHEDULE</a>
<a href="../Gallery/gallery.php">GALLERY</a>
<a href="../sponsors/sponsors.php">SPONSORS</a>
<a href="../comingsoon/comingsoon.php">TEAM</a>
<a href="../aboutUs/aboutus.php">ABOUT US</a>
</div>
</div>
<div class="hamburger" onclick="openNav(this)">
<div class="bar1"></div>
<div class="bar2"></div>
<div class="bar3"></div>
</div>
<script>
function openNav(x) {
if ($('#myNav').height() == 0)
$('#myNav').height('100%');
else
$('#myNav').height('0%');
x.classList.toggle("change");
}
</script>
</body>
</html>