5d27eb8a56adfba26db32f834ef626de4aa66085
[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 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(
18 onClick="document.getElementById('modalWelcome').checked=true")
19 img(src="/images/index/unicorn.svg")
20 .info-container
21 p vchess.club
22 img(src="/images/index/wildebeest.svg")
23 #settings.clickable(
24 onClick="document.getElementById('modalSettings').checked=true")
25 i.material-icons settings
26 .row
27 my-variant-summary(v-for="(v,idx) in sortedCounts"
28 v-bind:vobj="v" v-bind:index="idx" v-bind:key="v.name")
29
30 redesign index page :: lien github, lien contact mail, settings
31
32 block javascripts
33 script.
34 const variantArray = !{JSON.stringify(variantArray)};
35 script(src="/javascripts/utils/misc.js")
36 script(src="/javascripts/socket_url.js")
37 script(src="/javascripts/components/variantSummary.js")
38 script(src="/javascripts/index.js")