X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FVariants.vue;h=f60e5f1d982862790c6aa34e46a86e884b51d664;hp=31061158975f194901d34e8ab034a6b682d377a4;hb=eb2d61de8d569470fa329a484efe9bab420b2b82;hpb=6808d7a16ec1e761c6a2dffec2281c96953e4d89 diff --git a/client/src/views/Variants.vue b/client/src/views/Variants.vue index 31061158..f60e5f1d 100644 --- a/client/src/views/Variants.vue +++ b/client/src/views/Variants.vue @@ -2,73 +2,89 @@ main .row .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 - input#prefixFilter(v-model="curPrefix" :placeholder="st.tr['Prefix?']") - .variant.col-sm-12.col-md-5.col-lg-4( - v-for="(v,idx) in filteredVariants" - :class="{'col-md-offset-1': idx%2==0, 'col-lg-offset-2': idx%2==0}" - ) - router-link(:to="getLink(v.name)") - h4.boxtitle.text-center {{ v.name }} - p.description.text-center {{ st.tr[v.desc] }} + a#mainLink(href="/#/variants/list") + | {{ st.tr["View alphabetical variants list"] }} + p.text-center + a.leftLink(href="https://www.chessvariants.com/what.html") + | {{ st.tr["What is a chess variant?"] }} + a(href="https://www.chessvariants.com/why.html") + | {{ st.tr["Why play chess variants?"] }} + p + a(href="/#/variants/Chess960") Chess960 + | {{ st.tr["chess960_v"] }} + div(v-for="g of sortedGroups") + h3 {{ st.tr["vt" + g] }} + p {{ st.tr["vg" + g] }} + ul + li(v-for="v of variantGroup.get(g)") + a(:href="getLink(v)") {{ v.display }} + |  –  + | {{ st.tr[v.description] }}