limit results on home

master
Benjamin Völkl 2021-09-17 10:25:27 +02:00
parent 2193725086
commit 2c9e945dcc
3 changed files with 6 additions and 18 deletions

View File

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





View File

@ -102,15 +102,15 @@
<section class="mt-2"> <section class="mt-2">
<div class="row"> <div class="row">
<h2 id="news" class="mt-5 mb-4">Aktuelle <strong>Neuigkeiten</strong></h2> <h2 id="news" class="mt-5 mb-4">Aktuelle <strong>Neuigkeiten</strong></h2>
@foreach($nachrichten as $nach) @foreach($nachrichten->take(3) as $nach)
<div class="col-12 col-md-4" style="padding-bottom: 1rem;"> <div class="col-12 col-md-4 mb-4" >
<div class="card h-100" style="background-color: #f8f8f8;"> <div class="card h-100" style="background-color: #f8f8f8;">
@if ($nach->image) @if ($nach->image)
<img class="rounded-top img-fluid" src="{{ asset('uploads/' . $nach->image) }}"> <img class="rounded-top img-fluid" src="{{ asset('uploads/' . $nach->image) }}">
@else @else
<img class="rounded-top img-fluid" src="{{ asset('template/images/konradenhof-placeholder.jpg') }}"> <img class="rounded-top img-fluid" src="{{ asset('template/images/konradenhof-placeholder.jpg') }}">

@endif @endif

<div class="card-body"> <div class="card-body">
<div class="row"> <div class="row">


@ -208,7 +208,6 @@
</div> </div>


<div class="col-12 text-center"> <div class="col-12 text-center">
<br>
<a href="{{url('/produkte')}}" class="text-center small" >Mehr Produkte</a> <a href="{{url('/produkte')}}" class="text-center small" >Mehr Produkte</a>
<br> <br>
<br> <br>

View File

@ -17,15 +17,6 @@
</div> </div>













<section> <section>
<div class="row"> <div class="row">


@ -33,8 +24,8 @@
@foreach($nachrichten as $nach) @foreach($nachrichten as $nach)




<div class="col-12 col-md-4 pb-1"> <div class="col-12 col-md-4 pb-5">
<div class="card h-100" style="background-color: #f8f8f8;"> <div class="card h-100 shadow-sm" style="background-color: #f8f8f8;">
@if ($nach->image) @if ($nach->image)
<img class="rounded-top img-fluid" src="{{ asset('uploads/' . $nach->image) }}"> <img class="rounded-top img-fluid" src="{{ asset('uploads/' . $nach->image) }}">
@else @else
@ -44,8 +35,6 @@
<div class="card-body"> <div class="card-body">
<div class="row"> <div class="row">




<div class="col-12"> <div class="col-12">
<h5 class="card-title" style="margin-top: 20px;"> <h5 class="card-title" style="margin-top: 20px;">
<a href="{{ route_content($nach) }}" onclick="gtag('event', 'See Job', {'event_category' : 'Home', 'event_label' : '{{$nach->title}}'});"> <a href="{{ route_content($nach) }}" onclick="gtag('event', 'See Job', {'event_category' : 'Home', 'event_label' : '{{$nach->title}}'});">