Browse Source

add audio to single page rsvp

am
farhan 5 months ago
parent
commit
4a7245ebab

+ 3
- 3
app/Http/Controllers/MainController.php View File

@@ -15,9 +15,9 @@ class MainController extends Controller
15 15
         $host = $request->getHost();
16 16
         if ($host == 'aliffayuna.com') {
17 17
             return view('digital-card', compact(['rsvp', 'guestbook']));
18
-        }
19
-
20
-        if ($host == 'rsvp.aliffayuna.com') {
18
+        } else if ($host == 'rsvp.aliffayuna.com') {
19
+            return view('rsvp-digital-card');
20
+        } else {
21 21
             return view('rsvp-digital-card');
22 22
         }
23 23
     }

BIN
public/assets/background-music.mp3 View File


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

@@ -14,6 +14,9 @@
14 14
     @vite(['resources/css/app.css'])
15 15
 </head>
16 16
 <body class="antialiased font-serif">
17
+    <audio id="player" autoplay loop>
18
+        <source src="{{'assets/background-music.mp3'}}" type="audio/mp3">
19
+    </audio>
17 20
     <div class="section bg-babyblue h-screen w-screen flex justify-center items-center">
18 21
         <div class="flex flex-col gap-3 w-4/5 z-10">
19 22
             <div class="flex justify-center">

Loading…
Cancel
Save