summaryrefslogtreecommitdiff
path: root/public/index.html
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-04-25 21:25:40 -0600
committermo khan <mo@mokhan.ca>2025-04-28 09:07:31 -0600
commit9b01d1616e130a589151bf1273e41181ecc727f4 (patch)
tree639ec3b3c3857042a551c8e88b09413f590ebcec /public/index.html
parent13ab8de7d09b5d4b10132828277d17ba0543b901 (diff)
feat: use htmx to render partials
Diffstat (limited to 'public/index.html')
-rw-r--r--public/index.html13
1 files changed, 3 insertions, 10 deletions
diff --git a/public/index.html b/public/index.html
index 988d729..c918c7e 100644
--- a/public/index.html
+++ b/public/index.html
@@ -6,24 +6,17 @@
<meta name="color-scheme" content="light dark">
<title>SparkleLab</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css">
+ <script src="https://unpkg.com/htmx.org@2.0.4"></script>
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<script src="/application.js"></script>
</head>
<body>
- <header class="container">
- <nav>
- <ul>
- <li><strong>SparkleLab✨</strong></li>
- </ul>
- <ul>
- <li><a href="/session/new">Login</a></li>
- </ul>
- </nav>
+ <header class="container" hx-get="/dashboard/nav" hx-trigger="load">
+ <progress />
</header>
<main id="app" class="container">
<h1>${ heading }</h1>
-
<article v-for="sparkle in recentSparkles">
<header>
<img :src="sparkle.author.picture" :alt="sparkle.author.username">