-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhome.php
More file actions
259 lines (199 loc) · 7.5 KB
/
Copy pathhome.php
File metadata and controls
259 lines (199 loc) · 7.5 KB
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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
<?php
// include("assets/php/db-config.php");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Home | Bookly</title>
<link rel="icon" href="./assets/images/illustrations/logo.png">
<!-- import icons -->
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css" />
<!-- root css -->
<link rel="stylesheet" href="./assets/css/root.css">
<link rel="stylesheet" href="./assets/css/navbar.css">
<link rel="stylesheet" href="./assets/css/signup.css">
<!-- home css -->
<link rel="stylesheet" href="./assets/css/home.css">
<!-- footer css -->
<link rel="stylesheet" href="./assets/css/footer.css">
<!-- feature-books css -->
<link rel="stylesheet" href="./assets/css/feature-books.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
</head>
<body>
<!-- START | NAVIGATION BAR -->
<?php
include("navbar.php");
?>
<div class="home">
<div class="home-content">
<div id="toast"></div>
<div class="home-text">
<p class="home-parag">Let’s make the best investements</p>
<h1 class="home-header">Giving used books a new lease of life</h1>
<p class="home-parag">Browse our assortment of pre-loved books to find
your next favorite.</p>
<a href="book-shop"><button class="btn-get-started">Get Started</button></a>
</div>
<div class="home-image">
<img src="./assets/images/illustrations/bundle-books-without-shadow.png" alt="bundle books"
class="bundle-books-img" />
</div>
</div>
</div>
<div class="featured-books">
<h1 class="featured-books-header">
Featured Books for you
</h1>
<div class="feature-books-container">
<button type="button" id="moveLeft" class="btn-nav">
<span class="material-symbols-outlined left-btn">
arrow_back_ios
</span>
</button>
<!-- <div class="container-indicators">
<div class="indicator active" data-index=0></div>
<div class="indicator" data-index=1></div>
<div class="indicator" data-index=2></div>
</div> -->
<div class="slider" id="mySlider">
<a href="#" class="ft-books" id="ft-book0">
<img src="./assets/images/feature-books/template-1.png" alt="" srcset="">
<div class="description">
<div class="description__text-container">
<h2 class="description__title truncated">Other London Book One</h2>
<p class="description__author truncated">Angelo Silvestre</p>
<span class="description__price truncated">₱250</span>
<br>
</div>
</div>
</a>
</div>
<button type="button" id="moveRight" class="btn-nav">
<span class="material-symbols-outlined right-btn">
arrow_forward_ios
</span>
</button>
</div>
</div>
<div class="how-it-works">
<h1 class="how-it-works-header">
How Bookly goes from your online store to customer door.
</h1>
<div class="how-it-works-content">
<div class="how-it-works-item">
<div class="how-it-works-image-wrapper">
<img src="./assets/images/illustrations/ai-create-account.svg" alt="book icon"
class="how-it-works-image" />
</div>
<div class="how-it-work-text-content">
<h2 class="how-it-works-item-header">
CREATE ACCOUNT
</h2>
<p class="how-it-works-parag">
Browse our books and find the one that suits you best.
</p>
</div>
</div>
<div class="how-it-works-item">
<div class="how-it-works-image-wrapper">
<img src="./assets/images/illustrations/ai-wide-selection.svg" alt="book icon"
class="how-it-works-image" />
</div>
<div class="how-it-work-text-content">
<h2 class="how-it-works-item-header">
WIDE SELECTION
</h2>
<p class="how-it-works-parag">
Find the cheapest book price that fits on your budget.
</p>
</div>
</div>
<div class="how-it-works-item">
<div class="how-it-works-image-wrapper">
<img src="./assets/images/illustrations/ai-mode-of-payment.svg" alt="book icon"
class="how-it-works-image" />
</div>
<div class="how-it-work-text-content">
<h2 class="how-it-works-item-header">
MODE OF PAYMENT
</h2>
<p class="how-it-works-parag">
We only offers cash on delivery payment.
</p>
</div>
</div>
<div class="how-it-works-item">
<div class="how-it-works-image-wrapper">
<img src="./assets/images/illustrations/ai-delivery.svg" alt="book icon" class="how-it-works-image" />
</div>
<div class="how-it-work-text-content">
<h2 class="how-it-works-item-header">
DELIVERY
</h2>
<p class="how-it-works-parag">
Buy it and get it delivered to your door.
</p>
</div>
</div>
</div>
</div>
<?php
include("footer.php");
include("./assets/php/load-books.php");
?>
<!-- <script src="./assets/javascript/toast.js"></script> -->
<script src="./assets/javascript/toast.js"></script>
<script>
shuffle(bookContentList);
// console.log(bookContentList);
const movies = bookContentList.slice(0, 24);
// console.log(movies);
function showSuccessToast() {
toast({
message: "Your account has been successfully created. You may now login.",
type: "success",
duration: 3000
});
}
function showErrorToast() {
toast({
message: "Có lỗi xảy ra, vui lòng liên hệ quản trị viên.",
type: "error",
duration: 5000
});
}
function showDeletedSuccessToast() {
toast({
message: "Your account has been successfully deleted. We hope to see you again soon.",
type: "success",
duration: 5000
});
}
function shuffle(array) {
var m = array.length,
t, i;
// While there remain elements to shuffle…
while (m) {
// Pick a remaining element…
i = Math.floor(Math.random() * m--);
// And swap it with the current element.
t = array[m];
array[m] = array[i];
array[i] = t;
}
return array;
}
</script>
<!-- END | FOOTER -->
<script src="./assets/javascript/sign-in-sign-up.js"></script>
<script src="./assets/javascript/navbar-retriever.js"></script>
<script src="./assets/javascript/global.js"></script>
<script src="./assets/javascript/feature-books.js"></script>
</body>
</html>