first experiments with image CDNs

master
Benjamin Völkl 2020-09-30 19:22:30 +02:00
parent e448dbaad8
commit 347dd0bc49
1 changed files with 20 additions and 2 deletions

View File

@ -39,11 +39,29 @@

@if (\Setting::get('image') and !isset($categoryModel) or (isset($categoryModel) and !$categoryModel->image))
<style>

.jumbotron-ln {
background-image: url({{ asset('uploads/' . \Setting::get('image')) }});
background-image: url('https://ik.imagekit.io/areya/tr:w-576,h-500,fo-auto/home-image_cbMyx3ISt.jpg');


}

@media (min-width: 576px) {
.jumbotron-ln {
background-image: url('https://ik.imagekit.io/areya/tr:w-1000,h-500,fo-auto/home-image_cbMyx3ISt.jpg');


}
}


@media (min-width: 1000px) {
.jumbotron-ln {
background-image: url('https://ik.imagekit.io/areya/tr:h500,fo-face/home-image_cbMyx3ISt.jpg');


}
}
</style>
@endif

@ -191,7 +209,7 @@
</div>

@foreach($nachrichten as $nach)
<div class="col-12 col-md-4">
<div class="col-12 col-md-6 col-md-4">