feat: add page system behing navbar items and skeletons for loading

This commit is contained in:
2024-08-06 00:18:09 +02:00
parent 898ee32f9a
commit e084372b44
15 changed files with 392 additions and 16 deletions

View File

@ -5,5 +5,5 @@
hx-trigger="load"
hx-swap="outerHTML"
>
Chargement ...
{% include "skeletons/menu-items.html" %}
</div>

View File

@ -1,6 +1,10 @@
{% for item in items %}
<a
href="#{{ item.id }}"
href=""
hx-get="{{ item.href }}"
hx-trigger="click"
hx-target="#main-container"
hx-swap="innerHTML"
class="{{ Self::get_classes(self, item.current) }}"
aria-current="{% if item.current %}page{% endif %}"
>