X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=views%2Findex.pug;h=377aef949b1d641b6813100e8ddac8eb8e4cb9bd;hb=4608eed94432356bd2df8c144d7d233913c6483c;hp=dd095931d2bdddc3c0dc13d16b0360524063b9a3;hpb=298c42e63ae321526693e9ce418c4113af36e025;p=vchess.git diff --git a/views/index.pug b/views/index.pug index dd095931..377aef94 100644 --- a/views/index.pug +++ b/views/index.pug @@ -4,7 +4,7 @@ block css link(rel="stylesheet", href="/stylesheets/index.css") block content - .container#indexPage + .container case lang when "en" include welcome/en @@ -14,27 +14,33 @@ block content include welcome/fr .row #header.col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 - #mainTitle + #mainTitle.clickable(onClick="doClick('modalWelcome')") img(src="/images/index/unicorn.svg") .info-container p vchess.club img(src="/images/index/wildebeest.svg") - #settingsMenu.clickable( - onClick="document.getElementById('modalSettings').checked=true") + #flagMenu.clickable(onClick="doClick('modalLang')") + img(src="/images/flags/" + lang + ".svg") + include userMenu + a.right-menu(v-show="display=='variants'" href="#games") .info-container - p Settings - #introductionMenu.clickable( - onClick="document.getElementById('modalWelcome').checked=true") + p My games + a.right-menu(v-show="display=='games'" href="#variants") .info-container - p Introduction - .row + p Variants + .row(v-show="display=='variants'") + .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 + label(for="prefixFilter") Type first letters... + input#prefixFilter(v-model="curPrefix") my-variant-summary(v-for="(v,idx) in sortedCounts" v-bind:vobj="v" v-bind:index="idx" v-bind:key="v.name") + .row(v-show="display=='games'") + .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 + p TODO: load from server, show timeControl + players + link "play" block javascripts script. const variantArray = !{JSON.stringify(variantArray)}; - script(src="/javascripts/utils/misc.js") script(src="/javascripts/socket_url.js") script(src="/javascripts/components/variantSummary.js") script(src="/javascripts/index.js")