mirror of
https://gitlab.durp.info/durfy/apps/durpweb.git
synced 2026-05-07 07:50:31 -05:00
update
This commit is contained in:
parent
035a813154
commit
67b4818274
10 changed files with 181 additions and 33 deletions
22
view/index.html
Normal file
22
view/index.html
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<script src="https://unpkg.com/htmx.org@1.9.10"></script>
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
<title>{{.MainTitle}}</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="text-center">
|
||||
{{ template "header" . }}
|
||||
<button
|
||||
class = "bg-blue-500 text-white py-2 px-3 my-5 rounded-lg"
|
||||
hx-get="/catfact"
|
||||
hx-target="#catfact"
|
||||
hx-swap="outerHTML"
|
||||
>Get a Cat Fact</button>
|
||||
{{ template "CatFact" . }}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue