Add alt picture text in BO
This commit is contained in:
parent
37b68ab4ec
commit
4c68e0e68e
33 changed files with 115 additions and 43 deletions
|
|
@ -6,7 +6,6 @@ use App\Http\Controllers\Controller;
|
|||
use App\Http\Requests\StorePostRequest;
|
||||
use App\Http\Requests\UpdatePostRequest;
|
||||
use App\Models\Post;
|
||||
use phpDocumentor\Reflection\Types\Boolean;
|
||||
|
||||
class PostsController extends Controller
|
||||
{
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ class StorePictoBrandRequest extends FormRequest
|
|||
return [
|
||||
'title' => 'required|max:50',
|
||||
'picture' => 'sometimes|image|mimes:jpeg,png,jpg|max:512|dimensions:max_width=150,max_height=150',
|
||||
'alt_text_picture' => 'required|max:255',
|
||||
'text' => 'required|max:127',
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ class StorePictoRequest extends FormRequest
|
|||
{
|
||||
return [
|
||||
'picture' => 'sometimes|image|mimes:png|max:512|dimensions:max_width=150,max_height=150',
|
||||
'alt_text_picture' => 'required|max:255',
|
||||
'text' => 'required|max:50',
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ class StorePostRequest extends FormRequest
|
|||
{
|
||||
return [
|
||||
'picture_news' => 'required|image|mimes:jpeg,png,jpg|max:1024|dimensions:max_width=380,max_height=298',
|
||||
'alt_text_picture_news' => 'required|max:255',
|
||||
'title' => 'required|max:255',
|
||||
'text' => 'required|min:20',
|
||||
'date_start' => [
|
||||
|
|
@ -53,6 +54,7 @@ class StorePostRequest extends FormRequest
|
|||
'before:' . Carbon::now()->parse('2037-12-31')
|
||||
],
|
||||
'picture_home' => 'required|image|mimes:jpeg,png,jpg|max:2048|dimensions:max_width=1030,max_height=239',
|
||||
'alt_text_picture_home' => 'required|max:255',
|
||||
'on_top' => 'nullable|boolean',
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,8 +27,11 @@ class UpdateAdviceRequest extends FormRequest
|
|||
'title1' => 'required|max:50',
|
||||
'title2' => 'required|max:50',
|
||||
'picture1' => 'sometimes|image|mimes:jpeg,png,jpg|max:1024|dimensions:width=284,height=284',
|
||||
'alt_text_picture1' => 'required|max:255',
|
||||
'picture2' => 'sometimes|image|mimes:jpeg,png,jpg|max:1024|dimensions:width=284,height=284',
|
||||
'alt_text_picture2' => 'required|max:255',
|
||||
'picture3' => 'sometimes|image|mimes:jpeg,png,jpg|max:1024|dimensions:width=284,height=284',
|
||||
'alt_text_picture3' => 'required|max:255',
|
||||
'text1' => 'required|max:2047',
|
||||
'text2' => 'required|max:2047',
|
||||
];
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ class UpdateEncartRequest extends FormRequest
|
|||
// ],
|
||||
'text' => 'required|max:2047',
|
||||
'picture' => 'sometimes|image|mimes:jpeg,png,jpg|max:2048',
|
||||
'alt_text_picture' => 'required|max:255',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,8 +14,11 @@ class Advice extends Model
|
|||
'title1',
|
||||
'title2',
|
||||
'picture1',
|
||||
'alt_text_picture1',
|
||||
'picture2',
|
||||
'alt_text_picture2',
|
||||
'picture3',
|
||||
'alt_text_picture3',
|
||||
'text1',
|
||||
'text2',
|
||||
];
|
||||
|
|
|
|||
|
|
@ -21,7 +21,8 @@ class Encart extends Model
|
|||
'title',
|
||||
'subtitle',
|
||||
'text',
|
||||
'picture'
|
||||
'picture',
|
||||
'alt_text_picture',
|
||||
];
|
||||
|
||||
protected static function boot()
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ class Moment extends Model
|
|||
'subtitle',
|
||||
'text',
|
||||
'picture'
|
||||
'alt_text_picture',
|
||||
];
|
||||
|
||||
protected static function boot()
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ class Picto extends Model
|
|||
|
||||
protected $fillable = [
|
||||
'picture',
|
||||
'alt_text_picture',
|
||||
'text',
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ class PictoBrand extends Model
|
|||
protected $fillable = [
|
||||
'title',
|
||||
'picture',
|
||||
'alt_text_picture',
|
||||
'text',
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,9 @@ class Post extends Model
|
|||
'title',
|
||||
'text',
|
||||
'picture_home',
|
||||
'alt_text_picture_home',
|
||||
'picture_news',
|
||||
'alt_text_picture_news',
|
||||
'date_start',
|
||||
'date_end',
|
||||
'on_top'
|
||||
|
|
|
|||
|
|
@ -27,8 +27,11 @@ class AdviceFactory extends Factory
|
|||
'title1' => $this->faker->text(40),
|
||||
'title2' => $this->faker->text(40),
|
||||
'picture1' => new SplFileInfo(resource_path('assets/images/repas.jpg')),
|
||||
'alt_text_picture1' => $this->faker->sentence(10),
|
||||
'picture2' => new SplFileInfo(resource_path('assets/images/repas.jpg')),
|
||||
'alt_text_picture2' => $this->faker->sentence(10),
|
||||
'picture3' => new SplFileInfo(resource_path('assets/images/repas.jpg')),
|
||||
'alt_text_picture3' => $this->faker->sentence(10),
|
||||
'text1' => $this->faker->paragraph(10),
|
||||
'text2' => $this->faker->paragraph(10),
|
||||
];
|
||||
|
|
|
|||
|
|
@ -27,7 +27,8 @@ class EncartFactory extends Factory
|
|||
'title' => $this->faker->text(5),
|
||||
'subtitle' => $this->faker->sentence(7, false),
|
||||
'text' => $this->faker->paragraph(10, false),
|
||||
'picture' => new SplFileInfo(resource_path('assets/images/prez-img.jpg'))
|
||||
'picture' => new SplFileInfo(resource_path('assets/images/prez-img.jpg')),
|
||||
'alt_text_picture' => $this->faker->sentence(10),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,7 +27,8 @@ class MomentFactory extends Factory
|
|||
'title' => $this->faker->text(5),
|
||||
'subtitle' => $this->faker->sentence(7, false),
|
||||
'text' => $this->faker->paragraph(10, false),
|
||||
'picture' => new SplFileInfo(resource_path('assets/images/prez-img.jpg'))
|
||||
'picture' => new SplFileInfo(resource_path('assets/images/prez-img.jpg')),
|
||||
'alt_text_picture' => $this->faker->sentence(10),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ class PictoBrandFactory extends Factory
|
|||
return [
|
||||
'title' => $this->faker->randomNumber(3, false),
|
||||
'picture' => new SplFileInfo(resource_path('assets/images/site-production.jpg')),
|
||||
'alt_text_picture' => $this->faker->sentence(10),
|
||||
'text' => $this->faker->text(20),
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ class PictoFactory extends Factory
|
|||
{
|
||||
return [
|
||||
'picture' => new SplFileInfo(resource_path('assets/images/qualite.png')),
|
||||
'alt_text_picture' => $this->faker->sentence(10),
|
||||
'text' => $this->faker->text(10),
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,9 @@ class PostFactory extends Factory
|
|||
'title' => $this->faker->text(5),
|
||||
'text' => $this->faker->paragraph(10, false),
|
||||
'picture_home' => new SplFileInfo(resource_path('assets/images/burger-fond.jpg')),
|
||||
'alt_text_picture_home' => $this->faker->sentence(10),
|
||||
'picture_news' => new SplFileInfo(resource_path('assets/images/burger.jpg')),
|
||||
'alt_text_picture_news' => $this->faker->sentence(10),
|
||||
'date_start' => Carbon::now(),
|
||||
'date_end' => Carbon::now()->addDays(2),
|
||||
'on_top' => false
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ class CreateEncartsTable extends Migration
|
|||
$table->string('subtitle');
|
||||
$table->text('text');
|
||||
$table->string('picture')->nullable();
|
||||
$table->string('alt_text_picture')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ class CreatePictosTable extends Migration
|
|||
$table->id();
|
||||
$table->smallInteger('page');
|
||||
$table->string('picture')->nullable();
|
||||
$table->string('alt_text_picture')->nullable();
|
||||
$table->text('text');
|
||||
$table->timestamps();
|
||||
});
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ class CreatePictoBrandsTable extends Migration
|
|||
$table->id();
|
||||
$table->string('title');
|
||||
$table->string('picture')->nullable();
|
||||
$table->string('alt_text_picture')->nullable();
|
||||
$table->string('text');
|
||||
$table->timestamps();
|
||||
});
|
||||
|
|
|
|||
|
|
@ -18,8 +18,11 @@ class CreateAdviceTable extends Migration
|
|||
$table->string('title1');
|
||||
$table->string('title2');
|
||||
$table->string('picture1')->nullable();
|
||||
$table->string('alt_text_picture1')->nullable();
|
||||
$table->string('picture2')->nullable();
|
||||
$table->string('alt_text_picture2')->nullable();
|
||||
$table->string('picture3')->nullable();
|
||||
$table->string('alt_text_picture3')->nullable();
|
||||
$table->text('text1');
|
||||
$table->text('text2');
|
||||
$table->timestamps();
|
||||
|
|
|
|||
|
|
@ -18,7 +18,9 @@ class CreatePostsTable extends Migration
|
|||
$table->string('title');
|
||||
$table->mediumText('text');
|
||||
$table->string('picture_home')->nullable();
|
||||
$table->string('alt_text_picture_home')->nullable();
|
||||
$table->string('picture_news')->nullable();
|
||||
$table->string('alt_text_picture_news')->nullable();
|
||||
$table->timestamp('date_start')->nullable();
|
||||
$table->timestamp('date_end')->nullable();
|
||||
$table->boolean('on_top')->default(false);
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ class PictosSeeder extends Seeder
|
|||
$picto = new Picto();
|
||||
$picto->page = $value;
|
||||
$picto->picture = new SplFileInfo(resource_path('assets/images/qualite.png'));
|
||||
$picto->alt_text_picture = 'lorem ipsum set doloris at em gorbicus';
|
||||
$picto->text = 'lorem ipsum set doloris';
|
||||
$picto->save();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,6 +25,11 @@
|
|||
@endif
|
||||
@include('back.modules.input-error', ['inputName'=>'picture1'])
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="name">{{ __('Text alternatif de l\'image') }} *</label>
|
||||
<input type="text" id="alt_text_picture1" name="alt_text_picture1" class="form-control" placeholder="{{ __('Texte alternatif de l\'image') }} *" value="{{ old('alt_text_picture1', $advice->alt_text_picture1 ?? '') }}" required>
|
||||
@include('back.modules.input-error', ['inputName'=>'alt_text_picture1'])
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="title1">{{ __('Titre 1er bloc') }} *</label>
|
||||
<input type="text" id="title1" name="title1" class="form-control" placeholder="{{ __('Titre 1er bloc') }} *" value="{{ old('title1', $advice->title1 ?? '') }}" required>
|
||||
|
|
@ -35,27 +40,35 @@
|
|||
<textarea class="form-control" id="text1" name="text1" placeholder="{{ __('Texte 1er bloc') }}" style="height: 300px; width: 50%;" required>{{ old('text1', $advice->text1) }}</textarea>
|
||||
@include('back.modules.input-error', ['inputName'=>'text1'])
|
||||
</div>
|
||||
<div class="d-flex">
|
||||
<div class="form-group me-5">
|
||||
<label for="picture2">{{ __('Image') }} *<small class="text-muted">- JPEG/PNG, 1Mo max. Dimensions {{ Config::get('bo.advice_image_maxwidth') }} px par {{ Config::get('bo.advice_image_maxheight') }} px</small></label><br/>
|
||||
<input type="file" id="picture2" name="picture2" accept="image/png, image/jpeg">
|
||||
@if ($advice->picture2 !== null)
|
||||
<br />
|
||||
<br />
|
||||
<img src="{{$advice->picture2}}" alt="{{$advice->title2}}" style="max-height: 100px;">
|
||||
@endif
|
||||
@include('back.modules.input-error', ['inputName'=>'picture2'])
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="picture3">{{ __('Image') }} *<small class="text-muted">- JPEG/PNG, 1Mo max. Dimensions {{ Config::get('bo.advice_image_maxwidth') }} px par {{ Config::get('bo.advice_image_maxheight') }} px</small></label><br/>
|
||||
<input type="file" id="picture3" name="picture3" accept="image/png, image/jpeg">
|
||||
@if ($advice->picture3 !== null)
|
||||
<br />
|
||||
<br />
|
||||
<img src="{{$advice->picture3}}" alt="{{$advice->title3}}" style="max-height: 100px;">
|
||||
@endif
|
||||
@include('back.modules.input-error', ['inputName'=>'picture3'])
|
||||
</div>
|
||||
<div class="form-group me-5">
|
||||
<label for="picture2">{{ __('Image') }} *<small class="text-muted">- JPEG/PNG, 1Mo max. Dimensions {{ Config::get('bo.advice_image_maxwidth') }} px par {{ Config::get('bo.advice_image_maxheight') }} px</small></label><br/>
|
||||
<input type="file" id="picture2" name="picture2" accept="image/png, image/jpeg">
|
||||
@if ($advice->picture2 !== null)
|
||||
<br />
|
||||
<br />
|
||||
<img src="{{$advice->picture2}}" alt="{{$advice->title2}}" style="max-height: 100px;">
|
||||
@endif
|
||||
@include('back.modules.input-error', ['inputName'=>'picture2'])
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="name">{{ __('Text alternatif de l\'image') }} *</label>
|
||||
<input type="text" id="alt_text_picture2" name="alt_text_picture2" class="form-control" placeholder="{{ __('Texte alternatif de l\'image') }} *" value="{{ old('alt_text_picture2', $advice->alt_text_picture2 ?? '') }}" required>
|
||||
@include('back.modules.input-error', ['inputName'=>'alt_text_picture2'])
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="picture3">{{ __('Image') }} *<small class="text-muted">- JPEG/PNG, 1Mo max. Dimensions {{ Config::get('bo.advice_image_maxwidth') }} px par {{ Config::get('bo.advice_image_maxheight') }} px</small></label><br/>
|
||||
<input type="file" id="picture3" name="picture3" accept="image/png, image/jpeg">
|
||||
@if ($advice->picture3 !== null)
|
||||
<br />
|
||||
<br />
|
||||
<img src="{{$advice->picture3}}" alt="{{$advice->title3}}" style="max-height: 100px;">
|
||||
@endif
|
||||
@include('back.modules.input-error', ['inputName'=>'picture3'])
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="name">{{ __('Text alternatif de l\'image') }} *</label>
|
||||
<input type="text" id="alt_text_picture3" name="alt_text_picture3" class="form-control" placeholder="{{ __('Texte alternatif de l\'image') }} *" value="{{ old('alt_text_picture3', $advice->alt_text_picture3 ?? '') }}" required>
|
||||
@include('back.modules.input-error', ['inputName'=>'alt_text_picture3'])
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="title2">{{ __('Titre 2ème bloc') }} *</label>
|
||||
|
|
|
|||
|
|
@ -43,6 +43,11 @@
|
|||
@endif
|
||||
@include('back.modules.input-error', ['inputName'=>'picture'])
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="name">{{ __('Text alternatif de l\'image') }} *</label>
|
||||
<input type="text" id="alt_text_picture" name="alt_text_picture" class="form-control" placeholder="{{ __('Texte alternatif de l\'image') }} *" value="{{ old('alt_text_picture', $encart->alt_text_picture ?? '') }}" required>
|
||||
@include('back.modules.input-error', ['inputName'=>'alt_text_picture'])
|
||||
</div>
|
||||
<?php } ?>
|
||||
</form>
|
||||
@endsection
|
||||
|
|
|
|||
|
|
@ -10,6 +10,11 @@
|
|||
@endif
|
||||
@include('back.modules.input-error', ['inputName'=>'picture'])
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="name">{{ __('Text alternatif de l\'image') }} *</label>
|
||||
<input type="text" id="alt_text_picture" name="alt_text_picture" class="form-control" placeholder="{{ __('Texte alternatif de l\'image') }} *" value="{{ old('alt_text_picture', $pictobrand->alt_text_picture ?? '') }}" required>
|
||||
@include('back.modules.input-error', ['inputName'=>'alt_text_picture'])
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="title">{{ __('Quantité') }} *</label>
|
||||
<input type="text" id="title" name="title" class="form-control" placeholder="{{ __('Quantité') }} *" value="{{ old('title', $pictobrand->title ?? '') }}" required>
|
||||
|
|
|
|||
|
|
@ -10,6 +10,11 @@
|
|||
@endif
|
||||
@include('back.modules.input-error', ['inputName'=>'picture'])
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="name">{{ __('Text alternatif de l\'image') }} *</label>
|
||||
<input type="text" id="alt_text_picture" name="alt_text_picture" class="form-control" placeholder="{{ __('Texte alternatif de l\'image') }} *" value="{{ old('alt_text_picture', $picto->alt_text_picture ?? '') }}" required>
|
||||
@include('back.modules.input-error', ['inputName'=>'alt_text_picture'])
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="text">{{ __('Texte') }} *</label>
|
||||
<textarea class="form-control" placeholder="{{ __('Texte') }}" id="text" name="text">{{ old('commentaire', $picto->text ?? '') }}</textarea>
|
||||
|
|
|
|||
|
|
@ -14,6 +14,11 @@
|
|||
@endif
|
||||
@include('back.modules.input-error', ['inputName'=>'picture_news'])
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="name">{{ __('Text alternatif de l\'image') }} *</label>
|
||||
<input type="text" id="alt_text_picture_news" name="alt_text_picture_news" class="form-control" placeholder="{{ __('Texte alternatif de l\'image') }} *" value="{{ old('alt_text_picture_news', $post->alt_text_picture_news ?? '') }}" required>
|
||||
@include('back.modules.input-error', ['inputName'=>'alt_text_picture_news'])
|
||||
</div>
|
||||
<div class="form-group wdt75 mb-4">
|
||||
<label for="title">{{ __('Titre') }} *</label>
|
||||
<input type="text" id="title" name="title" class="form-control" placeholder="{{ __('Titre') }} *" value="{{ old('title', $post->title ?? '') }}" required>
|
||||
|
|
@ -71,6 +76,11 @@
|
|||
@endif
|
||||
@include('back.modules.input-error', ['inputName'=>'picture_home'])
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="name">{{ __('Text alternatif de l\'image') }} *</label>
|
||||
<input type="text" id="alt_text_picture_home" name="alt_text_picture_home" class="form-control" placeholder="{{ __('Texte alternatif de l\'image') }} *" value="{{ old('alt_text_picture_home', $post->alt_text_picture_home ?? '') }}" required>
|
||||
@include('back.modules.input-error', ['inputName'=>'alt_text_picture_home'])
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input class="form-check-input" type="checkbox" id="on_top" name="on_top" @if (old('on_top', $post->on_top) === 1 || old('on_top', $post->on_top) === 'on')checked="checked" @endif>
|
||||
<label class="form-check-label" for="on_top">{{ __('A la une') }}</label>
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@
|
|||
@foreach ($pictobrands_marque as $picto)
|
||||
<li class="reassurance-item animate__animated fadeInLeft animate__slow">
|
||||
<p class="is-flex vertical-center">
|
||||
<img src="{{ asset($picto->picture) }}" alt="{{ $picto->text }}">
|
||||
<img src="{{ asset($picto->picture) }}" alt="{{ $picto->alt_text_picture }}">
|
||||
<span class="number">{{ $picto->title }}</span>
|
||||
</p>
|
||||
<p>{!! clean(nl2br($picto->text)) !!}</p>
|
||||
|
|
@ -60,7 +60,7 @@
|
|||
<ul class="values-list">
|
||||
@foreach ($pictos_marqueBloc2 as $picto)
|
||||
<li class="item animate__animated fadeInUp animate__slow">
|
||||
<img src="{{ asset($picto->picture) }}" alt="{{ $picto->text }}">
|
||||
<img src="{{ asset($picto->picture) }}" alt="{{ $picto->alt_text_picture }}">
|
||||
<span>{!! clean(nl2br($picto->text)) !!}</span>
|
||||
</li>
|
||||
@endforeach
|
||||
|
|
@ -124,12 +124,12 @@
|
|||
<h2 class="sectiontitle align-center has-label-bis desk-mb-80 animate__animated fadeInUp animate__slow">{{ $title_marqueBloc4->title}}</h2>
|
||||
<div class="is-flex">
|
||||
<div class="w50 smrt-mb-100">
|
||||
<img src="{{ asset($encart_marqueBloc4l->picture) }}" alt="{{ $encart_marqueBloc4l->title}}" class="animate__animated fadeInLeft animate__slow">
|
||||
<img src="{{ asset($encart_marqueBloc4l->picture) }}" alt="{{ $encart_marqueBloc4l->alt_text_picture}}" class="animate__animated fadeInLeft animate__slow">
|
||||
<h3 class="color-yellow">{{ $encart_marqueBloc4l->title}}</h3>
|
||||
<p class="align-justify">{{ $encart_marqueBloc4l->text}}</p>
|
||||
</div>
|
||||
<div class="w50 smrt-mb-100">
|
||||
<img src="{{ asset($encart_marqueBloc4r->picture) }}" alt="{{ $encart_marqueBloc4r->title}}" class="animate__animated fadeInLeft animate__slow">
|
||||
<img src="{{ asset($encart_marqueBloc4r->picture) }}" alt="{{ $encart_marqueBloc4r->alt_text_picture}}" class="animate__animated fadeInLeft animate__slow">
|
||||
<h3 class="color-yellow">{{ $encart_marqueBloc4r->title}}</h3>
|
||||
<p class="align-justify">{{ $encart_marqueBloc4r->text}}</p>
|
||||
</div>
|
||||
|
|
@ -150,7 +150,7 @@
|
|||
<p class="align-justify">{{ $encart_marqueFooter->text}}</p>
|
||||
</div>
|
||||
<div class="w50 animate__animated fadeInRight animate__slow">
|
||||
<img src="{{ asset($encart_marqueFooter->picture) }}" alt="{{ $encart_marqueFooter->subtitle}}">
|
||||
<img src="{{ asset($encart_marqueFooter->picture) }}" alt="{{ $encart_marqueFooter->alt_text_picture}}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
<h2 class="align-center">{{ $encart_food->subtitle}}</h2>
|
||||
<div class="is-flex">
|
||||
<div class="w50 animate__animated fadeInLeft animate__slow">
|
||||
<img src="{{ asset($encart_food->picture) }}" alt="photo">
|
||||
<img src="{{ asset($encart_food->picture) }}" alt="{{ $encart_food->alt_text_picture }}">
|
||||
</div>
|
||||
<div class="w50">
|
||||
<p class="align-justify animate__animated fadeInRight animate__slow">
|
||||
|
|
@ -54,13 +54,13 @@
|
|||
<ul class="values-list">
|
||||
@foreach ($pictos_food as $picto)
|
||||
<li class="item">
|
||||
<img src="{{ asset($picto->picture) }}" alt="{{ $picto->text }}">
|
||||
<img src="{{ asset($picto->picture) }}" alt="{{ $picto->alt_text_picture }}">
|
||||
<span>{!! clean(nl2br($picto->text)) !!}</span>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
<img src="{{ asset('assets/images/frise-blue.jpg') }}" alt="">
|
||||
<img src="{{ asset('assets/images/frise-blue.jpg') }}" alt="Frise">
|
||||
</section>
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@
|
|||
</h2>
|
||||
<div class="is-flex">
|
||||
<div class="w50 align-center animate__animated fadeInLeft animate__slow">
|
||||
<img src="{{ asset($encart_home->picture) }}" alt="photo" />
|
||||
<img src="{{ asset($encart_home->picture) }}" alt="{{ $encart_home->alt_text_picture}}" />
|
||||
</div>
|
||||
<div class="w50">
|
||||
<h3 class="color-yellow">Notre Histoire</h3>
|
||||
|
|
@ -85,7 +85,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<img src="{{ asset('assets/images/frise.jpg') }}" alt="" />
|
||||
<img src="{{ asset('assets/images/frise.jpg') }}" alt="Poulet frit" />
|
||||
</div>
|
||||
|
||||
@if (isset($post_home))
|
||||
|
|
@ -97,7 +97,7 @@
|
|||
</h2>
|
||||
</div>
|
||||
<div class="align-center animate__animated fadeInUp animate__slow">
|
||||
<img src="{{ asset($post_home->picture_home) }}" alt="{{ $post_home->title}}"/>
|
||||
<img src="{{ asset($post_home->picture_home) }}" alt="{{ $post_home->alt_text_picture_home}}"/>
|
||||
</div>
|
||||
<h3 class="h2 align-center">{{ $post_home->title}}</h3>
|
||||
<p class="align-justify">{!! clean(nl2br($post_home->text)) !!}</p>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
<div class="jumbotron">
|
||||
<p class="maintitle ttu animate__animated fadeIn animate__slow">+ d'info ?</p>
|
||||
<img class="img-zoom" src="{{ asset('assets/images/news.jpg') }}" alt="">
|
||||
<img class="img-zoom" src="{{ asset('assets/images/news.jpg') }}" alt="Actualités du site">
|
||||
<div class="banner">
|
||||
<svg id="Calque_1" data-name="Calque 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1919.76 59.99">
|
||||
<defs>
|
||||
|
|
@ -33,7 +33,7 @@
|
|||
</div>
|
||||
<div class="is-flex desk-mt50">
|
||||
<div class="w100 has-chicken-path animate__animated fadeInLeft animate__slow">
|
||||
<img class="advice-img" src="{{ asset($advice_news->picture1) }}" alt="{{ $advice_news->title1 }}">
|
||||
<img class="advice-img" src="{{ asset($advice_news->picture1) }}" alt="{{ $advice_news->alt_text_picture1 }}">
|
||||
</div>
|
||||
<div class="animate__animated fadeInRight animate__slow">
|
||||
<h3 class="color-yellow">{{ $advice_news->title1 }}</h3>
|
||||
|
|
@ -42,10 +42,10 @@
|
|||
</div>
|
||||
<div class="is-flex desk-mt180">
|
||||
<div class="w25 desk-mr10 animate__animated fadeInLeft animate__slow">
|
||||
<img class="advice-img" src="{{ asset($advice_news->picture2) }}" alt="{{ $advice_news->title2 }}">
|
||||
<img class="advice-img" src="{{ asset($advice_news->picture2) }}" alt="{{ $advice_news->alt_text_picture2 }}">
|
||||
</div>
|
||||
<div class="w25 desk-mr18 animate__animated fadeInLeft animate__slow">
|
||||
<img class="advice-img" src="{{ asset($advice_news->picture3) }}" alt="{{ $advice_news->title2 }}">
|
||||
<img class="advice-img" src="{{ asset($advice_news->picture3) }}" alt="{{ $advice_news->alt_text_picture3 }}">
|
||||
</div>
|
||||
<div class="w50 animate__animated fadeInRight animate__slow">
|
||||
<h3 class="color-yellow">{{ $advice_news->title2 }}</h3>
|
||||
|
|
@ -65,7 +65,7 @@
|
|||
</p>
|
||||
</div>
|
||||
<div class="w50 align-center reduice-img">
|
||||
<img src="{{ asset('assets/images/cuisine.jpg') }}" alt="photo">
|
||||
<img src="{{ asset('assets/images/cuisine.jpg') }}" alt="Four, friteuse, poelle">
|
||||
</div>
|
||||
</div>
|
||||
<ul class="more">
|
||||
|
|
@ -86,14 +86,14 @@
|
|||
<div class="posts-list is-flex">
|
||||
@foreach ($posts as $post)
|
||||
<div class="post-card animate__animated fadeInUp animate__slow">
|
||||
<img src="{{ asset($post->picture_news) }}" alt="{{ $post->title }}">
|
||||
<img src="{{ asset($post->picture_news) }}" alt="{{ $post->alt_text_picture_news }}">
|
||||
<h3 class="post-card__title color-yellow">{{ $post->title }}</h3>
|
||||
<p class="align-justify">{!! clean(nl2br($post->text)) !!}</p>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
<img src="{{ asset('assets/images/frise.jpg') }}" alt="">
|
||||
<img src="{{ asset('assets/images/frise.jpg') }}" alt="Frise">
|
||||
</div>
|
||||
|
||||
<div class="wrapper align-center">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue