Add startpage

pull/1/head
Tristan Maat 2018-04-15 23:12:01 +00:00
parent e248caab29
commit 263b09c912
4 changed files with 29 additions and 0 deletions

7
src/pages/startpage.json Normal file
View File

@ -0,0 +1,7 @@
{
"hash": true,
"title": "tlater.net startpage",
"filename": "../startpage.html",
"template": "./src/startpage/startpage.pug",
"chunks": ["startpage"]
}

View File

@ -0,0 +1,9 @@
import "bootstrap";
import "./startpage.scss";
function print_time_recursively (element) {
element.html(new Date().toLocaleString());
setTimeout(() => print_time_recursively(element), 1000);
}
$(() => print_time_recursively($("#clock h1")));

View File

@ -0,0 +1,7 @@
extends ../lib/pug/base
block content
.container
.row
#clock.col-md-12
h1

View File

@ -0,0 +1,6 @@
@import "../lib/scss/main";
@import "~bootstrap/scss/bootstrap";
#clock {
text-align: center;
}