-
Notifications
You must be signed in to change notification settings - Fork 7
/
foods.html
126 lines (110 loc) · 2.21 KB
/
foods.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
body {
margin: 0;
font-family: Arial, Helvetica, sans-serif;
background-color: #EEEEEE;
}
.topnav {
overflow: hidden;
background-color: #02040F;
}
.topnav a {
float: left;
display: block;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}
.topnav a:hover {
background-color: #eeeeee;
color: black;
}
.topnav a.active {
background-color: #7A0000;
color: white;
}
.topnav .icon {
display: none;
}
#mainContent {
min-width: 400px;
max-width: 900px;
margin: 0 auto;
}
#menu {
display: flex;
}
.menu-item {
margin: 10px;
}
.menu-item img {
width: 20vw;
}
@media screen and (max-width: 600px) {
.topnav a:not(:first-child) {display: none;}
.topnav a.icon {
float: right;
display: block;
}
}
@media screen and (max-width: 600px) {
.topnav.responsive {position: relative;}
.topnav.responsive .icon {
position: absolute;
right: 0;
top: 0;
}
.topnav.responsive a {
float: none;
display: block;
text-align: left;
}
}
</style>
</head>
<body>
<div class="topnav" id="myTopnav">
<a href="index.html">Home</a>
<a href="seceret-chef.html">About</a>
<a href="foods.html" class="active">Menu</a>
<a href="image.html">Contact</a>
<a href="javascript:void(0);" class="icon" onclick="myFunction()">
<i class="fa fa-bars"></i>
</a>
</div>
<div id="mainContent" style="padding-left:16px">
<h1>Menu</h1>
<div id="menu">
<div class="menu-item">
<img src="images/snails.jpg">
<h2>Snails $20</h2>
</div>
<div class="menu-item">
<img src="images/IMG_0606-uguvag.jpg">
<h2>Refreshing Beverage $600</h2>
</div>
<div class="menu-item">
<img src="images/9681525407bd46fabbafc0c0e90eff4c.jpg">
<h2>Diaper Pudding $7,000</h2>
</div>
</div>
</div>
<script>
function myFunction() {
var x = document.getElementById("myTopnav");
if (x.className === "topnav") {
x.className += " responsive";
} else {
x.className = "topnav";
}
}
</script>
</body>
</html>