Start server implementation for correspondance play (early debug stage)
[vchess.git] / views / index.pug
CommitLineData
1d184b4c
BA
1extends layout
2
3block css
4 link(rel="stylesheet", href="/stylesheets/index.css")
5
6block content
b57dbd12 7 .container
247356cd
BA
8 case lang
9 when "en"
b6487fb9 10 include welcome/en
e081ffe3 11 when "es"
b6487fb9 12 include welcome/es
247356cd 13 when "fr"
b6487fb9 14 include welcome/fr
1d184b4c 15 .row
9a3c9f79 16 #header.col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
fd08ab2c 17 #mainTitle.clickable(onClick="doClick('modalWelcome')")
d5973790 18 img(src="/images/index/unicorn.svg")
9a3c9f79
BA
19 .info-container
20 p vchess.club
d5973790 21 img(src="/images/index/wildebeest.svg")
8a477a7e 22 #flagMenu.clickable(onClick="doClick('modalLang')")
b57dbd12 23 img(src="/images/flags/" + lang + ".svg")
26b8e4f7 24 include userMenu
ab4f4bf2 25 a.right-menu(v-show="display=='variants'" href="#correspondance")
298c42e6 26 .info-container
60d9063f 27 p Correspondance
ab4f4bf2 28 a.right-menu(v-show="display=='correspondance'" href="#variants")
fd08ab2c
BA
29 .info-container
30 p Variants
31 .row(v-show="display=='variants'")
26b8e4f7
BA
32 .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
33 label(for="prefixFilter") Type first letters...
34 input#prefixFilter(v-model="curPrefix")
3acb852d
BA
35 my-variant-summary(v-for="(v,idx) in sortedCounts"
36 v-bind:vobj="v" v-bind:index="idx" v-bind:key="v.name")
60d9063f
BA
37 .row(v-show="display=='correspondance'")
38 my-correspondance
b6487fb9 39
1d184b4c
BA
40block javascripts
41 script.
42 const variantArray = !{JSON.stringify(variantArray)};
a48ee8b8 43 script(src="/javascripts/socket_url.js")
1d184b4c 44 script(src="/javascripts/components/variantSummary.js")
60d9063f 45 script(src="/javascripts/components/gameList.js")
ab4f4bf2 46 script(src="/javascripts/components/challengeList.js")
60d9063f 47 script(src="/javascripts/components/correspondance.js")
1d184b4c 48 script(src="/javascripts/index.js")