2024-10-15 14:31:19 -04:00
|
|
|
package authentication
|
2024-10-11 16:47:52 -04:00
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/labstack/echo/v4"
|
2024-10-15 14:31:19 -04:00
|
|
|
"github.com/onsonr/sonr/pkg/nebula/components/authentication/sections"
|
2024-10-11 16:47:52 -04:00
|
|
|
"github.com/onsonr/sonr/pkg/nebula/global/styles"
|
|
|
|
|
)
|
|
|
|
|
|
2024-10-23 09:52:07 -04:00
|
|
|
// RegisterModal returns the Register Modal.
|
2024-10-11 16:47:52 -04:00
|
|
|
templ RegisterModal(c echo.Context) {
|
|
|
|
|
@styles.OpenModal("Account Registration", "Enter your account information below to create your account.") {
|
|
|
|
|
@sections.RegisterStart()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-10-23 09:52:07 -04:00
|
|
|
// LoginModal returns the Login Modal.
|
2024-10-11 16:47:52 -04:00
|
|
|
templ LoginModal(c echo.Context) {
|
|
|
|
|
@styles.OpenModal("Account Registration", "Enter your account information below to create your account.") {
|
2024-10-15 14:31:19 -04:00
|
|
|
@sections.LoginStart()
|
2024-10-11 16:47:52 -04:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-10-23 09:52:07 -04:00
|
|
|
// AuthorizeModal returns the Authorize Modal.
|
2024-10-11 16:47:52 -04:00
|
|
|
templ AuthorizeModal(c echo.Context) {
|
|
|
|
|
@styles.OpenModal("Account Registration", "Enter your account information below to create your account.") {
|
2024-10-15 14:31:19 -04:00
|
|
|
@sections.AuthorizeStart()
|
2024-10-11 16:47:52 -04:00
|
|
|
}
|
|
|
|
|
}
|
2024-10-23 11:36:59 -04:00
|
|
|
|