styling n stuff
This commit is contained in:
parent
9c4af523b0
commit
abe580956e
@ -21,5 +21,17 @@ class extends Widget
|
||||
link rel: "stylesheet", href: "/static/main.css"
|
||||
body ->
|
||||
div class: "container", ->
|
||||
div class: "row", ->
|
||||
div class: "column column-25 btns", ->
|
||||
a class: "button", href: "#", "API Docs"
|
||||
div class: "column column-100", ->
|
||||
h1(@title or "Simplex")
|
||||
div class: "column column-25 btns", ->
|
||||
if @user
|
||||
a class: "button", href: @url_for("user_me"), "You"
|
||||
a class: "button", href: @url_for("user_logout"), "Log Out"
|
||||
else
|
||||
a class: "button", href: @url_for("user_login", nil, redirect: @url_for(@route_name)), "Log In"
|
||||
a class: "button", href: @url_for("user_new", nil, redirect: @url_for(@route_name)), "New User"
|
||||
|
||||
@content_for "inner"
|
||||
|
@ -16,3 +16,12 @@
|
||||
border-color: red;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btns {
|
||||
display: flex !important;
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
}
|
||||
.btns > a {
|
||||
margin: 1rem;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user