From 7af18c65418027a4cc1cb9fe71f11489029c3912 Mon Sep 17 00:00:00 2001
From: Mateja <mail@matejamaric.com>
Date: Fri, 6 Nov 2020 17:25:22 +0100
Subject: GalleryController, better news, using Bootstrap.

---
 resources/views/pages/news.blade.php | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

(limited to 'resources/views/pages')

diff --git a/resources/views/pages/news.blade.php b/resources/views/pages/news.blade.php
index 1e9b83b..5858889 100644
--- a/resources/views/pages/news.blade.php
+++ b/resources/views/pages/news.blade.php
@@ -4,11 +4,12 @@
 
 @section('content')
     @foreach($news as $post)
-        <div class="well border border-secondary rounded p-2 mb-3">
-            <h2>{{ $post->title }}</h2>
-            <small>Published at {{ $post->created_at->format('Y-m-d') }}@isset ($post->author) by {{$post->author }}@endisset</small>
-            <hr class="bg-secondary">
-            <div>{!! $post->text !!}</div>
+        <div class="card mb-3">
+            <div class="card-body">
+                <h2 class="card-title">{{ $post->title }}</h2>
+                <h6 class="card-subtitle mb-2 text-muted">Published at {{ $post->created_at->format('Y-m-d') }}@isset ($post->author) by {{$post->author }}@endisset</h4>
+                <div class="card-text">{!! $post->text !!}</div>
+            </div>
         </div>
     @endforeach
 @endsection()
-- 
cgit v1.2.3