From fd073bed4077f6a8ab284d53d852c35245bcb309 Mon Sep 17 00:00:00 2001 From: tunkki Date: Sun, 14 Aug 2016 19:33:18 +0300 Subject: Update layout --- index.js | 2 +- public/style.css | 30 ++++++++++++++++++++++++++++-- views/index.html | 17 +++++++++++------ 3 files changed, 40 insertions(+), 9 deletions(-) diff --git a/index.js b/index.js index 3c1e06a..7df1b70 100644 --- a/index.js +++ b/index.js @@ -3,7 +3,7 @@ var express = require("express"); var ejs = require("ejs"); var winston = require("winston"); winston.remove(winston.transports.Console); -winston.add(winston.transports.Console, {'timestamp': true}); +winston.add(winston.transports.Console, {'handleExceptions': true, 'exitOnError': false, 'timestamp': true}); winston.add(winston.transports.File, { filename: './logs/server.log', level: 'info', timestamp: true, handleExceptions: true, maxsize: 5242880, maxFiles: 10}); winston.level = 'info'; diff --git a/public/style.css b/public/style.css index 9983bea..ea0dc90 100644 --- a/public/style.css +++ b/public/style.css @@ -3,12 +3,15 @@ body { font-family: 'Lato', sans-serif; font-weight: 400; font-style: italic; + font-size: 18px; } -div { +.system { margin: 10px; border-radius: 10px; padding: 3px; + display: flex; + height: 20vh; } h1, h2, h3 { @@ -18,7 +21,30 @@ h1, h2, h3 { } h1 { - font-size: 40px; +} + +.system-title-container { + display: inline-flex; + text-align: left; + justify-content: center; + flex-direction: column; +} + +.system-info-container { + display: inline-flex; + text-align: right; + flex-direction: column; + padding: 10px; + margin-left: auto; + justify-content: center; +} + +.system-title { + font-size: 7vw; +} + +.system-info-elem { + font-size: 5vw; } .good-system { diff --git a/views/index.html b/views/index.html index fe2e79d..8ea3571 100644 --- a/views/index.html +++ b/views/index.html @@ -3,6 +3,7 @@ + Radiodiodi system status @@ -11,12 +12,16 @@ -
-

- {{ system.name }} -

-

{{ system.status ? "UP" : "DOWN" }}

-

Uptime: {{ system.uptime }}%

+
+
+

+ {{ system.name }} +

+
+
+

{{ system.status ? "UP" : "DOWN" }}

+

Uptime: {{ system.uptime }}%

+
-- cgit v1.3