add sectioned template
This commit is contained in:
parent
3008e231cb
commit
b1ddfee49c
29 changed files with 297 additions and 23 deletions
11
site/snippets/collapsable-section.php
Normal file
11
site/snippets/collapsable-section.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<section class="collapsable" x-data="{
|
||||
open: false
|
||||
}">
|
||||
<button class="toggle" @click="open = !open" title="Ouvrir la section">
|
||||
<h4>Prenez vos places !</h4>
|
||||
<?= svg('assets/images/icons/arrow-down.svg') ?>
|
||||
</button>
|
||||
<div class="collapsable__content" :class="open ? 'open' : ''">
|
||||
test
|
||||
</div>
|
||||
</section>
|
||||
|
|
@ -9,12 +9,19 @@
|
|||
|
||||
<link rel="stylesheet" type="text/css" href="<?= url('assets/css/style.css?version-cache-prevent') . rand(0, 1000) ?>">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<?php if ($page->isHomePage()): ?>
|
||||
<?php if ($page->isHomePage() || $page->template() == 'event'): ?>
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/dayjs@1/dayjs.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/dayjs@1/locale/fr.js"></script>
|
||||
<?= js('/assets/js/calendar.js') ?>
|
||||
<?php endif ?>
|
||||
<?php if ($page->color()->exists()): ?>
|
||||
<style>
|
||||
:root {
|
||||
--color-accent: <?= $page->color() ?>;
|
||||
}
|
||||
</style>
|
||||
<?php endif ?>
|
||||
</head>
|
||||
<body>
|
||||
<?php if ($page->isHomePage()): ?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue