Wedding Invitation
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

rsvp-digital-card.blade.php 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <!DOCTYPE html>
  2. <html lang="en" data-theme="light">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  6. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7. <meta name="color-scheme" content="light only">
  8. <title>{{config('app.name')}}</title>
  9. <link rel="preconnect" href="https://fonts.bunny.net">
  10. <link href="https://fonts.bunny.net/css?family=figtree:400,600&display=swap" rel="stylesheet" />
  11. <link href="https://cdn.jsdelivr.net/npm/daisyui@4.12.10/dist/full.min.css" rel="stylesheet" type="text/css" />
  12. <meta name="csrf-token" content="{{ csrf_token() }}">
  13. @vite(['resources/css/app.css'])
  14. </head>
  15. <body class="antialiased font-serif">
  16. <div role="alert" class="alert alert-info hidden z-40 fixed w-1/2 top-3 right-3">
  17. <span></span>
  18. </div>
  19. <audio id="player" autoplay="autoplay" loop>
  20. <source src="{{asset('assets/background-musicv2.mp3')}}" type="audio/mp3">
  21. </audio>
  22. <div class="section bg-babyblue h-screen w-screen flex justify-center items-center">
  23. <div class="flex flex-col gap-3 w-4/5 z-10">
  24. <div class="flex justify-center">
  25. <p class="font-normal text-base text-navbarcolor uppercase">MAJLIS PERKAHWINAN ALIFF & AYUNA</p>
  26. </div>
  27. <div class="flex justify-center pt-8 pb-6">
  28. <img src="{{ asset('assets/logosmallest.png') }}" alt="Logo">
  29. </div>
  30. <div class="flex justify-center">
  31. <p class="font-normal text-2xl text-navbarcolor uppercase">RSVP</p>
  32. </div>
  33. <div class="flex justify-center">
  34. <form id="RSVPForm" class="flex flex-col gap-3">
  35. @csrf
  36. <label class="input input-sm input-bordered flex items-center gap-2">
  37. Name :
  38. <input type="text" name="name" class="grow"/>
  39. </label>
  40. <label class="input input-sm input-bordered flex items-center gap-2">
  41. Bilangan :
  42. <input type="number" name="member" class="grow"/>
  43. </label>
  44. <label class="input input-sm input-bordered flex items-center gap-2">
  45. No. Tel :
  46. <input type="number" name="phone" class="grow"/>
  47. </label>
  48. <button id="submitForm" class="bg-babybluedark rounded-lg py-2 text-navbarcolor">Hantar</button>
  49. </form>
  50. </div>
  51. <div class="flex justify-center pt-2">
  52. <a onclick="contact.showModal()" class="bg-white rounded-full py-3 px-4 text-navbarcolor">
  53. <i class="fa-solid fa-phone"></i>
  54. </a>
  55. @include('modals.contact-modal')
  56. </div>
  57. </div>
  58. <img src="{{asset('assets/flower-left.png')}}" alt="" class="fixed -left-3/4 top-28">
  59. <img src="{{asset('assets/flower-right.png')}}" alt="" class="fixed -right-3/4 top-8">
  60. </div>
  61. <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
  62. <script>
  63. $(document).ready(function() {
  64. $('#submitForm').click(function(e) {
  65. e.preventDefault();
  66. var formData = $('#RSVPForm').serialize();
  67. $.ajax({
  68. url: '{{ route('rsvp.save') }}',
  69. type: 'POST',
  70. data: formData,
  71. success: function(response) {
  72. $('#RSVPForm')[0].reset();
  73. var alertContainer = $('.alert-info');
  74. alertContainer.find('span').text(response.message); // Set message text
  75. alertContainer.fadeIn().removeClass('hidden'); // Show the alert
  76. setTimeout(function() {
  77. alertContainer.fadeOut().addClass('hidden'); // Hide the alert after 5 seconds
  78. }, 3000);
  79. },
  80. error: function(xhr, status, error) {
  81. console.error('Error submitting form:', error);
  82. }
  83. });
  84. });
  85. });
  86. </script>
  87. </body>
  88. </html>