Files
sonr/pkg/nebula/components/register/view.templ
T

32 lines
1.6 KiB
Templ
Raw Normal View History

2024-10-01 14:42:11 -04:00
package register
2024-09-22 02:51:52 -04:00
import (
"github.com/labstack/echo/v4"
2024-09-29 14:40:36 -04:00
"github.com/onsonr/sonr/pkg/nebula/components/blocks"
2024-09-30 21:27:02 -04:00
"github.com/onsonr/sonr/pkg/nebula/models/formstate"
2024-09-24 17:54:33 -04:00
)
2024-10-01 14:42:11 -04:00
templ View(c echo.Context) {
@blocks.Layout("Sonr.ID", true) {
@blocks.Card("register-view", blocks.SizeMedium) {
@blocks.Spacer()
@blocks.Breadcrumbs()
2024-09-30 21:27:02 -04:00
@basicInfoForm(formstate.Initial)
@blocks.Spacer()
2024-09-22 02:51:52 -04:00
}
}
}
2024-09-24 17:54:33 -04:00
2024-09-30 21:27:02 -04:00
templ basicInfoForm(state formstate.FormState) {
2024-09-24 17:54:33 -04:00
switch (state) {
default:
<div class="border rounded-lg shadow-sm bg-card text-zinc-900">
<div class="flex flex-col space-y-1.5 p-6"></div>
2024-09-24 17:54:33 -04:00
<div class="p-6 pt-0 space-y-2">
<div class="space-y-1"><label class="text-xs font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" for="name">Name</label><input type="text" id="name" placeholder="Adam Wathan" class="flex w-full h-10 px-3 py-2 text-sm bg-white border rounded-md peer border-zinc-300 ring-offset-background placeholder:text-zinc-400 focus:border-zinc-300 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-neutral-400 disabled:cursor-not-allowed disabled:opacity-50"/></div>
<div class="space-y-1"><label class="text-xs font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" for="username">Handle</label><input type="text" id="handle" placeholder="angelo.snr" class="flex w-full h-10 px-3 py-2 text-sm bg-white border rounded-md peer border-zinc-300 ring-offset-background placeholder:text-zinc-400 focus:border-zinc-300 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-neutral-400 disabled:cursor-not-allowed disabled:opacity-50"/></div>
2024-09-24 17:54:33 -04:00
</div>
</div>
}
}