Some advances. TODO: test board.js, and then game.js, and then implement room.js
[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 #mygamesMenu.clickable.right-menu(v-show="display=='variants'" @click="display='games'")
26 .info-container
27 p My games
28 #variantsMenu.clickable.right-menu(v-show="display=='games'" @click="display='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=='games'")
38 .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
39 p TODO: load from server, show timeControl + players + link "play"
40
41 block javascripts
42 script.
43 const variantArray = !{JSON.stringify(variantArray)};
44 script(src="/javascripts/socket_url.js")
45 script(src="/javascripts/components/variantSummary.js")
46 script(src="/javascripts/index.js")