Fix teaser and Home pages
This commit is contained in:
parent
01640fd461
commit
e854f7557c
2 changed files with 20 additions and 109 deletions
|
|
@ -51,12 +51,9 @@
|
|||
@endif
|
||||
</h3>
|
||||
</div>
|
||||
<div>
|
||||
<img class="img-fluid anti-rotate"
|
||||
src="{{ asset(resize(Arr::get($prizesGlobal, 1)->picture, 'trimlot2')) }}"
|
||||
title="{{ Arr::get($prizesGlobal, 1)->picture_title }}"
|
||||
alt="{{ Arr::get($prizesGlobal, 1)->picture_alt }}">
|
||||
</div>
|
||||
<img class="img-fluid anti-rotate" src="{{ asset(resize(Arr::get($prizesGlobal, 1)->picture, 'trimlot2')) }}"
|
||||
title="{{ Arr::get($prizesGlobal, 1)->picture_title }}"
|
||||
alt="{{ Arr::get($prizesGlobal, 1)->picture_alt }}">
|
||||
<div class="d-flex align-items-center justify-content-center flex-column flex-lg-row mt-3">
|
||||
<span class="text-primary fw-bold text-uppercase">{!! clean(nl2br(__("Ou des milliers\n de bons\n de réduction"))) !!}</span>
|
||||
<img class="img-fluid" src="{{ Vite::asset('resources/theme/mounted/assets/images/br-1-euro.png') }}"
|
||||
|
|
|
|||
|
|
@ -37,12 +37,16 @@
|
|||
class="bg-tertiary fs-3 rounded-pill fw-bold px-3 py-1 text-white">{{ optional(Arr::get($prizesGlobal, 0))->quantity }}</span>
|
||||
</div>
|
||||
<h3 class="text-tertiary fw-bold fs-3 text-uppercase lh-1">
|
||||
{!! clean(nl2br(__("Wonderbox \nLoisirs"))) !!}
|
||||
@if (intval(Arr::get($prizesGlobal, 0)->quantity) > 1)
|
||||
{{ Str::plural(Arr::get($prizesGlobal, 0)->label) }}
|
||||
@else
|
||||
{{ Arr::get($prizesGlobal, 0)->label }}
|
||||
@endif
|
||||
</h3>
|
||||
</div>
|
||||
<img class="img-fluid anti-rotate"
|
||||
src="{{ Vite::asset('resources/theme/mounted/assets/images/view-lot1.png') }}"
|
||||
title="{{ __('Wonderbox Loisir en famille') }}" alt="{{ __('Wonderbox Loisir en famille') }}">
|
||||
<img class="img-fluid anti-rotate" src="{{ asset(Arr::get($prizesGlobal, 0)->picture) }}"
|
||||
title="{{ Arr::get($prizesGlobal, 0)->picture_title }}"
|
||||
alt="{{ Arr::get($prizesGlobal, 0)->picture_alt }}">
|
||||
</div>
|
||||
@endif
|
||||
@if (Arr::has($prizesGlobal, 1))
|
||||
|
|
@ -53,14 +57,17 @@
|
|||
class="bg-tertiary fs-3 rounded-pill fw-bold px-3 py-1 text-white">{{ optional(Arr::get($prizesGlobal, 1))->quantity }}</span>
|
||||
</div>
|
||||
<h3 class="text-tertiary fw-bold fs-3 text-uppercase lh-1">
|
||||
{!! clean(nl2br(__("Wonderbox \nHappy Day"))) !!}
|
||||
@if (intval(Arr::get($prizesGlobal, 1)->quantity) > 1)
|
||||
{{ Str::plural(Arr::get($prizesGlobal, 1)->label) }}
|
||||
@else
|
||||
{{ Arr::get($prizesGlobal, 1)->label }}
|
||||
@endif
|
||||
</h3>
|
||||
</div>
|
||||
<div class="lot2--img">
|
||||
<img class="img-fluid anti-rotate"
|
||||
src="{{ Vite::asset('resources/theme/mounted/assets/images/view-lot2.png') }}"
|
||||
title="{{ __('Wonderbox Happy Day') }}" alt="{{ __('Wonderbox Happy Day') }}">
|
||||
</div>
|
||||
<img class="img-fluid anti-rotate"
|
||||
src="{{ asset(resize(Arr::get($prizesGlobal, 1)->picture, 'trimlot2')) }}"
|
||||
title="{{ Arr::get($prizesGlobal, 1)->picture_title }}"
|
||||
alt="{{ Arr::get($prizesGlobal, 1)->picture_alt }}">
|
||||
<div class="d-flex align-items-center justify-content-center flex-column flex-lg-row mt-3">
|
||||
<span class="text-primary fw-bold text-uppercase">{!! clean(nl2br(__("Ou des milliers\n de bons\n de réduction"))) !!}</span>
|
||||
<img class="img-fluid" src="{{ Vite::asset('resources/theme/mounted/assets/images/br-1-euro.png') }}"
|
||||
|
|
@ -72,7 +79,6 @@
|
|||
@endif
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
|
||||
@php
|
||||
$counterParts = explode(
|
||||
'#',
|
||||
|
|
@ -100,16 +106,6 @@
|
|||
</span>
|
||||
</h2>
|
||||
@endif
|
||||
{{-- 07
|
||||
|
||||
jours
|
||||
13
|
||||
|
||||
heures
|
||||
14
|
||||
|
||||
minutes --}}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -119,85 +115,3 @@
|
|||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
{{-- <div class="teaser floating grid">
|
||||
<div class="head-bloc"></div>
|
||||
<section class="floating-bloc container flex">
|
||||
<div class="floating--width flex">
|
||||
<div class="floating--title">
|
||||
@php
|
||||
setlocale(LC_TIME, 'fr_FR.utf8');
|
||||
\Carbon\Carbon::setLocale('fr');
|
||||
@endphp
|
||||
<p>Du {{ \Carbon\Carbon::parse($settingsGlobal->start_date)->formatLocalized('%d %B') }} au
|
||||
{{ \Carbon\Carbon::parse($settingsGlobal->end_date)->formatLocalized('%d %B') }}</p>
|
||||
|
||||
<h1 class="post-title flex">
|
||||
<div class="row flex">
|
||||
<img src="{{ Vite::asset('resources/theme/mounted/assets/images/photo-canoe.png') }}" alt="">
|
||||
</div>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="floating--txt flex">
|
||||
<h2 class="raleway post-subtitle">Jouez et tentez de gagner</h2>
|
||||
<div class="floating--gift flex">
|
||||
<div class="gift--col flex">
|
||||
<div class="gift--lot1 flex">
|
||||
<div class="nb-lot1 flex">
|
||||
<span>{{ $prizesGlobal[0]->quantity }}</span>
|
||||
</div>
|
||||
<h3 class="post-chapter">Wonderbox <br>Loisirs</h3>
|
||||
|
||||
</div>
|
||||
<div class="gift--img">
|
||||
<img src="{{ Vite::asset('resources/theme/mounted/assets/images/view-lot1.png') }}"
|
||||
alt="Grand jeu 100% gagnant">
|
||||
<div class="floating--sticker">
|
||||
<img src="{{ Vite::asset('resources/theme/mounted/assets/images/pastille.png') }}"
|
||||
alt="Grand jeu 100% gagnant">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="gift--col flex">
|
||||
<div class="gift--lot2 flex">
|
||||
<div class="nb-lot2 flex">
|
||||
<span>{{ $prizesGlobal[1]->quantity }}</span>
|
||||
</div>
|
||||
<h3 class="post-chapter">Wonderbox <br>Happy Day</h3>
|
||||
</div>
|
||||
<div class="lot2--img">
|
||||
<img src="{{ Vite::asset('resources/theme/mounted/assets/images/view-lot2.png') }}" alt="Wonderbox Happy Day">
|
||||
</div>
|
||||
<div class="gift--br">
|
||||
<p>Ou des milliers<br /> de bons<br />de réduction</p>
|
||||
<img src="{{ Vite::asset('resources/theme/mounted/assets/images/br-1-euro.png') }}" alt="Wonderbox Happy Day">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="text_teaser">
|
||||
<p>Votre jeu sera ouvert dans</p>
|
||||
<div class="compteur flex">
|
||||
<div class="jours">
|
||||
<div class="count"><span></span></div>
|
||||
<p>jours</p>
|
||||
</div>
|
||||
<div class="heures">
|
||||
<div class="count"><span></span></div>
|
||||
<p>heures</p>
|
||||
</div>
|
||||
<div class="minutes">
|
||||
<div class="count"><span></span></div>
|
||||
<p>minutes</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div> --}}
|
||||
|
||||
{{-- @push('scripts')
|
||||
<script>
|
||||
__TEASEREND = '{{ $settings->start_date }}';
|
||||
</script>
|
||||
@endpush --}}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue