Base server logic

This commit is contained in:
NGPixel
2016-08-16 23:56:08 -04:00
parent 991efbb1bc
commit 0f96377e30
10 changed files with 404 additions and 3 deletions

1
views/auth/login.pug Normal file
View File

@@ -0,0 +1 @@
DUDE

21
views/error.pug Normal file
View File

@@ -0,0 +1,21 @@
doctype html
html
head
meta(http-equiv='X-UA-Compatible', content='IE=edge')
meta(charset='UTF-8')
title= appconfig.title
// Favicon
each favsize in [32, 96, 16]
link(rel='icon', type='image/png', sizes=favsize + 'x' + favsize href='/images/favicon-' + favsize + 'x' + favsize + '.png')
// CSS
link(href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700|Inconsolata', rel='stylesheet', type='text/css')
link(type='text/css', rel='stylesheet', href='/css/app.css')
body(class='server-error')
#root
img(src='/images/logo-text_218x80.png')
h1 Oops, something went wrong
h4= message
pre #{error.stack}

28
views/layout.pug Normal file
View File

@@ -0,0 +1,28 @@
doctype html
html
head
meta(http-equiv='X-UA-Compatible', content='IE=edge')
meta(charset='UTF-8')
meta(name='theme-color', content='#009688')
meta(name='msapplication-TileColor', content='#009688')
title= appconfig.title
// Favicon
each favsize in [32, 96, 16]
link(rel='icon', type='image/png', sizes=favsize + 'x' + favsize href='/images/favicon-' + favsize + 'x' + favsize + '.png')
// CSS
link(type='text/css', rel='stylesheet', href='/css/libs.css')
link(type='text/css', rel='stylesheet', href='/css/app.css')
block head
body
#root
include ./common/header
include ./common/alerts
main
block content
include ./common/footer
block outside