Skip to content

Commit 8e873eb

Browse files
authored
UPDATE - Header in articles.show and users.profile view to be boxed (#1140)
* UPDATE - Header in articles.show and users.profile view to be boxed * UPDATE - Article heading padding to be equal on all sides * UPDATE - Show and published info in mobile view
1 parent 4badaec commit 8e873eb

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

resources/views/articles/show.blade.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@
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">
28-
<a href="{{ route('articles') }}" class="hidden items-center text-base text-white hover:underline lg:flex">
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 p-6 lg:p-8"
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="flex items-center justify-between mb-28 text-sm lg:text-base">
28+
<a href="{{ route('articles') }}" class="flex items-center text-white hover:underline">
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>
3131
</a>
3232

33-
<div class="hidden lg:flex">
33+
<div>
3434
@if ($article->isNotPublished())
3535
<x-light-tag>
3636
@if ($article->isAwaitingApproval())
@@ -59,7 +59,7 @@ class="w-full bg-center {{ $article->hasHeroImage() ? 'bg-cover' : '' }} bg-gray
5959
{{ $article->title() }}
6060
</h1>
6161

62-
<div class="flex flex-col gap-y-2 text-white pb-4 lg:pb-12 lg:flex-row lg:items-center">
62+
<div class="flex flex-col gap-y-2 text-white lg:flex-row lg:items-center">
6363
<div class="flex items-center">
6464
<x-avatar :user="$article->author()" class="w-6 h-6 rounded-full mr-3" />
6565

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)