Browse Source

Merge commit '120593e84c'

master
farhan 4 months ago
parent
commit
0da4ea5512

BIN
public/assets/tap.png View File


+ 6
- 0
resources/css/app.css View File

44
     overflow: hidden;
44
     overflow: hidden;
45
 }
45
 }
46
 
46
 
47
+.fade-element {
48
+    opacity: 0;
49
+    transform: translateY(20px);
50
+    transition: opacity 3s ease-in-out, transform 3s ease-in-out;
51
+}
52
+
47
 .fade-in {
53
 .fade-in {
48
     opacity: 1;
54
     opacity: 1;
49
 }
55
 }

+ 33
- 0
resources/js/app.js View File

11
     reset() // reset everrything to ensure smooth
11
     reset() // reset everrything to ensure smooth
12
     sessionStorage.setItem("initial-load", "true"); // will be used by click event
12
     sessionStorage.setItem("initial-load", "true"); // will be used by click event
13
 
13
 
14
+    let rsvpBtn = document.getElementById("rsvp-button");
15
+    rsvpBtn.addEventListener('click', function(){
16
+        this.classList.remove("animate__flash");
17
+    })
18
+
14
 });
19
 });
15
 
20
 
16
 
21
 
18
 
23
 
19
     let initLoad = sessionStorage.getItem("initial-load")
24
     let initLoad = sessionStorage.getItem("initial-load")
20
 
25
 
26
+    let pointer = document.getElementById("pointer")
27
+    pointer.remove()
28
+
21
     // parts is intro cover
29
     // parts is intro cover
22
     let parts = document.getElementsByClassName("part");
30
     let parts = document.getElementsByClassName("part");
23
     for (let part of parts) {
31
     for (let part of parts) {
86
             for (let part of parts) {
94
             for (let part of parts) {
87
                 part.classList.remove("hidden")
95
                 part.classList.remove("hidden")
88
             }
96
             }
97
+
98
+            let pointer = document.getElementById("pointer")
99
+            setTimeout(() => {
100
+                pointer.classList.remove("hidden")
101
+            }, 1500);
89
         }
102
         }
90
     }
103
     }
91
 
104
 
216
         }
229
         }
217
     }, 1000); // Update every second (1000 milliseconds)
230
     }, 1000); // Update every second (1000 milliseconds)
218
 }
231
 }
232
+
233
+
234
+const observerOptions = {
235
+    root: null,
236
+    rootMargin: '0px',
237
+    threshold: 0.1
238
+};
239
+
240
+const observer = new IntersectionObserver((entries, observer) => {
241
+    entries.forEach(entry => {
242
+        if (entry.isIntersecting) {
243
+            entry.target.classList.add('fade-in');
244
+            observer.unobserve(entry.target);
245
+        }
246
+    });
247
+}, observerOptions);
248
+
249
+document.querySelectorAll('.fade-element').forEach(element => {
250
+    observer.observe(element);
251
+});

+ 1
- 1
resources/views/components/countdown.blade.php View File

1
-<div class="flex flex-col gap-5 w-4/5 py-3">
1
+<div class="flex flex-col gap-5 w-4/5 py-3 fade-element">
2
     <hr class="border-t-1 border-gray-300 mt-3 mb-5 w-4/5 self-center">
2
     <hr class="border-t-1 border-gray-300 mt-3 mb-5 w-4/5 self-center">
3
     <h1 class="font-medium text-gray-600 self-center">Majlis Bermula</h1>
3
     <h1 class="font-medium text-gray-600 self-center">Majlis Bermula</h1>
4
     <div class="flex justify-center" id="countdown"></div>
4
     <div class="flex justify-center" id="countdown"></div>

+ 7
- 7
resources/views/components/event-info.blade.php View File

1
 <div class="flex flex-col gap-5 w-4/5 mt-10">
1
 <div class="flex flex-col gap-5 w-4/5 mt-10">
2
-    <div class="flex justify-center ">
2
+    <div class="flex justify-center fade-element">
3
         <img src="{{ asset('assets/bismillah.png') }}" alt="Logo">
3
         <img src="{{ asset('assets/bismillah.png') }}" alt="Logo">
4
     </div>
4
     </div>
5
-    <div class="text-center ">
5
+    <div class="text-center fade-element">
6
         <p class="font-medium text-sm text-gray-500 pb-3">Dengan penuh rasa kesyukuran, kami</p>
6
         <p class="font-medium text-sm text-gray-500 pb-3">Dengan penuh rasa kesyukuran, kami</p>
