more htmx examples on index. Ready for ap restyle and better examples
This commit is contained in:
parent
dd43d8bb50
commit
405b437c44
@ -3,10 +3,17 @@
|
|||||||
<section>
|
<section>
|
||||||
<button
|
<button
|
||||||
hx-get="/api/example"
|
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!
|
Click Me!
|
||||||
</button>
|
</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>
|
<h1 class="font-bold">API Example</h1>
|
||||||
<a href="/api/example" target="_blank">Access Example API</a>
|
<a href="/api/example" target="_blank">Access Example API</a>
|
||||||
<h2>Content Section</h2>
|
<h2>Content Section</h2>
|
||||||
|
Loading…
Reference in New Issue
Block a user