All checks were successful
Deploy / Deploy to Production (push) Successful in 18s
- Expertise.svelte : effet fullpage vertical avec wheel/touch capturé, vidéo forward/reverse découpée en N segments égaux (1 par bloc body), centrage texte actif via offsetTop, transitions CSS 0.6s - Variables CSS : ajout font-size expertise desktop/tablet/mobile - JSON template : pageTitle depuis writer, items depuis body blocks - Vidéos : BACKGROUND_VIDEO_MISSION + REVERSE copiées dans assets/video/ Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
13 lines
356 B
PHP
13 lines
356 B
PHP
<?php
|
|
|
|
$specificData = [
|
|
'pageTitle' => $page->writer()->value(),
|
|
'items' => $page->body()->toBlocks()->filter(fn($b) => $b->type() === 'text')->map(fn($block) => [
|
|
'text' => $block->text()->value()
|
|
])->values()
|
|
];
|
|
|
|
$pageData = array_merge($genericData, $specificData);
|
|
|
|
header('Content-Type: application/json');
|
|
echo json_encode($pageData);
|