-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
138 lines (130 loc) · 4.22 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
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
127
128
129
130
131
132
133
134
135
136
137
138
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="./logo.png" />
<title>Meal - Suggestion App</title>
<!-- Font-Awesome Icon CDN -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"
integrity="sha512-iecdLmaskl7CVkqkXNQ/ZH/XLlvWZOJyj7Yy7tcenmpD1ypASozpmT/E0iPtmFIB46ZmdtAc9eNBvH0H/ZpiBw=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<!-- Using Bootstrap framework for CSS -->
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC"
crossorigin="anonymous"
/>
<!-- External CSS StyleSheet -->
<link rel="stylesheet" href="index.css" />
</head>
<body>
<div class="container-fluid prim-color">
<header class="d-flex flex-wrap py-2 justify-content-between">
<a
href="/"
class="d-flex align-items-center justify-content-center mb-3 mb-md-0 me-md-auto text-dark text-decoration-none"
>
<img src="logo.png" alt="logo" width="60px" />
<span class="ms-2 text-light nav-heading">Meal Explorer</span>
</a>
<!-- Button for show All favourite Meals through using offcanvas -->
<button
class="navbar-toggler me-2"
type="button"
data-bs-toggle="offcanvas"
data-bs-target="#offcanvasNavbar"
aria-controls="offcanvasNavbar"
onclick="showFavMealList()"
>
<span class="navbar-toggler-icon"><i class="fas fa-heart"></i></span>
</button>
<div
class="offcanvas offcanvas-end"
tabindex="-1"
id="offcanvasNavbar"
aria-labelledby="offcanvasNavbarLabel"
>
<div class="offcanvas-header prim-color">
<h5
class="offcanvas-title"
id="offcanvasNavbarLabel"
style="color: white"
>
Favourites
</h5>
<button
type="button"
class="btn-close"
data-bs-dismiss="offcanvas"
aria-label="Close"
></button>
</div>
<!--this div is for show favourite meals -->
<div
id="favourites-body"
class="offcanvas-body d-flex justify-content-center flex-wrap"
>
<div class="spinner-border text-success" role="status">
<span class="sr-only">Loading...</span>
</div>
</div>
</div>
</header>
</div>
<!-- Header Section -->
<div class="container-fluid">
<div id="heading" class="container text-center">
<blockquote class="quote">
"Meal Explorer: Embark on a Culinary Journey with Us"
</blockquote>
</div>
<div
id="search-bar"
class="container text-center mt-3"
onkeyup="showMealList()"
>
<input
type="search"
id="my-search"
class="form-control"
placeholder="Search..."
/>
</div>
</div>
<!-- Main section which contains card to show Meals -->
<div
id="main-card"
class="d-flex justify-content-around container flex-wrap mt-5"
></div>
<!-- Modal for showing notifications -->
<div
class="modal fade"
id="notificationModal"
tabindex="-1"
aria-labelledby="notificationModalLabel"
aria-hidden="true"
>
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-body text-center">
<p id="notificationText"></p>
</div>
</div>
</div>
</div>
<!-- Bootstrap Script CDN -->
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous"
></script>
<!-- External Script File -->
<script src="script.js"></script>
</body>
</html>