white paper > intro : keep html formating. closes #76
All checks were successful
Deploy Production / Deploy to Production (push) Successful in 23s
All checks were successful
Deploy Production / Deploy to Production (push) Successful in 23s
This commit is contained in:
parent
35f160f9d1
commit
952375e6f5
2 changed files with 6 additions and 2 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
$specificData = [
|
$specificData = [
|
||||||
'published' => $page->published()->toDate('d/m/Y'),
|
'published' => $page->published()->toDate('d/m/Y'),
|
||||||
'intro' => $page->intro()->inline()->value(),
|
'intro' => $page->intro()->value(),
|
||||||
'cover' => $page->cover()->toFile()?->url(),
|
'cover' => $page->cover()->toFile()?->url(),
|
||||||
'fileUrl' => $page->downloadFile()->toFile()?->url(),
|
'fileUrl' => $page->downloadFile()->toFile()?->url(),
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@
|
||||||
<div class="text">
|
<div class="text">
|
||||||
<h1 class="title">{data.title}</h1>
|
<h1 class="title">{data.title}</h1>
|
||||||
{#if data.intro}
|
{#if data.intro}
|
||||||
<p class="description">{data.intro}</p>
|
<div class="description">{@html data.intro}</div>
|
||||||
{/if}
|
{/if}
|
||||||
<button class="trigger button" onclick={() => showForm = true}>
|
<button class="trigger button" onclick={() => showForm = true}>
|
||||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
|
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
|
||||||
|
|
@ -173,6 +173,10 @@
|
||||||
max-width: 90%;
|
max-width: 90%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.description :global(p:not(:last-child)) {
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
/* Mobile trigger: hidden on desktop */
|
/* Mobile trigger: hidden on desktop */
|
||||||
.trigger {
|
.trigger {
|
||||||
display: none;
|
display: none;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue