forked from rapidez/rapidez
-
Notifications
You must be signed in to change notification settings - Fork 0
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
c93e6c0
commit d1be9ae
Showing
4 changed files
with
31 additions
and
38 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
@props(['title', 'description', 'image', 'link', 'button']) | ||
|
||
<a {{ $attributes->merge([ | ||
'class' => 'group relative h-72 w-full overflow-hidden sm:rounded-xl sm:first:row-span-2 sm:first:h-full', | ||
'href' => $link . Rapidez::config('catalog/seo/category_url_suffix', '.html'), | ||
]) }}> | ||
<img src="{{ $image }}" class="h-full w-full object-cover" alt="" /> | ||
<div class="absolute inset-0 bg-gradient-to-b from-transparent to-black opacity-50 transition group-hover:opacity-40"></div> | ||
<div class="absolute bottom-0 left-0 flex flex-col gap-1 p-5 text-white"> | ||
<div> | ||
<p class="text-lg font-semibold">@lang($title)</p> | ||
<p class="text-md text-gray-200">@lang($description)</p> | ||
</div> | ||
<span>{{ $button }}</span> | ||
</div> | ||
</a> |
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