Amirul Anwar 4 months ago
parent
commit
0c38a279f4

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

@@ -11,4 +11,19 @@
11 11
     src: url('tanPearl.woff2') format('woff2');
12 12
     font-weight: normal;
13 13
     font-style: normal;
14
+}
15
+
16
+@media (prefers-color-scheme: dark) {
17
+    html, body {
18
+        background-color: #ffffff;
19
+        color: #000000;
20
+    }
21
+
22
+    /* Override any other dark mode specific styles */
23
+    .dark\:bg-gray-900 {
24
+        background-color: #ffffff !important;
25
+    }
26
+    .dark\:text-white {
27
+        color: #000000 !important;
28
+    }
14 29
 }

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

@@ -90,6 +90,8 @@
90 90
                     document.body.classList.remove('no-scroll'); // Enable scrolling
91 91
                     setTimeout(smoothScroll, scrollInterval); // Start smooth scrolling after initial delay
92 92
                 }
93
+
94
+                document.documentElement.classList.add('light-mode');
93 95
     
94 96
                 // Listen for click or touch event to start auto-scrolling
95 97
                 window.addEventListener('click', handleInteraction, { once: true });

+ 7
- 0
resources/views/rsvp-digital-card.blade.php View File

@@ -18,6 +18,13 @@
18 18
     <audio id="player" autoplay="autoplay" loop>
19 19
         <source src="{{asset('assets/background-musicv2.mp3')}}" type="audio/mp3">
20 20
     </audio>
21
+
22
+    <script>
23
+        document.addEventListener('DOMContentLoaded', (event) => {
24
+            document.documentElement.classList.add('light-mode');
25
+        });
26
+    </script>
27
+    
21 28
     <div class="section bg-babyblue h-screen w-screen flex justify-center items-center">
22 29
         <div class="flex flex-col gap-3 w-4/5 z-10">
23 30
             <div class="flex justify-center">

Loading…
Cancel
Save