-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
981 lines (844 loc) · 27 KB
/
index.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
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Date with Ayushi</title>
<link rel="icon" type="image/x-icon" href="view/ayushi&abhi.png">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css">
<link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.9.1/gsap.min.js"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Pacifico&display=swap');
:root {
--lavender: #E6E6FA;
--deep-lavender: #9370DB;
--light-lavender: #e9e3e3;
}
body {
font-family: 'Montserrat', sans-serif;
background-color: black;
color: #807d7d;
overflow-x: hidden;
}
.navbar {
background-color: var(--deep-lavender);
}
.navbar-brand,
.nav-link {
color: white !important;
}
.navbar-brand {
font-family: 'Pacifico', cursive;
font-size: 1.5rem;
}
h1,
h2,
h3,
h4,
h5 {
font-family: 'Pacifico', cursive;
color: var(--deep-lavender);
}
.btn-custom {
border-radius: 50px;
background-color: var(--deep-lavender);
border: none;
color: white;
transition: all 0.3s ease;
}
.btn-custom:hover {
background-color: #8A2BE2;
transform: scale(1.05);
color: white;
}
.card {
border: none;
box-shadow: 0 4px 6px rgba(111, 135, 190, 0.861);
transition: all 0.3s ease;
background-color: var(--light-lavender);
}
.card:hover {
transform: translateY(-5px);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.footer {
background-color: var(--deep-lavender);
color: white;
padding: 20px 0;
}
#confetti {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 9999;
}
.modal-content {
background-color: var(--light-lavender);
}
.modal-header {
background-color: var(--deep-lavender);
color: white;
}
.icon-feature {
font-size: 3rem;
color: var(--deep-lavender);
margin-bottom: 1rem;
}
.timeline {
position: relative;
max-width: 1200px;
margin: 0 auto;
}
.timeline::after {
content: '';
position: absolute;
width: 6px;
background-color: var(--deep-lavender);
top: 0;
bottom: 0;
left: 50%;
margin-left: -3px;
}
.timeline-container {
padding: 10px 40px;
position: relative;
background-color: inherit;
width: 50%;
}
.timeline-container::after {
content: '';
position: absolute;
width: 25px;
height: 25px;
right: -17px;
background-color: var(--light-lavender);
border: 4px solid var(--deep-lavender);
top: 15px;
border-radius: 50%;
z-index: 1;
}
.left {
left: 0;
}
.right {
left: 50%;
}
.left::before {
content: " ";
height: 0;
position: absolute;
top: 22px;
width: 0;
z-index: 1;
right: 30px;
border: medium solid var(--deep-lavender);
border-width: 10px 0 10px 10px;
border-color: transparent transparent transparent var(--deep-lavender);
}
.right::before {
content: " ";
height: 0;
position: absolute;
top: 22px;
width: 0;
z-index: 1;
left: 30px;
border: medium solid var(--deep-lavender);
border-width: 10px 10px 10px 0;
border-color: transparent var(--deep-lavender) transparent transparent;
}
.right::after {
left: -16px;
}
.timeline-content {
background-color: var(--light-lavender);
padding: 20px 30px;
/* background-color: white; */
position: relative;
border-radius: 6px;
}
.parallax {
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
height: 400px;
display: flex;
align-items: center;
justify-content: center;
}
.parallax-text {
color: white;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.testimonial {
font-style: italic;
margin-bottom: 20px;
}
.playlist {
background-color: var(--light-lavender);
padding: 20px;
border-radius: 10px;
}
.playlist-item {
display: flex;
align-items: center;
margin-bottom: 10px;
}
.playlist-item i {
margin-right: 10px;
}
.why-me-item {
display: flex;
align-items: center;
margin-bottom: 20px;
}
.why-me-icon {
font-size: 2rem;
color: var(--deep-lavender);
margin-right: 15px;
}
.floating {
animation-name: floating;
animation-duration: 3s;
animation-iteration-count: infinite;
animation-timing-function: ease-in-out;
}
@keyframes floating {
0% {
transform: translate(0, 0px);
}
50% {
transform: translate(0, 15px);
}
100% {
transform: translate(0, -0px);
}
}
.heart-trail {
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
pointer-events: none;
z-index: 9998;
}
.doodle {
max-width: 100%;
height: auto;
}
.music-notes {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 9997;
}
.music-note {
position: absolute;
font-size: 24px;
color: var(--deep-lavender);
opacity: 0;
}
.surprise-box {
width: 200px;
height: 200px;
background-color: var(--deep-lavender);
border-radius: 10px;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
transition: all 0.3s ease;
margin: 0 auto;
}
.surprise-box:hover {
transform: scale(1.05);
}
.surprise-box i {
font-size: 4rem;
color: white;
}
/* #whyMeContent {
display: none;
} */
@media screen and (max-width: 600px) {
.timeline::after {
left: 31px;
}
.timeline-container {
width: 100%;
padding-left: 70px;
padding-right: 25px;
}
.timeline-container::before {
left: 60px;
border: medium solid white;
border-width: 10px 10px 10px 0;
border-color: transparent white transparent transparent;
}
.left::after,
.right::after {
left: 15px;
}
.right {
left: 0%;
}
}
.playlist {
background-color: var(--light-lavender);
color: black;
padding: 20px;
border-radius: 10px;
}
.playlist-item {
display: flex;
align-items: center;
margin-bottom: 10px;
cursor: pointer;
}
.playlist-item i {
margin-right: 10px;
}
.why-me-item {
display: flex;
align-items: center;
margin-bottom: 20px;
}
.why-me-icon {
font-size: 2rem;
color: var(--deep-lavender);
margin-right: 15px;
}
.floating {
animation-name: floating;
animation-duration: 3s;
animation-iteration-count: infinite;
animation-timing-function: ease-in-out;
}
@keyframes floating {
0% {
transform: translate(0, 0px);
}
50% {
transform: translate(0, 15px);
}
100% {
transform: translate(0, -0px);
}
}
.heart-trail {
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
pointer-events: none;
z-index: 9998;
}
.doodle {
max-width: 100%;
height: auto;
}
.music-notes {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 9997;
}
.music-note {
position: absolute;
font-size: 24px;
color: var(--deep-lavender);
opacity: 0;
}
#audioPlayer {
width: 100%;
margin-top: 20px;
}
@media screen and (max-width: 600px) {
.timeline::after {
left: 31px;
}
.timeline-container {
width: 100%;
padding-left: 70px;
padding-right: 25px;
}
.timeline-container::before {
left: 60px;
border: medium solid white;
border-width: 10px 10px 10px 0;
border-color: transparent white transparent transparent;
}
.left::after,
.right::after {
left: 15px;
}
.right {
left: 0%;
}
}
.date-image {
max-width: 70%;
height: auto;
}
#why-you{
border: 2px solid var(--deep-lavender);
border-radius: 20px;
}
#the-date{
border: 2px solid var(--deep-lavender);
border-radius: 20px;
}
#testimonials{
border: 2px solid var(--deep-lavender);
border-radius: 20px;
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark">
<div class="container justify-content-center">
<a class="navbar-brand " href="#home">Date with Ayushi <i class="fas fa-heart"></i></a>
</div>
</nav>
<div id="home" class="container py-5">
<div class="row justify-content-center">
<div class="col-lg-8 text-center">
<h1 class="display-4 mb-5 mt-5 ">Ayushi, Will You Go On A Date With Me? <i class="fas fa-question "></i></h1>
<p data-aos="fade-right" data-aos-duration="700" class="lead mb-4 ">I've been gathering the courage to ask you this, and I hope you'll say yes to a wonderful
evening together.</p>
<button data-aos="fade-right" data-aos-duration="1100" class="btn btn-custom btn-lg mt-4 mb-5 " onclick="showModal()">Yes, I'd Love To! <i
class="fas fa-check"></i></button>
</div>
</div>
</div>
<!-- <div >
<h2 class="display-4 text-center parallax-text">“Pata hai… Yahaan se bahut door, galat aur sahi ke paar, ek maidan hai, main wahaan milunga tujhe"</h2>
</div>
-->
<div id="why-you" class="container py-5">
<h2 class="text-center mb-5">Why You, Ayushi? <i class="fas fa-heart"></i></h2>
<div class="row">
<div class="col-md-4 mb-4 " data-aos="fade-up" data-aos-duration="700">
<div class="card h-100">
<div class="card-body text-center">
<i class="fas fa-smile icon-feature floating"></i>
<h5 class="card-title">Your Radiant Smile</h5>
</div>
</div>
</div>
<div class="col-md-4 mb-4" data-aos="fade-up" data-aos-duration="900">
<div class="card h-100">
<div class="card-body text-center">
<i class="fas fa-hand-holding-heart icon-feature floating"></i>
<h5 class="card-title">Your Kind Heart</h5>
</div>
</div>
</div>
<div class="col-md-4 mb-4" data-aos="fade-up" data-aos-duration="1100">
<div class="card h-100">
<div class="card-body text-center">
<i class="fas fa-music icon-feature floating"></i>
<h5 class="card-title">Similar vibes</h5>
</div>
</div>
</div>
<div class="col-md-4 mb-4" data-aos="fade-up" data-aos-duration="1300">
<div class="card h-100">
<div class="card-body text-center">
<i class="fas fa-star icon-feature floating"></i>
<h5 class="card-title">Your Cuteness</h5>
</div>
</div>
</div>
<div class="col-md-4 mb-4" data-aos="fade-up" data-aos-duration="1500">
<div class="card h-100">
<div class="card-body text-center">
<i class="fas fa-laugh icon-feature floating"></i>
<h5 class="card-title">Good Humor</h5>
</div>
</div>
</div>
<div class="col-md-4 mb-4" data-aos="fade-up" data-aos-duration="1700">
<div class="card h-100">
<div class="card-body text-center">
<i class="fas fa-plus icon-feature floating"></i>
<h5 class="card-title">More & More </h5>
</div>
</div>
</div>
</div>
</div>
<div id="why-me" class="container py-5">
<h2 class="text-center mb-5">Why Me? <i class="fas fa-user-circle"></i></h2>
<!-- <div class="surprise-box" onclick="revealWhyMe()">
<i class="fas fa-gift"></i>
</div> -->
<div id="whyMeContent" class="mt-4">
<div class="row">
<div class="col-md-6 mb-4">
<div class="why-me-item" data-aos="fade-up" data-aos-duration="900">
<i class="fas fa-laugh-beam why-me-icon floating"></i>
<div>
<h5>Always Take care of You </h5>
<p>I promise to keep you laughing with my quirky jokes and playful banter. Life's too short not to enjoy a
good laugh together!</p>
</div>
</div>
</div>
<div class="col-md-6 mb-4">
<div class="why-me-item" data-aos="fade-up" data-aos-duration="1000">
<i class="fas fa-hands-helping why-me-icon floating"></i>
<div>
<h5>Supportive Partner</h5>
<p>I'll be your biggest cheerleader, supporting your dreams and ambitions, including your musical journey.
Together, we can create beautiful harmonies in life!</p>
</div>
</div>
</div>
<div class="col-md-6 mb-4">
<div class="why-me-item" data-aos="fade-up" data-aos-duration="1100">
<i class="fas fa-utensils why-me-icon floating"></i>
<div>
<h5>Good in irritating</h5>
<p>I’m committed to always irritating you, But also makes you smile like this </p>
</div>
</div>
</div>
<div class="col-md-6 mb-4">
<div class="why-me-item" data-aos="fade-up" data-aos-duration="1200">
<i class="fas fa-heart why-me-icon floating"></i>
<div>
<h5>Never Leave You</h5>
<p>In a world full of uncertainties, one thing I want you to be absolutely sure of is this: I will never
leave you.</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="the-date" class="container py-5">
<h2 class="text-center mb-5">The Perfect First Date <i class="fas fa-heart"></i></h2>
<div class="row align-items-center text-center">
<div class="col-md-6 mb-4">
<img src="view/ayushi&abhi.png" alt="A romantic date scene with a couple enjoying dinner and music"
class="date-image ">
</div>
<div class="col-md-6">
<h1>A day to Remember <i class="fas fa-star"></i></h1>
<h4>I've planned a magical evening that I hope you'll love:</h4>
<!-- <ul>
<h4>
<li></li>
</h4>
<h4>
<li></li>
</h4>
<h4>
<li></li>
</h4>
<h4>
<li></li>
</h4>
</ul> -->
<h4>But most importantly, it's about spending time together, enjoying, and getting to know each other better.
</h4>
</div>
</div>
</div>
<div class="parallax" style="background-image: url('');">
<h2 class="display-4 text-center parallax-text">Creating Melodies Together</h2>
</div>
<div id="our-story" class="container py-5">
<h2 class="text-center mb-5">Our Story <i class="fas fa-book-open"></i></h2>
<div class="timeline">
<div class="timeline-container left" data-aos="fade-left" data-aos-duration="1000">
<div class="timeline-content">
<h2>First Meeting <i class="fas fa-eye"></i></h2>
<p>The day our eyes met and sparked a connection.</p>
</div>
</div>
<div class="timeline-container right" data-aos="fade-right" data-aos-duration="1100">
<div class="timeline-content">
<h2>Javed Ali concert <i class="fas fa-music"></i></h2>
<p>Remember the Javed Ali concert? When he sang "Guzarish" and you were in front of me, it felt like something
magical. Now, every time I hear that song, it takes me back to that perfect moment with you.</p>
</div>
</div>
<div class="timeline-container left" data-aos="fade-left" data-aos-duration="1100">
<div class="timeline-content">
<h2>Shared Laughter <i class="fas fa-laugh"></i></h2>
<p>We started chatting more and shared so much laughter and memes, as you like so much that dark Humor.
(hehehe)</p>
</div>
</div>
<div class="timeline-container right" data-aos="fade-right" data-aos-duration="1100">
<div class="timeline-content">
<h2>Today <i class="fas fa-heart"></i></h2>
<p>Taking a leap of faith and asking you out!</p>
</div>
</div>
</div>
</div>
<div id="testimonials" class="container py-5">
<h2 class="text-center mb-5">What Others Say About Us <i class="fas fa-comments"></i></h2>
<div class="row">
<div class="col-md-6 mb-4">
<div class="card">
<div class="card-body">
<p class="testimonial">"They're perfect for each other! The way they look at each other is just magical."
</p>
<footer class="blockquote-footer">Anjali</footer>
</div>
</div>
</div>
<div class="col-md-6 mb-4">
<div class="card">
<div class="card-body">
<p class="testimonial">"I've never seen him so happy. Ayushi brings out the best in him!"</p>
<footer class="blockquote-footer">Punit </footer>
</div>
</div>
</div>
</div>
</div>
<div id="playlist" class="container py-5">
<h2 class="text-center mb-5">Our Playlist <i class="fas fa-headphones"></i></h2>
<div class="playlist">
<div class="playlist-item" onclick="playSong('music/song1.mp3', 'Tum Ho')">
<i class="fas fa-play"></i>
<span>"Saudebaazi" by Javed</span>
</div>
<div class="playlist-item" onclick="playSong('music/song2.mp3', 'Guzarish')">
<i class="fas fa-play"></i>
<span>"Guzarish" by Javed</span>
</div>
</div>
<audio id="audioPlayer" controls></audio>
</div>
<footer class="footer text-center">
<div class="container">
<p>© 2024 Date with Ayushi | Created with <i class="fas fa-heart"></i> for Ayushi.</p>
<div class="mt-3">
<a href=" https://wa.me/9870611048" class="text-white me-3"><i class="fab fa-whatsapp"></i></a>
<a href="https://www.instagram.com/.abhigoyal?igsh=c2FiNGF4bHcxNnJo" class="text-white me-3"><i
class="fab fa-instagram"></i></a>
</div>
</div>
</footer>
<div class="modal fade" id="dateModal" tabindex="-1" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">You've Made Me the Happiest Person! <i class="fas fa-grin-hearts"></i></h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<p>I'm thrilled that you've said yes, Ayushi! Let's make it official:</p>
<form id="dateForm" action="https://formspree.io/f/xyyqoqan" method="post">
<div class="mb-3">
<label for="phone" class="form-label"><i class="fas fa-phone-alt"></i> Contact No. for coordinate</label>
<input type="number" class="form-control" id="phone" name="phone" required>
</div>
<div class="mb-3">
<label for="date" class="form-label"><i class="fas fa-calendar-alt"></i> When are you free?</label>
<input type="date" class="form-control" id="date" name="date" required>
</div>
<div class="mb-3">
<label for="time" class="form-label"><i class="fas fa-clock"></i> What time works best for you?</label>
<input type="time" class="form-control" id="time" name="time" required>
</div>
<div class="mb-3">
<label for="message" class="form-label"><i class="fas fa-comment"></i> Any special requests or things I
should know?</label>
<textarea class="form-control" id="message" name="message" rows="3"></textarea>
</div>
<button type="submit" class="btn btn-custom btn-lg w-100">Let's Make It Happen! <i
class="fas fa-paper-plane"></i></button>
</form>
</div>
</div>
</div>
</div>
<canvas id="confetti"></canvas>
<div class="music-notes"></div>
<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
<script>
AOS.init();
</script>
<script src="//code.tidio.co/vxbmfcvr3ccycxnmfbgnxoavulrg9ucl.js" async></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/canvas-confetti@1.5.1/dist/confetti.browser.min.js"></script>
<script>
const button = document.querySelector('.hover-button');
let currentX = 0;
let currentY = 0;
button.addEventListener('mouseover', () => {
const buttonWidth = button.clientWidth;
const buttonHeight = button.clientHeight;
// Define the range for movement
const moveRange = 300; // Maximum distance to move in pixels
// Calculate new position within a small range
const x = Math.random() * moveRange - moveRange / 9;
const y = Math.random() * moveRange - moveRange / 5;
// Apply the transform property to move the button
currentX += x;
currentY += y;
// Ensure the button stays within the viewport bounds
const maxX = window.innerWidth - buttonWidth;
const maxY = window.innerHeight - buttonHeight;
currentX = Math.max(0, Math.min(currentX, maxX));
currentY = Math.max(0, Math.min(currentY, maxY));
button.style.transform = `translate(${currentX}px, ${currentY}px)`;
});
function showModal() {
new bootstrap.Modal(document.getElementById('dateModal')).show();
confetti({
particleCount: 100,
spread: 70,
origin: { y: 0.6 },
colors: ['#E6E6FA', '#9370DB', '#8A2BE2']
});
}
function revealWhyMe() {
const whyMeContent = document.getElementById('whyMeContent');
const surpriseBox = document.querySelector('.surprise-box');
surpriseBox.style.transform = 'scale(0)';
setTimeout(() => {
surpriseBox.style.display = 'none';
whyMeContent.style.display = 'block';
gsap.from('#whyMeContent .why-me-item', {
opacity: 0,
y: 50,
stagger: 0.2,
duration: 1,
ease: 'back.out(1.7)'
});
}, 300);
confetti({
particleCount: 100,
spread: 70,
origin: { y: 0.6 },
colors: ['#E6E6FA', '#9370DB', '#8A2BE2']
});
}
// document.getElementById('dateForm').addEventListener('submit', function(e) {
// e.preventDefault();
// const date = document.getElementById('date').value;
// const time = document.getElementById('time').value;
// const message = document.getElementById('message').value;
// let responseMessage = `I'm so excited for our date on ${date} at ${time}, Ayushi!`;
// if (message) {
// responseMessage += ` And thank you for letting me know: "${message}". I'll keep that in mind.`;
// }
// responseMessage += " I can't wait to see you and hear you play!";
// alert(responseMessage);
// bootstrap.Modal.getInstance(document.getElementById('dateModal')).hide();
// // Trigger a bigger confetti celebration
// var end = Date.now() + (5 * 1000);
// var colors = ['#E6E6FA', '#9370DB', '#8A2BE2'];
// (function frame() {
// confetti({
// particleCount: 2,
// angle: 60,
// spread: 55,
// origin: { x: 0 },
// colors: colors
// });
// confetti({
// particleCount: 2,
// angle: 120,
// spread: 55,
// origin: { x: 1 },
// colors: colors
// });
// if (Date.now() < end) {
// requestAnimationFrame(frame);
// }
// }());
// });
// Smooth scrolling for navigation links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});
// Add parallax effect
window.addEventListener('scroll', function () {
var parallaxElements = document.getElementsByClassName('parallax');
for (var i = 0; i < parallaxElements.length; i++) {
var windowScrollTop = window.pageYOffset || document.documentElement.scrollTop;
var elementOffset = parallaxElements[i].offsetTop;
var currentElementOffset = (elementOffset - windowScrollTop);
var parallaxDist = currentElementOffset;
var parallaxSpeed = 0.5;
parallaxElements[i].style.backgroundPositionY = -(parallaxDist * parallaxSpeed) + "px";
}
});
// Heart trail effect
document.addEventListener('mousemove', function (e) {
var heart = document.createElement('div');
heart.className = 'fas fa-heart';
heart.style.color = '#9370DB';
heart.style.position = 'fixed';
heart.style.left = e.clientX + 'px';
heart.style.top = e.clientY + 'px';
heart.style.pointerEvents = 'none';
document.querySelector('.heart-trail').appendChild(heart);
gsap.to(heart, {
y: -100,
alpha: 0,
duration: 2,
ease: "power2.out",
onComplete: function () {
heart.remove();
}
});
});
// Music note animation
function createMusicNote() {
const musicNotes = ['♪', '♫', '♩', '♬', '♭', '♮'];
const note = document.createElement('div');
note.className = 'music-note';
note.textContent = musicNotes[Math.floor(Math.random() * musicNotes.length)];
note.style.left = Math.random() * window.innerWidth + 'px';
note.style.top = window.innerHeight + 'px';
document.querySelector('.music-notes').appendChild(note);
gsap.to(note, {
y: -window.innerHeight,
x: "random(-50, 50)",
rotation: "random(-90, 90)",
opacity: 0,
duration: "random(3, 6)",
ease: "power1.out",
onComplete: () => {
note.remove();
}
});
}
setInterval(createMusicNote, 300);
// Playlist functionality
function playSong(songSrc, songTitle) {
const audioPlayer = document.getElementById('audioPlayer');
audioPlayer.src = songSrc;
audioPlayer.play();
}
</script>
</body>
</html>