rentease/internal/view/login.templ
Ruidy 584d81f7bd
Some checks failed
CI / checks (push) Has been cancelled
feat(i18n): add language toggle and localize views
2026-01-09 16:09:20 -04:00

20 lines
557 B
Text

package view
import (
"github.com/rjNemo/rentease/internal/i18n"
"github.com/rjNemo/rentease/internal/view/layout"
)
templ Login(lfvm LoginFormViewModel) {
@layout.BaseLayout() {
<section class="flex justify-center items-center">
<div class="w-full max-w-md">
<hgroup class="text-center py-8">
<h1 class="text-4xl font-bold text-primary">{ i18n.Localize(ctx, "login.welcome") }</h1>
<h2 class="text-xl text-base-content/70">{ i18n.Localize(ctx, "login.subtitle") }</h2>
</hgroup>
@LoginForm(lfvm)
</div>
</section>
}
}