-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
61 lines (56 loc) · 2.87 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JYRY.de</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css" integrity="sha512-MV7K8+y+gLIBoVD59lQIYicR65iaqukzvf/nwasF0nqhPay5w/9lJmVM2hMDcnK1OnMGCdVK+iQrJ7lzPJQd1w==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css">
<link href='https://fonts.googleapis.com/css?family=Lato|Roboto:400,900' rel='stylesheet' type='text/css'>
</head>
<body>
<header>
<div class="navbar">
<div class="logo"><a href="#" id="logo"><span class="none">JYRY</span><span class="black">.</span><span class="red">d</span><span class="gold">e</span></a></div>
<ul class="links">
<li><a href="hero" class="aa">Home</a></li>
<li><a href="about" class="aa">Sections</a></li>
<li><a href="services" class="aa">Eduction</a></li>
<li><a href="contact" class="aa">Contact</a></li>
</ul>
<div class="container"><a href="#" class="action_btn" id="action_btn2">Get Started</a></div>
<div class="toggle_btn">
<i class="fa-solid fa-bars"></i>
</div>
</div>
<div class="dropdown_menu">
<li><a href="hero" class="aa">Home</a></li>
<li><a href="about" class="aa">Sections</a></li>
<li><a href="services" class="aa">Eduction</a></li>
<li><a href="contact" class="aa">Contact</a></li>
<li> <a href="#" class="action_btn" id="action_btn1">Get Started</a></li>
</div>
</header>
<main>
<section id="hero">
<h1>Willkommen</h1>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Asperiores, voluptate expedita corrupti quas incidunt hic dolor culpa?<br /> Officiis harum excepturi eum nesciunt, laudantium voluptas eos maiores explicabo? Fuga, quam libero.</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.classList = isOpen
? 'fa-solid fa-xmark'
: 'fa-solid fa-bars'
document.documentElement.style.setProperty('--animate-duration', '2s');
document.documentElement.style.setProperty('--animate-duration', '.5s');
}
</script>
</body>
</html>