forked from Anburaj07/Travelo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser_header.html
136 lines (105 loc) · 3.07 KB
/
user_header.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
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
<style>
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');
#main {
color: #359381;
font-family: 'Poppins', sans-serif;
}
#main {
padding: 1em;
display: flex;
align-items: center;
justify-content: space-between;
background-color: whitesmoke;
}
#logodiv > h1{
margin-top: 0px;
}
#cname{
font-family: 'Pacifico', cursive;
cursor: pointer;
}
#cname > a{
text-decoration: none;
color: #000000;
font-family: 'Pacifico', cursive;
}
#navdiv>#headernav>a {
text-decoration: none;
font-weight: bold;
margin: 0 .5em;
padding: 0.5em;
border-radius: 1em;
color: #343535;
}
#navdiv>#headernav>a:hover {
background-color:#7f8685;;
color: #fff;
}
/* Responsive Media Query */
@media only screen and (max-width: 1024px) and (min-width:768px) {
#main {
flex-direction: column ;
font-size: larger;
}
#headernav{
margin:10px auto;
text-align: center;
}
}
@media only screen and (max-width:768px) and (min-width: 425px) {
#main {
flex-direction: column ;
}
#headernav{
margin:10px auto;
text-align: center;
}
}
@media only screen and (max-width:425px) and (min-width: 300px) {
#main {
flex-direction: column;
}
#headernav{
margin:10px auto;
text-align: center;
}
}
</style>
<header id="main">
<div id="logodiv">
<h1 id="cname"><a href="index.html">Travelo</a></h1>
</div>
<div id="navdiv">
<nav id="headernav">
<!-- <a href="index.html">Home</a>
<a href="destination.html">Destination</a>
<a href="activities.html">Activities</a>
<a href="user_packages.html">Packages</a>
<a href="index.html#aboutsec">AboutUs</a>
<a href="login.html">Login</a> -->
</nav>
</div>
</header>
<script>
let div = document.querySelector("#headernav");
let user = JSON.parse(localStorage.getItem('user')) || [];
if(user.length == 0){
div.innerHTML = ` <a href="index.html">Home</a>
<a href="destination.html">Destination</a>
<a href="activities.html">Activities</a>
<a href="packages.html">Packages</a>
<a href="index.html#aboutsec">AboutUs</a>
<a href="login.html">Login</a>`;
}else{
div.innerHTML = ` <a href="index.html">Home</a>
<a href="destination.html">Destination</a>
<a href="activities.html">Activities</a>
<a href="packages.html">Packages</a>
<a href="index.html#aboutsec">AboutUs</a>
<a href="profile.html">Profile</a>`;
}
function myFunction(x) {
x.classList.toggle("change");
$("#mobile-menu").toggleClass("menu-hidden", 800, "easeOutQuint");
};
</script>