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(onClick="doClick('modalLang')")
44 :src="require(`@/assets/images/flags/${st.lang}.svg`)")
48 .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
50 a(href="https://github.com/yagu0/vchess") {{ st.tr["Source code"] }}
51 p.clickable(onClick="doClick('modalContact')")
52 | {{ st.tr["Contact form"] }}
53 //my-game(:game-ref="gameRef" :mode="mode" :settings="settings" @game-over="archiveGame")
54 //// TODO: add only the necessary icons to mini-css custom build
55 //script(src="//unpkg.com/feather-icons")
59 // See https://stackoverflow.com/a/35417159
60 import ContactForm from "@/components/ContactForm.vue";
61 import Language from "@/components/Language.vue";
62 import Settings from "@/components/Settings.vue";
63 import UpsertUser from "@/components/UpsertUser.vue";
64 import { store } from "./store.js";
82 font-family: "Avenir", Helvetica, Arial, sans-serif
83 -webkit-font-smoothing: antialiased
84 -moz-osx-font-smoothing: grayscale
87 @media screen and (max-width: 767px)
94 justify-content: center
114 justify-content: flex-start
116 display: inline-block
118 &.router-link-exact-active
125 justify-content: flex-end
127 display: inline-block
133 // TODO: drawer, until 600px wide OK (seemingly)
134 // After, zone where left and right just go on top of another
135 // Then, on narrow screen put everything on one line
136 [type="checkbox"].drawer+*
140 //background-color: #000033
145 justify-content: center
147 display: inline-block
152 text-decoration: none
154 display: inline-block