-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhome.html
560 lines (498 loc) · 22.9 KB
/
home.html
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
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FIR SAHAYAK</title>
<link rel="shortcut icon" href="https://assets-global.website-files.com/64a2ab71942e1d57feb6fe39/6528221f95333ff155d01ad2_fav.gif" type="image/x-icon">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/fonts/remixicon.css" rel="stylesheet" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/locomotive-scroll.css">
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/home.css') }}">
</head>
<body>
{% block content%}
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, message in messages %}
<div id="flash-message" class="alert alert-{{ category }} flash-message" role="alert">
{{ message }}
</div>
{% endfor %}
{% endif %}
{% endwith %}
<nav>
<div class="logo-container">
<!-- Your logo goes here -->
<img src="https://i.ibb.co/4shBM7Y/pngwing-com.png" alt="Logo">
</div>
<!-- Rest of your navbar content -->
<h1>FIR SAHAYAK</h1>
<p></p>
<div class="nav-part2">
<div class="nav-elem">
<h4>USER PROFILE</h4>
<h5><a href="/login">Account</a></h5>
</div>
<div class="nav-elem">
<h4>MISSING</h4>
<h5><span>MISSING PERSON SEARCH</span></h5>
<h5><span>MISSING PERSON/CHILDREN</span></h5>
<h5><span>REPORT FOUND(GNCTD)</span></h5>
</div>
<div class="nav-elem">
<h4>THEFT</h4>
<h5><span>LOST MONEY</span></h5>
<h5><span>LOST ELECTRONIC ITEM</span></h5>
<h5><span>ROBBERY</span></h5>
</div>
<div class="nav-elem">
<h4>SEXUAL ASSAULT</h4>
<h5><span>RAPE</span></h5>
<h5><span>MOLESTATION</span></h5>
<h5><span>DOMESTIC VIOLENCE</span></h5>
</div>
<div class="nav-elem">
<h4>HIT AND RUN</h4>
<h5><span>VEHICLE </span></h5>
<h5><span>PEDESTRIAN</span></h5>
<h5><span>PROPERTY DAMAGE</span></h5>
</div>
<div class="nav-elem">
<h4>VIEW FIR STATUS</h4>
<h5>View FIR</h5>
</div>
</div>
<button id = "botButton">REGISTER FIR<svg fill="none" viewBox="0 0 20 20">
<path fill="#fff"
d="M2.5 14.375V17.5h3.125l9.217-9.217-3.125-3.125L2.5 14.375Zm14.758-8.508a.83.83 0 0 0 0-1.175l-1.95-1.95a.83.83 0 0 0-1.175 0l-1.525 1.525 3.125 3.125 1.525-1.525Z">
</path>
</svg></button>
<div id="nav-bottom">
</div>
</nav>
<div id="main">
<div id="page1">
<div class="slide-container">
<div class="slides">
<img src="{{ url_for('static', filename='Untitled design-4.png') }}" class="active">
<img src="{{ url_for('static', filename='Untitled design-5.png') }}">
<img src="{{ url_for('static', filename='image.png') }}">
<img src="https://digitalpolice.gov.in/Content/images/banner.jpg">
<img src="{{ url_for('static', filename='Untitled design-4.png') }}">
<img src="{{ url_for('static', filename='Untitled design-5.png') }}">
<img src="https://digitalpolice.gov.in/Content/images/banner.jpg">
</div>
<div class="buttons">
<span class="next">❯</span>
<span class="prev">❮</span>
</div>
<div class="dotsContainer">
<div class="dot active" attr='0' onclick="switchImage(this)"></div>
<div class="dot" attr='1' onclick="switchImage(this)"></div>
<div class="dot" attr='2' onclick="switchImage(this)"></div>
<div class="dot" attr='3' onclick="switchImage(this)"></div>
<div class="dot" attr='4' onclick="switchImage(this)"></div>
<div class="dot" attr='5' onclick="switchImage(this)"></div>
<div class="dot" attr='6' onclick="switchImage(this)"></div>
</div>
</div>
<!--image slider end-->
<div id="moving-div">
<div id="blur-left"></div>
<div class="move">
<img src="https://cdn.dnaindia.com/sites/default/files/styles/full/public/2015/12/27/408883-delhi-police-logo.jpg" alt="">
<img src="https://tse4.mm.bing.net/th?id=OIP.7K7QEzRfQpeDVLWtKiij3gHaNK&pid=Api&P=0&h=180" alt="">
<img src="https://aniportalimages.s3.amazonaws.com/media/details/SKFDJKLASJFKLJASD2021081908114120210916090821.jpg" alt="">
<img src="https://tse3.mm.bing.net/th?id=OIP.-Zku30boNYU7Yr8Jx6w8xwHaDn&pid=Api&P=0&h=180" alt="">
<img src="https://imgk.timesnownews.com/story/Chennai-Police.jpg" alt="">
<img src="https://tse2.mm.bing.net/th?id=OIP.My0L79vf3wzPD4e1hI93LAHaEK&pid=Api&P=0&h=180" alt="">
<img src="https://tse2.mm.bing.net/th?id=OIP.F3M37dvPL1IBD-4lrbGd6wHaHa&pid=Api&P=0&h=180" alt="">
<img src="https://tse4.mm.bing.net/th?id=OIP.glM8EsNibecQHbipBN2ygwHaEq&pid=Api&P=0&h=180" alt="">
</div>
<div class="move">
<img src="https://cdn.dnaindia.com/sites/default/files/styles/full/public/2015/12/27/408883-delhi-police-logo.jpg" alt="">
<img src="https://tse4.mm.bing.net/th?id=OIP.7K7QEzRfQpeDVLWtKiij3gHaNK&pid=Api&P=0&h=180" alt="">
<img src="https://aniportalimages.s3.amazonaws.com/media/details/SKFDJKLASJFKLJASD2021081908114120210916090821.jpg" alt="">
<img src="https://tse3.mm.bing.net/th?id=OIP.-Zku30boNYU7Yr8Jx6w8xwHaDn&pid=Api&P=0&h=180" alt="">
<img src="https://imgk.timesnownews.com/story/Chennai-Police.jpg" alt="">
<img src="https://tse2.mm.bing.net/th?id=OIP.My0L79vf3wzPD4e1hI93LAHaEK&pid=Api&P=0&h=180" alt="">
<img src="https://tse2.mm.bing.net/th?id=OIP.F3M37dvPL1IBD-4lrbGd6wHaHa&pid=Api&P=0&h=180" alt="">
<img src="https://tse4.mm.bing.net/th?id=OIP.glM8EsNibecQHbipBN2ygwHaEq&pid=Api&P=0&h=180" alt="">
</div>
<div id="blur-right"></div>
</div>
</div>
<div id="page3">
<video src="{{ url_for('static', filename='fir-sahayak.mp4') }}"></video>
<div class="page3-center">
<div class="icon">
<i class="ri-play-fill"></i>
</div>
<h5>Watch BOT DEMO</h5>
</div>
</div>
<div id="page5">
<div class="button">
<a href="/sign_up">Login/Sign_up</a>
</div>
<div id="page5-right">
<p><span></span>FIR Sahayak is an initiative started by <span></span>Group no. 101 . This is a portal for online FIR registration where users can simply answer required question and get there FIR registered.
Qui, a aut! Aspernatur et nesciunt iure consequuntur nisi quisquam amet deserunt odit temporibus! Iusto laboriosam pariatur voluptas fugiat accusantium corrupti unde aliquam repellendus hic impedit? Consequuntur..</p>
<div id="page5-content">
<div class="uiux">
<details open>
<summary>
<h1>FAQ's</h1>
</summary>
<div id="page-container">
<div id="page-container">
<div class="page5-elem">
<div class="over"></div>
<h3>Safety</h3>
<p>Ensuring the safety and security of our users is our top priority. We implement stringent measures to safeguard your personal information and ensure confidentiality throughout the FIR registration process. Our platform employs advanced encryption techniques to protect your data from unauthorized access or misuse. Additionally, we regularly update our security protocols to stay ahead of emerging threats and vulnerabilities. Rest assured that your privacy and security are our utmost concern, and we are committed to maintaining the highest standards of protection for all users.</p>
<i class="ri-arrow-right-up-line"></i>
</div>
<div class="page5-elem">
<div class="over"></div>
<h3>legal</h3>
<p>We adhere to all legal regulations and standards to provide a reliable and trustworthy FIR registration platform. Our team is committed to upholding the law and facilitating lawful processes. We work closely with legal experts to ensure that our platform complies with all applicable laws and regulations governing FIR registration. By adhering to these standards, we strive to build trust and confidence among our users, knowing that they can rely on us to provide a secure and compliant platform for filing FIRs.</p>
<i class="ri-arrow-right-up-line"></i>
</div>
<div class="page5-elem">
<div class="over"></div>
<h3>how to trust</h3>
<p>At FIR Sahayak, we understand the paramount importance of trust in our platform. We are dedicated to earning and maintaining the trust of our users by delivering transparent and reliable services. Our commitment is fortified by implementing robust security measures and upholding ethical practices at every step. We prioritize transparency in our operations, ensuring that users have full visibility into our processes and procedures. By fostering a culture of trustworthiness and accountability, we aim to create a platform where users feel confident and secure in their interactions with us.</p>
<i class="ri-arrow-right-up-line"></i>
</div>
<div class="page5-elem">
<div class="over"></div>
<h3>Terms and Conditions</h3>
<p>Our terms and conditions delineate the rules and guidelines governing the utilization of our platform. By engaging with FIR Sahayak, you implicitly consent to adhere to these terms and conditions. These guidelines serve to ensure a fair and equitable experience for all users, fostering a harmonious environment where everyone can benefit from our services. We encourage users to familiarize themselves with our terms and conditions to facilitate a smooth and mutually beneficial interaction with our platform.</p>
<i class="ri-arrow-right-up-line"></i>
</div>
</div>
</details>
</div>
</div>
</div>
</div>
<div class="page-end">
<footer>
<div class="container">
<div class="footer-content">
<ul class="list first">
<li><a href="">Privacy Policy</a></li>
<li><a href="">Copywrite Policy</a></li>
<li><a href="">Hyperlink Policy</a></li>
<li><a href="">Accessiblity Statement</a></li>
<li><a href="">Terms and Conditions</a></li>
</ul>
</div>
<div class="footer-content">
<h3>Quick Links</h3>
<ul class="list">
<li><a href="">Home</a></li>
<li><a href="">About</a></li>
<li><a href="">Services</a></li>
<li><a href="">Products</a></li>
<li><a href="">Contact</a></li>
</ul>
</div>
<div class="footer-content">
<h3>Follow Us</h3>
<ul class="social-icons">
<li><a href=""><i class="fab fa-facebook"></i></a></li>
<li><a href=""><i class="fab fa-twitter"></i></a></li>
<li><a href=""><i class="fab fa-instagram"></i></a></li>
<li><a href=""><i class="fab fa-linkedin"></i></a></li>
</ul>
</div>
</div>
<div class="bottom-bar">
<p>© Content Owned by Group 101, VIT Bhopal University students. @FIR-SAHAYAK - Register online FIR with ease ©2024 All rights reserved</p>
</div>
</footer>
</div>
</div>
{% endblock %}
<script>
// JavaScript to handle button click event
document.getElementById("botButton").addEventListener("click", function() {
// Redirect to the bot interface page
window.location.href = "http://localhost:3000";
});
</script>
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<!-- JavaScript to hide flash message after 10 seconds -->
<script>
$(document).ready(function() {
var flashMessage = $('#flash-message');
if (flashMessage.length > 0) {
setTimeout(function() {
flashMessage.fadeOut('slow');
}, 10000); // 10 seconds
}
});
</script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/locomotive-scroll.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js"
integrity="sha512-7eHRwcbYkK4d9g/6tD/mhkf++eoTHwpNM9woBxtPUBWm67zeAfFC+HrdoE2GanKeocly/VxeLvIqwvCdk7qScg=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/ScrollTrigger.min.js"
integrity="sha512-onMTRKJBKz8M1TnqqDuGBlowlH0ohFzMXYRNebz+yOcc5TQr/zAKsthzhuv0hiyUKEiQEQXEynnXCvNTOk50dg=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://unpkg.com/[email protected]/dist/typed.umd.js"></script>
<script src="https://kit.fontawesome.com/1165876da6.js" crossorigin="anonymous"></script>
<script>
// Access the Images
let slideImages = document.querySelectorAll('img');
// Access the next and prev buttons
let next = document.querySelector('.next');
let prev = document.querySelector('.prev');
// Access the indicators
let dots = document.querySelectorAll('.dot');
var counter = 0;
// Code for next button
next.addEventListener('click', slideNext);
function slideNext(){
slideImages[counter].style.animation = 'next1 0.5s ease-in forwards';
if(counter >= slideImages.length-1){
counter=0;
}
else{
counter++;
}
slideImages[counter].style.animation = 'next2 0.5s ease-in forwards';
indicators();
}
// Code for prev button
prev.addEventListener('click', slidePrev);
function slidePrev(){
slideImages[counter].style.animation = 'prev1 0.5s ease-in forwards';
if(counter == 0){
counter = slideImages.length-1;
}
else{
counter--;
}
slideImages[counter].style.animation = 'prev2 0.5s ease-in forwards';
indicators();
}
// Auto slideing
function autoSliding(){
deletInterval = setInterval(timer, 3000);
function timer(){
slideNext();
indicators();
}
}
autoSliding();
// Stop auto sliding when mouse is over
const container = document.querySelector('.slide-container');
container.addEventListener('mouseover', function(){
clearInterval(deletInterval);
});
// Resume sliding when mouse is out
container.addEventListener('mouseout', autoSliding);
// Add and remove active class from the indicators
function indicators(){
for(i = 0; i < dots.length; i++){
dots[i].className = dots[i].className.replace(' active', '');
}
dots[counter].className += ' active';
}
// Add click event to the indicator
function switchImage(currentImage){
currentImage.classList.add('active');
var imageId = currentImage.getAttribute('attr');
if(imageId > counter){
slideImages[counter].style.animation = 'next1 0.5s ease-in forwards';
counter = imageId;
slideImages[counter].style.animation = 'next2 0.5s ease-in forwards';
}
else if(imageId == counter){
return;
}
else{
slideImages[counter].style.animation = 'prev1 0.5s ease-in forwards';
counter = imageId;
slideImages[counter].style.animation = 'prev2 0.5s ease-in forwards';
}
indicators();
}
function locomotiveAnimation() {
gsap.registerPlugin(ScrollTrigger);
const locoScroll = new LocomotiveScroll({
el: document.querySelector("#main"),
smooth: true,
// for tablet smooth
tablet: { smooth: true },
// for mobile
smartphone: { smooth: true }
});
locoScroll.on("scroll", ScrollTrigger.update);
ScrollTrigger.scrollerProxy("#main", {
scrollTop(value) {
return arguments.length
? locoScroll.scrollTo(value, 0, 0)
: locoScroll.scroll.instance.scroll.y;
},
getBoundingClientRect() {
return {
top: 0,
left: 0,
width: window.innerWidth,
height: window.innerHeight
};
}
});
ScrollTrigger.addEventListener("refresh", () => locoScroll.update());
ScrollTrigger.refresh();
}
function loadingAnimation() {
var tl = gsap.timeline()
tl.from("#page1", {
opacity: 0,
duration: 0.2,
delay: 0.2
})
tl.from("#page1", {
transform: "scaleX(0.7) scaleY(0.2) translateY(80%)",
borderRadius: "150px",
duration: 2,
ease: "expo.out"
})
tl.from("nav", {
opacity: 0,
delay: -0.2
})
tl.from("#page1 h1, #page1 p, #page1 div", {
opacity: 0,
duration: 0.5,
stagger: 0.2
})
}
function navAnimation() {
var nav = document.querySelector("nav")
nav.addEventListener("mouseenter", function () {
let tl = gsap.timeline()
tl.to("#nav-bottom", {
height: "21vh",
duration: 0.5
})
tl.to(".nav-part2 h5", {
display: "block",
duration: 0.1
})
tl.to(".nav-part2 h5 span", {
y: 0,
// duration:0.3,
stagger: {
amount: 0.5
}
})
})
nav.addEventListener("mouseleave", function () {
let tl = gsap.timeline()
tl.to(".nav-part2 h5 span", {
y: 25,
stagger: {
amount: 0.2
}
})
tl.to(".nav-part2 h5", {
display: "none",
duration: 0.1
})
tl.to("#nav-bottom", {
height: 0,
duration: 0.2
})
})
}
function page2Animation() {
var rightElems = document.querySelectorAll(".right-elem")
rightElems.forEach(function (elem) {
elem.addEventListener("mouseenter", function () {
gsap.to(elem.childNodes[3], {
opacity: 1,
scale: 1
})
})
elem.addEventListener("mouseleave", function () {
gsap.to(elem.childNodes[3], {
opacity: 0,
scale: 0
})
})
elem.addEventListener("mousemove", function (dets) {
gsap.to(elem.childNodes[3], {
x: dets.x - elem.getBoundingClientRect().x - 90,
y: dets.y - elem.getBoundingClientRect().y - 215
})
})
})
}
function page3VideoAnimation() {
var page3Center = document.querySelector(".page3-center")
var video = document.querySelector("#page3 video")
page3Center.addEventListener("click", function () {
video.play()
gsap.to(video, {
transform: "scaleX(1) scaleY(1)",
opacity: 1,
borderRadius: 0
})
})
video.addEventListener("click", function () {
video.pause()
gsap.to(video, {
transform: "scaleX(0.7) scaleY(0)",
opacity: 0,
borderRadius: "30px"
})
})
var sections = document.querySelectorAll(".sec-right")
sections.forEach(function (elem) {
elem.addEventListener("mouseenter", function () {
elem.childNodes[3].style.opacity = 1
elem.childNodes[3].play()
})
elem.addEventListener("mouseleave", function () {
elem.childNodes[3].style.opacity = 0
elem.childNodes[3].load()
})
})
}
function page6Animations() {
gsap.from("#btm6-part2 h4", {
x: 0,
duration: 1,
scrollTrigger: {
trigger: "#btm6-part2",
scroller: "#main",
// markers:true,
start: "top 80%",
end: "top 10%",
scrub: true
}
})
}
function typewriter(){
var typed = new Typed(".auto-type",{
strings:["First Information report registration BOT","Now you can register the FIR online","Fast and Reliable"],
typeSpeed:150,
backSpedd:150,
loop:true,
})
}
locomotiveAnimation()
navAnimation()
page2Animation()
page3VideoAnimation()
page6Animations()
loadingAnimation()
typewriter()
</script>
</body>
</html>