mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-02 17:31:39 +00:00
- **refactor: move marketing pages to** - **feat: add role select input**
29 lines
809 B
Templ
29 lines
809 B
Templ
package modals
|
|
|
|
import (
|
|
"github.com/labstack/echo/v4"
|
|
"github.com/onsonr/sonr/pkg/nebula/auth"
|
|
"github.com/onsonr/sonr/pkg/nebula/global/styles"
|
|
)
|
|
|
|
// RegisterModal returns the Register Modal.
|
|
templ RegisterModal(c echo.Context) {
|
|
@styles.OpenModal("Account Registration", "Enter your account information below to create your account.") {
|
|
@auth.RegisterStart()
|
|
}
|
|
}
|
|
|
|
// LoginModal returns the Login Modal.
|
|
templ LoginModal(c echo.Context) {
|
|
@styles.OpenModal("Account Registration", "Enter your account information below to create your account.") {
|
|
@auth.LoginStart()
|
|
}
|
|
}
|
|
|
|
// AuthorizeModal returns the Authorize Modal.
|
|
templ AuthorizeModal(c echo.Context) {
|
|
@styles.OpenModal("Account Registration", "Enter your account information below to create your account.") {
|
|
@auth.AuthorizeStart()
|
|
}
|
|
}
|