design virtual pages

This commit is contained in:
isUnknown 2024-04-10 16:52:41 +02:00
parent 8e65a1cc64
commit c70b4890f8
12 changed files with 131 additions and 84 deletions

View file

@ -8,6 +8,11 @@ $isOpen = isset($isOpen) ? $isOpen : false;
<div class="title-wrapper">
<?= $slots->title() ?>
</div>
<?php if ($slots->text()): ?>
<div class="text-wrapper">
<?= $slots->text() ?>
</div>
<?php endif ?>
</header>
<div id="entry-btns">
<button

View file

@ -36,7 +36,7 @@
:class="isOpen ? '' : 'short'"
@click="isOpen = !isOpen"
>
<h3 class="fs-xl color" style="--color:var(--color-secondary)"><?= $year->title() ?></h3>
<h3><?= $year->title() ?></h3>
<div
class="panel__toggle-icon"
x-text="isOpen || search.length > 0 ? '-' : '+'"
@ -79,7 +79,7 @@
"
>
<a href="<?= $article->url() ?>" class="text__title no-line">
<h3><?= $article->title() ?></h3>
<h4><?= $article->title() ?></h4>
</a>
<div class="text__infos">
<p>
@ -143,7 +143,7 @@
:class="isOpen ? '' : 'short'"
@click="isOpen = !isOpen"
>
<h3 class="fs-xl color" style="--color:var(--color-secondary)"><?= $category['title'] ?></h3>
<h3><?= $category['title'] ?></h3>
<div
class="panel__toggle-icon"
x-text="isOpen || search.length > 0 ? '-' : '+'"
@ -174,7 +174,7 @@
"
>
<a href="<?= $article->url() ?>" class="text__title no-line">
<h3><?= $article->title() ?></h3>
<h4><?= $article->title() ?></h4>
</a>
<div class="text__infos">
<p>