Pārlūkot izejas kodu

main event changes

am
farhan 4 mēnešus atpakaļ
vecāks
revīzija
3ea73d1db5

+ 109
- 305
package-lock.json
Failā izmaiņas netiks attēlotas, jo tās ir par lielu
Parādīt failu


+ 3
- 1
package.json Parādīt failu

@@ -11,10 +11,12 @@
11 11
         "laravel-vite-plugin": "^1.0.0",
12 12
         "postcss": "^8.4.39",
13 13
         "tailwindcss": "^3.4.4",
14
+        "tailwindcss-animated": "^1.1.2",
14 15
         "vite": "^5.0.0"
15 16
     },
16 17
     "dependencies": {
17 18
         "@fortawesome/fontawesome-free": "^6.5.2",
18
-        "jquery": "^3.7.1"
19
+        "jquery": "^3.7.1",
20
+        "tailwindcss-animate": "^1.0.7"
19 21
     }
20 22
 }

+ 7
- 0
resources/css/app.css Parādīt failu

@@ -5,3 +5,10 @@
5 5
 @tailwind base;
6 6
 @tailwind components;
7 7
 @tailwind utilities;
8
+
9
+@font-face {
10
+    font-family: 'Tan Pearl';
11
+    src: url('tanPearl.woff2') format('woff2');
12
+    font-weight: normal;
13
+    font-style: normal;
14
+}

Binārs
resources/css/tanPearl.woff2 Parādīt failu


+ 17
- 0
resources/js/app.js Parādīt failu

@@ -80,4 +80,21 @@ $(function() {
80 80
 
81 81
     // Initially check visibility on page load
82 82
     $(window).trigger('scroll');
83
+
84
+    document.addEventListener('DOMContentLoaded', function() {
85
+        const observer = new IntersectionObserver(entries => {
86
+            entries.forEach(entry => {
87
+                if (entry.isIntersecting) {
88
+                    entry.target.classList.add('animate-fadeUp');
89
+                    entry.target.classList.remove('opacity-0');
90
+                }
91
+            });
92
+        }, {
93
+            threshold: 0.1
94
+        });
95
+
96
+        document.querySelectorAll('.fade-up').forEach(element => {
97
+            observer.observe(element);
98
+        });
99
+    });
83 100
 });

+ 1
- 1
resources/views/components/event-info.blade.php Parādīt failu

@@ -1,4 +1,4 @@
1
-<div class="flex flex-col gap-5 w-4/5">
1
+<div class="flex flex-col gap-5 w-4/5 mt-10">
2 2
     <div class="flex justify-center">
3 3
         <img src="{{ asset('assets/bismillah.png') }}" alt="Logo">
4 4
     </div>

+ 2
- 2
resources/views/components/front-cover.blade.php Parādīt failu

@@ -4,7 +4,7 @@
4 4
             <img src="{{ asset('assets/logo-left.png') }}" alt="Logo" class="logo-img">
5 5
         </div>
6 6
         <div class="flex justify-end items-center">
7
-            <img src="{{ asset('assets/name-left.png') }}" alt="Logo" class="logo-img">
7
+            <img src="{{ asset('assets/name-left.png') }}" alt="Name Left" class="logo-img">
8 8
         </div>
9 9
     </div>
10 10
 </div>
@@ -14,7 +14,7 @@
14 14
             <img src="{{ asset('assets/logo-right.png') }}" alt="Logo" class="logo-img">
15 15
         </div>
16 16
         <div class="flex justify-start items-center">
17
-            <img src="{{ asset('assets/name-right.png') }}" alt="Logo" class="logo-img">
17
+            <img src="{{ asset('assets/name-right.png') }}" alt="Name Right" class="logo-img">
18 18
         </div>
19 19
     </div>
20 20
 </div>

+ 28
- 4
resources/views/components/main-event.blade.php Parādīt failu

@@ -1,8 +1,32 @@
1
-<div class="flex flex-col gap-8 w-4/5">
1
+<div class="flex flex-col gap-5 w-4/5 mt-44 mb-40 text-navbarcolor">
2 2
     <div class="flex justify-center">
3
-        <img src="{{ asset('assets/logo.png') }}" alt="Logo" class="logo-img">
3
+        <p class="font-semibold text-sm">WALIMATULURUS</p>
4 4
     </div>
5
-    <div class="flex justify-center">
6
-        <img src="{{ asset('assets/name.png') }}" alt="Name" class="name-img">
5
+    <div class="flex flex-col gap-8 pt-8 pb-8 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>
8
+        </div>
9
+        <div class="flex justify-center">
10
+            <p class="font-tan-pearl font-semibold text-3xl">&</p>
11
+        </div>
12
+        <div class="flex justify-center">
13
+            <p class="font-tan-pearl font-semibold text-5xl"><span class="text-6xl">A</span>yuna</p>
14
+        </div>
15
+    </div>
16
+    <div class="flex flex-col justify-center">
17
+        <div class="flex justify-center">
18
+            <p class="font-bold text-base">SABTU</p>
19
+        </div>
20
+        <div class="flex justify-center">
21
+            <p class="font-bold text-base">17 OGOS 2024</p>
22
+        </div>
23
+    </div>
24
+    <div class="flex flex-col justify-center">
25
+        <div class="flex justify-center">
26
+            <p class="font-semibold text-sm">DEWAN JUBLI PERAK</p>
27
+        </div>
28
+        <div class="flex justify-center">
29
+            <p class="font-semibold text-sm">SULTAN HAJI AHMAD SHAH</p>
30
+        </div>
7 31
     </div>
8 32
 </div>

+ 1
- 1
resources/views/digital-card.blade.php Parādīt failu

@@ -19,7 +19,7 @@
19 19
             <audio src="{{asset('assets/paper-ripping.mp3')}}"></audio>
20 20
             @include('components.front-cover')
21 21
         </div>
22
-        <div class="section bg-babyblue h-screen flex justify-center items-center">
22
+        <div class="section bg-babyblue min-h-screen flex justify-center items-center">
23 23
             @include('components.main-event')
24 24
         </div>
25 25
         <div class="section bg-babyblue min-h-screen flex justify-center">

+ 18
- 2
tailwind.config.js Parādīt failu

@@ -8,9 +8,22 @@ export default {
8 8
     extend: {
9 9
       colors: {
10 10
         babyblue: '#e9f6fb',
11
+        babybluesecond: '#DFF2F6',
11 12
         babybluedark: '#d2ebef',
12 13
         navbarcolor: '#5a5b5e',
13
-      }
14
+      },
15
+      fontFamily: {
16
+        'tan-pearl': ['Tan Pearl', 'sans-serif'],
17
+      },
18
+      keyframes: {
19
+          fadeUp: {
20
+              '0%': { opacity: 0, transform: 'translateY(20px)' },
21
+              '100%': { opacity: 1, transform: 'translateY(0)' },
22
+          },
23
+      },
24
+      animation: {
25
+          fadeUp: 'fadeUp 0.5s ease-out forwards',
26
+      },
14 27
     },
15 28
     screens: {
16 29
       'sm': '640px',
@@ -19,7 +32,10 @@ export default {
19 32
       'xl': '1280px',
20 33
       '2xl': '1536px',
21 34
     },
35
+    
22 36
   },
23
-  plugins: [],
37
+  plugins: [
38
+    require('tailwindcss-animate'),
39
+  ],
24 40
 }
25 41
 

Notiek ielāde…
Atcelt
Saglabāt