Navbar css
This commit is contained in:
parent
204f2fb002
commit
4c4ca2dd98
@ -18,17 +18,17 @@ fun BODY.navbar(jwtPayload: JwtPayload?) {
|
||||
"/settings" to "Settings",
|
||||
)
|
||||
links.forEach { (href, name) ->
|
||||
li("inline text-gray-100 text-md font-semibold") {
|
||||
li("txt") {
|
||||
a(href = href) { +name }
|
||||
}
|
||||
}
|
||||
li("inline") {
|
||||
form(classes = "inline", action = "/logout", method = FormMethod.post) {
|
||||
li {
|
||||
form(action = "/logout", method = FormMethod.post) {
|
||||
button(type = ButtonType.submit, classes = "btn btn-green") { +"Logout" }
|
||||
}
|
||||
}
|
||||
} else {
|
||||
li("inline") {
|
||||
li {
|
||||
a(href = "/login", classes = "btn btn-green") { +"Sign In" }
|
||||
}
|
||||
}
|
||||
|
||||
@ -4,10 +4,30 @@
|
||||
|
||||
#home {
|
||||
@apply text-2xl text-gray-100 font-bold;
|
||||
|
||||
&:hover {
|
||||
@apply text-blue-300;
|
||||
}
|
||||
}
|
||||
|
||||
#navigation {
|
||||
@apply my-2;
|
||||
|
||||
li {
|
||||
@apply inline;
|
||||
|
||||
form {
|
||||
@apply inline;
|
||||
}
|
||||
}
|
||||
|
||||
.txt {
|
||||
@apply text-gray-100 font-semibold;
|
||||
|
||||
&:hover {
|
||||
@apply underline text-blue-300;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user