Skip to content

Commit

Permalink
Recaptcha on newsletter submitting
Browse files Browse the repository at this point in the history
  • Loading branch information
l-alexandrov committed Apr 30, 2024
1 parent ff2a9c2 commit f79aeab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/views/themes/bimbala/home.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ class="p-3 md:p-6 w-full"
<div class="relative flex items-center max-w-md leading-6 text-center lg:mx-0">
<input type="hidden" name="b_118b625f8f6bac41ebe6c7be3_e974cbc9ee" tabindex="-1" value="">
<input type="email" name="EMAIL" placeholder="Your E-mail" class="w-full py-4 pr-0 m-0 overflow-visible font-medium duration-300 border-2 border-gray-200 rounded-full outline-none sm:py-5 sm:pr-48 cursor-text pl-7 focus:outline-none focus-within:border-purple-700 hover:border-gray-400" data-rounded="rounded-full">
<button id="mc-embedded-subscribe" class="absolute right-0 h-12 px-8 mr-3 text-white bg-purple-700 rounded-full" data-rounded="rounded-full" data-primary="purple-700">Get Started</button>
<x-recaptcha-submit formId="mc-embedded-subscribe-form" action="newsletter-subscription" id="mc-embedded-subscribe" class="absolute right-0 h-12 px-8 mr-3 text-white bg-purple-700 rounded-full" data-rounded="rounded-full" data-primary="purple-700">Get Started</x-recaptcha-submit>
</div>
</form>
<div class="mt-12 leading-6 border-solid lg:mt-12">
Expand Down
4 changes: 2 additions & 2 deletions resources/views/themes/bimbala/layouts/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@
class="w-full px-5 py-3 border border-gray-300 shadow-sm placeholder-gray-400 focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500 sm:max-w-xs rounded-md"
placeholder="Enter your email">
<div class="mt-3 rounded-md shadow sm:mt-0 sm:ml-3 sm:flex-shrink-0">
<button type="submit"
<x-recaptcha-submit formId="mc-embedded-subscribe-form" action="newsletter-subscription"
class="w-full flex items-center justify-center py-3 px-5 border border-transparent text-base font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
Notify me
</button>
</x-recaptcha-submit>
</div>
</form>
<p class="mt-3 text-sm text-white">
Expand Down

0 comments on commit f79aeab

Please sign in to comment.