-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
115 lines (111 loc) · 3.66 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<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="" width="60px" />
<span class="ms-2 text-light">Meal App</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-hamburger"></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">
<h1>Try Something new Meal</h1>
</div>
<div
id="search-bar"
class="container text-center mt-5"
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>
<!-- 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>