add(js): add correct import ver

This commit is contained in:
maotovisk 2025-08-07 14:29:49 -03:00
parent 80df48284c
commit 91a987e049
8 changed files with 7 additions and 37 deletions

View file

@ -2,9 +2,9 @@
package input
import (
"maot-shortner/web/resources/utils"
"maot-shortner/web/templates/components/button"
"maot-shortner/web/templates/components/icon"
"maot-shortner/web/resources/utils"
)
type Type string
@ -119,5 +119,5 @@ templ Input(props ...Props) {
}
templ Script() {
<script defer src="/web/static/js/input.min.js"></script>
<script defer src="/static/js/input.min.js"></script>
}

View file

@ -38,5 +38,5 @@ templ Label(props ...Props) {
}
templ Script() {
<script defer src="/web/static/js/label.min.js"></script>
<script defer src="/static/js/label.min.js"></script>
}

View file

@ -11,7 +11,7 @@ templ Home() {
@layouts.MainLayout() {
<div class="h-full flex justify-center items-center flex-col">
@icon.Link(icon.Props{Class: "w-24 h-24"})
<h2 class="text-4xl font-bold py">shorten your urls...</h2>
<h2 class="text-4xl font-bold py-4">shorten your urls...</h2>
<div class="flex gap-4 items-center justify-center mt-4 px-4 w-full max-w-2xl">
@input.Input(input.Props{
ID: "URL",