Skip to content
Snippets Groups Projects
Verified Commit e7d543b9 authored by Sofiane Lasri's avatar Sofiane Lasri
Browse files

feat(portfolio): add image gallery for creation pictures

- Implemented a responsive image gallery in the portfolio show view.
- Added a loop to display creation pictures with links to their full-size versions.
- Ensured images are properly styled and accessible.
parent e0532aec
Branches
No related tags found
1 merge request!39Resolve "Faire page individuelle création"
Pipeline #864 passed
......@@ -31,5 +31,14 @@
</div>
</div>
<div class="container mx-auto px-4 py-24 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
@foreach($creation->creationPictures as $picture)
<a href="{{ $picture->getFullsizeUrl() }}" target="_blank" rel="noopener noreferrer" class="self-center">
<img class="w-full h-auto rounded-2xl" src="{{ $picture->getMediumSizeUrl() }}"
alt="{{ $creation->nameTranslationKey->getTranslation() }}" loading="eager"/>
</a>
@endforeach
</div>
<x-public.footer/>
@endsection
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment