card height-100

master
Benjamin Völkl 2021-09-16 17:25:12 +02:00
parent b6903f630f
commit efd09669f9
4 changed files with 35 additions and 30 deletions

View File

@ -1,4 +1,4 @@
<link rel="stylesheet" href="{{asset('template/css/bootstrap.min.css')}}" >
<link rel="stylesheet" href="{{asset('template/css/app.css?v=11')}}" >
<link rel="stylesheet" href="{{asset('template/css/app.css?v=12')}}" >



View File

@ -104,7 +104,7 @@
<h2 id="news" class="mt-5 mb-4">Aktuelle <strong>Neuigkeiten</strong></h2>
@foreach($nachrichten as $nach)
<div class="col-12 col-md-4" style="padding-bottom: 1rem;">
<div class="card" style="background-color: #f8f8f8;">
<div class="card h-100" style="background-color: #f8f8f8;">
@if ($nach->image)
<img class="rounded-top img-fluid" src="{{ asset('uploads/' . $nach->image) }}">
@else
@ -130,8 +130,10 @@
{!! isset($nach->additional_fields['1']) ? $nach->additional_fields['1'] : 'keine Angaben' !!}
</div>

<div class="col-12 col-lg-12 text-end ">
<br>

</div>
</div>
<div class="card-footer text-end">
<a class="btn btn-sm btn-ci" href="{{ route_content($nach) }}" onclick="gtag('event', 'See Job', {'event_category' : 'Home', 'event_label' : '{{$nach->title}}'});">
Mehr lesen
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-right" viewBox="0 0 16 16">
@ -141,8 +143,6 @@
</div>
</div>
</div>
</div>
</div>
@endforeach
<a href="{{url('/news')}}" class="small text-center">Ältere Nachrichten</a>
</div>

View File

@ -29,15 +29,12 @@
<section>
<div class="row">

<div class="col-lg-12">



@foreach($nachrichten as $nach)


<div class="col-12 col-md-4" style="padding-bottom: 1rem;">
<div class="card" style="background-color: #f8f8f8;">
<div class="col-12 col-md-4 pb-1">
<div class="card h-100" style="background-color: #f8f8f8;">
@if ($nach->image)
<img class="rounded-top img-fluid" src="{{ asset('uploads/' . $nach->image) }}">
@else
@ -64,8 +61,11 @@
{!! isset($nach->additional_fields['1']) ? $nach->additional_fields['1'] : 'keine Angaben' !!}
</div>

<div class="col-12 col-lg-12 text-end ">
<br>


</div>
</div>
<div class="card-footer text-end">
<a class="btn btn-sm btn-ci" href="{{ route_content($nach) }}" onclick="gtag('event', 'See Job', {'event_category' : 'Home', 'event_label' : '{{$nach->title}}'});">
Mehr lesen
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-right" viewBox="0 0 16 16">
@ -75,8 +75,6 @@
</div>
</div>
</div>
</div>
</div>


@endforeach
@ -85,11 +83,13 @@

{!! $nachrichten->render() !!}

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

</div>
</section>


View File

@ -735,3 +735,8 @@ a{
a:hover {
color: #4c3131;
}

.card-footer{
background-color: #f8f8f8;
border-top: none;
}