doctype html
html(lang="en")
head
meta(charset="UTF-8")
meta(name="viewport", content="width=device-width, initial-scale=1.0")
meta(name="description", content="Show your mood to the world!")
link(rel="stylesheet", href="/css/main.css")
block head
title #{title} > mipilin
body
main
header
a(href="/")
img#header-logo(src="/img/logo.svg", alt="logo")
nav
if session.loggedIn
a(href="/dashboard/") Dashboard
a(href="/journal/") Journal
a(href="/logout/") Log out
else
a(href="/register/") Sign up
a(href="/login") Log in
#ticker
div
if session.loggedIn
span
a(href=`/users/${session.user}`)= session.user
|
| is feeling
|
strong #{currentMood || "nothing...??"}
else
| You should log in! It's FUN!!
span#ticker-marquee
marquee
| The beta is still a thing that is happening! If something fucks up plz let me know! <3
#page
block page
#content
if flashes
#flashes
for [type, flashGroup] of Object.entries(flashes)
for flash of flashGroup
div(class=`flash-${type}`)!= flash
block content