-
Notifications
You must be signed in to change notification settings - Fork 0
/
meals.php
161 lines (147 loc) · 5.96 KB
/
meals.php
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<?php
include "config/session.php";
// print_r($_SESSION['cart']);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="description"
content="Omnifood is an AI-powered food subscription that will make you eat healthy again, 365 days per year. It's tailored to your personal tastes and nutritional needs."
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="img/favicon.png" />
<link rel="apple-touch-icon" href="img/favicon-apple-touch.png" />
<link rel="manifest" href="manifest.webmanifest" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="css/general.css" />
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/queries.css" />
<title>Omnifood — Meals</title>
</head>
<body>
<header class="header">
<a href="index.php">
<img class="logo" alt="Omnifood logo" src="img/omnifood-logo.png" />
</a>
<nav class="main-nav">
<ul class="main-nav-list">
<li>
<a class="main-nav-link" href="index.php"> How it works</a>
</li>
<li>
<a class="main-nav-link" href="#"> Meals</a>
</li>
<li>
<a class="main-nav-link" href="cart.php"> Cart </a>
</li>
<li>
<a id="signup-btn" class="logout-btn" onclick="handle_login_meal()">
<?php
if(isset($_SESSION['username'])) {
echo "Logout";
} else {
echo "Try for free";
}
?> </a>
</li>
</ul>
</nav>
<button class="btn-mobile-nav">
<ion-icon class="icon-mobile-nav" name="menu-outline"></ion-icon>
<ion-icon class="icon-mobile-nav" name="close-outline"></ion-icon>
</button>
</header>
<section class="section-meals" id="meals">
<div class="container">
<span class="subheading center-text"> Meals</span>
<div class="cart-card-price-div">
<h2 class="heading-secondary">
Omnifood AI chooses from 5,000+ recipes
</h2>
<a href="cart.php" class= "cart-btn">
<img class="cart-icon" src="img/icons/cart.png" alt="cart-icon">
</a>
</div>
</div>
<div class="container grid grid--3-cols margin-bottom-md">
<?php include "components/meal.php"; ?>
<!-- <div class="meal">
<img src="img/meals/meal-1.jpg" class="meal-img" alt="Japanese Gyozas" />
<div class="meal-content">
<div class="meal-tags">
<span class="tag tag--vegetarian"> Vegetarian</span>
</div>
<p class="meal-title">Japanese Gyozas</p>
<ul class="meal-attributes">
<li class="meal-attribute">
<ion-icon class="meal-icon" name="flame-outline"></ion-icon><span> <strong>640</strong> Calories</span>
</li>
<li class="meal-attribute">
<ion-icon class="meal-icon" name="restaurant-outline"></ion-icon><span> Nutriscore ®
<strong>74</strong></span>
</li>
<li class="meal-attribute">
<ion-icon class="meal-icon" name="star-outline"></ion-icon><span> <strong>4.9</strong> rating (537)</span>
</li>
</ul>
</div>
</div>-->
<!-- Meal 2 -->
<!-- <div class="meal">
<img src="img/meals/meal-2.jpg" class="meal-img" alt="Avocado Salad" />
<div class="meal-content">
<div class="meal-tags">
<span class="tag tag--vegan">Vegan</span>
<span class="tag tag--paleo">Paleo</span>
</div>
<p class="meal-title">Avocado Salad</p>
<ul class="meal-attributes">
<li class="meal-attribute">
<ion-icon class="meal-icon" name="flame-outline"></ion-icon><span> <strong>400</strong> Calories</span>
</li>
<li class="meal-attribute">
<ion-icon class="meal-icon" name="restaurant-outline"></ion-icon><span> Nutriscore ®
<strong>92</strong></span>
</li>
<li class="meal-attribute">
<ion-icon class="meal-icon" name="star-outline"></ion-icon><span> <strong>4.8</strong> rating (441)</span>
</li>
</ul>
</div>
</div> -->
<!-- Meal 3 -->
<!-- <div class="meal">
<img src="img/meals/meal-2.jpg" class="meal-img" alt="Avocado Salad" />
<div class="meal-content">
<div class="meal-tags">
<span class="tag tag--vegan">Vegan</span>
<span class="tag tag--paleo">Paleo</span>
</div>
<p class="meal-title">Avocado Salad</p>
<ul class="meal-attributes">
<li class="meal-attribute">
<ion-icon class="meal-icon" name="flame-outline"></ion-icon><span> <strong>400</strong> Calories</span>
</li>
<li class="meal-attribute">
<ion-icon class="meal-icon" name="restaurant-outline"></ion-icon><span> Nutriscore ®
<strong>92</strong></span>
</li>
<li class="meal-attribute">
<ion-icon class="meal-icon" name="star-outline"></ion-icon><span> <strong>4.8</strong> rating
(441)</span>
</li>
</ul>
</div> -->
</div>
</section>
<script type="module" src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.js"></script>
<script defer src="https://unpkg.com/[email protected]/dist/smoothscroll.min.js
"></script>
<script defer src="js/cart_script.js"></script>
<script defer src="js/login_script.js"></script>
</body>
</html>