X-Git-Url: https://git.auder.net/images/pieces/bundles/framework/css/body.css?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FVariants.vue;h=8de335e6af5d7f23201067eed8feda8787322caa;hb=bae751bc6bc548791772c3ff5883a03deeb77264;hp=03903572cf8c3a514b05890e4818839e5145b64a;hpb=5b020e732156ee77d3b15b127aef2df57c2562ad;p=vchess.git
diff --git a/client/src/views/Variants.vue b/client/src/views/Variants.vue
index 03903572..8de335e6 100644
--- a/client/src/views/Variants.vue
+++ b/client/src/views/Variants.vue
@@ -1,68 +1,93 @@
-div
- .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")
- .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) }}
+main
+ .row
+ .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
+ 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 sortVariants(variantGroup.get(g))")
+ a(:href="getLink(v)") {{ v.display }}
+ |  –
+ | {{ st.tr[v.description] }}
-
-