Ver código fonte

test theme avoid darkmode

am
farhan 4 meses atrás
pai
commit
46c9585ae2

+ 15
- 0
resources/css/app.css Ver arquivo

@@ -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 Ver arquivo

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

+ 7
- 0
resources/views/rsvp-digital-card.blade.php Ver arquivo

@@ -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">

Carregando…
Cancelar
Salvar