7
         <p class="font-medium text-gray-600">DATO' HAJI AMIRUDDIN BIN MOHD SAID</p>
7
         <p class="font-medium text-gray-600">DATO' HAJI AMIRUDDIN BIN MOHD SAID</p>
8
         <p class="font-medium text-gray-600">&</p>
8
         <p class="font-medium text-gray-600">&</p>
9
         <p class="font-medium text-gray-600">DATIN HAJAH NOR ALINA BINTI ALIAS</p>
9
         <p class="font-medium text-gray-600">DATIN HAJAH NOR ALINA BINTI ALIAS</p>
10
     </div>
10
     </div>
11
-    <div class="text-center ">
11
+    <div class="text-center fade-element">
12
         <p class="font-medium text-sm text-gray-500">ingin mempersilakan</p>
12
         <p class="font-medium text-sm text-gray-500">ingin mempersilakan</p>
13
         <p class="font-medium text-sm text-gray-500">Tan Sri/Dato' Sri/Datin Sri/Dato'/</p>
13
         <p class="font-medium text-sm text-gray-500">Tan Sri/Dato' Sri/Datin Sri/Dato'/</p>
14
         <p class="font-medium text-sm text-gray-500">Datin/Tuan/Puan/Encik/Cik</p>
14
         <p class="font-medium text-sm text-gray-500">Datin/Tuan/Puan/Encik/Cik</p>
15
     </div>
15
     </div>
16
-    <div class="text-center ">
16
+    <div class="text-center fade-element">
17
         <p class="font-medium text-sm text-gray-500 pb-3">Ke Majlis Resepsi Perkahwinan Putera Kami</p>
17
         <p class="font-medium text-sm text-gray-500 pb-3">Ke Majlis Resepsi Perkahwinan Putera Kami</p>
18
         <p class="font-medium text-gray-600">ALIFF BIN DATO' HAJI AMIRUDDIN</p>
18
         <p class="font-medium text-gray-600">ALIFF BIN DATO' HAJI AMIRUDDIN</p>
19
         <p class="font-medium text-gray-600">&</p>
19
         <p class="font-medium text-gray-600">&</p>
25
         <p class="font-medium text-sm text-gray-500">Sabtu, 17 Ogos 2024</p>
25
         <p class="font-medium text-sm text-gray-500">Sabtu, 17 Ogos 2024</p>
26
         <p class="font-medium text-sm text-gray-500">(12 Safar 1446H)</p>
26
         <p class="font-medium text-sm text-gray-500">(12 Safar 1446H)</p>
27
     </div>
27
     </div>
28
-    <div class="text-center ">
28
+    <div class="text-center fade-element">
29
         <p class="font-medium text-gray-600 pb-2">Masa</p>
29
         <p class="font-medium text-gray-600 pb-2">Masa</p>
30
         <p class="font-medium text-sm text-gray-500">11.00 Pagi - 4.00 Petang</p>
30
         <p class="font-medium text-sm text-gray-500">11.00 Pagi - 4.00 Petang</p>
31
     </div>
31
     </div>
32
-    <div class="text-center ">
32
+    <div class="text-center fade-element">
33
         <p class="font-medium text-gray-600 pb-2">Tempat</p>
33
         <p class="font-medium text-gray-600 pb-2">Tempat</p>
34
         <p class="font-medium text-sm text-gray-500">Dewan Jubli Perak</p>
34
         <p class="font-medium text-sm text-gray-500">Dewan Jubli Perak</p>
35
         <p class="font-medium text-sm text-gray-500">Sultan Haji Ahmad Shah,</p>
35
         <p class="font-medium text-sm text-gray-500">Sultan Haji Ahmad Shah,</p>
38
     </div>
38
     </div>
39
     <hr class="border-t-1 border-gray-300 my-5 w-4/5 self-center ">
39
     <hr class="border-t-1 border-gray-300 my-5 w-4/5 self-center ">
40
     @if ($host == 'aliffayuna.com')
40
     @if ($host == 'aliffayuna.com')
41
-    <div class="text-center ">
41
+    <div class="text-center fade-element">
42
         <p class="font-medium text-gray-600 pb-2">Aturcara Majlis</p>
42
         <p class="font-medium text-gray-600 pb-2">Aturcara Majlis</p>
43
         <p class="font-medium text-sm text-gray-600">11.00 Pagi :</p>
43
         <p class="font-medium text-sm text-gray-600">11.00 Pagi :</p>
44
         <p class="font-medium text-sm text-gray-500 pb-4">Majlis Bermula</p>
