9 .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
10 // Menu (top of page):
11 // Left: hall, variants, mygames, problems
12 // Right: usermenu, settings, flag
14 label.drawer-toggle(for="drawerControl")
15 input#drawerControl.drawer(type="checkbox")
17 label.drawer-close(for="drawerControl")
21 router-link(to="/variants")
22 | {{ st.tr["Variants"] }}
23 router-link(to="/mygames")
24 | {{ st.tr["My games"] }}
25 router-link(to="/problems")
26 | {{ st.tr["Problems"] }}
28 .clickable(onClick="doClick('modalUser')")
29 | {{ !st.user.id ? "Login" : "Update" }}
30 .clickable(onClick="doClick('modalSettings')")
31 | {{ st.tr["Settings"] }}
32 .clickable#flagContainer(onClick="doClick('modalLang')")
33 img(v-if="!!st.lang" :src="flagImage")
36 .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
38 a(href="https://github.com/yagu0/vchess") {{ st.tr["Source code"] }}
39 p.clickable(onClick="doClick('modalContact')")
40 | {{ st.tr["Contact form"] }}
41 //my-game(:game-ref="gameRef" :mode="mode" :settings="settings" @game-over="archiveGame")
42 //// TODO: add only the necessary icons to mini-css custom build
43 //script(src="//unpkg.com/feather-icons")
47 // See https://stackoverflow.com/a/35417159
48 import ContactForm from "@/components/ContactForm.vue";
49 import Language from "@/components/Language.vue";
50 import Settings from "@/components/Settings.vue";
51 import UpsertUser from "@/components/UpsertUser.vue";
52 import { store } from "./store.js";
65 // // TODO: $route: ...
66 // gameRef: function() {
70 flagImage: function() {
71 return `/images/flags/${this.st.lang}.svg`;
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
153 justify-content: center
155 display: inline-block
160 text-decoration: none
162 display: inline-block