Advance on Spanish translation (still 13 rules to translate)
[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 include langNames.pug
9 case lang
10 when "en"
11 include translations/en.pug
12 include welcome/en.pug
13 include modal-lang/en.pug
14 include modal-help/en.pug
15 when "es"
16 include translations/es.pug
17 include welcome/es.pug
18 include modal-lang/es.pug
19 include modal-help/es.pug
20 when "fr"
21 include translations/fr.pug
22 include welcome/fr.pug
23 include modal-lang/fr.pug
24 include modal-help/fr.pug
25 .row
26 #header.col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
27 #mainTitle
28 img(src="/images/index/unicorn.svg")
29 .info-container
30 p vchess.club
31 img(src="/images/index/wildebeest.svg")
32 #flagMenu.clickable(
33 onClick="document.getElementById('modalLang').checked=true")
34 img(src="/images/flags/" + lang + ".svg")
35 #helpMenu.clickable(
36 onClick="document.getElementById('modalHelp').checked=true")
37 .info-container
38 p= translations["Help"]
39 .row
40 my-variant-summary(v-for="(v,idx) in sortedCounts"
41 v-bind:vobj="v" v-bind:index="idx" v-bind:key="v.name")
42 // Other modals:
43 input#modalB4welcome.modal(type="checkbox")
44 div(role="dialog")
45 #b4welcome.card.text-center.small-modal
46 h3.blue= translations["First visit?"]
47 p#readThis.clickable(@click="showWelcomeMsg")
48 =translations[">>> Please read this <<<"]
49
50 block javascripts
51 script.
52 const translations = !{JSON.stringify(translations)};
53 const variantArray = !{JSON.stringify(variantArray)};
54 script(src="/javascripts/utils/misc.js")
55 script(src="/javascripts/socket_url.js")
56 script(src="/javascripts/components/variantSummary.js")
57 script(src="/javascripts/index.js")