ldc-groupe/resources/views/front/pages/our-brands.blade.php
2026-01-15 17:14:09 +01:00

154 lines
5.5 KiB
PHP

@extends('front.layouts.layout')
@section('title', $dynamicPageModel->content['string_title_seo'])
@section('description', $dynamicPageModel->content['string_description_seo'])
@section('content')
{{-- L'ENSEMBLE DE NOS MARQUES --}}
<div class="textblock fw fw-container no-bottom-padding">
@foreach ($dynamicPageModel->content['list_discover_our_brands'] as $list)
<div class="textblock__wrapper wrapper">
<x-front.sections.title
title="{{ $list['string_discover_our_brands_title'] }}"
subtitle="{!! $list['string_discover_our_brands_subtitle'] !!}" />
<div class="textblock__container textblock__container_swap textblock__container_row">
<div class="textblock__info textblock__block">
<h3 class="textblock__info-title subtitle">{{ $list['string_discover_our_brands_content_title'] }}</h3>
<div class="textblock__info-description description">
{!! $list['wysiwyg_discover_our_brands_content'] !!}
</div>
</div>
</div>
</div>
@endforeach
</div>
{{-- NUAGE DE MOTS --}}
<div class="wcloud fw fw-container">
<div id="wcloud-container" class="wcloud__wrapper wrapper">
<div class="image-border-wrap">
<canvas id="wcloud-canvas" width="1310" height="710" style=""></canvas>
<x-front.borders :borders="[
'desktop' => [
'left' => true,
'right' => true,
'top' => true,
'bottom' => true,
],
'mobile' => [
'left' => false,
'right' => false,
'top' => false,
'bottom' => true,
],
]" />
</div>
</div>
</div>
<ul class="weighted" id="weightTags" style="position: absolute; left: -9999px">
@php
$sizes = ['xsmall', 'small', 'medium', 'large', 'xlarge', 'huge'];
@endphp
@foreach ($dynamicPageModel->content['list_discover_our_brands'][0]['list_word_cloud'] as $word)
<li>
<a class="tag-link_nolink {{ $sizes[array_rand($sizes)] }}" onclick="return false" style="cursor: default;" title="{{ $word['string_title'] }}">{{ $word['string_title'] }}</a>
</li>
@endforeach
</ul>
{{-- NOS GRANDES MARQUES NATIONALES ET INTERNATIONALES --}}
<x-front.pages.our-brands.our-big-brands :brands="$dynamicPageModel->content['list_our_big_brands']" />
<div class="learn-more fw fw-container">
<div class="learn-more__wrapper wrapper">
<x-front.cta title="{{ $dynamicPageModel->content['list_find_out_more'][0]['string_text'] }}" url="{{ \App\Models\DynamicPage::getAccessModel($dynamicPageModel->content['list_find_out_more'][0]['model_link']) }}"
class="learn-more__btn" buttonIcon="btn__icon_arrow-right" />
</div>
</div>
@endsection
@push('scripts')
<script nonce="{{ $nonce ?? '' }}">
document.addEventListener("DOMContentLoaded", function() {
window.onload = function() {
TagCanvas.activeCursor = "pointer";
TagCanvas.shuffleTags = true;
TagCanvas.maxSpeed = 0.02;
TagCanvas.textColour = '#fff';
TagCanvas.textHeight = 55;
TagCanvas.weightSize = 1.7;
TagCanvas.textWeight = 900;
TagCanvas.outlineColour = '#22222200';
TagCanvas.padding = 8;
TagCanvas.minBrightness = 0.1;
TagCanvas.depth = 0.5;
TagCanvas.decel = 0.9;
TagCanvas.reverse = true;
TagCanvas.wheelZoom = false;
TagCanvas.fadeIn = 800;
TagCanvas.stretchX = 1.7;
try {
TagCanvas.Start('wcloud-canvas', 'weightTags', {
textFont: null,
weight: true
});
} catch (e) {}
};
$(window).load(function() {
$(document).on('click', '.tag-link_nolink', function() {
return false;
});
});
});
</script>
@endpush
@push('style')
<style>
.weighted li a {
display: block;
padding-right: 10px;
}
.huge {
line-height: 2;
font-family: Barlow-black, sans-serif;
font-size: 45px;
font-weight: 900;
}
.xlarge {
line-height: 2;
font-family: 'Satisfy', sans-serif;
font-size: 35px;
text-transform: lowercase;
}
.large {
line-height: 2;
font-family: 'Barlow', sans-serif;
font-size: 30px
}
.medium {
line-height: 2;
font-family: Satisfy, sans-serif;
font-weight: 700;
font-size: 25px;
text-transform: lowercase;
}
.small {
line-height: 2;
font-family: Barlow, sans-serif;
font-size: 20px
}
.xsmall {
line-height: 2;
font-family: Satisfy, sans-serif;
font-size: 15px;
text-transform: lowercase;
}
</style>
@endpush