diff --git a/site/templates/white-paper.json.php b/site/templates/white-paper.json.php index 852ae95..11ea537 100644 --- a/site/templates/white-paper.json.php +++ b/site/templates/white-paper.json.php @@ -2,7 +2,7 @@ $specificData = [ 'published' => $page->published()->toDate('d/m/Y'), - 'intro' => $page->intro()->value(), + 'intro' => $page->intro()->inline()->value(), 'cover' => $page->cover()->toFile()?->url(), 'fileUrl' => $page->downloadFile()->toFile()?->url(), ]; diff --git a/src/views/WhitePaper.svelte b/src/views/WhitePaper.svelte index 7a56fd1..32b9c25 100644 --- a/src/views/WhitePaper.svelte +++ b/src/views/WhitePaper.svelte @@ -12,6 +12,7 @@ let consent = $state(false) let submitting = $state(false) let status = $state(null) // null | 'success' | 'error' + let showForm = $state(false) async function handleSubmit(e) { e.preventDefault() @@ -41,45 +42,57 @@
- -
-
-

{t('white_paper_label')}

-

{data.title}

+
+ +

{t('white_paper_label')}

+ + +
+

{data.title}

{#if data.intro} -

{data.intro}

+

{data.intro}

{/if} +
- {#if data.cover} - {data.title} - {/if}
- -
-
-

{t('wp_form_intro')}

-
-
- - -
- - - + + {#if data.cover} + {data.title} + {/if} -