diff options
author | Mateja <mail@matejamaric.com> | 2020-11-06 17:25:22 +0100 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2020-11-06 17:25:22 +0100 |
commit | 7af18c65418027a4cc1cb9fe71f11489029c3912 (patch) | |
tree | ec86b4b0590fa2603c7d5384ebc6ded003d9b5fe /resources/views/pages | |
parent | 8503bedc8475543e8b20b40fe4c43576d151ae05 (diff) | |
download | yota-laravel-7af18c65418027a4cc1cb9fe71f11489029c3912.tar.gz yota-laravel-7af18c65418027a4cc1cb9fe71f11489029c3912.zip |
GalleryController, better news, using Bootstrap.
Diffstat (limited to 'resources/views/pages')
-rw-r--r-- | resources/views/pages/news.blade.php | 11 |
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() |