feat: add navbar layout with some JS controls (with Alpine.js)

This commit is contained in:
2024-08-04 20:40:09 +02:00
committed by florian_briand
parent e057889403
commit 23f85c5e92
15 changed files with 859 additions and 19 deletions

View File

@ -1,22 +1,26 @@
{% extends "base.html" %}
{% block title %}Pharma Libre{% endblock %}
{% block body %}
<div>
{% block title %}Pharma Libre{% endblock %}
{% block body %}
<div class="py-10">
<header>
<h1 class="text-3xl font-bold underline">Pharma Libre</h1>
<div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
<h1 class="text-3xl font-bold leading-tight tracking-tight text-gray-900">Dashboard</h1>
</div>
</header>
<main>
<div
id="hello"
hx-get="/hello"
hx-target="this"
hx-trigger="load"
hx-swap="outerHTML"
>
Loading...
<div class="mx-auto max-w-7xl px-4 py-8 sm:px-6 lg:px-8">
<!-- Your content -->
<div
id="hello"
hx-get="/hello"
hx-target="this"
hx-trigger="load"
hx-swap="outerHTML"
>
Loading...
</div>
</div>
</main>
</div>