styling n stuff

This commit is contained in:
Paul Liverman III 2018-04-24 20:44:44 -07:00
parent 9c4af523b0
commit abe580956e
2 changed files with 22 additions and 1 deletions

View File

@ -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"

View File

@ -16,3 +16,12 @@
border-color: red;
color: white;
}
.btns {
display: flex !important;
justify-content: flex-end;
align-items: center;
}
.btns > a {
margin: 1rem;
}