User management logic half-debugged
[vchess.git] / views / index.pug
CommitLineData
1d184b4c
BA
1extends layout
2
3block css
4 link(rel="stylesheet", href="/stylesheets/index.css")
5
6block content
b57dbd12 7 .container
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")
8a477a7e 22 #flagMenu.clickable(onClick="doClick('modalLang')")
b57dbd12 23 img(src="/images/flags/" + lang + ".svg")
8a477a7e 24 #userMenu.clickable(onClick="doClick('modalUser')")
298c42e6 25 .info-container
b57dbd12
BA
26 if !user.email
27 p
28 span Login
29 i.material-icons person
30 else
31 p
32 span Update
33 i.material-icons person
8a477a7e 34 #introductionMenu.clickable(onClick="doClick('modalWelcome')")
298c42e6
BA
35 .info-container
36 p Introduction
1d184b4c 37 .row
3acb852d
BA
38 my-variant-summary(v-for="(v,idx) in sortedCounts"
39 v-bind:vobj="v" v-bind:index="idx" v-bind:key="v.name")
b6487fb9 40
1d184b4c
BA
41block javascripts
42 script.
43 const variantArray = !{JSON.stringify(variantArray)};
b019d603 44 script(src="/javascripts/utils/misc.js")
a48ee8b8 45 script(src="/javascripts/socket_url.js")
1d184b4c
BA
46 script(src="/javascripts/components/variantSummary.js")
47 script(src="/javascripts/index.js")