-
Notifications
You must be signed in to change notification settings - Fork 2
/
sidebar.html
227 lines (222 loc) · 6.06 KB
/
sidebar.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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
<!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>Document</title>
<script src="https://code.jquery.com/jquery-3.4.1.js"></script>
<script src="https://kit.fontawesome.com/a076d05399.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<style>
*{
margin: 0;
padding: 0;
/* color: whitesmoke; */
user-select: none;
box-sizing: border-box;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
.sidebar{
position: fixed;
width: 250px;
left: -250px;
background-color: #fcf9f9;
height: 100%;
transition: left 0.4s ease;
}
.sidebar .text{
padding-top: 10px;
color: rgb(13, 13, 13);
font-size: 25px;
font-weight: 600;
line-height: 65px;
text-align: center;
background: #f3efef;
padding-top: 10px;
letter-spacing: 1px;
}
nav ul{
background: #dcd9d9;
height: 100%;
width: 100%;
list-style: none;
}
nav ul li{
line-height: 60px;
border-bottom: 1px solid rgba(255,255,255,0.1);
}
nav ul li a{
position: relative;
color: rgb(2, 2, 2);
text-decoration: none;
font-size: 18px;
padding-left: 40px;
font-weight: 500;
display: block;
width: 100%;
border-left: 3px solid transparent;
transition: all 700ms linear;
}
nav ul li a:hover{
color: rgb(52, 55, 55);
background: #b9dcde;
border-left-color: cyan;
}
nav ul ul{
position: static;
display: none;
}
nav ul .feat-show.show{
display: block;
}
nav ul .serv-show.show1{
display: block;
}
nav ul ul li{
line-height: 42px;
border-bottom: none;
}
nav ul ul li a{
font-size: 17px;
color: #232222;
padding-left: 80px;
}
nav ul li a span{
position: absolute;
color: rgb(7, 21, 66);
top: 48%;
right: 20px;
font-size: 20px;
transform: translateY(-50%);
transition: transform 0.4s;
}
nav ul li a span.rotate{
transform: translateY(-50%) rotate(-180deg);
}
.btn{
position: absolute;
top: 15px;
left: 15px;
height: 45px;
text-align: center;
border-radius: 50%;
cursor: pointer;
width: 45px;
background: #f6f3f3;
transition: left 0.4s ease;
}
.btn:hover{
background: #f6f3f3;
}
.sidebar.show{
left: 0px;
}
.btn.click span:before{
content: '\f00d';
}
.btn.click{
left: 260px;
}
.btn span{
color: rgb(0, 0, 0);
font-size: 22px;
line-height: 45px;
}
img{
height: 40px;
width: 100px;
}
#mainnav{
height: 70px;
width: 100%;
/* border: 1px solid red; */
box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
position: fixed;
background-color: white;
z-index: 999;
}
#logo>img{
margin-top: 15px;
margin-left: 100px;
width: 70px;
}
#btn{
position: absolute;
right: 40px;
top: 15px;
}
#sign{
height: 40px;
color: white;
border: red;
border: 1px solid red;
background-color: rgb(224, 17, 17);
width: 95px;
border-radius: 5px;
font-size: 15px;
}
#iclass{
top: 15px;
position: absolute;
right: 170px;
}
</style>
<body>
<div id="mainnav">
<div class="btn">
<span class="fas fa-bars"></span>
</div>
<nav class="sidebar">
<div class="text"><img id="internimg" src="https://assets.interntheory.com/creative/logo.png" alt=""></div>
<ul>
<li>
<a href="index.html">Home</a>
</li>
<li><a href="internship.html">Internships</a></li>
<li><a href="#">Jobs</a></li>
<li><a href="#">Post Internships</a></li>
<li>
<a href="#" class="feat-btn">Courses
<span class="fas fa-caret-down first"></span>
</a>
<ul class="feat-show">
<li><a href="courses.html">Online Courses</a></li>
<li><a href="#">Classroom Training</a></li>
</ul>
</li>
<li><a href="contact.html">Contact Us</a></li>
<li>
<a href="#" class="serv-btn">Login
<span class="fas fa-caret-down second"></span>
</a>
<ul class="serv-show">
<li><a href="#">Company</a></li>
<li><a href="#">Student</a></li>
</ul>
</li>
</ul>
</nav>
<div id="logo"><img id="internimg" src="https://assets.interntheory.com/creative/logo.png" alt=""></div>
<div id="iclass"><i class="fa fa-shopping-cart" style="font-size:36px"></i></div>
<div id="btn">
<input type="button" id="sign" value="SIGN IN">
</div>
</div>
</body>
</html>
<script>
$('.btn').click(function(){
$(this).toggleClass('click')
$('.sidebar').toggleClass('show')
})
$('.feat-btn').click(function(){
$('nav ul .feat-show').toggleClass("show");
$('nav ul .first').toggleClass("rotate");
})
$('.serv-btn').click(function(){
$('nav ul .serv-show').toggleClass("show1");
$('nav ul .second').toggleClass("rotate");
})
</script>