-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAboutPage.hbs
375 lines (325 loc) · 13.3 KB
/
AboutPage.hbs
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
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
<!DOCTYPE html>
<head>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700" rel="stylesheet">
<link href="bootstrap.min.css" rel="stylesheet">
<link href="images/logo.png" rel="shortcut icon" />
<link href="user.css" rel="stylesheet">
<link href="nav.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<title>La Salle Eats | Search Results </title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap');
html, body {
margin: 0;
font-family: 'Roboto', sans-serif;
}
.center {
position: absolute;
top: 50%;
transform: translate(0, -50%);
}
.icon {
width: 32px;
height: 32px;
border: 1px solid #2F3B1C;
border-radius: 50%;
width: 50px;
height: 50px;
margin-left: 10px;
}
.loginregister {
color: #444444;
font-weight: bold;
}
a:link, a:visited {
color: #444444;
text-decoration: none;
}
a:hover {
color: #526534;
text-decoration: none;
}
.loginregister:hover {
color: #526534;
}
.navlinks {
word-spacing: 10px;
margin-right: 20px;
font-size:larger;
text-underline-offset: auto;
}
.button {
display: flex;
flex-direction: row;
align-items: center;
}
#searchbar {
margin-left: 25px;
width: 100%;
max-width: 300px;
background: rgba(255, 255, 255, 0.2);
display: flex;
justify-content: center;
align-items: center;
border-radius: 60px;
padding: 10px 20px;
backdrop-filter: blur(4px) saturate(180%);
}
#searchbar input {
background: transparent;
flex: 1;
border: 0;
outline: none;
font-size: 20px;
color: #444444;
}
#searchbar button img{
width: 30px;
height: 30px;
}
#searchbar button {
border: 0;
border-radius: 50%;
background: rgba(255, 255, 255, 0);
cursor: pointer;
width: 50px;
height: 50px;
backdrop-filter: blur(4px) saturate(180%);
}
::placeholder {
color: #444444;
}
.mostreviewed {
width: 30%;
height: 500px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
border-radius: 15px;
text-align: center;
display: flex;
flex-direction: column;
padding: 0;
margin: 15px;
}
#restaurantphoto {
background-repeat: no-repeat;
background-position: center;
background-size: cover;
height: 50%;
width: 100%;
box-shadow: inset 0 0 0 1000px rgba(237, 234, 229, 0.5);
border-top-left-radius: 15px;
border-top-right-radius: 15px;
overflow: hidden;
align-self: center;
}
#restaurantname {
padding: 5px;
}
#restaurantdetails {
padding: 10px;
text-align: center justify;
text-justify: inter-word;
font-family: 'Roboto', sans-serif;
}
.restaurantdesc {
font-weight: normal;
font-size: large;
}
.about-main{
background-image: url(./images/dlsuphoto.jpg);
background-repeat: no-repeat;
background-position: center;
background-size: cover;
height: 100vh;
box-shadow: inset 0 0 0 1000px rgba(237, 234, 229, 0.75);
display: flex;
justify-content: center;
}
.title{
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
padding: 10%;
width: 95%;
height: 75%;
max-width: 1000px;
max-height: 600px;
margin-right: 25%;
margin-top: 50px;
margin-left: 25%;
border-radius: 20px;
}
.content{
background-color: #eef3eb;
padding: 20px;
text-align: center;
}
.description {
font-size: 1.3rem;
text-align: justify;
text-justify: inter-word;
font-weight: normal;
}
</style>
<link href="bootstrap.min.css" rel="stylesheet">
<link href="nav.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<div class = "sideNav"id = "sideNav">
<div id = "loginHeader">
<div id = "nav_Exit" onclick="closeNav()" style="font-weight: bold;" class = "fa fa-close">
</div>
</div><br>
<center>
<div class="wrapper">
<div class = "form_box_login">
<form action ="/login" method="post">
<div>
<h2 style="font-size: 1.5em;"><br>Login</h2>
</div>
<div class = "exit"><box-icon type='solid' name='x-circle'></box-icon>
<!-- FOR USERNAME -->
<div class = "input_box">
<label>Username</label><br>
<input type = "text" name = "username" placeholder="Username">
</div><br>
<!-- FOR PASSWORD -->
<div class = "input_box">
<label>Password </label><br>
<input type = "password" name = "password" placeholder="Password">
</div><br>
<input type="checkbox" name="rememberMe">Remember Me
<br><br>
<!-- Log In Button-->
<div>
<input type ="submit" value = "Log in">
</div><br>
<!-- Register an Account -->
<span>
Don't have an account? <a href = "#" class = "link" id = "register_link" style="color: black;">Sign up now </a>
</span>
</form>
</div><br>
<div class="line"></div>
</div>
</center>
<center>
<div class="wrapper_reg">
<div class = "form_box_signup" id="signupForm">
<form action ="/signup" method="post">
<div>
<h2 style="font-family: 'Lora', serif; font-size: 1.5em;"><br>Register</h2>
</div>
<!-- FOR USERNAME -->
<div class = "input_box">
<label>Username</label><br>
<input type = "text" name = "username" placeholder="Username">
</div><br>
<!-- FOR PASSWORD -->
<div class = "input_box">
<label>Password </label><br>
<input type = "password" name = "password" placeholder="Password">
</div><br>
<div class = "input_box">
<label>Re-enter Password </label><br>
<input type = "password" name = "re_password" placeholder="Re-enter Password">
</div><br>
<!-- Sign Up Button-->
<div>
<input type ="submit" value = "Sign up"><br>
</div><br>
<!-- Already Have an Account -->
<span>
Already have an account? <a href = "#" class = "link" id = "register_link" style="color: black;">Login</a>
</span>
</form>
</div><br>
<div class="line"></div>
</center>
</div>
<div class = "main-content">
<header class="navigation" style="position: sticky; top: 0; z-index: 2;">
<nav class="navbar navbar-expand-lg navbar-light bg-white shadow-sm py-3">
<div class="container">
<a href="Homepage">
<img src = "images/logo.png" width = 100px height = 85px/>
</a>
<form action="/SearchResult" method = "post" id="searchbar" style="margin-top: 15px; margin-left: 40px; border: #2F3B1C solid 2px;">
<input type="text" name="searchTerm" placeholder="Search...">
<button type="submit"><img src="./images/searchicon.png"></button>
</form>
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbar">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbar">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="AboutPage">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="Homepage">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="restolist">Restaurants</a>
</li>
<li class="nav-item" onclick="openNav()">
{{#if user}}
<li clas="nav-item">
<a class="nav-link" href="logout">Sign Out</a>
</li>
<a href="User">
<img src="/{{profile.image}}" class="rounded-circle shadow-1-strong me-3" width = 50 height = 50>
</a>
{{else}}
<p class="nav-link" href="" onclick="openNav()" style="cursor: pointer;">Login</p>
{{/if}}
</li>
</ul>
</div>
</div>
</nav>
</header>
<center>
<div class="about-main">
<div class="title">
<img src="images/logo.png" alt="logo" style="width: 500px;">
</div>
</div>
<div class="content">
<h1 style="margin: auto; padding: 30px; color: #2E8B57"> Welcome to LaSalle Eats! </h1>
<p class="description" style="padding: 0; margin: 0 50px;"> We work hard to give consumers a wide-ranging platform at our online
application so they may explore, review, and interact with a variety of restaurants in the vibrant Taft area.
We have you covered, whether you're a food fanatic looking for the next gourmet adventure or just looking for a comfortable place to eat.
<br><br>
In order to improve your experience, our online application makes use of the capabilities of contemporary web development as well as a
number of NPM packages and third-party libraries. The following are the main packages and libraries that we used to build this feature-rich and user-friendly platform:
</p><br>
<ul class = "description" style = "text-align:left; margin-left: 50px;">
<span>
<li>NPM: Node Package Manager</li>
<li>bcrpyt 5.0.1</li>
<li>body-parser 1.20.2</li>
<li>cookie-parser 1.4.6</li>
<li>dotenv 16.3.1</li>
<li>express 4.18.2</li>
<li>express-fileupload 1.4.0</li>
</span>
<span>
<li>express-session 1.17.3</li>
<li>hbs 4.2.0</li>
<li>joi 13.1.0</li>
<li>jsonwebtoken 9.0.1</li>
<li>mongodb 5.7.0</li>
<li>multer 1.4.5-lts.1</li>
<li>nodemon 3.0.1</li>
<li>depcheck 1.4.3</li>
</span>
</ul>
</div>
</center>
</div>
<script src="user.js"></script>
<script src="loginscript.js"></script>
</body>