-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjs_fiverr_clone.html
89 lines (88 loc) · 3.19 KB
/
js_fiverr_clone.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fiverr Clone</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />
<link rel="stylesheet" href="js-css/style_lightup.css">
<link rel="stylesheet" href="js-css/css_reset.css">
</head>
<body>
<div class="landing">
<header class="header">
<nav class="navbar">
<a href="#" class="logo">
<img src="immagini/Fiverr logo.svg" alt="Fiverr Logo">
</a>
<ul class="menu-links">
<li><a href="#">Fiverr Business</a></li>
<li><a href="#">Explore</a></li>
<li class="language-item">
<a href="#">
<span class="material-symbols-outlined">language</span>
English
</a>
</li>
<li><a href="#">Become a Seller</a></li>
<li><a href="#">Sign In</a></li>
<li id="join-btn"><p>Join Us</p></li>
</ul>
<span id="hamburger-btn" class="material-symbols-outlined">menu</span>
</nav>
</header>
<section class="hero-section">
<div class="content">
<h1>Find the right freelance service, right away</h1>
<form action="#" class="search-form">
<input type="text" placeholder="Search for any service...">
<button class="material-symbols-outlined" type="sumbit">search</button>
</form>
<div class="popular-tags">
<h6>Popular:</h6>
<ul class="tags">
<li><a href="#">Webite Design</a></li>
<li><a href="#">Logo Design</a></li>
<li><a href="#">WordPress</a></li>
<li><a href="#">AI Design</a></li>
</ul>
</div>
</div>
</section>
</div>
<section class="ham-menu">
<div class="cross-icon">
<span id="close-menu-btn" class="material-symbols-outlined">close</span>
</div>
<ul class="menu-wrapper">
<li><a href="#">Fiverr Business</a></li>
<li><a href="#">Explore</a></li>
<li class="language-item"><a href="#"><span class="material-symbols-outlined">language</span>English</a></li>
<li><a href="#">Become a Seller</a></li>
<li><a href="#">Sign In</a></li>
<li class="join-btn"><p>Join Us</p></li>
</ul>
</section>
<script>
let ham_menu = document.querySelector('section.ham-menu');
const ham_icon = document.getElementById('hamburger-btn');
const cross_icon = document.getElementById('close-menu-btn');
const header = document.querySelector('header.header');
const hero_sc = document.querySelector('section.hero-section');
ham_icon.addEventListener('click', ()=>{
if (!ham_menu.classList.contains('active')) {
ham_menu.classList.add('active');
header.classList.add('blur');
hero_sc.classList.add('blur');
}
cross_icon.onclick = ()=>{
if (ham_menu.classList.contains('active')) {
ham_menu.classList.remove('active');
header.classList.remove('blur');
hero_sc.classList.remove('blur');
}
}
})
</script>
</body>
</html>