Skip to content

Commit 09c7c96

Browse files
committed
use pug for templating
1 parent ce8582d commit 09c7c96

File tree

5 files changed

+443
-31
lines changed

5 files changed

+443
-31
lines changed

example/index.html

Lines changed: 0 additions & 14 deletions
This file was deleted.

example/index.pug

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
html(lang="en")
3+
head
4+
title setlup demo
5+
meta(charset="UTF-8")
6+
meta(name="viewport" content="width=device-width, initial-scale=1")
7+
link(rel="stylesheet" href="./style.css")
8+
body
9+
textarea(placeholder="gary spent 45 for gary, mark, chris\nfred spent 10").
10+
gary spent 45 for gary, mark, chris
11+
fred spent 10
12+
div#results
13+
script(src="./index.js")

example/style.css

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
:root {
2+
--grey: #eee;
3+
}
4+
5+
* {
6+
box-sizing: border-box;
7+
}
8+
9+
html, body {
10+
margin: 0;
11+
height: 100%;
12+
}
13+
14+
body {
15+
display: flex;
16+
flex-direction: column;
17+
}
18+
19+
textarea {
20+
flex: 1 0 0;
21+
padding: 0.5rem 1rem;
22+
margin: 0;
23+
border: 0;
24+
background-color: var(--grey);
25+
resize: none;
26+
}
27+
28+
#results {
29+
flex: 1 0 0;
30+
padding: 0.5rem 1rem;
31+
overflow: auto;
32+
}

0 commit comments

Comments
 (0)