add commitment page
|
|
@ -28,4 +28,23 @@ enum TypeEnum: int
|
|||
self::volena->name => 'Voléna',
|
||||
self::hire->name => 'On Embauche',
|
||||
];
|
||||
|
||||
private const COLORS = [
|
||||
self::breeding->name => 'tertiary',
|
||||
self::better_life->name => 'quad',
|
||||
self::respect_earth->name => 'quint',
|
||||
self::feed->name => 'sixt',
|
||||
self::volena->name => 'primary',
|
||||
self::hire->name => 'primary',
|
||||
];
|
||||
|
||||
/**
|
||||
* Get color name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function color(): string
|
||||
{
|
||||
return self::COLORS[$this->name];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
namespace App\Http\Controllers\Fo;
|
||||
|
||||
use App\Enums\Listen\ObjectEnum;
|
||||
use App\Enums\Sections\PageSectionEnum;
|
||||
use App\Enums\Slides\SliderTypeEnum;
|
||||
use App\Enums\StaticPageType;
|
||||
use App\Enums\Testimonials\TypeEnum;
|
||||
|
|
@ -61,14 +62,27 @@ class StaticPageController extends Controller
|
|||
TypeEnum::respect_earth->value,
|
||||
TypeEnum::feed->value,
|
||||
TypeEnum::volena->value,
|
||||
])
|
||||
->get();
|
||||
])->get();
|
||||
|
||||
/** Get all sections */
|
||||
$ambitionSection = $sectionModels->where('section', PageSectionEnum::commit_ambition)->first();
|
||||
$breedingSection = $sectionModels->where('section', PageSectionEnum::commit_breeding)->first();
|
||||
$lifeSection = $sectionModels->where('section', PageSectionEnum::commit_living)->first();
|
||||
$earthSection = $sectionModels->where('section', PageSectionEnum::commit_respect_earth)->first();
|
||||
$feedSection = $sectionModels->where('section', PageSectionEnum::commit_feed)->first();
|
||||
$testimonialsSection = $sectionModels->where('section', PageSectionEnum::commit_commitments)->first();
|
||||
|
||||
return view('fo.pages.commitments', compact(
|
||||
'staticPageModel',
|
||||
'sectionModels',
|
||||
'slideModels',
|
||||
'testimonialModels'
|
||||
'testimonialModels',
|
||||
'ambitionSection',
|
||||
'breedingSection',
|
||||
'lifeSection',
|
||||
'earthSection',
|
||||
'feedSection',
|
||||
'testimonialsSection',
|
||||
));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -202,7 +202,11 @@ class Section extends Model
|
|||
*/
|
||||
public static function getHireGrowBloc(array $data, string $title): array
|
||||
{
|
||||
return self::emptyH3Bloc($data, PageSectionEnum::hire_grow->label(), $title);
|
||||
return self::emptyStringBloc(
|
||||
$data,
|
||||
sprintf("Titre h3 de la section %s", PageSectionEnum::hire_grow->label()),
|
||||
$title
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -233,24 +237,20 @@ class Section extends Model
|
|||
/**
|
||||
* Get MiniCrud bloc for commit_breeding section.
|
||||
*
|
||||
* @param array $data
|
||||
* @param string $img
|
||||
* @param string $imgAlt
|
||||
* @param string $imgTitle
|
||||
* @param integer $width
|
||||
* @param integer $height
|
||||
* @param array $data
|
||||
* @param string $content
|
||||
* @param string $string
|
||||
* @return array
|
||||
*/
|
||||
public static function getCommitBreedingBloc(
|
||||
array $data,
|
||||
string $img,
|
||||
string $imgAlt,
|
||||
string $imgTitle,
|
||||
int $width,
|
||||
int $height
|
||||
string $content,
|
||||
string $string
|
||||
): array {
|
||||
$data = self::emptyWysiwygBloc($data, 'images', $content, \App\Enums\CkEditorConfigName::advanced);
|
||||
$data = self::emptyButtonBooleanBloc($data, 'On Témoigne - engagements');
|
||||
$data = self::emptyPictureBloc($data, $img, $imgAlt, $imgTitle, $width, $height, true);
|
||||
$data = self::emptyKeyNumberBloc($data, 'nombre');
|
||||
$data = self::emptyWysiwygBloc($data, "text accompagnant le nombre", $string);
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
|
@ -260,13 +260,18 @@ class Section extends Model
|
|||
*
|
||||
* @param array $data
|
||||
* @param string $content
|
||||
* @param string $string
|
||||
* @return array
|
||||
*/
|
||||
public static function getCommitLivingBloc(array $data, string $content): array
|
||||
public static function getCommitLivingBloc(array $data, string $content, string $string): array
|
||||
{
|
||||
$data = self::emptyButtonBooleanBloc($data, 'On Témoigne - engagements');
|
||||
$data = self::emptyWysiwygBloc($data, 'numéro 2', $content, \App\Enums\CkEditorConfigName::advanced);
|
||||
$data = self::emptyButtonBooleanBloc($data, 'On Bouge');
|
||||
$data = self::emptyKeyNumberBloc($data, 'nombre n°1');
|
||||
$data = self::emptyWysiwygBloc($data, "text accompagnant le nombre n°1", $string);
|
||||
$data = self::emptyKeyNumberBloc($data, 'nombre n°2');
|
||||
$data = self::emptyWysiwygBloc($data, "text accompagnant le nombre n°2", $string);
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
|
@ -278,9 +283,21 @@ class Section extends Model
|
|||
* @param string $content
|
||||
* @return array
|
||||
*/
|
||||
public static function getCommitRespectEarthBloc(array $data, string $content): array
|
||||
{
|
||||
public static function getCommitRespectEarthBloc(
|
||||
array $data,
|
||||
string $content,
|
||||
string $img,
|
||||
string $imgAlt,
|
||||
string $imgTitle,
|
||||
int $width,
|
||||
int $height
|
||||
): array {
|
||||
$data = self::emptyKeyNumberBloc($data, 'nombre n°1');
|
||||
$data = self::emptyWysiwygBloc($data, "text accompagnant le nombre n°1", $content);
|
||||
$data = self::emptyKeyNumberBloc($data, 'nombre n°2');
|
||||
$data = self::emptyWysiwygBloc($data, "text accompagnant le nombre n°2", $content);
|
||||
$data = self::emptyButtonBooleanBloc($data, 'On Témoigne - engagements');
|
||||
$data = self::emptyPictureBloc($data, $img, $imgAlt, $imgTitle, $width, $height);
|
||||
$data = self::emptyWysiwygBloc($data, 'numéro 2', $content, \App\Enums\CkEditorConfigName::advanced);
|
||||
|
||||
return $data;
|
||||
|
|
@ -296,6 +313,10 @@ class Section extends Model
|
|||
*/
|
||||
public static function getCommitFeedBloc(array $data, string $content, string $secondContent): array
|
||||
{
|
||||
$data = self::emptyKeyNumberBloc($data, 'nombre n°1');
|
||||
$data = self::emptyWysiwygBloc($data, "text accompagnant le nombre n°1", $content);
|
||||
$data = self::emptyKeyNumberBloc($data, 'nombre n°2');
|
||||
$data = self::emptyWysiwygBloc($data, "text accompagnant le nombre n°2", $content);
|
||||
$data = self::emptyButtonBooleanBloc($data, 'On Témoigne - engagements');
|
||||
$data = self::emptyWysiwygBloc($data, 'numéro 2', $content, \App\Enums\CkEditorConfigName::advanced);
|
||||
$data = self::emptyButtonBooleanBloc($data, 'On Produit');
|
||||
|
|
@ -314,8 +335,8 @@ class Section extends Model
|
|||
*/
|
||||
public static function getCommitCommitmentsBloc(array $data, string $firstTitle, string $secondTitle): array
|
||||
{
|
||||
$data = self::emptyH3Bloc($data, 'numéro 1', $firstTitle);
|
||||
$data = self::emptyH3Bloc($data, 'numéro 2', $secondTitle);
|
||||
$data = self::emptyStringBloc($data, "Titre h3 de la section numéro 1", $firstTitle);
|
||||
$data = self::emptyStringBloc($data, "Titre h3 de la section numéro 2", $secondTitle);
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
|
@ -370,14 +391,14 @@ class Section extends Model
|
|||
bool $required = false,
|
||||
) {
|
||||
$data["bloc_image"] = [
|
||||
'label' => "Image",
|
||||
'label' => "Image",
|
||||
'dimensions' => ['width' => $width, 'height' => $height],
|
||||
'inputType' => InputType::image->value,
|
||||
'alt' => $imgAlt,
|
||||
'title' => $imgTitle,
|
||||
'value' => $img,
|
||||
'validate' => $required ? 'required' : 'nullable',
|
||||
'required' => $required
|
||||
'inputType' => InputType::image->value,
|
||||
'alt' => $imgAlt,
|
||||
'title' => $imgTitle,
|
||||
'value' => $img,
|
||||
'validate' => $required ? 'required' : 'nullable',
|
||||
'required' => $required
|
||||
];
|
||||
|
||||
return $data;
|
||||
|
|
@ -397,15 +418,15 @@ class Section extends Model
|
|||
bool $required = false,
|
||||
) {
|
||||
$data["bloc_image_link"] = [
|
||||
'label' => "URL à ouvrir",
|
||||
'label' => "URL à ouvrir",
|
||||
'inputType' => InputType::url->value,
|
||||
'value' => $url,
|
||||
'validate' => 'url|' . ($required ? 'required' : 'nullable'),
|
||||
'required' => $required
|
||||
'value' => $url,
|
||||
'validate' => 'url|' . ($required ? 'required' : 'nullable'),
|
||||
'required' => $required
|
||||
];
|
||||
|
||||
$data["bloc_image_link_new_tab"] = [
|
||||
'label' => "Ouvrir dans un nouvel onglet",
|
||||
'label' => "Ouvrir dans un nouvel onglet",
|
||||
'inputType' => InputType::boolean->value,
|
||||
];
|
||||
|
||||
|
|
@ -431,11 +452,11 @@ class Section extends Model
|
|||
$snakeCaseName = Str::of($name)->snake()->ascii()->remove(['\'', '-']);
|
||||
|
||||
$data['bloc_key_' . $snakeCaseName] = [
|
||||
'label' => "Chiffre clé {$name}",
|
||||
'label' => "Chiffre clé {$name}",
|
||||
'inputType' => InputType::number->value,
|
||||
'value' => $value,
|
||||
'validate' => $required ? 'required' : 'nullable',
|
||||
'required' => $required
|
||||
'value' => $value,
|
||||
'validate' => $required ? 'required' : 'nullable',
|
||||
'required' => $required
|
||||
];
|
||||
|
||||
return $data;
|
||||
|
|
@ -455,8 +476,9 @@ class Section extends Model
|
|||
$snakeCaseName = Str::of($name)->snake()->ascii()->remove(['\'', '-']);
|
||||
|
||||
$data["bloc_button_{$snakeCaseName}"] = [
|
||||
'label' => "Afficher le bouton {$name} ?",
|
||||
'label' => "Afficher le bouton {$name} ?",
|
||||
'inputType' => InputType::boolean->value,
|
||||
'value' => false
|
||||
];
|
||||
|
||||
return $data;
|
||||
|
|
@ -471,7 +493,7 @@ class Section extends Model
|
|||
* @param boolean $required
|
||||
* @return array
|
||||
*/
|
||||
private static function emptyH3Bloc(
|
||||
private static function emptyStringBloc(
|
||||
array $data,
|
||||
string $name,
|
||||
string $value = '',
|
||||
|
|
@ -479,12 +501,12 @@ class Section extends Model
|
|||
) {
|
||||
$snakeCaseName = Str::of($name)->snake()->ascii()->remove(['\'', '-']);
|
||||
|
||||
$data["bloc_h3_{$snakeCaseName}"] = [
|
||||
'label' => "Titre h3 de la section {$name}",
|
||||
$data["bloc_string_{$snakeCaseName}"] = [
|
||||
'label' => $name,
|
||||
'inputType' => InputType::string->value,
|
||||
'validate' => 'max:255|' . ($required ? 'required' : 'nullable'),
|
||||
'value' => $value,
|
||||
'required' => $required
|
||||
'validate' => 'max:255|' . ($required ? 'required' : 'nullable'),
|
||||
'value' => $value,
|
||||
'required' => $required
|
||||
];
|
||||
|
||||
return $data;
|
||||
|
|
@ -510,12 +532,12 @@ class Section extends Model
|
|||
$snakeCaseName = Str::of($name)->snake()->ascii()->remove(['\'', '-']);
|
||||
|
||||
$data["bloc_{$snakeCaseName}_content"] = [
|
||||
'label' => "Contenu de la section {$name}",
|
||||
'label' => "Contenu de la section {$name}",
|
||||
'inputType' => InputType::text->value,
|
||||
'validate' => $required ? 'required' : 'nullable',
|
||||
'value' => $value,
|
||||
'required' => $required,
|
||||
'config' => $config->name
|
||||
'validate' => $required ? 'required' : 'nullable',
|
||||
'value' => $value,
|
||||
'required' => $required,
|
||||
'config' => $config->name
|
||||
];
|
||||
|
||||
return $data;
|
||||
|
|
|
|||
|
|
@ -220,16 +220,8 @@ class SectionSeeder extends Seeder
|
|||
{
|
||||
return $section->getCommitBreedingBloc(
|
||||
[],
|
||||
FileStorageHelper::storeFile(
|
||||
new Section(),
|
||||
new \SplFileInfo(\resource_path(
|
||||
'../database/factories/assets/sections/default-picture-100x100.png'
|
||||
))
|
||||
),
|
||||
fake()->sentence(),
|
||||
fake()->sentence(),
|
||||
100,
|
||||
100,
|
||||
\clean(\fake()->randomHtml()),
|
||||
fake()->sentence()
|
||||
);
|
||||
}
|
||||
|
||||
|
|
@ -243,7 +235,8 @@ class SectionSeeder extends Seeder
|
|||
{
|
||||
return $section->getCommitLivingBloc(
|
||||
[],
|
||||
\clean(\fake()->randomHtml())
|
||||
\clean(\fake()->randomHtml()),
|
||||
fake()->sentence()
|
||||
);
|
||||
}
|
||||
|
||||
|
|
@ -257,7 +250,17 @@ class SectionSeeder extends Seeder
|
|||
{
|
||||
return $section->getCommitRespectEarthBloc(
|
||||
[],
|
||||
\clean(\fake()->randomHtml())
|
||||
\clean(\fake()->randomHtml()),
|
||||
FileStorageHelper::storeFile(
|
||||
new Section(),
|
||||
new \SplFileInfo(\resource_path(
|
||||
'../database/factories/assets/sections/default-picture-100x100.png'
|
||||
))
|
||||
),
|
||||
fake()->sentence(),
|
||||
fake()->sentence(),
|
||||
100,
|
||||
100,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
BIN
resources/assets/images/commitments/breeding.png
Normal file
|
After Width: | Height: | Size: 5.5 KiB |
BIN
resources/assets/images/commitments/earth.png
Normal file
|
After Width: | Height: | Size: 5.9 KiB |
BIN
resources/assets/images/commitments/feed.png
Normal file
|
After Width: | Height: | Size: 6.6 KiB |
BIN
resources/assets/images/commitments/life.png
Normal file
|
After Width: | Height: | Size: 6.1 KiB |
4
resources/assets/images/commitments/notch.svg
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<svg width="18" height="33" viewBox="0 0 18 33" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M0.250016 29.2426L0.250021 3.75099C1.02858 6.15007 2.67906 8.21778 4.93754 9.50063L14.44 14.8982C15.6127 15.5643 15.6229 17.2507 14.4583 17.9309L4.83021 23.5548C2.62535 24.8427 1.01576 26.883 0.250016 29.2426Z" fill="white" stroke="#23628A" stroke-width="0.5"/>
|
||||
<path d="M0 4.00002L1 6.00005V27L0 29V4.00002Z" fill="white"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 437 B |
|
|
@ -0,0 +1,3 @@
|
|||
<svg width="258" height="10" viewBox="0 0 258 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M0.791504 2.35171C86.2367 6.5232 171.705 6.40602 257.033 0.00817871C172.338 12.8742 85.7211 12.9445 0.791504 2.35171Z" fill="#23628A"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 250 B |
3
resources/assets/images/commitments/transition-blue.svg
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<svg width="1512" height="121" viewBox="0 0 1512 121" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M1512 0.633163C1033.5 169.266 481 152.766 0.00012207 0.633194L1512 0.633163Z" fill="#23628A"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 213 B |
|
|
@ -1,6 +1,25 @@
|
|||
@use "sass:color";
|
||||
@use 'sass:map';
|
||||
|
||||
$color-secondary-light: color.adjust($color-secondary, $lightness: 46%);
|
||||
$color-primary-light: color.adjust($color-primary, $lightness: 65%);
|
||||
$color-secondary-light: color.adjust($color-secondary, $lightness: 45%);
|
||||
$color-tertiary-light: color.adjust($color-tertiary, $lightness: 50%);
|
||||
$color-quad-light: color.adjust($color-quad, $lightness: 20%);
|
||||
$color-quint-light: color.adjust($color-quint, $lightness: 40%);
|
||||
$color-sixt-light: color.adjust($color-sixt, $lightness: 30%);
|
||||
$light-colors: (
|
||||
"primary-light": $color-primary-light,
|
||||
"secondary-light": $color-secondary-light,
|
||||
"tertiary-light": $color-tertiary-light,
|
||||
"quad-light": $color-quad-light,
|
||||
"quint-light": $color-quint-light,
|
||||
"sixt-light": $color-sixt-light,
|
||||
);
|
||||
$theme-colors: map.merge($theme-colors, $light-colors);
|
||||
|
||||
.text-inherit {
|
||||
text-transform: inherit;
|
||||
}
|
||||
|
||||
.video-frame {
|
||||
.video-thumbnail {
|
||||
|
|
@ -16,11 +35,6 @@ $color-secondary-light: color.adjust($color-secondary, $lightness: 46%);
|
|||
}
|
||||
}
|
||||
|
||||
// Mask to add a transparent effect on the right side.
|
||||
.mask-white {
|
||||
mask: linear-gradient(-90deg, #fff6, #fff 30%);
|
||||
}
|
||||
|
||||
// Rotate arrow svg (base is to the right)
|
||||
.arrow-left {
|
||||
transform: rotate(180deg);
|
||||
|
|
@ -34,42 +48,9 @@ $color-secondary-light: color.adjust($color-secondary, $lightness: 46%);
|
|||
transform: rotate(-90deg);
|
||||
}
|
||||
|
||||
// * Top curve for primary sections
|
||||
.border-top-curved-primary {
|
||||
padding-top: 6rem;
|
||||
border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 99' fill='none'%3E%3Cpath d='M0.5 98.5L0.499996 0.678555C124.136 38.9283 266.621 33.2224 389.5 0.650116L389.5 98.5L0.5 298.5Z' fill='#{urlencodecolor($color-primary)}' stroke='#{urlencodecolor($color-primary)}'/%3E%3C/svg%3E");
|
||||
border-image-outset: 1;
|
||||
border-image-repeat: inherit;
|
||||
border-image-slice: 85 0;
|
||||
border-image-width: 6rem 0 0 0;
|
||||
}
|
||||
|
||||
// * Top curve for white sections when the upper section is primary
|
||||
.border-top-curved-white {
|
||||
padding-top: 6rem;
|
||||
border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 99' fill='#{urlencodecolor($color-primary)}'%3E%3Crect width='100%25' height='100%25'/%3E%3Cpath d='M0.5 98.5L0.499996 0.678555C124.136 38.9283 266.621 33.2224 389.5 0.650116L389.5 98.5L0.5 298.5Z' fill='#{urlencodecolor($color-white)}' stroke='#{urlencodecolor($color-white)}'/%3E%3C/svg%3E"); border-image-outset: 1;
|
||||
border-image-repeat: inherit;
|
||||
border-image-slice: 85 0;
|
||||
border-image-width: 6rem 0 0 0;
|
||||
}
|
||||
|
||||
// * Top curve for secondary-light sections
|
||||
.border-top-curved-secondary-light {
|
||||
padding-top: 6rem;
|
||||
border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 99' fill='none'%3E%3Cpath d='M0.5 98.5L0.499996 0.678555C124.136 38.9283 266.621 33.2224 389.5 0.650116L389.5 98.5L0.5 298.5Z' fill='#{urlencodecolor($color-secondary-light)}' stroke='#{urlencodecolor($color-secondary-light)}'/%3E%3C/svg%3E");
|
||||
border-image-outset: 1;
|
||||
border-image-repeat: inherit;
|
||||
border-image-slice: 85 0;
|
||||
border-image-width: 6rem 0 0 0;
|
||||
}
|
||||
|
||||
// * Top curve for white sections when the upper section is secondary-light
|
||||
.border-top-curved-white-upper-secondary-light {
|
||||
padding-top: 6rem;
|
||||
border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 99' fill='#{urlencodecolor($color-secondary-light)}'%3E%3Crect width='100%25' height='100%25'/%3E%3Cpath d='M0.5 98.5L0.499996 0.678555C124.136 38.9283 266.621 33.2224 389.5 0.650116L389.5 98.5L0.5 298.5Z' fill='#{urlencodecolor($color-white)}' stroke='#{urlencodecolor($color-white)}'/%3E%3C/svg%3E"); border-image-outset: 1;
|
||||
border-image-repeat: inherit;
|
||||
border-image-slice: 85 0;
|
||||
border-image-width: 6rem 0 0 0;
|
||||
.key-number {
|
||||
width: 12rem;
|
||||
height: 12rem;
|
||||
}
|
||||
|
||||
// Map on all colors
|
||||
|
|
@ -83,50 +64,96 @@ $color-secondary-light: color.adjust($color-secondary, $lightness: 46%);
|
|||
}
|
||||
|
||||
// Text bubbles with the spike at the bottom side
|
||||
.text-bubble-top-#{$idx} {
|
||||
&::before {
|
||||
@include text-bubble-top($color);
|
||||
.text-bubble-top-#{$idx}::before,
|
||||
.text-bubble-left-#{$idx}::before,
|
||||
.text-bubble-right-#{$idx}::before {
|
||||
@include text-bubble-top($color);
|
||||
|
||||
position: absolute;
|
||||
z-index: -1;
|
||||
left: 50%;
|
||||
width: 100%;
|
||||
height: 12rem;
|
||||
background-size: 100% 100%;
|
||||
content: " ";
|
||||
transform: translateX(-50%);
|
||||
position: absolute;
|
||||
z-index: 0;
|
||||
left: 50%;
|
||||
width: 12rem;
|
||||
height: 12rem;
|
||||
background-size: 100% 100%;
|
||||
content: " ";
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
.text-bubble-left-#{$idx}::before {
|
||||
@include media-breakpoint-up(md) {
|
||||
@include text-bubble-left($color);
|
||||
}
|
||||
}
|
||||
|
||||
.text-bubble-right-#{$idx}::before {
|
||||
@include media-breakpoint-up(md) {
|
||||
@include text-bubble-right($color);
|
||||
}
|
||||
}
|
||||
|
||||
.plus-corner-#{$idx} {
|
||||
&::before {
|
||||
position: absolute;
|
||||
left: 1rem;
|
||||
content: "+";
|
||||
}
|
||||
|
||||
right: -1.25rem;
|
||||
bottom: -1.5rem;
|
||||
width: 4rem;
|
||||
height: 4rem;
|
||||
border-radius: 5rem;
|
||||
right: 0.6rem;
|
||||
bottom: 0.2rem;
|
||||
width: 5rem;
|
||||
height: 5rem;
|
||||
border-radius: 0.4rem;
|
||||
background-color: $color;
|
||||
|
||||
/* stylelint-disable-next-line declaration-property-value-no-unknown */
|
||||
clip-path: xywh(0 -5% 65% 75% round 15% 0);
|
||||
/* stylelint-disable-next-line property-no-vendor-prefix, declaration-property-value-no-unknown */
|
||||
-webkit-clip-path: xywh(0 -5% 65% 75% round 15% 0);
|
||||
clip-path: ellipse(50% 50% at 100% 100%);
|
||||
color: #fff;
|
||||
font-size: 2.5rem;
|
||||
line-height: 2.5rem;
|
||||
|
||||
&::before {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: .4rem;
|
||||
content: "+";
|
||||
}
|
||||
}
|
||||
|
||||
// * Top curves
|
||||
.border-top-curved-#{$idx} {
|
||||
border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 99' fill='none'%3E%3Cpath d='M0.5 98.5L0.499996 0.678555C124.136 38.9283 266.621 33.2224 389.5 0.650116L389.5 98.5L0.5 298.5Z' fill='#{urlencodecolor($color)}' stroke='#{urlencodecolor($color)}'/%3E%3C/svg%3E");
|
||||
|
||||
@include border-image-base;
|
||||
}
|
||||
|
||||
.border-top-curved-upper-#{$idx} {
|
||||
border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 99' fill='#{urlencodecolor($color)}'%3E%3Crect width='100%25' height='100%25'/%3E%3Cpath d='M0.5 98.5L0.499996 0.678555C124.136 38.9283 266.621 33.2224 389.5 0.650116L389.5 98.5L0.5 298.5Z' fill='#{urlencodecolor($color-white)}' stroke='#{urlencodecolor($color-white)}'/%3E%3C/svg%3E");
|
||||
|
||||
@include border-image-base;
|
||||
}
|
||||
|
||||
.border-top-concave-#{$idx} {
|
||||
padding-top: 2rem !important;
|
||||
border-image: url("data:image/svg+xml,%3Csvg width='1512' height='92' viewBox='0 0 1512 92' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1512 92C1031 -24.28 478.5 -36.8914 0 92L0 0L1512 0V92Z' fill='%234C764B'/%3E%3C/svg%3E%0A");
|
||||
|
||||
@include border-image-base;
|
||||
|
||||
border-image-slice: 85 120 !important;
|
||||
border-image-width: 3rem 0 0 0 !important;
|
||||
}
|
||||
|
||||
// * Bottom curves
|
||||
.border-bottom-curved-#{$idx} {
|
||||
padding-top: 0 !important;
|
||||
padding-bottom: 6rem;
|
||||
border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 99' fill='#{urlencodecolor($color)}'%3E%3Crect width='100%25' height='100%25'/%3E%3Cpath d='M0.5 98.5L0.499996 0.678555C124.136 38.9283 266.621 33.2224 389.5 0.650116L389.5 98.5L0.5 298.5Z' fill='#{urlencodecolor($color-tertiary-light)}' stroke='#{urlencodecolor($color-tertiary-light)}'/%3E%3C/svg%3E");
|
||||
|
||||
@include border-image-base;
|
||||
}
|
||||
}
|
||||
|
||||
// * BACKGROUNDS
|
||||
// Background color which are not exactly the defined colors in _variables.scss
|
||||
.bg-secondary-light {
|
||||
background-color: $color-secondary-light;
|
||||
@each $idx, $color in $light-colors {
|
||||
// * Top curves
|
||||
.bg-#{$idx} {
|
||||
background-color: $color;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// LLLLLLLLLLL GGGGGGGGGGGGG
|
||||
// L:::::::::L GGG::::::::::::G
|
||||
// L:::::::::L GG:::::::::::::::G
|
||||
|
|
@ -144,24 +171,18 @@ $color-secondary-light: color.adjust($color-secondary, $lightness: 46%);
|
|||
// L::::::::::::::::::::::L GGG::::::GGG:::G
|
||||
// LLLLLLLLLLLLLLLLLLLLLLLL GGGGGG GGGG
|
||||
@include media-breakpoint-up(lg) {
|
||||
// * Top curve for blue sections
|
||||
.border-top-curved-primary {
|
||||
border-image-slice: 100% 0;
|
||||
// Mask to add a transparent effect on the right side.
|
||||
.mask-white {
|
||||
mask: linear-gradient(-90deg, #fff6, #fff 30%);
|
||||
}
|
||||
|
||||
// * Top curve for white sections
|
||||
.border-top-curved-white {
|
||||
border-image-slice: 100% 0;
|
||||
}
|
||||
|
||||
// * Top curve for secondary-light sections
|
||||
.border-top-curved-secondary-light {
|
||||
border-image-slice: 100% 0;
|
||||
}
|
||||
|
||||
// * Top curve for white sections when the upper section is secondary-light
|
||||
.border-top-curved-white-upper-secondary-light {
|
||||
border-image-slice: 100% 0;
|
||||
@each $idx, $color in $theme-colors {
|
||||
// * Top curves
|
||||
.border-top-curved-#{$idx},
|
||||
.border-top-curved-upper-#{$idx},
|
||||
.border-top-concave-#{$idx} {
|
||||
border-image-slice: 100% 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -17,8 +17,9 @@
|
|||
@import "./base/layout";
|
||||
|
||||
// * PAGES
|
||||
@import "./pages/commit";
|
||||
@import "./pages/homepage";
|
||||
@import "./pages/unveil";
|
||||
@import "./pages/site";
|
||||
@import "./pages/contact";
|
||||
@import "./pages/unveil";
|
||||
|
||||
|
|
|
|||
91
resources/sass/fo/pages/_commit.scss
Normal file
|
|
@ -0,0 +1,91 @@
|
|||
.commit {
|
||||
.ambition {
|
||||
.ck-content {
|
||||
h3 {
|
||||
color: $color-sixt;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.breeding {
|
||||
&-wrapper {
|
||||
padding-bottom: 10rem;
|
||||
}
|
||||
|
||||
&-image {
|
||||
bottom: -2.3rem;
|
||||
}
|
||||
}
|
||||
|
||||
.earth {
|
||||
.text-bg-quint {
|
||||
padding-bottom: 10rem;
|
||||
}
|
||||
|
||||
&-image {
|
||||
bottom: -1rem;
|
||||
}
|
||||
}
|
||||
|
||||
&-text-absolute {
|
||||
@include media-breakpoint-up(md) {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
@include media-breakpoint-up(lg) {
|
||||
max-width: calc(100% - 70%);
|
||||
}
|
||||
}
|
||||
|
||||
.testimonials {
|
||||
.swiper-commitments-testimonials {
|
||||
.quote {
|
||||
right: 2rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.commit-navigation {
|
||||
@include media-breakpoint-up(md) {
|
||||
position: fixed;
|
||||
z-index: 10;
|
||||
bottom: 4rem;
|
||||
left: 4rem;
|
||||
max-width: 15rem;
|
||||
|
||||
&-wrapper {
|
||||
height: 0;
|
||||
opacity: 0;
|
||||
transform: translateY(25%);
|
||||
transition: .3s;
|
||||
visibility: hidden;
|
||||
|
||||
&.show {
|
||||
height: 14rem;
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.col-md-12 {
|
||||
@include media-breakpoint-up(md) {
|
||||
width: fit-content;
|
||||
}
|
||||
|
||||
.badge {
|
||||
width: .5rem;
|
||||
height: .5rem;
|
||||
|
||||
@include media-breakpoint-up(md) {
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -89,10 +89,26 @@
|
|||
background-image: url("data:image/svg+xml,%3Csvg width='178' height='188' viewBox='0 0 178 188' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='Rectangle 74' filter='url(%23filter0_d_774_5989)'%3E%3Cpath d='M4 14C4 8.47716 8.47715 4 14 4L164 4C169.523 4 174 8.47715 174 14L174 160C174 165.523 169.523 170 164 170L63.8485 170C60.2357 170 56.9039 171.949 55.1327 175.097L50.7432 182.901C49.9785 184.26 48.0215 184.26 47.2568 182.901L42.8673 175.097C41.0961 171.949 37.7643 170 34.1515 170H14C8.47715 170 4 165.523 4 160L4 14Z' fill='#{urlencodecolor(rgba-to-rgb(color.change($color, $lightness: 95%)))}'/%3E%3Cpath d='M4.25 14C4.25 8.61523 8.61522 4.25 14 4.25L164 4.25C169.385 4.25 173.75 8.61522 173.75 14L173.75 160C173.75 165.385 169.385 169.75 164 169.75L63.8485 169.75C60.1454 169.75 56.7303 171.747 54.9148 174.975L50.5253 182.779C49.8562 183.968 48.1438 183.968 47.4747 182.779L43.0852 174.975C41.2697 171.747 37.8546 169.75 34.1515 169.75H14C8.61522 169.75 4.25 165.385 4.25 160L4.25 14Z' stroke='#{urlencodecolor($color)}' stroke-width='0.5'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='filter0_d_774_5989' x='0' y='0' width='178' height='187.921' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset/%3E%3CfeGaussianBlur stdDeviation='2'/%3E%3CfeComposite in2='hardAlpha' operator='out'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.827451 0 0 0 0 0.403922 0 0 0 0 0.219608 0 0 0 0.5 0'/%3E%3CfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_774_5989'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_774_5989' result='shape'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E%0A");
|
||||
}
|
||||
|
||||
@mixin text-bubble-left($color) {
|
||||
background-image: url("data:image/svg+xml,%3Csvg width='206' height='195' viewBox='0 0 206 195' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg filter='url(%23filter0_d_679_7344)'%3E%3Cpath d='M192 190.813C197.523 190.813 202 186.336 202 180.813L202 13.9998C202 8.47695 197.523 3.99979 192 3.99979L29.5824 3.99978C24.0596 3.99978 19.5824 8.47694 19.5824 13.9998L19.5824 92.6568C19.5824 96.2695 17.6338 99.6014 14.485 101.373L5.09893 106.652C3.73962 107.417 3.73963 109.374 5.09893 110.139L14.485 115.418C17.6338 117.189 19.5824 120.521 19.5824 124.134L19.5824 180.813C19.5824 186.336 24.0596 190.813 29.5824 190.813L192 190.813Z' fill='#{urlencodecolor(rgba-to-rgb(color.change($color, $lightness: 95%)))}'/%3E%3Cpath d='M201.75 180.813L201.75 13.9998C201.75 8.61502 197.385 4.24979 192 4.24979L29.5824 4.24978C24.1976 4.24978 19.8324 8.61501 19.8324 13.9998L19.8324 92.6568C19.8324 96.3599 17.8351 99.775 14.6076 101.59L5.22148 106.87C4.03211 107.539 4.03211 109.252 5.2215 109.921L14.6076 115.2C17.8351 117.016 19.8324 120.431 19.8324 124.134L19.8324 180.813C19.8324 186.198 24.1976 190.563 29.5824 190.563L192 190.563C197.385 190.563 201.75 186.198 201.75 180.813Z' stroke='#{urlencodecolor($color)}' stroke-width='0.5'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='filter0_d_679_7344' x='0.0791016' y='0' width='205.921' height='194.813' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset/%3E%3CfeGaussianBlur stdDeviation='2'/%3E%3CfeComposite in2='hardAlpha' operator='out'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.827451 0 0 0 0 0.403922 0 0 0 0 0.219608 0 0 0 0.5 0'/%3E%3CfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_679_7344'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_679_7344' result='shape'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E%0A");
|
||||
}
|
||||
|
||||
@mixin text-bubble-right($color) {
|
||||
background-image: url("data:image/svg+xml,%3Csvg width='207' height='195' viewBox='0 0 207 195' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg filter='url(%23filter0_d_673_4224)'%3E%3Cpath d='M14.5 191C8.97715 191 4.5 186.523 4.5 181L4.49999 14.1871C4.49999 8.6642 8.97715 4.18704 14.5 4.18704L176.918 4.18703C182.44 4.18703 186.918 8.66419 186.918 14.187L186.918 92.8441C186.918 96.4568 188.866 99.7886 192.015 101.56L201.401 106.839C202.76 107.604 202.76 109.561 201.401 110.326L192.015 115.605C188.866 117.377 186.918 120.709 186.918 124.321L186.918 181C186.918 186.523 182.44 191 176.918 191L14.5 191Z' fill='#{urlencodecolor(rgba-to-rgb(color.change($color, $lightness: 95%)))}'/%3E%3Cpath d='M14.5 190.75C9.11523 190.75 4.75 186.385 4.75 181L4.74999 14.1871C4.74999 8.80228 9.11522 4.43704 14.5 4.43704L176.918 4.43703C182.302 4.43703 186.668 8.80227 186.668 14.187L186.668 92.8441C186.668 96.5471 188.665 99.9622 191.892 101.778L201.279 107.057C202.468 107.726 202.468 109.439 201.279 110.108L191.892 115.388C188.665 117.203 186.668 120.618 186.668 124.321L186.668 181C186.668 186.385 182.302 190.75 176.918 190.75L14.5 190.75Z' stroke='#{urlencodecolor($color)}' stroke-width='0.5'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='filter0_d_673_4224' x='0.5' y='0.187012' width='205.92' height='194.813' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset/%3E%3CfeGaussianBlur stdDeviation='2'/%3E%3CfeComposite in2='hardAlpha' operator='out'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.827451 0 0 0 0 0.403922 0 0 0 0 0.219608 0 0 0 0.5 0'/%3E%3CfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_673_4224'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_673_4224' result='shape'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E%0A");
|
||||
}
|
||||
|
||||
@mixin tilde($color) {
|
||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='30' viewBox='0 0 36 30' fill='none'%3E%3Cpath d='M0 30C4.63384 13.1506 27.6847 14.5774 35.6141 0C34.4579 23.502 8.83069 19.4941 0 30Z' fill='#{urlencodecolor($color)}'/%3E%3Cpath d='M8.94144 23.7212C6.01962 24.8931 3.30272 26.2421 1.16092 28.1123C3.89455 21.2987 10.078 17.8667 16.7901 14.5975C17.3568 14.3215 17.9273 14.0467 18.4997 13.771C24.6548 10.8064 31.0201 7.74043 34.9405 2.05038C34.3745 6.74062 32.7223 10.1692 30.4269 12.796C27.7961 15.8067 24.2883 17.801 20.4896 19.4133C18.5914 20.2189 16.6306 20.9252 14.6775 21.6164C14.4629 21.6924 14.2482 21.7682 14.0338 21.8439C12.3019 22.4557 10.5816 23.0634 8.94144 23.7212Z' stroke='%23103251' stroke-opacity='0.5'/%3E%3C/svg%3E");
|
||||
}
|
||||
|
||||
@mixin border-image-base() {
|
||||
padding-top: 6rem;
|
||||
border-image-outset: 1;
|
||||
border-image-repeat: inherit;
|
||||
border-image-slice: 85 0;
|
||||
border-image-width: 6rem 0 0 0;
|
||||
}
|
||||
|
||||
@mixin with-count($n) {
|
||||
@if $n == 1 {
|
||||
&:first-child:nth-last-child(1) {
|
||||
|
|
|
|||
|
|
@ -171,6 +171,23 @@ document.addEventListener("DOMContentLoaded", function () {
|
|||
},
|
||||
},
|
||||
},
|
||||
"swiper-commitments-testimonials": {
|
||||
modules: [Navigation, Keyboard],
|
||||
grabCursor: true,
|
||||
slidesPerView: 1.1,
|
||||
navigation: {
|
||||
nextEl: ".swiper-commitments-testimonials-button-next",
|
||||
prevEl: ".swiper-commitments-testimonials-button-prev",
|
||||
},
|
||||
keyboard: {
|
||||
enabled: true,
|
||||
},
|
||||
breakpoints: {
|
||||
992: {
|
||||
slidesPerView: 2,
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
type SwiperSlider = {
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ import "./base/common";
|
|||
import "./base/layout";
|
||||
|
||||
// PAGES
|
||||
import "./pages/commitments";
|
||||
import "./pages/home";
|
||||
import "./pages/unveil";
|
||||
|
||||
|
|
|
|||
15
resources/ts/fo/pages/commitments.ts
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
document.addEventListener("DOMContentLoaded", function () {
|
||||
const commit = document.querySelector("section.commit");
|
||||
if (commit === null) {
|
||||
return;
|
||||
}
|
||||
|
||||
const button = document.querySelector(".commit-navigation .btn") as HTMLButtonElement;
|
||||
const navWrapper = document.querySelector(".commit-navigation-wrapper") as HTMLDivElement;
|
||||
button.addEventListener("click", () => {
|
||||
navWrapper.classList.toggle("show");
|
||||
document.querySelectorAll(".commit-navigation .btn svg").forEach(icon => {
|
||||
icon.classList.toggle("d-none");
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
@ -9,7 +9,9 @@ import {
|
|||
faLocationArrow,
|
||||
faLocationDot,
|
||||
faMagnifyingGlass,
|
||||
faMinus,
|
||||
faPaw,
|
||||
faPlus,
|
||||
faQuestionCircle,
|
||||
faUserGroup
|
||||
} from "@fortawesome/free-solid-svg-icons";
|
||||
|
|
@ -27,5 +29,7 @@ library.add(faLocationDot);
|
|||
library.add(faLocationArrow);
|
||||
library.add(faUserGroup);
|
||||
library.add(faPaw);
|
||||
library.add(faMinus);
|
||||
library.add(faPlus);
|
||||
|
||||
dom.watch();
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
<div class="border-top-curved-primary">
|
||||
<div @class([
|
||||
'border-top-curved-primary',
|
||||
'bg-tertiary-light' => request()->routeIs('fo.commit'),
|
||||
])>
|
||||
<div class="text-bg-primary container-fluid">
|
||||
<div class="row mb-3 pt-4">
|
||||
<div class="col text-center">
|
||||
|
|
|
|||
|
|
@ -1,17 +0,0 @@
|
|||
@if (!empty($link))
|
||||
<a class="key-number text-bubble-top-{{ $color }} position-relative d-flex justify-content-center align-items-center position-relative text-decoration-none mx-2"
|
||||
href="{{ $link }}">
|
||||
@else
|
||||
<div
|
||||
class="key-number text-bubble-top-{{ $color }} position-relative d-flex justify-content-center align-items-center position-relative mx-2">
|
||||
@endif
|
||||
<p class="text-{{ $color }}">
|
||||
<span class="fw-semibold fs-1">{{ $keySection->data[$minicrud_selector]['value'] }}</span><br>
|
||||
{{ str(__($text))->upper() }}
|
||||
</p>
|
||||
@if (!empty($link))
|
||||
<p class="position-absolute plus-corner-{{ $color }}"></p>
|
||||
</a>
|
||||
@else
|
||||
</div>
|
||||
@endif
|
||||
|
|
@ -44,8 +44,9 @@
|
|||
</li>
|
||||
<li class="nav-item mb-1">
|
||||
@php $activePage = false; @endphp
|
||||
<a class="nav-link @if ($activePage) active @endif" data-bs-toggle="tooltip" href="#FIXME:route"
|
||||
title="{{ __('Aller sur la page On s\'engage') }}" @if ($activePage) aria-current="page" @endif>
|
||||
<a class="nav-link @if ($activePage) active @endif" data-bs-toggle="tooltip"
|
||||
href="{{ route('fo.commit') }}" title="{{ __('Aller sur la page On s\'engage') }}"
|
||||
@if ($activePage) aria-current="page" @endif>
|
||||
{{ __('On s\'engage') }}
|
||||
</a>
|
||||
</li>
|
||||
|
|
|
|||
404
resources/views/fo/pages/commitments.blade.php
Normal file
|
|
@ -0,0 +1,404 @@
|
|||
@extends('fo.layout')
|
||||
|
||||
@section('title', $staticPageModel->seo_title)
|
||||
@section('description', $staticPageModel->seo_description)
|
||||
@section('breadcrumb', request()->route()->getName())
|
||||
|
||||
@section('banner')
|
||||
@include('fo.layouts.banner', [
|
||||
'h1' => __($staticPageModel->title),
|
||||
'asset' => Vite::asset('resources/assets/images/banners/home_reworked.jpg'),
|
||||
'title' => __('Paysage d\'un champs de blé au soleil couchant avec une lisière en fond de tableau'),
|
||||
'alt' => __('Image de fond'),
|
||||
'displayArrow' => true,
|
||||
'buttonLink' => '#breeding',
|
||||
])
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<section class="commit">
|
||||
{{-- AMBITION --}}
|
||||
<section class="ambition my-4">
|
||||
<div class="container text-center">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<h2 class="h2 fw-bold text-primary">{{ $ambitionSection->h2_title }}</h2>
|
||||
@if ($ambitionSection->text)
|
||||
<div class="ck-content text-primary">
|
||||
{!! clean($ambitionSection->text) !!}
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="commit-navigation mt-3">
|
||||
<div class="commit-navigation-wrapper show row m-0 p-0">
|
||||
{{-- blade-formatter-disable --}}
|
||||
@php
|
||||
$commitNav = [
|
||||
['label' => __('Élever durablement'), 'link' => '#breeding', 'color' => 'tertiary'],
|
||||
['label' => __('Mieux vivre'), 'link' => '#life', 'color' => 'quad'],
|
||||
['label' => __('Respecter la terre'), 'link' => '#earth', 'color' => 'quint'],
|
||||
['label' => __('Bien nourrir'), 'link' => '#feed', 'color' => 'sixt']];
|
||||
@endphp
|
||||
{{-- blade-formatter-enable --}}
|
||||
@foreach ($commitNav as $key => $value)
|
||||
<div class="col-12 col-sm-6 col-md-12 px-md-0 py-md-1 p-2">
|
||||
<div class="rounded-5 bg-{{ $value['color'] }}-light shadow-sm">
|
||||
<a class="d-flex justify-content-center align-items-center text-primary text-decoration-none p-3"
|
||||
data-bs-toggle="tooltip" href="{{ $value['link'] }}"
|
||||
title="{{ __('Accéder à la partie :name de la page', ['name' => $value['label']]) }}">
|
||||
<span class="badge rounded-pill bg-{{ $value['color'] }} d-block me-2"></span>
|
||||
<small>{{ $value['label'] }}</small>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
<button class="d-none d-md-block btn btn-primary rounded-pill mt-1 w-fit px-3">
|
||||
<i class="fa-solid fa-plus d-none"></i>
|
||||
<i class="fa-solid fa-minus"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{-- BREEDING --}}
|
||||
<section class="breeding border-top-curved-tertiary mt-4" id="breeding">
|
||||
<div class="text-bg-tertiary">
|
||||
<div class="breeding-wrapper position-relative container">
|
||||
<div class="row text-center">
|
||||
<div class="col-12">
|
||||
<h2 class="h2 fw-bold">{{ $breedingSection->h2_title }}</h2>
|
||||
@if ($breedingSection->text)
|
||||
<div class="ck-content">
|
||||
{!! clean($breedingSection->text) !!}
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mt-4">
|
||||
<div class="col-12 col-md-6">
|
||||
@include('fo.partials.key-number', [
|
||||
'color' => 'tertiary',
|
||||
'value' => sprintf('%d%%', $breedingSection->data['bloc_key_nombre']['value']),
|
||||
'text' => clean($breedingSection->data['bloc_text_accompagnant_le_nombre_content']['value']),
|
||||
'wysiwyg' => true,
|
||||
'position' => 'right',
|
||||
])
|
||||
</div>
|
||||
<div class="col-12 col-md-6 d-flex flex-column justify-content-center overflow-hidden">
|
||||
{!! clean($breedingSection->data['bloc_images_content']['value']) !!}
|
||||
@if ($breedingSection->data['bloc_button_on_temoigne_engagements']['value'])
|
||||
<a class="btn btn-primary rounded-pill w-fit" href="#CHANGEME">{{ __('On témoigne') }}</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="breeding-image row position-absolute start-50 translate-middle-x">
|
||||
<div class="col-12 mt-4 text-center">
|
||||
<img src="{{ Vite::asset('resources/assets/images/commitments/breeding.png') }}"
|
||||
title="{{ __('Illustration de l\'engagement \'Elever durablement\'') }}"
|
||||
alt="{{ __('Illustration représentant un éleveur tenant une poule, entouré d\'autres volailles') }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="border-bottom-curved-tertiary w-100"></div>
|
||||
<div class="breeding-light bg-tertiary-light">
|
||||
<div class="container text-center">
|
||||
{{-- FIXME: le document synthèse BO prévoyait un WYSIWYG, le doc de fonctionnalité et la créa demandent des images avec légendes ainsi qu'une vidéo ... Ils seraient donc à rentrer dans le WYSIWYG --}}
|
||||
<div class="ck-content">
|
||||
{{-- {!! clean($breedingSection->data['bloc_images_content']['value']) !!} --}}
|
||||
<p class="m-0">ceci est un paragraphe de remplacement</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{-- LIFE --}}
|
||||
<section class="life border-top-curved-upper-tertiary-light mb-4" id="life">
|
||||
<div class="container text-center">
|
||||
<div class="row">
|
||||
<div class="col-12 mb-3">
|
||||
<h2 class="h2 fw-bold text-quad">{{ $lifeSection->h2_title }}</h2>
|
||||
<img src="{{ Vite::asset('resources/assets/images/commitments/life.png') }}"
|
||||
title="{{ __('Illustration de l\'engagement \'Mieux vivre\'') }}"
|
||||
alt="{{ __('Illustration représentant des personnes qui discutent en marchant au milieu d\'un groupe') }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row justify-content-md-between align-items-center">
|
||||
<div class="commit-text-absolute col-12 col-md-4 col-lg-5 py-md-0 pb-3">
|
||||
@if ($lifeSection->text)
|
||||
<div class="ck-content text-primary">
|
||||
{!! clean($lifeSection->text) !!}
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
<div class="col-12 col-sm-6 col-md-4 col-lg-3">
|
||||
@include('fo.partials.key-number', [
|
||||
'color' => 'quad',
|
||||
'value' => sprintf('%d%%', $lifeSection->data['bloc_key_nombre_n1']['value']),
|
||||
'text' => clean($lifeSection->data['bloc_text_accompagnant_le_nombre_n1_content']['value']),
|
||||
'wysiwyg' => true,
|
||||
'position' => 'right',
|
||||
])
|
||||
</div>
|
||||
<div class="col-12 col-sm-6 col-md-4 col-lg-3">
|
||||
@include('fo.partials.key-number', [
|
||||
'color' => 'quad',
|
||||
'value' => sprintf('%d%%', $lifeSection->data['bloc_key_nombre_n2']['value']),
|
||||
'text' => clean($lifeSection->data['bloc_text_accompagnant_le_nombre_n2_content']['value']),
|
||||
'wysiwyg' => true,
|
||||
'position' => 'left',
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
@if ($lifeSection->data['bloc_button_on_temoigne_engagements']['value'])
|
||||
<div class="row pt-4">
|
||||
<div class="col-12">
|
||||
<a class="btn btn-primary rounded-pill" data-bs-toggle="tooltip" href="#testimonials"
|
||||
title="{{ __('Accéder à la partie des témoignages') }}">{{ __('On témoigne') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
{{-- FIXME: partie remerciement à compléter --}}
|
||||
<div class="row py-4">
|
||||
<div class="col-12">
|
||||
<div class="ck-content text-primary">
|
||||
{!! clean($lifeSection->data['bloc_numero2_content']['value']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@if ($lifeSection->data['bloc_button_on_bouge']['value'])
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<a class="btn btn-primary rounded-pill" data-bs-toggle="tooltip" href="#CHANGEME: vers page on bouge ensemble"
|
||||
title="{{ __('Accéder à la page On bouge ensemble') }}">{{ __('On bouge ensemble') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</section>
|
||||
{{-- EARTH --}}
|
||||
<section class="earth border-top-curved-quint mt-4" id="earth">
|
||||
<div class="position-relative text-bg-quint">
|
||||
<div class="container text-center">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<h2 class="h2 fw-bold">{{ $earthSection->h2_title }}</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row justify-content-md-between align-items-center">
|
||||
<div class="commit-text-absolute col-12 col-md-4 col-lg-5 py-md-0 pb-3">
|
||||
@if ($earthSection->text)
|
||||
<div class="ck-content">
|
||||
{!! clean($earthSection->text) !!}
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
<div class="col-12 col-sm-6 col-md-4 col-lg-3">
|
||||
@include('fo.partials.key-number', [
|
||||
'color' => 'quint',
|
||||
'value' => sprintf('%d%%', $earthSection->data['bloc_key_nombre_n1']['value']),
|
||||
'text' => clean($earthSection->data['bloc_text_accompagnant_le_nombre_n1_content']['value']),
|
||||
'wysiwyg' => true,
|
||||
'position' => 'right',
|
||||
])
|
||||
</div>
|
||||
<div class="col-12 col-sm-6 col-md-4 col-lg-3">
|
||||
@include('fo.partials.key-number', [
|
||||
'color' => 'quint',
|
||||
'value' => sprintf('%d%%', $earthSection->data['bloc_key_nombre_n2']['value']),
|
||||
'text' => clean($earthSection->data['bloc_text_accompagnant_le_nombre_n2_content']['value']),
|
||||
'wysiwyg' => true,
|
||||
'position' => 'left',
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
@if ($earthSection->data['bloc_button_on_temoigne_engagements']['value'])
|
||||
<div class="row pt-4">
|
||||
<div class="col-12">
|
||||
<a class="btn btn-primary rounded-pill" href="#CHANGEME: Anchor on témoigne">{{ __('On témoigne') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
<div class="earth-image row position-absolute start-50 translate-middle-x pt-4">
|
||||
<div class="col-12">
|
||||
<img src="{{ Vite::asset('resources/assets/images/commitments/earth.png') }}"
|
||||
title="{{ __('Illustration de l\'engagement \'Respecter la terre\'') }}"
|
||||
alt="{{ __('Illustration représentant la nature avec des arbres et des champs') }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="earth-light border-top-concave-quint bg-quint-light pb-5">
|
||||
<div class="container mt-5 text-center">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-12 col-md-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-3">
|
||||
<img class="w-100" src="{{ asset($earthSection->data['bloc_image']['value']) }}"
|
||||
title="{{ $earthSection->data['bloc_image']['title'] }}"
|
||||
alt="$earthSection->data['bloc_image']['alt']">
|
||||
</div>
|
||||
<div class="col-9">
|
||||
<div class="ck-content text-quint text-start">
|
||||
{!! clean($earthSection->data['bloc_numero2_content']['value']) !!}
|
||||
</div>
|
||||
<div class="text-start">
|
||||
<a class="btn btn-primary rounded-pill mb-0 mb-3 mt-3 text-inherit"
|
||||
href="#CHANGEME">{{ __('En savoir plus sur BREEAM') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{-- FIXME: sliders (image/text) à compléter ici --}}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{-- FEED --}}
|
||||
<section class="feed mb-4" id="feed">
|
||||
<div class="border-top-curved-white bg-quint-light"></div>
|
||||
<div class="container text-center">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<h2 class="h2 fw-bold text-sixt">{{ $feedSection->h2_title }}</h2>
|
||||
<img class="my-3" src="{{ Vite::asset('resources/assets/images/commitments/feed.png') }}"
|
||||
title="{{ __('Illustration de l\'engagement \'Bien nourrir\'') }}"
|
||||
alt="{{ __('Illustration d\'une femme et d\'un enfant mangeant un délicieux repas') }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row justify-content-md-between align-items-center">
|
||||
<div class="commit-text-absolute col-12 col-md-4 col-lg-5 py-md-0 pb-3">
|
||||
@if ($feedSection->text)
|
||||
<div class="ck-content text-primary">
|
||||
{!! clean($feedSection->text) !!}
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
<div class="col-12 col-sm-6 col-md-4 col-lg-3">
|
||||
@include('fo.partials.key-number', [
|
||||
'color' => 'sixt',
|
||||
'value' => sprintf('%d%%', $feedSection->data['bloc_key_nombre_n1']['value']),
|
||||
'text' => clean($feedSection->data['bloc_text_accompagnant_le_nombre_n1_content']['value']),
|
||||
'wysiwyg' => true,
|
||||
'position' => 'right',
|
||||
])
|
||||
</div>
|
||||
<div class="col-12 col-sm-6 col-md-4 col-lg-3">
|
||||
@include('fo.partials.key-number', [
|
||||
'color' => 'sixt',
|
||||
'value' => sprintf('%d%%', $feedSection->data['bloc_key_nombre_n2']['value']),
|
||||
'text' => clean($feedSection->data['bloc_text_accompagnant_le_nombre_n2_content']['value']),
|
||||
'wysiwyg' => true,
|
||||
'position' => 'left',
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
{{-- @if ($feedSection->data['bloc_button_on_temoigne_engagements']['value']) --}}
|
||||
<div class="row mb-4">
|
||||
<div class="col-12">
|
||||
<a class="btn btn-primary rounded-pill" href="#CHANGEME: Anchor on témoigne">{{ __('On témoigne') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
{{-- @endif --}}
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="ck-content text-primary">
|
||||
{!! clean($feedSection->data['bloc_numero2_content']['value']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="ck-content text-primary">
|
||||
{!! clean($feedSection->data['bloc_numero3_content']['value']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
{{-- @if ($feedSection->data['bloc_button_on_produit']['value']) --}}
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<a class="btn btn-primary rounded-pill" href="#CHANGEME">{{ __('On produit') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
{{-- @endif --}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{-- TESTIMONIALS --}}
|
||||
<section class="border-top-curved-tertiary-light testimonials mt-4" id="testimonials">
|
||||
<div class="bg-primary-light">
|
||||
<div class="container text-center">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<h2 class="h2 fw-bold text-primary">{{ $testimonialsSection->h2_title }}</h2>
|
||||
<h3 class="fs-5 fw-semibold text-primary mb-3">
|
||||
{{ $testimonialsSection->data['bloc_string_titre_h3_de_la_section_numero1']['value'] }}
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{-- SLIDER TESTIMONIALS --}}
|
||||
<div class="testimonials-content mask-white overflow-hidden">
|
||||
<div class="container">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-12 position-relative">
|
||||
<div class="swiper swiper-commitments-testimonials mt-lg-0 mt-5 h-fit overflow-visible"
|
||||
id="swiper-commitments-testimonials">
|
||||
<div class="swiper-wrapper h-fit">
|
||||
{{-- FIXME: Dans le doc fonctionnalité, il est dit que la coulur de fond change en fonction du type de témoignage. Dans la créa, c'est seulement la couleur du job qui change. Qu'est-ce qu'on fait ? --}}
|
||||
@foreach ($testimonialModels as $testimonial)
|
||||
<div class="swiper-slide h-auto">
|
||||
@include('fo.partials.testimonials.card', [
|
||||
'picture' => [
|
||||
'path' => $testimonial->picture,
|
||||
'alt' => $testimonial->picture_alt,
|
||||
'title' => $testimonial->picture_title,
|
||||
],
|
||||
'job' => $testimonial->job,
|
||||
'name' => $testimonial->name,
|
||||
'speach' => Str::limit($testimonial->content, 200),
|
||||
'bgClass' => 'bg-' . $testimonial->type->color(),
|
||||
'jobClass' => 'text-white',
|
||||
'nameClass' => 'text-white',
|
||||
'speachClass' => 'text-white',
|
||||
])
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="swiper-button swiper-button-prev-custom swiper-commitments-testimonials-button-prev swiper-button-prev-custom d-none d-lg-block mx-3">
|
||||
<img src="{{ Vite::asset('resources/assets/images/misc/blue-arrow.svg') }}"
|
||||
title="{{ __('Navigation du slider (gauche)') }}" alt="{{ __('flèche vers la gauche') }}"
|
||||
role="button" tabindex="0">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container text-center">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<h3 class="fs-5 fw-semibold text-primary my-3">
|
||||
{{ $testimonialsSection->data['bloc_string_titre_h3_de_la_section_numero2']['value'] }}
|
||||
</h3>
|
||||
@if ($testimonialsSection->text)
|
||||
<div class="ck-content text-primary">
|
||||
{{-- FIXME: un lien est prévu dans la créa et pas dans le bo, il peut être inséré via le WYSIWYG --}}
|
||||
{!! clean($testimonialsSection->text) !!}
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
@endsection
|
||||
|
|
@ -35,15 +35,15 @@
|
|||
<div class="row">
|
||||
<div class="col-12 col-lg-6 pe-lg-0">
|
||||
<div class="d-flex justify-content-center justify-content-lg-end my-3">
|
||||
@include('fo.layouts.key-number', [
|
||||
@include('fo.partials.key-number', [
|
||||
'color' => 'sixt',
|
||||
'minicrud_selector' => 'bloc_key_sites',
|
||||
'value' => $keySection->data['bloc_key_sites']['value'],
|
||||
'text' => 'sites',
|
||||
'link' => '#CHANGEME',
|
||||
])
|
||||
@include('fo.layouts.key-number', [
|
||||
@include('fo.partials.key-number', [
|
||||
'color' => 'quad',
|
||||
'minicrud_selector' => 'bloc_key_especes',
|
||||
'value' => $keySection->data['bloc_key_especes']['value'],
|
||||
'text' => 'espèces',
|
||||
'link' => '#CHANGEME',
|
||||
])
|
||||
|
|
@ -51,15 +51,15 @@
|
|||
</div>
|
||||
<div class="col-12 col-lg-6 ps-lg-0">
|
||||
<div class="d-flex justify-content-center justify-content-lg-start my-3">
|
||||
@include('fo.layouts.key-number', [
|
||||
@include('fo.partials.key-number', [
|
||||
'color' => 'tertiary',
|
||||
'minicrud_selector' => 'bloc_key_ca',
|
||||
'value' => $keySection->data['bloc_key_ca']['value'],
|
||||
'text' => 'millions de ca',
|
||||
'link' => '#CHANGEME',
|
||||
])
|
||||
@include('fo.layouts.key-number', [
|
||||
@include('fo.partials.key-number', [
|
||||
'color' => 'quint',
|
||||
'minicrud_selector' => 'bloc_key_collaborateurs',
|
||||
'value' => $keySection->data['bloc_key_collaborateurs']['value'],
|
||||
'text' => 'collaborateurs',
|
||||
'link' => '#CHANGEME',
|
||||
])
|
||||
|
|
|
|||
24
resources/views/fo/partials/key-number.blade.php
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
@if (!empty($link))
|
||||
<a class="key-number text-bubble-top-{{ $color }} position-relative d-flex justify-content-center align-items-center position-relative text-decoration-none mx-auto p-4"
|
||||
href="{{ $link }}">
|
||||
@else
|
||||
<div
|
||||
class="key-number position-relative d-flex justify-content-center align-items-center position-relative @if (isset($position) && $position === 'left') text-bubble-left-{{ $color }} mx-auto ms-md-0 @elseif (isset($position) && $position === 'right') text-bubble-right-{{ $color }} mx-auto me-md-0 @else text-bubble-top-{{ $color }} mx-auto @endif p-4">
|
||||
@endif
|
||||
<div
|
||||
class="d-flex flex-column justify-content-center align-items-center z-1 w-100 h-100 text-{{ $color }} text-uppercase @if (isset($position) && $position === 'left') mb-3 ms-md-3 mb-md-0 @elseif (isset($position) && $position === 'right') mb-3 me-md-3 mb-md-0 @else mb-3 @endif overflow-hidden text-center">
|
||||
<p class="m-0">
|
||||
<span class="fw-semibold fs-1">{{ $value }}</span><br>
|
||||
</p>
|
||||
@if (isset($wysiwyg) && $wysiwyg)
|
||||
{!! clean($text) !!}
|
||||
@else
|
||||
<p class="m-0">{{ str(__($text))->upper() }}</p>
|
||||
@endif
|
||||
</div>
|
||||
@if (!empty($link))
|
||||
<p class="position-absolute plus-corner-{{ $color }}"></p>
|
||||
</a>
|
||||
@else
|
||||
</div>
|
||||
@endif
|
||||
|
|
@ -4,16 +4,17 @@
|
|||
])>
|
||||
<img class="quote position-absolute" src="{{ Vite::asset('resources/assets/images/misc/quotes.svg') }}">
|
||||
<div class="card-body">
|
||||
<div class="d-flex">
|
||||
<div class="d-flex align-items-end mb-3">
|
||||
@if (!empty($picture))
|
||||
<img src="{{ asset($picture['path']) }}" title="{{ $picture['title'] ?? '' }}" alt="{{ $picture['alt'] ?? '' }}">
|
||||
<img class="w-25 rounded-3 me-3" src="{{ asset($picture['path']) }}" title="{{ $picture['title'] ?? '' }}"
|
||||
alt="{{ $picture['alt'] ?? '' }}">
|
||||
@endif
|
||||
<div class="person-infos">
|
||||
<p @class([
|
||||
'text-uppercase fw-bold small mb-1',
|
||||
$jobClass => !empty($jobClass),
|
||||
])>{{ $job }}</p>
|
||||
<p @class([$nameClass => !empty($nameClass)])>{{ $name }}</p>
|
||||
<p @class(['mb-0', $nameClass => !empty($nameClass)])>{{ $name }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div @class(['card-text', $speachClass => !empty($speachClass)])>
|
||||
|
|
|
|||