All checks were successful
Deploy / Deploy to Production (push) Successful in 20s
Renommage jouer → play (blueprint, template, txt, vue) API play.json.php : title, lettering, description, thumbnail, background_image, play_links par jeu enfant listed() Vue Play.svelte : - Fond image avec crossfade (transition opacity sur .play-bg) - Section principale (.play-featured) : glissé/fondu au changement de jeu via --slide-dir CSS var + classes is-out - Carrousel nav (ul > li > button) : thumbnail + titre, active bordure verte - Jeu sans play_links → bouton "Coming soon" désactivé - Layout golden-grid, mobile adapté Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
23 lines
860 B
PHP
23 lines
860 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(),
|
|
'background_image' => $game->background_image()->toFile()?->url(),
|
|
'play_links' => $game->play_links()->toStructure()->map(fn($l) => [
|
|
'label' => $l->label()->value(),
|
|
'url' => $l->url()->value(),
|
|
])->values(),
|
|
];
|
|
})->values()
|
|
];
|
|
|
|
$pageData = array_merge($genericData, $specificData);
|
|
|
|
header('Content-Type: application/json');
|
|
echo json_encode($pageData);
|