8 .row(v-show="$route.path == '/'")
9 .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
10 // Header (on index only)
12 img(src="./assets/images/index/unicorn.svg")
15 img(src="./assets/images/index/wildebeest.svg")
17 .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
18 // Menu (top of page):
19 // Left: home, variants, mygames, problems
20 // Right: usermenu, settings, flag
22 label.drawer-toggle(for="drawerControl")
23 input#drawerControl.drawer(type="checkbox")
25 label.drawer-close(for="drawerControl")
29 router-link(to="/variants")
30 | {{ st.tr["Variants"] }}
31 router-link(to="/mygames")
32 | {{ st.tr["My games"] }}
33 router-link(to="/problems")
34 | {{ st.tr["Problems"] }}
36 .clickable(onClick="doClick('modalUser')")
37 | {{ !st.user.id ? "Login" : "Update" }}
38 .clickable(onClick="doClick('modalSettings')")
39 | {{ st.tr["Settings"] }}
40 .clickable#flagContainer(onClick="doClick('modalLang')")
42 :src="require(`@/assets/images/flags/${st.lang}.svg`)")
45 .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
47 a(href="https://github.com/yagu0/vchess") {{ st.tr["Source code"] }}
48 p.clickable(onClick="doClick('modalContact')")
49 | {{ st.tr["Contact form"] }}
50 //my-game(:game-ref="gameRef" :mode="mode" :settings="settings" @game-over="archiveGame")
51 //// TODO: add only the necessary icons to mini-css custom build
52 //script(src="//unpkg.com/feather-icons")
56 // See https://stackoverflow.com/a/35417159
57 import ContactForm from "@/components/ContactForm.vue";
58 import Language from "@/components/Language.vue";
59 import Settings from "@/components/Settings.vue";
60 import UpsertUser from "@/components/UpsertUser.vue";
61 import { store } from "./store.js";
79 font-family: "Avenir", Helvetica, Arial, sans-serif
80 -webkit-font-smoothing: antialiased
81 -moz-osx-font-smoothing: grayscale
84 @media screen and (max-width: 767px)
97 justify-content: center
118 justify-content: flex-start
120 display: inline-block
122 &.router-link-exact-active
129 justify-content: flex-end
131 display: inline-block
139 // TODO: drawer, until 600px wide OK (seemingly)
140 // After, zone where left and right just go on top of another
141 // Then, on narrow screen put everything on one line
142 [type="checkbox"].drawer+*
146 //background-color: #000033
151 justify-content: center
153 display: inline-block
158 text-decoration: none
160 display: inline-block