Conflicts:
	skolehjem/resources/views/app/news/index.blade.php
This commit is contained in:
frederikpyt
2020-08-10 09:39:12 +02:00
3 changed files with 46 additions and 4 deletions
@@ -57,12 +57,43 @@
</a>
</div>
<style>
div.card {
margin-top: 1rem;
margin-bottom: 30px;
width: auto;
heigt: auto;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
div.header {
background-color: #00788a;
color: white;
padding: 1px;
font-size: 10px;
text-align: center;
}
div.container {
padding: 5px;
text-align: justify;
line-height: 1.5;
}
</style>
<main>
@foreach(\App\News::query()->orderBy("created_at", "desc")->get() as $new)
<div style="border: 4px solid rgba(0,0,0, 0.2); border-radius: 4px; padding: 4px; margin-top: 1.5rem">
<h2 class="sde-blue mt-0 mb-0 text-center" style="margin-bottom: 8px; ">{{ $new->name }}</h2>
<h4 class="sde-blue mt-0 mb-0 text-center" style="margin-bottom: 8px; ">{{ $new->subname }}</h4>
{!! $new->content !!}
<div class="card">
<div class="header">
<p><b>{{ $new->name }}</b></p>
<h1>{{ $new->subname }}</h1>
</div>
<div class="container">
<p>{!! $new->content !!}</p>
</div>
</div>
@endforeach
@if(count(\App\News::query()->orderBy("created_at", "desc")->get()) == 0)