Skip to content

Commit 2067a75

Browse files
committed
feat: fix gradient background
1 parent 59092d8 commit 2067a75

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

resources/views/articles/show.blade.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,14 @@
2121
<div class="container mx-auto">
2222
<div class="px-4 lg:px-0 lg:mx-48">
2323
<div class="relative w-full bg-center bg-gray-800 p-6 lg:p-8 z-10">
24-
<div class="-z-10">
25-
<img class="absolute w-full h-full left-0 top-0 object-cover"
24+
<img class="absolute w-full h-full left-0 top-0 object-cover -z-10"
2625
src="{{ $article->heroImage(2000,384) }}"
2726
alt="Article Hero Image"
2827
onerror="
2928
this.onerror=null
3029
this.src='{{ asset('images/default-background.svg') }}'"
3130
>
32-
<div class="absolute inset-0 bg-gradient-to-b from-black/40 to-black/40"></div>
33-
</div>
31+
<div class="absolute inset-0 bg-gradient-to-b from-black/40 to-black/40 -z-10"></div>
3432
<div class="flex items-center justify-between mb-28 text-sm lg:text-base">
3533
<a href="{{ route('articles') }}" class="flex items-center text-white hover:underline">
3634
<x-heroicon-s-arrow-left class="w-4 h-4 fill-current" />

0 commit comments

Comments
 (0)