add(web): add alpine and htmx

This commit is contained in:
maotovisk 2025-08-07 16:25:09 -03:00
parent 91a987e049
commit 96a5d9f230
7 changed files with 3321 additions and 0 deletions

View file

@ -3,6 +3,7 @@ package layouts
import (
"maot-shortner/web/templates/components/input"
"maot-shortner/web/templates/components/label"
"maot-shortner/web/templates/components/toast"
"maot-shortner/web/templates/modules"
)
@ -16,6 +17,9 @@ templ MainLayout() {
<link rel="icon" type="image/x-icon" href="/static/img/favicon.ico"/>
@input.Script()
@label.Script()
@toast.Script()
<script src="/static/js/htmx.min.js"></script>
<script src="/static/js/alpine.min.js"></script>
</head>
<body class="h-full">
<div class="h-full flex flex-col">