5dfa903ad87157f7e919b729ace91fe00a7dda97
[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
18 img(src="/images/index/unicorn.svg")
19 .info-container
20 p vchess.club
21 img(src="/images/index/wildebeest.svg")
22 #flagMenu.clickable(
23 onClick="document.getElementById('modalLang').checked=true")
24 img(src="/images/flags/" + lang + ".svg")
25 #userMenu.clickable(
26 onClick="document.getElementById('modalUser').checked=true")
27 .info-container
28 if !user.email
29 p
30 span Login
31 i.material-icons person
32 else
33 p
34 span Update
35 i.material-icons person
36 #introductionMenu.clickable(
37 onClick="document.getElementById('modalWelcome').checked=true")
38 .info-container
39 p Introduction
40 .row
41 my-variant-summary(v-for="(v,idx) in sortedCounts"
42 v-bind:vobj="v" v-bind:index="idx" v-bind:key="v.name")
43
44 block javascripts
45 script.
46 const variantArray = !{JSON.stringify(variantArray)};
47 script(src="/javascripts/utils/misc.js")
48 script(src="/javascripts/socket_url.js")
49 script(src="/javascripts/components/variantSummary.js")
50 script(src="/javascripts/index.js")