44
         <p class="font-medium text-sm text-gray-500 pb-4">Majlis Bermula</p>

+ 1
- 0
resources/views/components/front-cover-intro-dummy.blade.php View File

18
             <img src="{{ asset('assets/name-right.webp') }}" alt="Name Right" class="logo-img">
18
             <img src="{{ asset('assets/name-right.webp') }}" alt="Name Right" class="logo-img">
19
         </div>
19
         </div>
20
         <img src="{{asset('assets/flower-right.webp')}}" alt="" class="absolute -right-2/4 top-32 h-96 w-96 animate__animated animate__fadeIn animate__delay-2s">
20
         <img src="{{asset('assets/flower-right.webp')}}" alt="" class="absolute -right-2/4 top-32 h-96 w-96 animate__animated animate__fadeIn animate__delay-2s">
21
+        <img id="pointer" src="{{asset('assets/tap.png')}}" alt="" class="absolute hidden animate__animated animate__flash animate__infinite" width="35" height="35" style="bottom: 35vh; left:10vw">
21
     </div>
22
     </div>
22
 </div>
23
 </div>

+ 2
- 2
resources/views/components/guestbook.blade.php View File

10
             @endfor
10
             @endfor
11
         </div>
11
         </div>
12
     </div>
12
     </div>
13
-    <div class="text-center pb-2 ">
13
+    <div class="text-center pb-2 fade-element">
14
         <a onclick="guestbook.showModal()" class="rounded-full border-solid border-2 border-navbarcolor py-1 px-3 font-medium text-gray-600">
14
         <a onclick="guestbook.showModal()" class="rounded-full border-solid border-2 border-navbarcolor py-1 px-3 font-medium text-gray-600">
15
             <i class="fa-solid fa-pen-fancy"></i>
15
             <i class="fa-solid fa-pen-fancy"></i>
16
             <span>Ucapan</span>
16
             <span>Ucapan</span>
17
         </a>
17
         </a>
18
 
18
 
19
     </div>
19
     </div>
20
-    <div class="text-center pb-2 ">
20
+    <div class="text-center pb-2 fade-element">
21
         <a onclick="rsvp.showModal()" class="rounded-full border-solid border-2 border-navbarcolor py-1 px-3 font-medium text-gray-600">
21
         <a onclick="rsvp.showModal()" class="rounded-full border-solid border-2 border-navbarcolor py-1 px-3 font-medium text-gray-600">
22
             <i class="fa-solid fa-clipboard"></i>
22
             <i class="fa-solid fa-clipboard"></i>
23
             <span>Sahkan Kehadiran</span>
23
             <span>Sahkan Kehadiran</span>

+ 4
- 4
resources/views/components/main-event.blade.php View File

1
 <div class="flex flex-col gap-5 w-4/5 mt-44 mb-40 text-navbarcolor">
1
 <div class="flex flex-col gap-5 w-4/5 mt-44 mb-40 text-navbarcolor">
2
-    <div class="flex justify-center ">
2
+    <div class="flex justify-center fade-element">
3
         <p class="font-semibold text-sm">WALIMATULURUS</p>
3
         <p class="font-semibold text-sm">WALIMATULURUS</p>
4
     </div>
4
     </div>
5
-    <div class="flex flex-col gap-8 pt-8 pb-8 justify-center ">
5
+    <div class="flex flex-col gap-8 pt-8 pb-8 justify-center fade-element">
6
         <div class="flex justify-center">
6
         <div class="flex justify-center">
7
             <p class="font-tan-pearl font-semibold text-5xl"><span class="text-6xl">A</span>liff</p>
7
             <p class="font-tan-pearl font-semibold text-5xl"><span class="text-6xl">A</span>liff</p>
8
         </div>
8
         </div>
13
             <p class="font-tan-pearl font-semibold text-5xl"><span class="text-6xl">A</span>yuna</p>
13
             <p class="font-tan-pearl font-semibold text-5xl"><span class="text-6xl">A</span>yuna</p>
14
         </div>
14
         </div>
15
     </div>
15
     </div>
16
-    <div class="flex flex-col justify-center ">
16
+    <div class="flex flex-col justify-center fade-element">
17
         <div class="flex justify-center">
17
         <div class="flex justify-center">
18
             <p class="font-bold text-base">SABTU</p>
18
             <p class="font-bold text-base">SABTU</p>
19
         </div>
19
         </div>
21
             <p class="font-bold text-base">17 OGOS 2024</p>
