-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created the newsletter livewire component
- Loading branch information
1 parent
8fe114b
commit f98fe82
Showing
5 changed files
with
40 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace App\Livewire; | ||
|
||
use Illuminate\View\View; | ||
use Livewire\Component; | ||
|
||
class Newsletter extends Component | ||
{ | ||
public function render(): View | ||
{ | ||
return view('livewire.newsletter'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<div class="center bg-blue-500 p-4 md:p-14"> | ||
<form class="w-full max-w-md flex flex-col gap-4 center bg-blue-500 items-center" wire:submit.prevent="subscribe"> | ||
@csrf | ||
<x-text-input type="email" name="email" autocomplete="email" placeholder="Your email address" required /> | ||
@error('email') | ||
<p class="text-xs text-red-500">{{ $message }}</p> | ||
@enderror | ||
<button class="py-2 text-blue-500 font-semibold w-full bg-white px-4 rounded-md ring" type="submit"> | ||
Subscribe | ||
<i class="fas fa-paper-plane"></i> | ||
</button> | ||
</form> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters