Skip to content

Commit fc1a3e4

Browse files
committed
UPDATE - Header in articles.show and users.profile view to be boxed
1 parent dce134a commit fc1a3e4

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

resources/views/articles/show.blade.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
@endif
1919
@endauth
2020

21-
<div
22-
class="w-full bg-center {{ $article->hasHeroImage() ? 'bg-cover' : '' }} bg-gray-800"
23-
style="background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url({{ $article->heroImage(2000, 384) }});"
24-
>
25-
<div class="container mx-auto">
26-
<div class="px-4 lg:px-0 lg:mx-48">
27-
<div class="flex items-center justify-between pt-6 mb-28">
21+
<div class="container mx-auto">
22+
<div class="px-4 lg:px-0 lg:mx-48">
23+
<div
24+
class="w-full bg-center {{ $article->hasHeroImage() ? 'bg-cover' : '' }} bg-gray-800 px-6 py-8 lg:py-6"
25+
style="background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url({{ $article->heroImage(2000,384) }});"
26+
>
27+
<div class="hidden items-center justify-between pt-6 mb-28 lg:flex">
2828
<a href="{{ route('articles') }}" class="hidden items-center text-base text-white hover:underline lg:flex">
2929
<x-heroicon-s-arrow-left class="w-4 h-4 fill-current" />
3030
<span class="text-white ml-1 hover:text-gray-100">Back to articles</span>

resources/views/users/profile.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
@section('content')
77
<section class="bg-white">
88
<div
9-
class="w-full bg-center bg-gray-800 h-60"
9+
class="w-full bg-center bg-gray-800 h-60 container mx-auto"
1010
style="background-image: url('{{ asset('images/default-background.svg') }}')"
1111
></div>
1212

0 commit comments

Comments
 (0)