Add startpage
This commit is contained in:
parent
e248caab29
commit
263b09c912
7
src/pages/startpage.json
Normal file
7
src/pages/startpage.json
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"hash": true,
|
||||
"title": "tlater.net startpage",
|
||||
"filename": "../startpage.html",
|
||||
"template": "./src/startpage/startpage.pug",
|
||||
"chunks": ["startpage"]
|
||||
}
|
9
src/startpage/startpage.js
Normal file
9
src/startpage/startpage.js
Normal 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")));
|
7
src/startpage/startpage.pug
Normal file
7
src/startpage/startpage.pug
Normal file
|
@ -0,0 +1,7 @@
|
|||
extends ../lib/pug/base
|
||||
|
||||
block content
|
||||
.container
|
||||
.row
|
||||
#clock.col-md-12
|
||||
h1
|
6
src/startpage/startpage.scss
Normal file
6
src/startpage/startpage.scss
Normal file
|
@ -0,0 +1,6 @@
|
|||
@import "../lib/scss/main";
|
||||
@import "~bootstrap/scss/bootstrap";
|
||||
|
||||
#clock {
|
||||
text-align: center;
|
||||
}
|
Reference in a new issue