-
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
1d00b75
commit dbd0a0c
Showing
13 changed files
with
122 additions
and
155 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
42 changes: 42 additions & 0 deletions
42
resources/views/front/pages/home/partials/bf-banner.blade.php
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,42 @@ | ||
@php | ||
$expirationDate = \Carbon\Carbon::createFromFormat('Y-m-d H:i', '2024-12-02 23:59'); | ||
@endphp | ||
|
||
<section id="banner" class="banner" role="banner"> | ||
|
||
<div class="flex flex-col items-center pb-12 p-4"> | ||
<img class="max-w-[560px] mb-16" src="../images/black-friday/bf-24-logo.svg" alt=""> | ||
<div class="text-xl lg:text-3xl text-bf-beige font-sans uppercase text-center"> | ||
<p class="font-bold">Get 30% off on all Spatie products</p> | ||
<p> | ||
<x-countdown class="inline-block" :expires="$expirationDate"> | ||
<span> | ||
<span class="font-semibold font-mono" | ||
x-text="timer.days">{{ $component->days() }}</span><span>d</span> | ||
</span> | ||
<span class="ml-1"> | ||
<span class="font-semibold font-mono" | ||
x-text="timer.hours">{{ $component->hours() }}</span><span>h</span> | ||
</span> | ||
<span class="ml-1"> | ||
<span class="font-semibold font-mono" | ||
x-text="timer.minutes">{{ $component->minutes() }}</span><span>m</span> | ||
</span> | ||
<span class="ml-1"> | ||
<span class="font-semibold font-mono" | ||
x-text="timer.seconds">{{ $component->seconds() }}</span><span>s</span> | ||
</span> | ||
</x-countdown> | ||
|
||
</p> | ||
</div> | ||
</div> | ||
|
||
<div class="flex flex-col items-center"> | ||
<a href="{{ route('products.index') }}" | ||
class="text-lg text-black font-bold hover:bg-gray-lighter transition transition-color font-sans px-6 py-2 bg-white rounded-full"> | ||
Grab your promotion | ||
</a> | ||
</div> | ||
|
||
</section> |
133 changes: 0 additions & 133 deletions
133
resources/views/front/pages/home/partials/black-friday-banner.blade.php
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
resources/views/front/pages/home/partials/open-source.blade.php
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
35 changes: 35 additions & 0 deletions
35
resources/views/front/pages/products/partials/bf-banner.blade.php
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,35 @@ | ||
@php | ||
$expirationDate = \Carbon\Carbon::createFromFormat('Y-m-d H:i', '2024-12-02 23:59'); | ||
@endphp | ||
|
||
<section id="banner" class="banner mb-16" role="banner"> | ||
|
||
<div class="flex flex-col items-center pb-12 p-4"> | ||
<img class="max-w-[480px] mb-16" src="../images/black-friday/bf-24-logo.svg" alt=""> | ||
<div class="text-xl lg:text-2xl text-bf-beige font-sans uppercase text-center"> | ||
<p class="font-bold">Get 30% off on all Spatie products</p> | ||
<p> | ||
<x-countdown class="inline-block" :expires="$expirationDate"> | ||
<span> | ||
<span class="font-semibold font-mono" | ||
x-text="timer.days">{{ $component->days() }}</span><span>d</span> | ||
</span> | ||
<span class="ml-1"> | ||
<span class="font-semibold font-mono" | ||
x-text="timer.hours">{{ $component->hours() }}</span><span>h</span> | ||
</span> | ||
<span class="ml-1"> | ||
<span class="font-semibold font-mono" | ||
x-text="timer.minutes">{{ $component->minutes() }}</span><span>m</span> | ||
</span> | ||
<span class="ml-1"> | ||
<span class="font-semibold font-mono" | ||
x-text="timer.seconds">{{ $component->seconds() }}</span><span>s</span> | ||
</span> | ||
</x-countdown> | ||
|
||
</p> | ||
</div> | ||
</div> | ||
|
||
</section> |
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