more htmx examples on index. Ready for ap restyle and better examples

This commit is contained in:
0ceanSlim 2024-05-29 15:01:36 -04:00
parent dd43d8bb50
commit 405b437c44

View File

@ -3,10 +3,17 @@
<section>
<button
hx-get="/api/example"
class="p-2 text-white rounded-md bg-amber-400"
class="p-2 text-white bg-orange-400 rounded-md"
>
Click Me!
</button>
<button
hx-get="/example"
class="p-2 text-white bg-blue-400 rounded-md"
hx-swap="outerHTML"
>
Example page button
</button>
<h1 class="font-bold">API Example</h1>
<a href="/api/example" target="_blank">Access Example API</a>
<h2>Content Section</h2>