diff --git a/assets/video/BACKGROUND_VIDEO_MISSION.mp4 b/assets/video/BACKGROUND_VIDEO_MISSION.mp4 new file mode 100644 index 0000000..c0c1e9c Binary files /dev/null and b/assets/video/BACKGROUND_VIDEO_MISSION.mp4 differ diff --git a/assets/video/BACKGROUND_VIDEO_MISSION_REVERSE.mp4 b/assets/video/BACKGROUND_VIDEO_MISSION_REVERSE.mp4 new file mode 100644 index 0000000..1697c44 Binary files /dev/null and b/assets/video/BACKGROUND_VIDEO_MISSION_REVERSE.mp4 differ diff --git a/site/templates/expertise.json.php b/site/templates/expertise.json.php index 18cafcb..895206e 100644 --- a/site/templates/expertise.json.php +++ b/site/templates/expertise.json.php @@ -1,21 +1,10 @@ [ - '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); diff --git a/src/styles/variables.css b/src/styles/variables.css index 4905b5d..c7ec9fd 100644 --- a/src/styles/variables.css +++ b/src/styles/variables.css @@ -55,4 +55,9 @@ --font-size-title-hero-tablet: 64px; --font-size-button-tablet: 12px; --font-size-caption-tablet: 11px; + + /* Font sizes — expertise items */ + --font-size-expertise: 22px; + --font-size-expertise-mobile: 18px; + --font-size-expertise-tablet: 20px; } diff --git a/src/views/Expertise.svelte b/src/views/Expertise.svelte index 9d16606..d52fb81 100644 --- a/src/views/Expertise.svelte +++ b/src/views/Expertise.svelte @@ -1,24 +1,415 @@ -
-
-

{data?.title || 'Expertise'}

-

Expertise view - To be implemented

+
+ + -
+ + + + + + +

+ {@html data?.pageTitle ?? ''} +

+ + +
+
+ {#each items as item, i} +

+ {@html item.text} +

+ {/each} +
+
+