-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Revert "Add Black Friday design""
This reverts commit a5375b7.
- Loading branch information
1 parent
5485847
commit 75e727b
Showing
10 changed files
with
327 additions
and
146 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<button class="cursor-pointer | ||
bg-green-dark bg-opacity-75 hover:bg-opacity-100 rounded-sm | ||
border-2 border-transparent | ||
justify-center flex items-center | ||
{{ $attributes['large'] ? 'px-4 min-h-12 text-xl shadow-lg' : 'px-6 min-h-10' }} | ||
font-sans-bold text-white | ||
transition-bg duration-300 | ||
focus:outline-none focus:border-blue-light whitespace-no-wrap"> | ||
{{ $slot }} | ||
bg-yellow hover:bg-opacity-75 rounded-sm | ||
border-2 border-transparent | ||
justify-center flex items-center | ||
{{ $attributes['large'] ? 'px-4 min-h-12 text-xl shadow-lg' : 'px-6 min-h-10' }} | ||
font-sans-bold text-black | ||
transition-bg duration-300 | ||
focus:outline-none focus:border-blue-light whitespace-no-wrap"> | ||
{{ $slot }} | ||
</button> |
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
52 changes: 44 additions & 8 deletions
52
resources/views/front/pages/home/partials/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 |
---|---|---|
@@ -1,10 +1,46 @@ | ||
<section id="banner" class="banner" role="banner"> | ||
<div class="wrap"> | ||
<h1 class="banner-slogan"> | ||
Solid expertise <br>in Laravel | ||
</h1> | ||
<p class="banner-intro"> | ||
We craft web applications, software, courses <br>& open source packages in the Laravel ecosystem | ||
</p> | ||
<section id="banner" class="banner bg-trueblack mb-32" role="banner"> | ||
<div class="wrap"> | ||
<a href="{{ route('products.index') }}" class="block w-3/5"> | ||
@include('front.pages.home.partials.black-friday-banner') | ||
</a> | ||
|
||
<div class="my-8"> | ||
@php | ||
$expirationDate = \Carbon\Carbon::createFromFormat('Y-m-d H:i', '2022-11-28 23:59' ); | ||
@endphp | ||
|
||
<a href="{{ route('products.index') }}" | ||
class="flex bg-trueblack text-white banner-intro"> | ||
<div class="py-2 "> | ||
<div> | ||
⚡️ <strong>Get 30% off</strong> on all our products | ||
<br>in the next | ||
<x-countdown class="inline-block" :expires="$expirationDate"> | ||
<span> | ||
<span class="font-semibold font-mono" x-text="timer.days">{{ $component->days() | ||
}}</span><span class="text-white">d</span> | ||
</span> | ||
<span class="ml-1"> | ||
<span class="font-semibold font-mono" x-text="timer.hours">{{ $component->hours() | ||
}}</span><span class="text-white">h</span> | ||
</span> | ||
<span class="ml-1"> | ||
<span class="font-semibold font-mono" x-text="timer.minutes">{{ $component->minutes() | ||
}}</span><span class="text-white">m</span> | ||
</span> | ||
<span class="ml-1"> | ||
<span class="font-semibold font-mono" x-text="timer.seconds">{{ $component->seconds() | ||
}}</span><span class="text-white">s</span> | ||
</span> | ||
</x-countdown> | ||
</div> | ||
</div> | ||
</a> | ||
</div> | ||
|
||
<a href="{{ route('products.index') }}" | ||
class=" text-xl text-black font-bold hover:bg-gray-lighter transition transition-color font-sans px-4 py-2 bg-white rounded-full"> | ||
Grab your promotion | ||
</a> | ||
</div> | ||
</section> |
Oops, something went wrong.