-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
53 lines (48 loc) · 1.83 KB
/
index.html
File metadata and controls
53 lines (48 loc) · 1.83 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<div class="overlay" id="overlay">
<h3>Serching now...</h3>
</div>
<div class="hero-bg">
<section class="top">
<header>
<a href="#">yummy.eats</a>
</header>
<h1><span>The Healthy</span> Eating Experience</h1>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Quidem eum perspiciatis doloribus quaerat repudiandae blanditiis beatae alias recusandae quis? Commodi.</p>
<div class="form-container">
<form action="">
<div class="form-left">
<label for="city">Enter your city</label>
<input type="text" name="city" id="city">
<p>Example "San Diego"</p>
</div>
<input type="button" value="Find Food Now" id="cta-btn">
</form>
</div>
</section>
</div>
<section class="authentic">
<div class="right-col">
<h2>Authentic. Awesome.</h2>
<p>Lorem ipsum dolor sit, amet consectetur adipisicing elit. Libero nesciunt cupiditate doloremque voluptas unde consequuntur quis excepturi alias dolor quo!</p>
</div>
<img src="images/food2.jpg" alt="Picture of food in a bowl">
</section>
<script>
let btn = document.getElementById('cta-btn')
let overlay = document.getElementById('overlay')
btn.addEventListener('click', () => {
overlay.style.display = 'grid';
overlay.classList.add("animate-overlay")
})
</script>
</body>
</html>