All checks were successful
Deploy / Deploy to Production (push) Successful in 17s
- Phase exiting (300ms) : featured + game-preview glissent/fondent dans slideDir - Phase entering (350ms) : nouvel contenu entre depuis la direction opposée - Swap currentIndex à 300ms : carousel grossit + bg crossfade simultanés - Ajout game-preview (image preview côté droit, grid-area 3/13) - Ajout preview dans le template JSON PHP - Masqué sur mobile Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
21 lines
740 B
PHP
21 lines
740 B
PHP
<?php
|
|
|
|
$specificData = [
|
|
'games' => $page->children()->listed()->map(function($game) {
|
|
return [
|
|
'title' => $game->title()->value(),
|
|
'slug' => $game->slug(),
|
|
'lettering' => $game->lettering()->toFile()?->url(),
|
|
'description' => $game->description()->value(),
|
|
'thumbnail' => $game->thumbnail()->toFile()?->url(),
|
|
'backgroundColor' => $game->backgroundColor()->value() ?: null,
|
|
'preview' => $game->preview()->toFile()?->url(),
|
|
'playLink' => $game->playLink()->value() ?: null,
|
|
];
|
|
})->values()
|
|
];
|
|
|
|
$pageData = array_merge($genericData, $specificData);
|
|
|
|
header('Content-Type: application/json');
|
|
echo json_encode($pageData);
|