This commit is contained in:
parent
3fd93ac292
commit
1e91353c86
3 changed files with 50 additions and 38 deletions
|
|
@ -154,7 +154,7 @@ button.see-more {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ================= TEXT ITEM ================= */
|
/* ================= TEXT ITEM ================= */
|
||||||
.panel .text {
|
.texts .text {
|
||||||
margin-bottom: var(--unit--vertical);
|
margin-bottom: var(--unit--vertical);
|
||||||
}
|
}
|
||||||
.panel .text:first-child,
|
.panel .text:first-child,
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,13 @@ image:
|
||||||
columns:
|
columns:
|
||||||
- width: 1/3
|
- width: 1/3
|
||||||
sections:
|
sections:
|
||||||
|
fieldsSection:
|
||||||
|
type: fields
|
||||||
|
fields:
|
||||||
|
openDate:
|
||||||
|
label: Date d'ouverture
|
||||||
|
type: date
|
||||||
|
display: DD/MM/YYYY
|
||||||
texts:
|
texts:
|
||||||
label: Textes
|
label: Textes
|
||||||
type: pages
|
type: pages
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,24 @@
|
||||||
<?php snippet('header'); ?>
|
<?php snippet('header') ?>
|
||||||
|
|
||||||
<main id="<?= $page->template() ?>">
|
<main id="<?= $page->template() ?>">
|
||||||
<article
|
<article>
|
||||||
x-data="{edito: false}"
|
<?php snippet('cover', array('isOpen' => true), slots: true) ?>
|
||||||
>
|
<?php slot('title') ?>
|
||||||
<?php snippet('cover', slots: true) ?>
|
<h1 class="main-title"><?= $page->title() ?></h1>
|
||||||
<?php slot('text') ?>
|
<?php if ($page->subtitle()->isNotEmpty()): ?>
|
||||||
<h2 class="main-title <?= setTitleFontSizeClass($page->title()) ?>"><?= $page->title() ?></h2>
|
<h2 class="main-subtitle fs-l"><?= $page->subtitle()->inline() ?></h2>
|
||||||
<div class="edito" :class="edito ? '' : 'short'"><?= $page->edito() ?></div>
|
<?php endif ?>
|
||||||
<button
|
<p>
|
||||||
:class="edito ? 'open' : 'close'"
|
<span class="light">ouverte depuis le </span><?= $page->openDate()->toDate('d/m/Y') ?>
|
||||||
class="see-more toggle-btn toggle-btn--left"
|
</p>
|
||||||
@click="edito = !edito"
|
<?php endslot() ?>
|
||||||
>Lire</button>
|
<?php endsnippet() ?>
|
||||||
<p class="h3">textes :</p>
|
|
||||||
|
<div id="main-content">
|
||||||
|
<?php if ($page->chapo()->isNotEmpty()): ?>
|
||||||
|
<div id="chapo">
|
||||||
|
<?= $page->chapo() ?>
|
||||||
|
</div>
|
||||||
|
<?php endif ?>
|
||||||
<ul class="texts">
|
<ul class="texts">
|
||||||
<?php foreach($page->children() as $article): ?>
|
<?php foreach($page->children() as $article): ?>
|
||||||
<li
|
<li
|
||||||
|
|
@ -32,8 +37,8 @@
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
</ul>
|
</div>
|
||||||
<?php endslot() ?>
|
</article>
|
||||||
<?php endsnippet() ?>
|
|
||||||
</article>
|
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
<?php snippet('footer') ?>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue