aboutsummaryrefslogtreecommitdiff
path: root/resources/views/pages/news.blade.php
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2020-11-06 17:25:22 +0100
committerMateja <mail@matejamaric.com>2020-11-06 17:25:22 +0100
commit7af18c65418027a4cc1cb9fe71f11489029c3912 (patch)
treeec86b4b0590fa2603c7d5384ebc6ded003d9b5fe /resources/views/pages/news.blade.php
parent8503bedc8475543e8b20b40fe4c43576d151ae05 (diff)
downloadyota-laravel-7af18c65418027a4cc1cb9fe71f11489029c3912.tar.gz
yota-laravel-7af18c65418027a4cc1cb9fe71f11489029c3912.zip
GalleryController, better news, using Bootstrap.
Diffstat (limited to 'resources/views/pages/news.blade.php')
-rw-r--r--resources/views/pages/news.blade.php11
1 files changed, 6 insertions, 5 deletions
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()