-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
93 lines (88 loc) · 2.64 KB
/
index.html
File metadata and controls
93 lines (88 loc) · 2.64 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
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
<!--
Objectives
1. Using the mobile first approach
- Explore what makes for responsiveness and how they work across different platforms and devices
- Build our own responsive web page using CSS media queries and viewport tag
2. Have basic knowledge of CSS flexbox and animations
How -
1. Set view port
2. Size content to view port
3. Use media queries for specific view port changes
-->
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="./style.css" />
<title></title>
<script type="text/javascript">
function handle_click(el) {
el.classList.toggle("animate");
let dropdown_el_list = document.getElementsByClassName("drop-down");
console.log(dropdown_el_list, "dropdown_el_list");
let dropdown_el = dropdown_el_list[0];
dropdown_el.classList.toggle("hidden");
}
</script>
</head>
<body>
<header>
<h3>Breadface</h3>
<div class="mobile-menu" onclick="handle_click(this)">
<div class="bar1"></div>
<div class="bar2"></div>
<div class="bar3"></div>
</div>
<ul class="main-menu">
<li>Home</li>
<li>About</li>
<li>Contact us</li>
</ul>
</header>
<div class="drop-down hidden">
<ul class="dropdown-menu">
<li>Home</li>
<li>About</li>
<li>Contact us</li>
</ul>
</div>
<div id="main">
<h3 class="title">
Welcome to my food blog. Find interesting recipes you would love to eat.
</h3>
<div class="heading">
Latest recipes
</div>
<div class="recipe">
<div class="recipe_image">
<img src="https://via.placeholder.com/250/190" />
</div>
<div class="recipe_image">
<img src="https://via.placeholder.com/250/190" />
</div>
<div class="recipe_image">
<img src="https://via.placeholder.com/250/190" />
</div>
</div>
<div class="heading">
Favourite Cuisines
</div>
<div class="cuisines">
<div class="cuisine_image">
<img src="https://via.placeholder.com/115/95" />
</div>
<div class="cuisine_image">
<img src="https://via.placeholder.com/115/95" />
</div>
<div class="cuisine_image">
<img src="https://via.placeholder.com/115/95" />
</div>
<div class="cuisine_image">
<img src="https://via.placeholder.com/115/95" />
</div>
</div>
</div>
<footer></footer>
</body>
</html>