diff --git a/site/blueprints/pages/home.yml b/site/blueprints/pages/home.yml index 2bb73e3..003416f 100644 --- a/site/blueprints/pages/home.yml +++ b/site/blueprints/pages/home.yml @@ -23,13 +23,13 @@ tabs: type: writer marks: false nodes: false - cta_text: + ctaText: width: 1/2 label: Texte du bouton CTA help: CTA pour call to action type: text default: Explorer - cta_link: + ctaLink: width: 1/2 label: Lien du bouton CTA help: CTA pour call to action diff --git a/site/templates/home.json.php b/site/templates/home.json.php index 94c9c2f..a8f86bd 100644 --- a/site/templates/home.json.php +++ b/site/templates/home.json.php @@ -5,8 +5,8 @@ $specificData = [ 'title' => $page->hero_title()->value(), 'title_highlight' => $page->hero_title_highlight()->value(), 'subtitle' => $page->hero_subtitle()->value(), - 'cta_text' => $page->hero_cta_text()->value(), - 'cta_link' => $page->hero_cta_link()->toPage()?->url() ?? '#', + 'ctaText' => $page->ctaText()->value(), + 'ctaPath' => $page->ctaLink()->toPage()?->id() ?? '#', 'image' => $page->hero_image()->toFile()?->url() ], 'background_video' => $page->background_video()->toFile()?->url(), diff --git a/src/views/Home.svelte b/src/views/Home.svelte index db773dc..a3e432c 100644 --- a/src/views/Home.svelte +++ b/src/views/Home.svelte @@ -1,27 +1,12 @@ @@ -125,7 +110,7 @@ style="z-index: 5; justify-self: center; margin-top: 6vmax;" >

- {t('homeText')} + {data.hero.subtitle}

- {t('explore')} + {data.hero.ctaText}