forked from sumitrathor1/nearby
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
342 lines (337 loc) · 19.9 KB
/
index.php
File metadata and controls
342 lines (337 loc) · 19.9 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
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
<?php
$pageTitle = 'NearBy | Student Housing Simplified';
$pageScripts = ['assets/js/message.js'];
$enableChatbot = true;
require_once __DIR__ . '/includes/header.php';
?>
<section class="hero-slider position-relative mb-5">
<div id="homepageSlider" class="carousel slide" data-bs-ride="carousel" data-bs-interval="3000">
<div class="carousel-indicators">
<button type="button" data-bs-target="#homepageSlider" data-bs-slide-to="0" class="active" aria-current="true" aria-label="Slide 1"></button>
<button type="button" data-bs-target="#homepageSlider" data-bs-slide-to="1" aria-label="Slide 2"></button>
<button type="button" data-bs-target="#homepageSlider" data-bs-slide-to="2" aria-label="Slide 3"></button>
</div>
<div class="carousel-inner">
<div class="carousel-item active" data-bs-interval="3000">
<img src="https://images.unsplash.com/photo-1588072432836-e10032774350?auto=format&fit=crop&w=1460&q=80" class="slider-image" alt="Student housing near green campus">
<div class="slider-overlay"></div>
<div class="slider-content d-flex align-items-center">
<div class="container text-center text-lg-start">
<span class="badge bg-success bg-opacity-75 text-white mb-3">Verified Senior Listings</span>
<h2 class="display-6 fw-semibold mb-3">Live close to friends, class, and campus buzz</h2>
<p class="text-white-50 mb-0">Browse curated homes owned by seniors who understand student life.</p>
</div>
</div>
</div>
<div class="carousel-item" data-bs-interval="3000">
<img src="https://images.unsplash.com/photo-1523580846011-d3a5bc25702b?auto=format&fit=crop&w=1460&q=80" class="slider-image" alt="Students studying in lounge">
<div class="slider-overlay"></div>
<div class="slider-content d-flex align-items-center">
<div class="container text-center text-lg-start">
<span class="badge bg-light text-success mb-3">Smart Filters</span>
<h2 class="display-6 fw-semibold mb-3">Compare rent, facilities, and locations instantly</h2>
<p class="text-white-50 mb-0">Use advanced filters to find spaces with Wi-Fi, meals, and more.</p>
</div>
</div>
</div>
<div class="carousel-item" data-bs-interval="3000">
<img src="https://images.unsplash.com/photo-1503676260728-1c00da094a0b?auto=format&fit=crop&w=1460&q=80" class="slider-image" alt="Students meeting community">
<div class="slider-overlay"></div>
<div class="slider-content d-flex align-items-center">
<div class="container text-center text-lg-start">
<span class="badge bg-warning text-dark mb-3">Community First</span>
<h2 class="display-6 fw-semibold mb-3">Connect with seniors and settle in confidently</h2>
<p class="text-white-50 mb-0">Get guidance on neighbourhood food, transport, and essential services.</p>
</div>
</div>
</div>
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#homepageSlider" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#homepageSlider" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
</section>
<section class="hero-section d-flex flex-column flex-lg-row align-items-center">
<div class="hero-card text-center text-lg-start">
<span class="badge bg-light text-success mb-3">Find Your Perfect Stay</span>
<h1 class="display-5 fw-semibold mb-4">Discover Student-Friendly Rooms Near Your Campus</h1>
<p class="lead text-muted mb-4">Search verified accommodations, connect with senior owners, and settle into a comfortable, affordable space designed for student life.</p>
<div class="d-flex flex-column flex-md-row gap-3">
<a href="search.php" class="btn btn-primary btn-lg px-4">Start Searching</a>
<a href="register.php" class="btn btn-lg px-4" style="color: #319d65; border: 2px solid;
">Join NearBy</a>
</div>
</div>
<div class="hero-illustration p-4 mt-4 mt-lg-0 w-100">
<div class="row g-3">
<div class="col-6">
<div class="glass-card p-4 text-center">
<i class="bi bi-house-heart fs-1 text-success"></i>
<p class="fw-semibold mt-3 mb-1">Verified Listings</p>
<p class="small text-muted">Curated stays with trusted senior owners.</p>
</div>
</div>
<div class="col-6">
<div class="glass-card p-4 text-center">
<i class="bi bi-wifi fs-1 text-success"></i>
<p class="fw-semibold mt-3 mb-1">Essential Facilities</p>
<p class="small text-muted">Wi-Fi, meals, and amenities in every budget.</p>
</div>
</div>
<div class="col-12">
<div class="glass-card p-4 text-center">
<i class="bi bi-geo-alt fs-1 text-success"></i>
<p class="fw-semibold mt-3 mb-1">Stay Close to Campus</p>
<p class="small text-muted">Locate rooms around your college in minutes.</p>
</div>
</div>
</div>
</div>
</section>
<section class="py-5">
<div class="d-flex justify-content-between align-items-center mb-4">
<h2 class="section-title fw-semibold">Why NearBy Works</h2>
<a href="register.php" class="btn btn-sm btn-outline-light">Become a member</a>
</div>
<div class="row g-4">
<div class="col-md-4">
<div class="glass-card p-4 h-100">
<h3 class="h5 fw-semibold">Built for Students</h3>
<p class="text-muted">Discover accommodations curated for student needs with budgets tailored around college life.</p>
</div>
</div>
<div class="col-md-4">
<div class="glass-card p-4 h-100">
<h3 class="h5 fw-semibold">Safe & Verified</h3>
<p class="text-muted">Listings are posted by senior students with owner verification badges for peace of mind.</p>
</div>
</div>
<div class="col-md-4">
<div class="glass-card p-4 h-100">
<h3 class="h5 fw-semibold">Smart Recommendations</h3>
<p class="text-muted">Powerful filters and real-time search make finding the perfect stay quick and stress-free.</p>
</div>
</div>
</div>
</section>
<section class="py-5">
<div class="row g-4 align-items-center">
<div class="col-lg-6">
<h2 class="section-title fw-semibold mb-4">How NearBy Supports Juniors & Seniors</h2>
<ul class="list-unstyled d-grid gap-3">
<li class="glass-card p-3">
<div class="d-flex align-items-center gap-3">
<span class="facility-icon"><i class="bi bi-search"></i></span>
<div>
<p class="fw-semibold mb-1">Explore instantly</p>
<p class="small text-muted mb-0">Search rooms by location, budget, type, and facilities with live updates.</p>
</div>
</div>
</li>
<li class="glass-card p-3">
<div class="d-flex align-items-center gap-3">
<span class="facility-icon"><i class="bi bi-chat-dots"></i></span>
<div>
<p class="fw-semibold mb-1">Connect securely</p>
<p class="small text-muted mb-0">AJAX-powered contact requests keep your conversation private and fast.</p>
</div>
</div>
</li>
<li class="glass-card p-3">
<div class="d-flex align-items-center gap-3">
<span class="facility-icon"><i class="bi bi-clipboard-plus"></i></span>
<div>
<p class="fw-semibold mb-1">Host with ease</p>
<p class="small text-muted mb-0">Senior students can post rooms with all essentials and get junior leads quickly.</p>
</div>
</div>
</li>
</ul>
</div>
<div class="col-lg-6">
<div class="glass-card p-4">
<h3 class="h5 fw-semibold mb-3">Ready to experience NearBy?</h3>
<p class="text-muted">Create an account to explore verified accommodations, get local recommendations, and settle into your second home.</p>
<div class="d-flex flex-column flex-sm-row gap-3">
<a class="btn btn-primary flex-fill" href="register.php">Create account</a>
<a class="btn btn-outline-light flex-fill" href="login.php">I already have one</a>
</div>
</div>
</div>
</div>
</section>
<section class="py-5">
<div class="d-flex flex-column flex-lg-row justify-content-between align-items-lg-center gap-3 mb-4">
<div>
<h2 class="section-title fw-semibold">Featured stays from our community</h2>
<p class="text-muted small mb-0">Take a peek at popular verified accommodations senior hosts recently shared.</p>
</div>
<a class="btn btn-outline-light btn-sm" href="search.php">Browse all spaces</a>
</div>
<div class="row g-4">
<div class="col-md-4">
<div class="glass-card featured-card h-100">
<img src="https://images.unsplash.com/photo-1505691938895-1758d7feb511?auto=format&fit=crop&w=1200&q=80" class="featured-image" alt="Bright twin sharing room">
<div class="p-4 d-flex flex-column gap-3">
<span class="feature-tag"><i class="bi bi-patch-check-fill"></i>Verified · Near MITS</span>
<div>
<h3 class="h5 fw-semibold mb-1">Bank Colony</h3>
<p class="small text-muted mb-0">2 min walk to campus · Wi-Fi · Meals · Laundry</p>
</div>
<div class="d-flex justify-content-between align-items-center">
<span class="fw-semibold text-success">₹7,500 / month</span>
<span class="small text-muted"><a href="https://maps.app.goo.gl/ygA3C2ZgjkL5BgHJ7" class="text-decoration-none"><i class="bi bi-geo-alt me-1"></i>Bank Colony, Gwalior</a></span>
</div>
</div>
</div>
</div>
<div class="col-md-4">
<div class="glass-card featured-card h-100">
<img src="https://images.unsplash.com/photo-1522708323590-d24dbb6b0267?auto=format&fit=crop&w=1200&q=80" class="featured-image" alt="Cozy studio apartment interior">
<div class="p-4 d-flex flex-column gap-3">
<span class="feature-tag"><i class="bi bi-lightning-charge"></i>Fast Wi-Fi · AC</span>
<div>
<h3 class="h5 fw-semibold mb-1">Gole Ka Mandir</h3>
<p class="small text-muted mb-0">Dedicated study desk · 24x7 power backup · Parking</p>
</div>
<div class="d-flex justify-content-between align-items-center">
<span class="fw-semibold text-success">₹11,200 / month</span>
<span class="small text-muted"><a href="https://maps.app.goo.gl/hBhKMJuK48Utgj568" class="text-decoration-none"><i class="bi bi-geo-alt me-1"></i>Gole Ka Mandir, Gwalior</a></span>
</div>
</div>
</div>
</div>
<div class="col-md-4">
<div class="glass-card featured-card h-100">
<img src="https://images.unsplash.com/photo-1520607162513-77705c0f0d4a?auto=format&fit=crop&w=1200&q=80" class="featured-image" alt="Group of students in community area">
<div class="p-4 d-flex flex-column gap-3">
<span class="feature-tag"><i class="bi bi-people"></i>Community Living</span>
<div>
<h3 class="h5 fw-semibold mb-1">Krishna Nagar</h3>
<p class="small text-muted mb-0">Shared lounge · Gym access · Evening mentoring circles</p>
</div>
<div class="d-flex justify-content-between align-items-center">
<span class="fw-semibold text-success">₹9,300 / month</span>
<span class="small text-muted"><a href="https://maps.app.goo.gl/3EPudEjjDycgT3ca9" class="text-decoration-none"><i class="bi bi-geo-alt me-1"></i>Krishna Nagar, Gwalior</a></span>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="py-5">
<div class="row g-4 align-items-center">
<div class="col-lg-5">
<h2 class="section-title fw-semibold mb-4">Start in three simple steps</h2>
<p class="text-muted">NearBy keeps the onboarding flow quick whether you are searching for a room or helping juniors as a host.</p>
<div class="glass-card p-4 d-grid gap-4 mt-4">
<div class="d-flex gap-3 step-card">
<span class="icon-circle"><i class="bi bi-person-badge"></i></span>
<div>
<h3 class="h6 fw-semibold mb-1">Register using your college email</h3>
<p class="small text-muted mb-0">Sign up as junior or senior with automatic role-based dashboards.</p>
</div>
</div>
<div class="d-flex gap-3 step-card">
<span class="icon-circle"><i class="bi bi-funnel"></i></span>
<div>
<h3 class="h6 fw-semibold mb-1">Apply filters tailored to your needs</h3>
<p class="small text-muted mb-0">Search by rent range, facilities, and who the stay is allowed for.</p>
</div>
</div>
<div class="d-flex gap-3 step-card">
<span class="icon-circle"><i class="bi bi-envelope-check"></i></span>
<div>
<h3 class="h6 fw-semibold mb-1">Connect instantly with verified owners</h3>
<p class="small text-muted mb-0">Send contact requests via AJAX and receive replies in your inbox.</p>
</div>
</div>
</div>
</div>
<div class="col-lg-7">
<div class="glass-card p-4 p-lg-5 h-100">
<div class="d-flex flex-column flex-md-row gap-4 align-items-md-center">
<div class="flex-shrink-0">
<span class="icon-circle" style="width:64px;height:64px;"><i class="bi bi-chat-quote"></i></span>
</div>
<div>
<p class="fst-italic text-muted mb-3">“Within a day I found a furnished room near campus and the senior host helped me figure out the best tiffin services. NearBy made the move-in stress free.”</p>
<div>
<p class="fw-semibold mb-0">Aditi Sharma</p>
<p class="small text-muted">First-year B.Tech · Madhav Institute Of Technology And Science Gwalior</p>
</div>
</div>
</div>
<hr class="my-4">
<div class="row g-3 text-center text-md-start">
<div class="col-md-4">
<h3 class="h2 fw-bold mb-1">12</h3>
<p class="small text-muted mb-0">Active student members</p>
</div>
<div class="col-md-4">
<h3 class="h2 fw-bold mb-1">2</h3>
<p class="small text-muted mb-0">Verified senior hosts</p>
</div>
<div class="col-md-4">
<h3 class="h2 fw-bold mb-1">95%</h3>
<p class="small text-muted mb-0">Match satisfaction rate</p>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="py-5">
<div class="row g-4">
<div class="col-lg-5">
<h2 class="section-title fw-semibold mb-3">Frequently asked questions</h2>
<p class="text-muted">Still curious about the process? We have collected some quick answers for you.</p>
</div>
<div class="col-lg-7">
<div class="accordion accordion-glass" id="faqAccordion">
<div class="accordion-item">
<h2 class="accordion-header" id="faqOne">
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
How long does verification take for senior hosts?
</button>
</h2>
<div id="collapseOne" class="accordion-collapse collapse show" aria-labelledby="faqOne" data-bs-parent="#faqAccordion">
<div class="accordion-body">
Once you submit accommodation details with identity proof, our team reviews and approves within 24 working hours. Verified badges appear automatically after approval.
</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="faqTwo">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
Is there any charge for juniors to contact owners?
</button>
</h2>
<div id="collapseTwo" class="accordion-collapse collapse" aria-labelledby="faqTwo" data-bs-parent="#faqAccordion">
<div class="accordion-body">
No. NearBy keeps student housing conversations free. You can send unlimited contact requests and only the verified owner sees your basic profile and message.
</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="faqThree">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
Can I manage multiple listings as a senior?
</button>
</h2>
<div id="collapseThree" class="accordion-collapse collapse" aria-labelledby="faqThree" data-bs-parent="#faqAccordion">
<div class="accordion-body">
Absolutely. Add each accommodation via your dashboard. You can pause or update availability anytime and juniors will see real-time status in search results.
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<?php require_once __DIR__ . '/includes/footer.php'; ?>