2024-12-05 20:36:58 -05:00
|
|
|
package index
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/onsonr/sonr/pkg/styles/layout"
|
|
|
|
|
"github.com/onsonr/sonr/pkg/styles/text"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
templ InitialView() {
|
|
|
|
|
@layout.Root("Welcome | Sonr.ID") {
|
|
|
|
|
@layout.Container() {
|
|
|
|
|
@text.Header("Sonr.ID", "The decentralized identity layer for the web.")
|
|
|
|
|
<div class="pt-3 flex flex-col items-center justify-center h-full">
|
2024-12-06 21:31:20 -05:00
|
|
|
<sl-button hx-target="#container" hx-get="/register" hx-push-url="/register" type="button">
|
2024-12-05 20:36:58 -05:00
|
|
|
<sl-icon slot="prefix" library="sonr" name="sonr"></sl-icon>
|
|
|
|
|
Get Started
|
|
|
|
|
<sl-icon slot="suffix" library="sonr" name="arrow-right"></sl-icon>
|
|
|
|
|
</sl-button>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
templ ReturningView() {
|
|
|
|
|
@layout.Root("Login | Sonr.ID") {
|
|
|
|
|
@layout.Container() {
|
|
|
|
|
@text.Header("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>
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|