redesign home with edito
This commit is contained in:
parent
6c25374e09
commit
8aa1b420d9
4 changed files with 20 additions and 25 deletions
|
|
@ -1,25 +1,24 @@
|
|||
<?php snippet('header') ?>
|
||||
|
||||
<main x-data="{ isEditoOpen: false }">
|
||||
<?php snippet('cover', slots: true) ?>
|
||||
<article>
|
||||
<?php snippet('cover', slots: true) ?>
|
||||
<?php slot('title') ?>
|
||||
<div class="title-center">
|
||||
<button @click="isEditoOpen = !isEditoOpen">
|
||||
<h2>
|
||||
critique des arts<br>
|
||||
et des techniques<br>
|
||||
</h2>
|
||||
<button
|
||||
class="main-edito-btn | toggle-btn left"
|
||||
:class="isEditoOpen ? 'open' : 'close'"
|
||||
>édito</button>
|
||||
</button>
|
||||
</div>
|
||||
<div x-show="isEditoOpen" class="edito">
|
||||
<a
|
||||
href="#main-edito"
|
||||
class="no-line"
|
||||
@click="isEditoOpen = true"
|
||||
>
|
||||
<h2 class="main-title <?= setTitleFontSizeClass($site->subtitle()) ?>"><?= $site->subtitle() ?></h2>
|
||||
<p
|
||||
class="main-edito-btn | toggle-btn left"
|
||||
>édito</p>
|
||||
</button>
|
||||
<?php endslot() ?>
|
||||
<?php endsnippet() ?>
|
||||
<div x-show="isEditoOpen" id="main-edito" class="content">
|
||||
<?= $site->edito() ?>
|
||||
</div>
|
||||
<?php endslot() ?>
|
||||
<?php endsnippet() ?>
|
||||
<?php snippet('nav') ?>
|
||||
</article>
|
||||
</main>
|
||||
<?php snippet('footer') ?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue