initial version
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
{{ define "index" }}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link href="https://cdn.jsdelivr.net/npm/daisyui@4.6.0/dist/full.min.css" rel="stylesheet" type="text/css" />
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
<script src="https://unpkg.com/htmx.org@latest"></script>
|
||||
<script src="https://unpkg.com/htmx.org@latest/dist/ext/client-side-templates.js"></script>
|
||||
<script src="https://unpkg.com/mustache@latest"></script>
|
||||
<link rel="stylesheet" href="/css/custom.css">
|
||||
<title>HTMX Test</title>
|
||||
</head>
|
||||
|
||||
<body class="bg-[#a600f9] min-h-screen text-center text-white">
|
||||
<div id="app">
|
||||
<button class="btn btn-accent text-black text-2xl m-8" hx-disabled-elt="this" hx-get="/users"
|
||||
hx-swap="innerHTML transition:true" hx-indicator="#indicator" hx-target="#content">Get
|
||||
list of users</button>
|
||||
</div>
|
||||
|
||||
<div id="indicator">
|
||||
<img src="/assets/bars.svg" alt="Loading..." class="h-12 w-12 mx-auto indicator">
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user