-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
be425c7
commit f2ece84
Showing
23 changed files
with
308 additions
and
132 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,25 @@ | ||
<?php | ||
|
||
namespace App\Livewire; | ||
|
||
use App\Actions\SubscribeUserToNewsletterAction; | ||
use Livewire\Component; | ||
|
||
class Newsletter extends Component | ||
{ | ||
public string $email = ''; | ||
|
||
public bool $submitted = false; | ||
|
||
public function subscribe(): void | ||
{ | ||
$this->validate([ | ||
'email' => 'required|email', | ||
]); | ||
|
||
app(SubscribeUserToNewsletterAction::class) | ||
->execute(email: $this->email); | ||
|
||
$this->submitted = true; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,6 @@ | ||
@php | ||
$tag = $tag ?? 'h1'; | ||
@endphp | ||
<{{ $tag }} {{ $attributes->twMerge('font-druk uppercase text-72 lg:text-144 leading-80 font-bold') }}> | ||
{{ $slot }} | ||
</{{ $tag }}> |
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,6 @@ | ||
@php | ||
$tag = $tag ?? 'h2'; | ||
@endphp | ||
<{{ $tag }} {{ $attributes->twMerge('font-druk uppercase text-72 leading-90 font-bold') }}> | ||
{{ $slot }} | ||
</{{ $tag }}> |
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,30 @@ | ||
@php | ||
/** @var Spatie\ContentApi\Data\Post $insight */ | ||
@endphp | ||
|
||
<x-layout.wrapper as="article" :class="twMerge(['flex gap-16', $attributes->get('class')])"> | ||
<figure> | ||
{{-- @todo Thumbnail --}} | ||
<div class="w-[440px] h-[440px] bg-oss-green-pale rounded-8 shadow-oss-card"></div> | ||
</figure> | ||
<div class="pt-28 flex flex-col gap-9"> | ||
<p class="flex items-center gap-3"> | ||
<a href="{{ route('insights.show', $insight->slug) }}" class="bg-oss-green-pale font-semibold rounded-8 px-2 py-0.5"> | ||
Latest article | ||
</a> | ||
<a href="{{ route('insights.show', $insight->slug) }}"> | ||
<time datetime="{{ $insight->date->format('Y-m-d') }}"> | ||
{{ $insight->date->format('F d, Y') }} | ||
</time> | ||
</a> | ||
</p> | ||
<x-headers.h2 class="w-2/3"> | ||
<a href="{{ route('insights.show', $insight->slug) }}"> | ||
{{ $insight->title }} | ||
</a> | ||
</x-headers.h2> | ||
<div class="w-3/4"> | ||
{!! $insight->summary !!} | ||
</div> | ||
</div> | ||
</x-layout.wrapper> |
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,31 @@ | ||
<article class="flex gap-8"> | ||
<figure class="pt-1"> | ||
{{-- @todo Image --}} | ||
<div class="w-[120px] h-[120px] bg-oss-green-pale rounded-8"></div> | ||
</figure> | ||
<div> | ||
<h3 class="text-24 font-bold hover:text-oss-spatie-blue"> | ||
<a href="{{ route('insights.show', $insight->slug) }}"> | ||
{{ $insight->title }} | ||
</a> | ||
</h3> | ||
<div class="mt-3 [&_p]:mt-2 [&_code]:text-16 [&_code]:bg-transparent"> | ||
{!! $insight->summary !!} | ||
</div> | ||
<div class="mt-4 flex gap-3 text-14"> | ||
@isset($insight->date) | ||
<a href="{{ route('insights.show', $insight->slug) }}"> | ||
<time datetime="{{ $insight->date->format('Y-m-d') }}"> | ||
{{ $insight->date->format('F d, Y') }} | ||
</time> | ||
</a> | ||
@endisset | ||
{{-- @todo Tags --}} | ||
<ul class="contents font-bold"> | ||
<li>#postgresql</li> | ||
<li>#backend</li> | ||
<li>#databases</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</article> |
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,3 @@ | ||
<div {{ $attributes->twMerge('w-full max-w-wrapper mx-auto') }}> | ||
{{ $slot }} | ||
</div> |
Oops, something went wrong.