Seo
This commit is contained in:
@@ -15,7 +15,13 @@ class UserView(staticFileResolver: StaticFileResolver) : View(staticFileResolver
|
||||
jwtPayload: JwtPayload?,
|
||||
error: String? = null,
|
||||
validationErrors: List<ValidationError> = emptyList(),
|
||||
) = accountForm("Register", jwtPayload, error, validationErrors, "Create an account", "Register") {
|
||||
) = accountForm("Register",
|
||||
"Registration page",
|
||||
jwtPayload,
|
||||
error,
|
||||
validationErrors,
|
||||
"Create an account",
|
||||
"Register") {
|
||||
+"Already have an account? "
|
||||
a(href = "/login", classes = "no-underline text-blue-500 font-bold") { +"Sign In" }
|
||||
}
|
||||
@@ -25,13 +31,14 @@ class UserView(staticFileResolver: StaticFileResolver) : View(staticFileResolver
|
||||
error: String? = null,
|
||||
validationErrors: List<ValidationError> = emptyList(),
|
||||
new: Boolean = false,
|
||||
) = accountForm("Login", jwtPayload, error, validationErrors, "Sign In", "Sign In", new) {
|
||||
) = accountForm("Login", "Login page", jwtPayload, error, validationErrors, "Sign In", "Sign In", new) {
|
||||
+"Don't have an account yet? "
|
||||
a(href = "/register", classes = "no-underline text-blue-500 font-bold") { +"Create an account" }
|
||||
}
|
||||
|
||||
private fun accountForm(
|
||||
title: String,
|
||||
description: String,
|
||||
jwtPayload: JwtPayload?,
|
||||
error: String? = null,
|
||||
validationErrors: List<ValidationError> = emptyList(),
|
||||
@@ -39,7 +46,7 @@ class UserView(staticFileResolver: StaticFileResolver) : View(staticFileResolver
|
||||
submit: String,
|
||||
new: Boolean = false,
|
||||
footer: FlowContent.() -> Unit,
|
||||
) = renderPage(title = title, jwtPayload = jwtPayload) {
|
||||
) = renderPage(title = title, description, jwtPayload = jwtPayload) {
|
||||
div("centered container mx-auto flex justify-center items-center") {
|
||||
div("w-full md:w-1/2 lg:w-1/3 m-4") {
|
||||
h1("font-semibold text-lg mb-6 text-center") { +h1 }
|
||||
|
||||
Reference in New Issue
Block a user