Use btn css class

This commit is contained in:
2020-08-14 15:56:41 +02:00
parent b90df61020
commit 90f6709885
7 changed files with 41 additions and 12 deletions
@@ -11,17 +11,14 @@ fun BODY.navbar(jwtPayload: JwtPayload?) {
li("inline text-gray-100 ml-2 text-md font-semibold") {
a(href = "/notes") { +"Notes" }
}
li(
"text-gray-800 bg-green-500 hover:bg-green-700" +
" inline ml-2 text-md font-semibold rounded px-4 py-2"
) {
li("inline ml-2") {
form(classes = "inline", action = "/logout", method = FormMethod.post) {
button(type = ButtonType.submit) { +"Logout" }
button(type = ButtonType.submit, classes = "btn btn-green") { +"Logout" }
}
}
} else {
li("inline text-gray-100 pl-2 text-md font-semibold") {
a(href = "/login") { +"Sign In" }
li("inline pl-2") {
a(href = "/login", classes = "btn btn-green") { +"Sign In" }
}
}
}