portfolio : optimize thumbnail weight
All checks were successful
Deploy / Deploy to Production (push) Successful in 22s
All checks were successful
Deploy / Deploy to Production (push) Successful in 22s
This commit is contained in:
parent
3c92903518
commit
e2939da0ee
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ $specificData = [
|
||||||
'slug' => $project->slug(),
|
'slug' => $project->slug(),
|
||||||
'catchPhrase' => $project->catchPhrase()->value(),
|
'catchPhrase' => $project->catchPhrase()->value(),
|
||||||
'description' => $project->description()->value(),
|
'description' => $project->description()->value(),
|
||||||
'thumbnail' => $project->thumbnail()->toFile()?->url(),
|
'thumbnail' => $project->thumbnail()->toFile()?->resize(160, null, 80)->url(),
|
||||||
'imagesGallery' => $project->imagesGallery()->toFiles()->map(fn($f) => [
|
'imagesGallery' => $project->imagesGallery()->toFiles()->map(fn($f) => [
|
||||||
'src' => $f->url(),
|
'src' => $f->url(),
|
||||||
'srcset' => $f->srcset('gallery'),
|
'srcset' => $f->srcset('gallery'),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue