-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathhome.pug
70 lines (65 loc) · 2.09 KB
/
home.pug
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
doctype html
html(lang='en')
include ./mixins.pug
head
title DICE LOGGER
meta(name='viewport', content='width=device-width, initial-scale=1')
link(rel='stylesheet', href='/bulma.css')
link(rel='stylesheet', href='/fontawesome/css/fontawesome-all.min.css')
link(rel='stylesheet', href='/dice-logger.css')
body.dl-page-home
section.section
.container
h1.title.is-1.has-text-centered.is-uppercase Dice Logger
form(method='POST', action='/')
.field
.control.has-text-centered
button.button.is-danger.is-5e.is-large
span.icon
i.fas.fa-plus
span Start a Log
section.hero.is-danger.is-5e
.hero-body
.container
h2.title.is-1.has-text-white.has-text-centered
span Create a free, shareable log for visibilty
br
span and accountablity when rolling your
br
if entries && entries.length
code.dl-code.has-text-black
span #{entries[0].roll}
else
code.dl-code.has-text-black
span 1d20
section.hero.is-light
.hero-body
.container
if !entries || !entries.length
article.message.is-dark
.message-header
p Hmmm...
.message-body
p Nothing has been logged... yet.
else
for entry in entries
+entry(entry, moment)
section.hero.is-danger.is-5e
.hero-body
.container
form(method='POST')
.field
.control.has-text-centered
button.button.is-white.is-large
span.icon
i.fas.fa-plus
span Start a Log
section.section
.container
.has-text-centered
div Source code available on Github:
div
a(href='https://github.com/troygoode/dice-logger')
span.icon
i.fab.fa-github
span https://github.com/troygoode/dice-logger