4 .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
7 :placeholder="st.tr['Prefix?']"
9 .variant.col-sm-12.col-md-5.col-lg-4(
10 v-for="(v,idx) in filteredVariants"
11 :class="{'col-md-offset-1': idx%2==0, 'col-lg-offset-2': idx%2==0}"
13 router-link(:to="getLink(v.name)")
14 h4.boxtitle.text-center {{ v.name }}
15 p.description.text-center {{ st.tr[v.desc] }}
19 import { store } from "@/store";
29 filteredVariants: function() {
30 const capitalizedPrefix = this.curPrefix.replace(/^\w/, c =>
33 const variants = this.st.variants
35 return v.name.startsWith(capitalizedPrefix);
44 return a.name.localeCompare(b.name);
50 getLink: function(vname) {
51 return "/variants/" + vname;
57 <style lang="sass" scoped>
63 box-sizing: border-box
64 border: 1px solid brown
65 background-color: lightyellow
67 background-color: yellow
75 @media screen and (max-width: 767px)