v1.4.8o - Added new image.svg + Added new layout for Guides on APP
This commit is contained in:
@@ -12,6 +12,9 @@
|
||||
width: auto;
|
||||
heigt: auto;
|
||||
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
div.header {
|
||||
@@ -20,6 +23,11 @@
|
||||
padding: 8px;
|
||||
font-size: 10px;
|
||||
text-align: center;
|
||||
-webkit-box-flex: 0;
|
||||
-ms-flex: 0 0 40%;
|
||||
flex: 0 0 40%;
|
||||
max-width: 40%;
|
||||
border-radius: 10px 0px 0px 10px;
|
||||
}
|
||||
|
||||
div.container {
|
||||
@@ -43,6 +51,10 @@
|
||||
.select2-results__option, .select2-search__field {
|
||||
color: black;
|
||||
}
|
||||
|
||||
.justify-content-center {
|
||||
justify-content: center;
|
||||
}
|
||||
</style>
|
||||
<script src="{{ asset("/js/jquery-3.2.1.min.js") }}"></script>
|
||||
<link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-beta.1/dist/css/select2.min.css" rel="stylesheet" />
|
||||
@@ -71,16 +83,17 @@
|
||||
<div class="card">
|
||||
@if($guide->resource_id !== null)
|
||||
<div class="header" style="background-size: cover; background-position: center; background-image: url('{{ asset(\App\Resource::query()->where("id", "=", $guide->resource_id)->first()->filename) }}');">
|
||||
<h3 style="text-shadow: 2px 2px 2px #00788A;">{{ $guide->name}}</h3>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@else
|
||||
<div class="header">
|
||||
<h3>{{ $guide->name}}</h3>
|
||||
<div class="header d-flex justify-content-center">
|
||||
<img src="{{ asset('/images/icons/image.svg') }}" style="width: calc(100% - 20px)">
|
||||
</div>
|
||||
@endif
|
||||
<div class="container">
|
||||
@php $tags = [ '<p>', '<b>', '<em>', '<a>', '<u>', '<s>', '<sub>', '<ul>', '<li>', '<sup>', '<div>', '<blockquote>', '<ol>', '<strong>', '<br>', '<h1>', '<h2>', '<h3>', '<h4>', '<h5>', '<h6>', '<h7>', '<span>'] @endphp
|
||||
{!! \App\Helpers::closetags(substr(strip_tags($guide->guide_articles, $tags), 0, 300)) !!}
|
||||
<div class="row" style="justify-content: center;">
|
||||
<h4>{{ $guide->name}}</h4>
|
||||
</div>
|
||||
<div class="row" style="justify-content: center;">
|
||||
<a style="margin: 0; padding: 0; text-align: center; font-weight: 700;" class="sde-blue" href="{{route("guides.show", ["guide" => $guide->id ])}}">{{__('msg.læsmere')}}</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user