-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
188 lines (164 loc) · 8.4 KB
/
index.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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<?php
include_once "includes/header.php";
// Include the database configuration
include 'config/config.php';
?>
<?php
// Fetch all categories from the database
$stmt = $conn->prepare("SELECT name, image FROM categories");
$stmt->execute();
$categories = $stmt->fetchAll(PDO::FETCH_ASSOC);
?>
<div id="page-content" class="page-content">
<div class="banner">
<div class="jumbotron jumbotron-video text-center bg-dark mb-0 rounded-0">
<video width="100%" preload="auto" loop autoplay muted>
<source src='assets/media/explore.mp4' type='video/mp4' />
<source src='assets/media/explore.webm' type='video/webm' />
</video>
<div class="container">
<h1 class="pt-5">
Save time and leave the<br>
groceries to us.
</h1>
<p class="lead">
Always Fresh Everyday.
</p>
<div class="row">
<div class="col-md-4">
<div class="card border-0 text-center">
<div class="card-icon">
<div class="card-icon-i">
<i class="fa fa-shopping-basket"></i>
</div>
</div>
<div class="card-body">
<h4 class="card-title">
Buy
</h4>
<p class="card-text">
Simply click-to-buy on the product you want and submit your order when you're done.
</p>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card border-0 text-center">
<div class="card-icon">
<div class="card-icon-i">
<i class="fas fa-leaf"></i>
</div>
</div>
<div class="card-body">
<h4 class="card-title">
Harvest
</h4>
<p class="card-text">
Our team ensures the produce quality is up to our standard and delivers to your door within 24 hours of harvest day.
</p>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card border-0 text-center">
<div class="card-icon">
<div class="card-icon-i">
<i class="fa fa-truck"></i>
</div>
</div>
<div class="card-body">
<h4 class="card-title">
Delivery
</h4>
<p class="card-text">
Farmers receive your orders two days in advance so they can prepare for harvest exactly as your orders – no wasted produce.
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<section id="why">
<h2 class="title">Why Freschery</h2>
<div class="container">
<div class="row">
<div class="col-md-4">
<div class="card border-0 text-center gray-bg">
<div class="card-icon">
<div class="card-icon-i text-success">
<i class="fas fa-leaf"></i>
</div>
</div>
<div class="card-body">
<h4 class="card-title">
Straight from the Farm
</h4>
<p class="card-text">
Our farm-to-table concept emphasizes on getting the fresh produce directly from local farms to your tables within one day, hence you know you get the freshest produce straight from harvest.
</p>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card border-0 text-center gray-bg">
<div class="card-icon">
<div class="card-icon-i text-success">
<i class="fa fa-question"></i>
</div>
</div>
<div class="card-body">
<h4 class="card-title">
Know Your Farmers
</h4>
<p class="card-text">
We want you to know exactly who is growing your food by having the farmers profile on each item and farmers page. You’re welcome to visit the farms and see the love they put into growing your food.
</p>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card border-0 text-center gray-bg">
<div class="card-icon">
<div class="card-icon-i text-success">
<i class="fas fa-smile"></i>
</div>
</div>
<div class="card-body">
<h4 class="card-title">
Improving Farmers’ Livelihood
</h4>
<p class="card-text">
Slowly but sure, by cutting the complex supply chain and food system, we hope to improve the welfare of farmers by giving them the returns they deserve for their hard work.
</p>
</div>
</div>
</div>
<div class="col-md-12 mt-5 text-center">
<a href="shop.php" class="btn btn-primary btn-lg">SHOP NOW</a>
</div>
</div>
</div>
</section>
<section id="categories" class="pb-0 gray-bg">
<h2 class="title">Categories</h2>
<div class="landing-categories owl-carousel">
<?php
foreach ($categories as $category) {
echo '<div class="item">';
echo ' <div class="card rounded-0 border-0 text-center">';
echo ' <img src="assets/img/categories/' . htmlspecialchars($category['image']) . '" style="width: auto; height: 250px; object-fit: cover;">';
echo ' <div class="card-img-overlay d-flex align-items-center justify-content-center">';
echo ' <a href="shop.php?category=' . urlencode($category['name']) . '" class="btn btn-primary btn-lg">' . htmlspecialchars($category['name']) . '</a>';
echo ' </div>';
echo ' </div>';
echo '</div>';
}
?>
</div>
</section>
</div>
<?php
include_once "includes/footer.php";
?>