3 // modal "welcome" will be filled in the selected language
10 .row(v-show="$route.path == '/'")
11 .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
12 // Header (on index only)
14 img(src="./assets/images/index/unicorn.svg")
17 img(src="./assets/images/index/wildebeest.svg")
19 .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
20 // Menu (top of page):
21 // Left: home, variants, mygames, problems
22 // Right: usermenu, settings, flag
24 label.drawer-toggle(for="drawerControl")
25 input#drawerControl.drawer(type="checkbox")
27 label.drawer-close(for="drawerControl")
31 router-link(to="/variants")
32 | {{ st.tr["Variants"] }}
33 router-link(to="/mygames")
34 | {{ st.tr["My games"] }}
35 router-link(to="/problems")
36 | {{ st.tr["Problems"] }}
38 .clickable(onClick="doClick('modalUser')")
39 | {{ !st.user.id ? "Login" : "Update" }}
40 .clickable(onClick="doClick('modalSettings')")
41 | {{ st.tr["Settings"] }}
42 .clickable#flagContainer(onClick="doClick('modalLang')")
44 :src="require(`@/assets/images/flags/${st.lang}.svg`)")
47 .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
49 a(href="https://github.com/yagu0/vchess") {{ st.tr["Source code"] }}
50 p.clickable(onClick="doClick('modalContact')")
51 | {{ st.tr["Contact form"] }}
52 //my-game(:game-ref="gameRef" :mode="mode" :settings="settings" @game-over="archiveGame")
53 //// TODO: add only the necessary icons to mini-css custom build
54 //script(src="//unpkg.com/feather-icons")
58 // See https://stackoverflow.com/a/35417159
59 import ContactForm from "@/components/ContactForm.vue";
60 import Language from "@/components/Language.vue";
61 import Settings from "@/components/Settings.vue";
62 import UpsertUser from "@/components/UpsertUser.vue";
63 import { store } from "./store.js";
81 font-family: "Avenir", Helvetica, Arial, sans-serif
82 -webkit-font-smoothing: antialiased
83 -moz-osx-font-smoothing: grayscale
86 @media screen and (max-width: 767px)
97 @media screen and (max-width: 767px)
101 @media screen and (max-width: 767px)
105 list-style-type: none
106 // TODO: bad practice, shouldn't use table to align things...
126 justify-content: center
147 justify-content: flex-start
149 display: inline-block
151 &.router-link-exact-active
158 justify-content: flex-end
160 display: inline-block
168 // TODO: drawer, until 600px wide OK (seemingly)
169 // After, zone where left and right just go on top of another
170 // Then, on narrow screen put everything on one line
171 [type="checkbox"].drawer+*
175 //background-color: #000033
180 justify-content: center
182 display: inline-block
187 text-decoration: none
189 display: inline-block