Gustavo Luigi 2023-07-27 13:11:32 -03:00
parent 0bd1da8efa
commit a0d43eb8db
3 changed files with 3 additions and 7 deletions

View File

@ -57,7 +57,7 @@
@foreach($contents as $content)
<div class="col-12 col-md-6">
<div class="card shadow-md mb-4 rounded-top" >
<img src="{{ $content->image() }}" class="card-img-top img-fluid">
<x-img src="{{$content->image()}}" class="card-img-top img-fluid" style="aspect-ratio: 1/1; object-fit:contain; object-position:center;"/>
<div class="card-body">
<h2 class="h5">{{$content->title}}</h2>
<span class="text-muted mb-3">{{date("d.m.Y", strtotime($content->created_at))}}</span>
@ -88,13 +88,10 @@
<div class="card shadow-md mb-4 rounded-top" >
<div class="card-body">
<h2 class="h5">{{$content->title}}</h2>

<div>
<svg style="fill: currentColor; width: 12px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M400 64h-48V8c0-4.4-3.6-8-8-8h-16c-4.4 0-8 3.6-8 8v56H128V8c0-4.4-3.6-8-8-8h-16c-4.4 0-8 3.6-8 8v56H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zm16 400c0 8.8-7.2 16-16 16H48c-8.8 0-16-7.2-16-16V192h384v272zm0-304H32v-48c0-8.8 7.2-16 16-16h352c8.8 0 16 7.2 16 16v48zM112 384h96c8.8 0 16-7.2 16-16v-96c0-8.8-7.2-16-16-16h-96c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16zm16-96h64v64h-64v-64z"/></svg>

{{date("d.m.Y", strtotime($content->datum))}}
</div>

<div class="text-end">
<a href="{{$content->path}}" class="btn btn-primary">Mehr Info</a>
</div>

View File

@ -16,7 +16,7 @@
@foreach($contents as $content)
<div class="col-12 col-md-4">
<div class="card shadow-md mb-4 rounded-top" >
<img src="{{ $content->image() }}" class="card-img-top">
<x-img src="{{$content->image()}}" class="card-img-top" style="aspect-ratio: 1/1; object-fit:contain; object-position:center;"/>
<div class="card-body">
<h2 class="h5">{{$content->title}}</h2>
<span class="text-muted mb-3">{{date("d.m.Y", strtotime($content->created_at))}}</span>

View File

@ -14,10 +14,9 @@
</div>
<div class="row mb-5">
@foreach($contents as $content)

<div class="col-6 col-md-4 col-lg-3 mb-4">
<div class="card shadow-md rounded-top h-100" >
<x-img src="{{ $content->image() }}" class="card-img-top border" style="aspect-ratio:1/1; object-fit:contain; object-position:center;">
<x-img src="{{$content->image()}}" class="card-img-top border bg-white" style="aspect-ratio:1/1; object-fit:contain; object-position:center;"/>
<div class="card-body">
<h2 class="h5">{{$content->title}}</h2>
<div class="text-end">