Browse Source

test theme avoid darkmode

am
farhan 4 months ago
parent
commit
46c9585ae2

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

11
     src: url('tanPearl.woff2') format('woff2');
11
     src: url('tanPearl.woff2') format('woff2');
12
     font-weight: normal;
12
     font-weight: normal;
13
     font-style: normal;
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

83
                     document.body.classList.remove('no-scroll'); // Enable scrolling
83
                     document.body.classList.remove('no-scroll'); // Enable scrolling
84
                     setTimeout(smoothScroll, scrollInterval); // Start smooth scrolling after initial delay
84
                     setTimeout(smoothScroll, scrollInterval); // Start smooth scrolling after initial delay
85
                 }
85
                 }
86
+
87
+                document.documentElement.classList.add('light-mode');
86
     
88
     
87
                 // Listen for click or touch event to start auto-scrolling
89
                 // Listen for click or touch event to start auto-scrolling
88
                 window.addEventListener('click', handleInteraction, { once: true });
90
                 window.addEventListener('click', handleInteraction, { once: true });

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

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

Loading…
Cancel
Save