-
Notifications
You must be signed in to change notification settings - Fork 1
/
home.html
59 lines (55 loc) · 2.36 KB
/
home.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>home page</title>
<link rel="stylesheet" href="./font_awesome/css/font-awesome/css/font-awesome.min.css"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<link rel="stylesheet" href="home.css">
</head>
<body>
<header>
<div class="navbar">
<div class="title">
<a>HOSTEL MESS<a>
</div>
<ul class="link">
<li><a href="login.html"><i class="fa fa-home" aria-hidden="true"></i>home</a></li>
<li><a href="login.html"><i class="fa fa-sticky-note" aria-hidden="true"></i> order</a></li>
<li><a href="login.html"><i class="fa fa-download" aria-hidden="true"></i>receive</a></li>
</ul>
<a href="login.html" class="action_btn">login</a>
<div class="toggle_btn">
<i class="fa fa-bars" aria-hidden="true" ></i>
</div>
</div>
<div class ="dropdown_menu">
<li><a href="login.html">Home</li>
<li><a href="login.html">order</li>
<li><a href="login.html">receive</li>
<li><a href="login.html" class="action_btn">login</a></li>
</div>
</header>
<section>
<main>
<section id="content">
<h1>Welcome!!</h1>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Exercitationem, similique! Nihil molestias facere quis, error voluptatum aliquid vel libero hic totam possimus quidem consequuntur ex a pariatur iure non aperiam?</p>
</section>
</main>
<script>
const toggleBtn = document.querySelector('.toggle_btn');
const toggleBtnIcon = document.querySelector('.toggle_btn i');
const dropDownMenu = document.querySelector('.dropdown_menu');
toggleBtn.onclick = function() {
dropDownMenu.classList.toggle('open');
const isOpen = dropDownMenu.classList.contains('open');
toggleBtnIcon.className = isOpen
? 'fa fa-times-circle'
: 'fa fa-bars';
}
</script>
</section>
</body>
</html>