add(web): basic layout and ui

This commit is contained in:
maotovisk 2025-08-07 11:15:56 -03:00
parent fd14d22fed
commit 80df48284c
17 changed files with 9288 additions and 4 deletions

View file

@ -0,0 +1,34 @@
package modules
import "maot-shortner/web/templates/components/icon"
import "maot-shortner/web/templates/components/button"
templ Github() {
@button.Button(button.Props{
Variant: button.VariantGhost,
Href: "https://git.maot.dev/maot/maot-shortner",
}) {
<span class="font-bold">
repo
</span>
@icon.GitMerge(icon.Props{Class: "w-6 h-6"})
}
}
templ Navbar() {
<nav class="py-1">
<div class="px-6 flex justify-between items-center relative">
<div class="flex items-center">
<a href="/" class="flex items-center gap-1.5">
@icon.Link(icon.Props{Class: "w-6 h-6"})
<span class="text-xl font-bold">s.maot.dev</span>
</a>
</div>
<div class="flex gap-1 items-center justify-center">
@ThemeSwitcher()
@Github()
</div>
</div>
</nav>
}