Benjamin Völkl 2022-11-24 15:30:36 +01:00
parent be0e5af24a
commit 207fc8ab8b
2 changed files with 22 additions and 3 deletions

View File

@ -17,6 +17,11 @@
a{ a{
color: #71a866; color: #71a866;
} }

a:hover{
color: #71a866;
text-decoration: underline;
}
footer a{ footer a{
color: white; color: white;



View File

@ -59,16 +59,30 @@
@endif @endif
@foreach(filterByContentType("News")->take(3) as $content) @foreach(filterByContentType("News")->take(3) as $content)
<div class="col-12 col-md-6 col-lg-4"> <div class="col-12 col-md-6 col-lg-4">
<div class="card shadow-sm mb-5" style="background-color: #f8f8f4;"> <div class="card shadow-sm mb-5 h-100" style="background-color: #f8f8f4;">
<img src="{{$content->image}}" class="img-fluid card-img-top"> <img src="{{$content->image()}}" class="img-fluid card-img-top">
<div class="card-body"> <div class="card-body">
<h2 class="h5 fw-bolder">{{$content->title}}</h2> <h2 class="h5 fw-bolder mb-3">{{$content->title}}</h2>
<p class="mt-2">{!! $content->vorschau !!}</p> <p class="mt-2">{!! $content->vorschau !!}</p>
</div> </div>
<div class="text-end pt-0 p-4">
<a href="{{($content->path)}}" class="text-decoration-none">
Mehr lesen ⟶
</a>
</div>
</div> </div>
</div> </div>
@endforeach @endforeach


<div class="col-12">
<br>
<br>
<br>
<br>
</div>



<a href="{{url('/neuigkeiten')}}" class="small text-center mb-5 mt-3 d-none">Ältere Nachrichten</a> <a href="{{url('/neuigkeiten')}}" class="small text-center mb-5 mt-3 d-none">Ältere Nachrichten</a>
</div> </div>
</div> </div>