6ea45166e1370421b27cce9730a88d68472f52c2
[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
8 case lang
9 when "en"
10 include welcome/en
11 when "es"
12 include welcome/es
13 when "fr"
14 include welcome/fr
15 .row
16 #header.col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
17 #mainTitle.clickable(onClick="doClick('modalWelcome')")
18 img(src="/images/index/unicorn.svg")
19 .info-container
20 p vchess.club
21 img(src="/images/index/wildebeest.svg")
22 #flagMenu.clickable(onClick="doClick('modalLang')")
23 img(src="/images/flags/" + lang + ".svg")
24 include userMenu
25 a.right-menu(v-show="display=='variants'" href="#correspondance")
26 .info-container
27 p Correspondance
28 a.right-menu(v-show="display=='correspondance'" href="#variants")
29 .info-container
30 p Variants
31 .row(v-show="display=='variants'")
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")
35 my-variant-summary(v-for="(v,idx) in sortedCounts"
36 v-bind:vobj="v" v-bind:index="idx" v-bind:key="v.name")
37 .row(v-show="display=='correspondance'")
38 my-correspondance
39
40 block javascripts
41 script.
42 const variantArray = !{JSON.stringify(variantArray)};
43 script(src="/javascripts/socket_url.js")
44 script(src="/javascripts/components/variantSummary.js")
45 script(src="/javascripts/components/gameList.js")
46 script(src="/javascripts/components/challengeList.js")
47 script(src="/javascripts/components/correspondance.js")
48 script(src="/javascripts/index.js")