This commit is contained in:
karl0ss 2019-07-15 23:13:06 +01:00
parent c613550ac4
commit 9bd84d9fb4
3 changed files with 6 additions and 13 deletions

View File

@ -3,7 +3,7 @@ const express = require('express');
const app = express();
app.set('view engine', 'pug');
app.use(express.static(__dirname + '/public'));
app.use(express.static(__dirname + '/server'));
const createArray = str => {
const arr = str.split(',');

View File

@ -33,22 +33,15 @@ body {
.socket {
text-align: center;
}
.socket > * {
margin-bottom: 5px;
}
.socket-image {
width: 100%;
height: 300px;
}
.button {
height: 50px;
line-height: 50px;
width: 100%;
text-decoration: none;
text-align: center;
font-size: 20px
font-size: 20px;
box-shadow: 1px 1px black;
}

View File

@ -6,9 +6,9 @@ block content
div.socket
h2.socket-name
| #{socket.name}
h2.socket-name2
h2.socket-name
| #{socket.uid}
h2.socket-name2
h2.socket-name
| #{socket.status}
a(href=`/?uid=${socket.uid}`)
a.button(href=`/?uid=${socket.uid}`)
| Toggle