From 9210fd3bad8194646c6b7c330d3048a4f6c3db89 Mon Sep 17 00:00:00 2001 From: Noah Loomans Date: Tue, 6 Jun 2017 12:40:12 +0200 Subject: Get mdl with bower instaid of cdn --- bower.json | 3 ++- views/index.jade | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bower.json b/bower.json index 05be5df..0e80221 100644 --- a/bower.json +++ b/bower.json @@ -16,6 +16,7 @@ "tests" ], "dependencies": { - "sw-toolbox": "^3.3.0" + "sw-toolbox": "^3.3.0", + "material-design-lite": "^1.3.0" } } diff --git a/views/index.jade b/views/index.jade index 0608505..c1e3650 100644 --- a/views/index.jade +++ b/views/index.jade @@ -4,8 +4,8 @@ block head link(rel='stylesheet', href='/stylesheets/style.css') link(rel='stylesheet', href='/stylesheets/print.css', media='print') link(rel='stylesheet', href='https://fonts.googleapis.com/icon?family=Material+Icons') - link(rel='stylesheet', href='https://code.getmdl.io/1.2.1/material.indigo-pink.min.css') - script(defer='', src='https://code.getmdl.io/1.2.1/material.min.js') + link(rel='stylesheet', href='/components/material-design-lite/material.min.css') + script(defer='', src='/components/material-design-lite/material.min.js') block content form#search -- cgit v1.1 From 43afa7262db3b1e29914b705964f09c5b92db57a Mon Sep 17 00:00:00 2001 From: Noah Loomans Date: Wed, 14 Jun 2017 12:16:13 +0200 Subject: Set language to dutch This is to prevent Google Translate from misdetecting the language. --- views/layout.jade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/layout.jade b/views/layout.jade index 045b2f8..31b3918 100644 --- a/views/layout.jade +++ b/views/layout.jade @@ -1,5 +1,5 @@ doctype html -html +html(lang='nl') head block head_top title Metis Rooster -- cgit v1.1 From 7648e2a4d5d16be21675324c2cb30f77fbfa4ab3 Mon Sep 17 00:00:00 2001 From: Noah Loomans Date: Tue, 20 Jun 2017 13:21:19 +0200 Subject: Add warning for custom hours --- public/stylesheets/style.css | 22 ++++++++++++++++++++++ views/index.jade | 8 ++++++++ 2 files changed, 30 insertions(+) diff --git a/public/stylesheets/style.css b/public/stylesheets/style.css index fd2bfb8..c2c7e8f 100644 --- a/public/stylesheets/style.css +++ b/public/stylesheets/style.css @@ -381,3 +381,25 @@ body.week-selector-not-visible #week-selector { .print { display: none; } + +#notification { + max-width: 600px; + padding: 10px; + margin: 0 auto; +} + +#notification .box { + display: flex; + background-color: #e0e0e0; + padding: 8px; + border-radius: 2px; + align-items: center; +} + +#notification .text { + padding-left: 8px; +} + +.grow { + flex-grow: 1; +} diff --git a/views/index.jade b/views/index.jade index c1e3650..df73177 100644 --- a/views/index.jade +++ b/views/index.jade @@ -40,6 +40,14 @@ block content span.print button(type='button').material-icons  + #notification + .box + .text + strong Het rooster is ingekort  + span in verband met de warmte.  + .grow + a(href='http://hetmml.nl/', class='mdl-button mdl-js-button mdl-js-ripple-effect') Meer info + #schedule block scripts -- cgit v1.1