add images

master
Gustavo Luigi 2022-09-01 20:20:10 +02:00
parent 07338e08f5
commit f94ad0fd19
5 changed files with 23 additions and 15 deletions

View File

@ -16,7 +16,11 @@
<section>
<div class="row">
<div class="col-5">
<img src="https://picsum.photos/300/200" class="card-img-top img-fluid rounded border" alt="...">
@if(empty($content->image))
<img src="https://picsum.photos/300/200" class="card-img-top img-fluid rounded border" alt="...">
@else
<img src="{{$content->image}}" class="card-img-top img-fluid" alt="...">
@endif
<br>
<br>
<br>

View File

@ -15,7 +15,11 @@
<section>
<div class="row">
<div class="col-5">
<img src="https://picsum.photos/300/200" class="card-img-top img-fluid rounded border" alt="...">
@if(empty($content->image))
<img src="https://picsum.photos/300/200" class="card-img-top img-fluid rounded border" alt="...">
@else
<img src="{{$content->image}}" class="card-img-top img-fluid" alt="...">
@endif
<br>
<br>
<br>

View File

@ -15,7 +15,11 @@
<section>
<div class="row">
<div class="col-5">
<img src="https://picsum.photos/300/200" class="card-img-top img-fluid rounded border" alt="...">
@if(empty($content->image))
<img src="https://picsum.photos/300/200" class="card-img-top img-fluid rounded border" alt="...">
@else
<img src="{{$content->image}}" class="card-img-top img-fluid" alt="...">
@endif
<br>
<br>
<br>

View File

@ -20,16 +20,14 @@
<div class="col-12 col-md-6 mb-5">
<a href="{{route_content($content)}}" class="text-decoration-none">
<div class="card shadow-sm" style="background-color: #546c8a; color: white;">

@if(empty($content->image))
<img src="https://picsum.photos/200/100" class="card-img-top img-fluid" alt="...">

@else
<img src="{{$content->image}}" class="card-img-top img-fluid" alt="...">
@endif
<div class="card-body">

<h5 class="card-title">{{$content->title}}</h5>


</div>

</div>
</a>


View File

@ -20,16 +20,14 @@
<div class="col-12 col-md-6 mb-5">
<a href="{{route_content($content)}}" class="text-decoration-none">
<div class="card shadow-sm" style="background-color: #546c8a; color: white;">

@if(empty($content->image))
<img src="https://picsum.photos/200/100" class="card-img-top img-fluid" alt="...">

@else
<img src="{{$content->image}}" class="card-img-top img-fluid" alt="...">
@endif
<div class="card-body">

<h5 class="card-title">{{$content->title}}</h5>


</div>

</div>
</a>