Feat: vue Expertise avec scroll capturé et vidéo segmentée
All checks were successful
Deploy / Deploy to Production (push) Successful in 18s
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>
This commit is contained in:
parent
66afa1daad
commit
3618137657
5 changed files with 412 additions and 27 deletions
|
|
@ -1,21 +1,10 @@
|
|||
<?php
|
||||
|
||||
$specificData = [
|
||||
'intro' => [
|
||||
'title' => $page->intro_title()->value(),
|
||||
'text' => $page->intro_text()->value()
|
||||
],
|
||||
'sections' => $page->expertise_sections()->toStructure()->map(function($section) {
|
||||
return [
|
||||
'title' => $section->title()->value(),
|
||||
'icon' => $section->icon()->value(),
|
||||
'content' => $section->content()->toBlocks()
|
||||
];
|
||||
})->values(),
|
||||
'objective' => [
|
||||
'title' => $page->objective_title()->value(),
|
||||
'text' => $page->objective_text()->value()
|
||||
]
|
||||
'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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue