Uniformize path to database
[vchess.git] / views / index.pug
CommitLineData
1d184b4c
BA
1extends layout
2
3block css
4 link(rel="stylesheet", href="/stylesheets/index.css")
5
6block content
7 .container#indexPage
8 .row
9a3c9f79
BA
9 #header.col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
10 #mainTitle
d5973790 11 img(src="/images/index/unicorn.svg")
9a3c9f79
BA
12 .info-container
13 p vchess.club
d5973790 14 img(src="/images/index/wildebeest.svg")
a5d56686
BA
15 #flagMenu.clickable(
16 onClick="document.getElementById('modalLang').checked=true")
9a3c9f79 17 img(src="/images/flags/" + lang + ".svg")
a5d56686
BA
18 #helpMenu.clickable(
19 onClick="document.getElementById('modalHelp').checked=true")
9a3c9f79
BA
20 .info-container
21 p Help
1d184b4c 22 .row
3acb852d
BA
23 my-variant-summary(v-for="(v,idx) in sortedCounts"
24 v-bind:vobj="v" v-bind:index="idx" v-bind:key="v.name")
9a3c9f79 25 // Modals:
e6dcb115
BA
26 include modal-lang.pug
27 include modal-help.pug
9a3c9f79
BA
28 input#modalB4welcome.modal(type="checkbox")
29 div(role="dialog")
e6dcb115 30 #b4welcome.card.text-center.small-modal
9a3c9f79 31 h3.blue First visit?
a5d56686 32 p#readThis.clickable(@click="showWelcomeMsg") >>> Please read this <<<
9a3c9f79
BA
33 case lang
34 when "en"
35 include welcome/en.pug
36 when "fr"
37 include welcome/fr.pug
1d184b4c
BA
38
39block javascripts
40 script.
41 const variantArray = !{JSON.stringify(variantArray)};
b019d603 42 script(src="/javascripts/utils/misc.js")
a48ee8b8 43 script(src="/javascripts/socket_url.js")
1d184b4c
BA
44 script(src="/javascripts/components/variantSummary.js")
45 script(src="/javascripts/index.js")