Wedding Invitation
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

rsvp-digital-card.blade.php 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  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. <audio id="player" autoplay="autoplay" loop>
  17. <source src="{{asset('assets/background-musicv2.mp3')}}" type="audio/mp3">
  18. </audio>
  19. <div class="section bg-babyblue h-screen w-screen flex justify-center items-center">
  20. <div class="flex flex-col gap-3 w-4/5 z-10">
  21. <div class="flex justify-center">
  22. <p class="font-normal text-base text-navbarcolor uppercase">MAJLIS PERKAHWINAN ALIFF & AYUNA</p>
  23. </div>
  24. <div class="flex justify-center pt-8 pb-6">
  25. <img src="{{ asset('assets/logosmallest.png') }}" alt="Logo">
  26. </div>
  27. <div class="flex justify-center">
  28. <p class="font-normal text-2xl text-navbarcolor uppercase">RSVP</p>
  29. </div>
  30. <div class="flex justify-center">
  31. <form id="RSVPForm" class="flex flex-col gap-3">
  32. @csrf
  33. <label class="input input-sm input-bordered flex items-center gap-2">
  34. Name :
  35. <input type="text" name="name" class="grow"/>
  36. </label>
  37. <label class="input input-sm input-bordered flex items-center gap-2">
  38. Bilangan :
  39. <input type="number" name="member" class="grow"/>
  40. </label>
  41. <label class="input input-sm input-bordered flex items-center gap-2">
  42. No. Tel :
  43. <input type="number" name="phone" class="grow"/>
  44. </label>
  45. <button id="submitForm" class="bg-babybluedark rounded-lg py-2 text-navbarcolor">Hantar</button>
  46. </form>
  47. </div>
  48. <div class="flex justify-center pt-2">
  49. <a onclick="contact.showModal()" class="bg-white rounded-full py-3 px-4 text-navbarcolor">
  50. <i class="fa-solid fa-phone"></i>
  51. </a>
  52. @include('modals.contact-modal')
  53. </div>
  54. </div>
  55. <img src="{{asset('assets/flower-left.png')}}" alt="" class="fixed -left-3/4 top-28">
  56. <img src="{{asset('assets/flower-right.png')}}" alt="" class="fixed -right-3/4 top-8">
  57. </div>
  58. <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
  59. <script>
  60. $(document).ready(function() {
  61. $('#submitForm').click(function(e) {
  62. e.preventDefault();
  63. var formData = $('#RSVPForm').serialize();
  64. $.ajax({
  65. url: '{{ route('rsvp.save') }}',
  66. type: 'POST',
  67. data: formData,
  68. success: function(response) {
  69. if ('{{ session('success') }}') {
  70. showSuccessMessage('{{ session('success') }}');
  71. }
  72. $('#RSVPForm')[0].reset();
  73. },
  74. error: function(xhr, status, error) {
  75. console.error('Error submitting form:', error);
  76. }
  77. });
  78. });
  79. function showSuccessMessage(message) {
  80. // Create a dynamic success message element
  81. var successAlert = $('<div class="bg-green-100 border border-green-400 text-green-700 px-4 py-3 rounded relative" role="alert">' +
  82. '<span class="block sm:inline">' + message + '</span>' +
  83. '</div>');
  84. // Append the message to a suitable container in your HTML (e.g., modal, form, or body)
  85. $('#alert-success').append(successAlert);
  86. // Automatically remove the message after 3 seconds
  87. setTimeout(function() {
  88. successAlert.fadeOut('slow', function() {
  89. $(this).remove();
  90. });
  91. }, 3000); // 3 seconds
  92. }
  93. });
  94. </script>
  95. </body>
  96. </html>