Index page almost OK. Now work on variant page (main hall...)
[vchess.git] / views / index.pug
CommitLineData
1d184b4c
BA
1extends layout
2
3block css
4 link(rel="stylesheet", href="/stylesheets/index.css")
5
6block content
7 .container#indexPage
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
298c42e6 17 #mainTitle
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")
298c42e6 22 #settingsMenu.clickable(
b6487fb9 23 onClick="document.getElementById('modalSettings').checked=true")
298c42e6
BA
24 .info-container
25 p Settings
26 #introductionMenu.clickable(
27 onClick="document.getElementById('modalWelcome').checked=true")
28 .info-container
29 p Introduction
1d184b4c 30 .row
3acb852d
BA
31 my-variant-summary(v-for="(v,idx) in sortedCounts"
32 v-bind:vobj="v" v-bind:index="idx" v-bind:key="v.name")
b6487fb9 33
1d184b4c
BA
34block javascripts
35 script.
36 const variantArray = !{JSON.stringify(variantArray)};
b019d603 37 script(src="/javascripts/utils/misc.js")
a48ee8b8 38 script(src="/javascripts/socket_url.js")
1d184b4c
BA
39 script(src="/javascripts/components/variantSummary.js")
40 script(src="/javascripts/index.js")