21
             <p class="font-bold text-base">17 OGOS 2024</p>
22
         </div>
22
         </div>
23
     </div>
23
     </div>
24
-    <div class="flex flex-col justify-center ">
24
+    <div class="flex flex-col justify-center fade-element">
25
         <div class="flex justify-center">
25
         <div class="flex justify-center">
26
             <p class="font-semibold text-sm">DEWAN JUBLI PERAK</p>
26
             <p class="font-semibold text-sm">DEWAN JUBLI PERAK</p>
27
         </div>
27
         </div>

+ 2
- 2
resources/views/components/navbar.blade.php View File

1
 <div class="fixed bottom-0 left-0 w-full bg-navbarcolor shadow-lg rounded-t-xl">
1
 <div class="fixed bottom-0 left-0 w-full bg-navbarcolor shadow-lg rounded-t-xl">
2
     <div class="flex justify-around py-4">
2
     <div class="flex justify-around py-4">
3
-        <a onclick="rsvp.showModal()" class="text-babyblue text-xl">
3
+        <a id="rsvp-button" onclick="rsvp.showModal()" class="text-babyblue text-xl animate__animated animate__flash animate__infinite animate__delay-4s">
4
             <i class="fa-solid fa-envelope-open-text"></i>
4
             <i class="fa-solid fa-envelope-open-text"></i>
5
         </a>
5
         </a>
6
         <a onclick="emoney.showModal()" class="text-babyblue text-xl">
6
         <a onclick="emoney.showModal()" class="text-babyblue text-xl">
21
     @include('modals.contact-modal')
21
     @include('modals.contact-modal')
22
     @include('modals.location-modal')
22
     @include('modals.location-modal')
23
     @include('modals.calendar-modal')
23
     @include('modals.calendar-modal')
24
-</div>
24
+</div>

+ 2
- 2
resources/views/components/prayer.blade.php View File

1
 <div class="flex flex-col gap-5 w-4/5">
1
 <div class="flex flex-col gap-5 w-4/5">
2
-    <div class="flex justify-center ">
2
+    <div class="flex justify-center fade-element">
3
         <img src="{{ asset('assets/bismillah.png') }}" alt="Logo">
3
         <img src="{{ asset('assets/bismillah.png') }}" alt="Logo">
4
     </div>
4
     </div>
5
-    <div class="text-center ">
5
+    <div class="text-center fade-element">
6
         <p class="font-medium text-sm text-gray-500 pb-1">Ya Allah, Ya Tuhan kami. Kami memohon restuMu</p>
6
         <p class="font-medium text-sm text-gray-500 pb-1">Ya Allah, Ya Tuhan kami. Kami memohon restuMu</p>
7
         <p class="font-medium text-sm text-gray-500 pb-1">berkatilah majlis kami ini dengan keberkatan dari</p>
7
         <p class="font-medium text-sm text-gray-500 pb-1">berkatilah majlis kami ini dengan keberkatan dari</p>
8
         <p class="font-medium text-sm text-gray-500 pb-1">permulaan hingga pengakhirannya. Sesungguhnya</p>
8
         <p class="font-medium text-sm text-gray-500 pb-1">permulaan hingga pengakhirannya. Sesungguhnya</p>

+ 2
- 1
resources/views/digital-card.blade.php View File

10
         <link rel="preconnect" href="https://fonts.bunny.net">
10
         <link rel="preconnect" href="https://fonts.bunny.net">
11
         <link href="https://fonts.bunny.net/css?family=figtree:400,600&display=swap" rel="stylesheet" />
11
         <link href="https://fonts.bunny.net/css?family=figtree:400,600&display=swap" rel="stylesheet" />
12
         <link href="https://cdn.jsdelivr.net/npm/daisyui@4.12.10/dist/full.min.css" rel="stylesheet" type="text/css" />
12
         <link href="https://cdn.jsdelivr.net/npm/daisyui@4.12.10/dist/full.min.css" rel="stylesheet" type="text/css" />
13
-
13
+        <link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
14
 
14
 
15
         <meta name="csrf-token" content="{{ csrf_token() }}">
15
         <meta name="csrf-token" content="{{ csrf_token() }}">
16
 
16
 
57
 
57
 
58
         <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
58
         <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
59
         <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" defer/>
59
         <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" defer/>
60
+        <script src="https://unpkg.com/aos@2.3.1/dist/aos.js" defer></script>
60
 
61
 
61
         @stack('script')
62
         @stack('script')
62
     </body>
63
     </body>

Loading…
Cancel
Save