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