diff options
Diffstat (limited to 'site')
| -rw-r--r-- | site/resources/views/feeds.blade.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/site/resources/views/feeds.blade.php b/site/resources/views/feeds.blade.php index b07e1ba..8a68b9c 100644 --- a/site/resources/views/feeds.blade.php +++ b/site/resources/views/feeds.blade.php @@ -7,7 +7,7 @@ RSS-Feeds @section('content') <div class="container"> <div class="jumbotron p-3 p-md-5 text-white rounded bg-dark"> - <div class="col-md-6 px-0"> + <div class="col-md-8 px-0"> <h1 class="display-4 font-italic">Angebote als RSS-Feeds</h1> <p class="lead my-3">Finde immer die günstigsten Angebote im Bereich Spirituosen, praktischerweise als RSS-Feed direkt aufs Handy.</p> <p class="lead mb-0"><a href="/" class="text-white font-weight-bold">Zurück zur Übersicht...</a></p> @@ -20,6 +20,9 @@ $count = 0; foreach( $data as $offer) { + // BUG: Logo is broken on smaller devices. + $width=""; + if ( !in_array(strtolower($offer->spirit_type), $views) ) { // card of misc offers $offer->url = "misc"; @@ -32,6 +35,11 @@ foreach( $data as $offer) { } $offer->url = $offer->url . "/feed/"; + if ( 5 == $count ) { + $width="width=270"; + } + + if ( $count % 2 == 0) { ?> <div class="row mb-2"> @@ -60,7 +68,7 @@ foreach( $data as $offer) { <a class="w-100 u" href="/{{ $offer->url }}" style="word-wrap: none;">{{ $offer->linktext }}</a> </div> </a> - <img data-href="/{{ $offer->url }}" class="card-img-right border-left-0 img-thumbnail d-none d-xs-none d-md-block float-right js-link-replacement" src="{{ $offer->image_url }}" alt="{{ $offer->name }}" title="{{ $offer->name }}"> + <img {{ $width }} data-href="/{{ $offer->url }}" class="card-img-right border-left-0 img-thumbnail d-none d-xs-none d-md-block float-right img-responsive js-link-replacement" src="{{ $offer->image_url }}" alt="{{ $offer->name }}" title="{{ $offer->name }}"> </div> </div> |
