mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-02 17:31:39 +00:00
40 lines
1.0 KiB
Templ
40 lines
1.0 KiB
Templ
package views
|
|||
|
|
|
||
|
|
import (
|
||
|
|
"github.com/onsonr/sonr/internal/nebula/hero"
|
||
|
|
"github.com/onsonr/sonr/internal/nebula/layout"
|
||
|
|
)
|
||
|
|
|
||
|
|
templ InitialView(isUnavailable bool) {
|
||
|
|
if isUnavailable {
|
||
|
|
@layout.View("Sonr.ID") {
|
||
|
|
@layout.Container() {
|
||
|
|
@hero.TitleDesc("Sonr.ID", "The decentralized identity layer for the web.")
|
||
|
|
@hero.SocialButtonsRow()
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
@layout.View("Sonr.ID") {
|
||
|
|
@layout.Container() {
|
||
|
|
@hero.TitleDesc("Sonr.ID", "The decentralized identity layer for the web.")
|
||
|
|
@hero.StartButton()
|
||
|
|
@hero.SocialButtonsRow()
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
templ ReturningView() {
|
||
|
|
@layout.View("Login | Sonr.ID") {
|
||
|
|
@layout.Container() {
|
||
|
|
@hero.TitleDesc("Welcome Back!", "Continue with your existing Sonr.ID.")
|
||
|
|
<div class="pt-3 flex flex-col items-center justify-center h-full">
|
||
|
|
<sl-button hx-target="#container" hx-get="/register" type="button">
|
||
|
|
<sl-icon slot="prefix" library="sonr" name="sonr"></sl-icon>
|
||
|
|
Log back in
|
||
|
|
<sl-icon slot="suffix" library="sonr" name="arrow-right"></sl-icon>
|
||
|
|
</sl-button>
|
||
|
|
</div>
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|