Преглед на файлове

fix enforce light mode

am
farhan преди 5 месеца
родител
ревизия
77a25ea0b5
променени са 3 файла, в които са добавени 6 реда и са изтрити 13 реда
  1. 2
    4
      resources/views/digital-card.blade.php
  2. 1
    8
      resources/views/rsvp-digital-card.blade.php
  3. 3
    1
      tailwind.config.js

+ 2
- 4
resources/views/digital-card.blade.php Целия файл

@@ -1,5 +1,5 @@
1 1
 <!DOCTYPE html>
2
-<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
2
+<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" data-theme="light">
3 3
     <head>
4 4
         <meta charset="utf-8">
5 5
         <meta name="viewport" content="width=device-width, initial-scale=1">
@@ -90,8 +90,6 @@
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');
95 93
     
96 94
                 // Listen for click or touch event to start auto-scrolling
97 95
                 window.addEventListener('click', handleInteraction, { once: true });
@@ -131,7 +129,7 @@
131 129
         <div class="section bg-babyblue flex justify-center pb-20 fade-element">
132 130
             @include('components.countdown')
133 131
         </div>
134
-        <div class="section bg-babyblue flex justify-center pb-5 pb-20 fade-element">
132
+        <div class="section bg-babyblue flex justify-center pt-5 pb-20 fade-element">
135 133
             @include('components.guestbook')
136 134
         </div>
137 135
         <div class="section bg-babyblue flex justify-center pt-5 pb-20 fade-element">

+ 1
- 8
resources/views/rsvp-digital-card.blade.php Целия файл

@@ -1,5 +1,5 @@
1 1
 <!DOCTYPE html>
2
-<html lang="en">
2
+<html lang="en" data-theme="light">
3 3
 <head>
4 4
     <meta charset="UTF-8">
5 5
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
@@ -18,13 +18,6 @@
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
-    
28 21
     <div class="section bg-babyblue h-screen w-screen flex justify-center items-center">
29 22
         <div class="flex flex-col gap-3 w-4/5 z-10">
30 23
             <div class="flex justify-center">

+ 3
- 1
tailwind.config.js Целия файл

@@ -33,7 +33,9 @@ export default {
33 33
       'xl': '1280px',
34 34
       '2xl': '1536px',
35 35
     },
36
-    
36
+  },
37
+  daisyui: {
38
+    themes: ["light"],
37 39
   },
38 40
   plugins: [
39 41
     require('tailwindcss-animate'),

Loading…
Отказ
Запис