expertise : fix title custom marks implementation
All checks were successful
Deploy / Deploy to Production (push) Successful in 26s
All checks were successful
Deploy / Deploy to Production (push) Successful in 26s
This commit is contained in:
parent
79019b761f
commit
1625ee1c44
6 changed files with 62 additions and 40 deletions
BIN
assets/img/livre-blanc.png
Normal file
BIN
assets/img/livre-blanc.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 275 KiB |
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$specificData = [
|
$specificData = [
|
||||||
'pageTitle' => $page->writer()->value(),
|
'pageTitle' => $page->writer()->inline()->value(),
|
||||||
'backgroundVideo' => $page->backgroundVideo()->toFile()?->url(),
|
'backgroundVideo' => $page->backgroundVideo()->toFile()?->url(),
|
||||||
'backgroundVideoReverse' => $page->backgroundVideoReverse()->toFile()?->url(),
|
'backgroundVideoReverse' => $page->backgroundVideoReverse()->toFile()?->url(),
|
||||||
'items' => $page->body()->toBlocks()->filter(fn($b) => $b->type() === 'text')->map(fn($block) => [
|
'items' => $page->body()->toBlocks()->filter(fn($b) => $b->type() === 'text')->map(fn($block) => [
|
||||||
|
|
|
||||||
17
src/styles/form.css
Normal file
17
src/styles/form.css
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
.input {
|
||||||
|
background: rgba(255, 255, 255, 0.08);
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.25);
|
||||||
|
border-radius: 0.3rem;
|
||||||
|
color: #fff;
|
||||||
|
font-family: "Danzza", sans-serif;
|
||||||
|
font-size: var(--font-size-paragraph);
|
||||||
|
padding: 0.875rem 1rem;
|
||||||
|
width: 100%;
|
||||||
|
transition: border-color 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 700px) {
|
||||||
|
.input {
|
||||||
|
padding: 0.6rem 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
/* Main styles entry point */
|
/* Main styles entry point */
|
||||||
@import './variables.css';
|
@import "./variables.css";
|
||||||
@import './reset.css';
|
@import "./reset.css";
|
||||||
@import './fonts.css';
|
@import "./fonts.css";
|
||||||
@import './layout.css';
|
@import "./layout.css";
|
||||||
@import './collection.css';
|
@import "./collection.css";
|
||||||
@import './buttons.css';
|
@import "./buttons.css";
|
||||||
@import './cursor.css';
|
@import "./cursor.css";
|
||||||
@import './utils.css';
|
@import "./form.css";
|
||||||
|
@import "./utils.css";
|
||||||
|
|
|
||||||
|
|
@ -258,7 +258,7 @@
|
||||||
<div class="vertical-line-end" aria-hidden="true"></div>
|
<div class="vertical-line-end" aria-hidden="true"></div>
|
||||||
|
|
||||||
<!-- Title -->
|
<!-- Title -->
|
||||||
<h2 class="expertise-title font-face-terminal">
|
<h2 class="expertise-title">
|
||||||
{@html data?.pageTitle ?? ''}
|
{@html data?.pageTitle ?? ''}
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="white-paper">
|
<div class="white-paper" class:show-form={showForm}>
|
||||||
<div class="catch-area">
|
<div class="catch-area">
|
||||||
<!-- Label — separate so form can align with title -->
|
<!-- Label — separate so form can align with title -->
|
||||||
<p class="label">{t('white_paper_label')}</p>
|
<p class="label">{t('white_paper_label')}</p>
|
||||||
|
|
@ -79,7 +79,6 @@
|
||||||
|
|
||||||
<!-- Form area: right column on desktop, full-screen overlay on mobile -->
|
<!-- Form area: right column on desktop, full-screen overlay on mobile -->
|
||||||
<div class="form-area" class:is-visible={showForm}>
|
<div class="form-area" class:is-visible={showForm}>
|
||||||
<button class="form-close" onclick={() => showForm = false} aria-label="Fermer">✕</button>
|
|
||||||
{#if status === 'success'}
|
{#if status === 'success'}
|
||||||
<div class="thank-you">
|
<div class="thank-you">
|
||||||
<img src="/assets/img/smiley.svg" alt="" class="thank-you-smiley" aria-hidden="true" />
|
<img src="/assets/img/smiley.svg" alt="" class="thank-you-smiley" aria-hidden="true" />
|
||||||
|
|
@ -226,17 +225,6 @@
|
||||||
gap: 0.75rem;
|
gap: 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input {
|
|
||||||
background: rgba(255, 255, 255, 0.08);
|
|
||||||
border: 1px solid rgba(255, 255, 255, 0.25);
|
|
||||||
color: #fff;
|
|
||||||
font-family: "Danzza", sans-serif;
|
|
||||||
font-size: var(--font-size-paragraph);
|
|
||||||
padding: 0.875rem 1rem;
|
|
||||||
width: 100%;
|
|
||||||
transition: border-color 0.2s;
|
|
||||||
}
|
|
||||||
|
|
||||||
.input:focus {
|
.input:focus {
|
||||||
outline: none;
|
outline: none;
|
||||||
border-color: var(--color-primary);
|
border-color: var(--color-primary);
|
||||||
|
|
@ -341,15 +329,18 @@
|
||||||
/* ── Mobile ── */
|
/* ── Mobile ── */
|
||||||
@media (max-width: 700px) {
|
@media (max-width: 700px) {
|
||||||
.white-paper {
|
.white-paper {
|
||||||
display: block;
|
|
||||||
height: 100vh;
|
|
||||||
overflow: hidden;
|
|
||||||
padding: 6rem 0;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
|
height: 100vh;
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.catch-area {
|
.catch-area {
|
||||||
width: auto;
|
width: auto;
|
||||||
|
margin-bottom: 10rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.label {
|
.label {
|
||||||
|
|
@ -392,20 +383,29 @@
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Form overlay */
|
/* Quand le formulaire est affiché : masque le contenu principal */
|
||||||
|
.show-form .catch-area,
|
||||||
|
.show-form .cover {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Formulaire in-flow dans la slide (pas d'overlay fixe) */
|
||||||
.form-area {
|
.form-area {
|
||||||
display: none;
|
display: none;
|
||||||
position: fixed;
|
|
||||||
inset: 0;
|
|
||||||
z-index: 100;
|
|
||||||
background: #0b0b18;
|
|
||||||
flex-direction: column;
|
|
||||||
padding: 1.5rem 1.25rem;
|
|
||||||
overflow-y: auto;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-area.is-visible {
|
.form-area.is-visible {
|
||||||
|
margin: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
width: 100%;
|
||||||
|
height: fit-content;
|
||||||
|
padding: 1.5rem;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-intro {
|
||||||
|
font-size: var(--font-size-paragraph-mobile);
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-close {
|
.form-close {
|
||||||
|
|
@ -413,21 +413,25 @@
|
||||||
align-self: flex-end;
|
align-self: flex-end;
|
||||||
background: none;
|
background: none;
|
||||||
border: none;
|
border: none;
|
||||||
color: #fff;
|
color: rgba(255,255,255,0.5);
|
||||||
font-size: 1.25rem;
|
font-size: 1.25rem;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: 0.25rem 0.5rem;
|
padding: 0.5rem;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-card {
|
.form-card {
|
||||||
background: none;
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.consent span {
|
||||||
|
font-size: var(--font-size-paragraph-small-mobile);
|
||||||
|
}
|
||||||
|
|
||||||
.submit {
|
.submit {
|
||||||
margin-top: auto;
|
margin-top: 1.5rem;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue