Show version on front page

This commit is contained in:
Jerko Steiner 2017-06-18 10:35:38 -04:00
parent 5adc8919e5
commit 7d9f5dce01
3 changed files with 26 additions and 5 deletions

View File

@ -13,21 +13,37 @@ $color-info: #31EF40;
$color-warning: #F0C808;
$color-error: #EE7600;
* {
*,
*:before,
*:after {
box-sizing: border-box;
}
html, body {
width: 100%;
html {
height: 100%;
}
html, body {
z-index: -99;
}
body {
background-color: $color-bg;
color: $color-fg;
margin: 0 0;
margin: 0;
font-family: $font-sans-serif;
min-height: 100%;
padding-bottom: 3rem;
position: relative;
}
footer {
position: absolute;
padding: 1rem 0;
bottom: 0;
left: 0;
right: 0;
text-align: center;
}
body.call {

View File

@ -8,6 +8,8 @@ const app = express()
const http = require('http').Server(app)
const io = require('socket.io')(http)
app.locals.version = require('../../package.json').version
app.set('view engine', 'pug')
app.set('views', path.join(__dirname, '../views'))

View File

@ -14,10 +14,13 @@ html
body
include ./_fork.pug
div#container
#container
form#form(method="get" action="call")
h1
img(src="res/peer-calls.svg" width="100%" alt="Peer Calls")
p Group peer-to-peer calls for everyone. Create a private room. Share the link.
input(type="submit" value="New Session")
footer
div v#{version}