X-Git-Url: https://git.auder.net/assets/current/gitweb.css?a=blobdiff_plain;ds=sidebyside;f=client%2Fsrc%2FApp.vue;h=311abb0813cf762e61831b462ac1c93ecbf05a2d;hb=677fe285f1137d1d3e672dcf2dae3ac6e943be37;hp=2b1312761eb97d566ee99cedd07a08dab2ecd60a;hpb=c66a829b3770122fe0ff2fb9db8def9635bbc334;p=vchess.git
diff --git a/client/src/App.vue b/client/src/App.vue
index 2b131276..311abb08 100644
--- a/client/src/App.vue
+++ b/client/src/App.vue
@@ -1,69 +1,52 @@
#app
- // modal "welcome" will be filled in the selected language
- #modalWelcome
Language
Settings
ContactForm
UpsertUser
.container
- .row(v-show="$route.path == '/'")
- // Header (on index only ?!)
- header
- .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
- img(src="./assets/images/index/unicorn.svg")
- .info-container
- p vchess.club
- img(src="./assets/images/index/wildebeest.svg")
.row
- // Menu (top of page):
- // shared: Home + flags, userMenu
- // variant: hall, problems, rules, my games + settings
- nav
- label.drawer-toggle(for="drawerControl")
- input#drawerControl.drawer(type="checkbox")
- #menuBar
- label.drawer-close(for="drawerControl")
- router-link(to="/")
- // select options all variants + filter possible (as in problems)
- | Home
- router-link(to="/myGames")
- | {{ st.tr["My games"] }}
- router-link(to="/rules")
- // Boxes OK for rules/Atomic/ ...etc
- | {{ st.tr["Rules"] }}
- router-link(to="/problems")
- | {{ st.tr["Problems"] }}
- #userMenu.clickable.right-menu(onClick="doClick('modalUser')")
- .info-container
- p
- span {{ !st.user.id ? "Login" : "Update" }}
- span.icon-user
- #flagMenu.clickable.right-menu(onClick="doClick('modalLang')")
- img(src="/images/flags/" + lang + ".svg")
- #settings.clickable(onClick="doClick('modalSettings')")
- | Settings
- i(data-feather="settings")
+ .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
+ // Menu (top of page):
+ // Left: hall, variants, mygames
+ // Right: usermenu, settings, flag
+ nav
+ label.drawer-toggle(for="drawerControl")
+ input#drawerControl.drawer(type="checkbox")
+ #menuBar(@click="hideDrawer")
+ label.drawer-close(for="drawerControl")
+ #leftMenu
+ router-link(to="/")
+ | {{ st.tr["Hall"] }}
+ router-link(to="/variants")
+ | {{ st.tr["Variants"] }}
+ router-link(to="/mygames")
+ | {{ st.tr["My games"] }}
+ #rightMenu
+ .clickable(onClick="doClick('modalUser')")
+ | {{ st.user.id > 0 ? (st.user.name || "@nonymous") : "Login" }}
+ .clickable(onClick="doClick('modalSettings')")
+ | {{ st.tr["Settings"] }}
+ .clickable#flagContainer(onClick="doClick('modalLang')")
+ img(v-if="!!st.lang" :src="flagImage")
+ router-view
.row
- router-view
- .row
- footer
- .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2.text-center
- a(href="https://github.com/yagu0/vchess") Source code
+ .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
+ footer
+ router-link.menuitem(to="/about") {{ st.tr["About"] }}
p.clickable(onClick="doClick('modalContact')")
- | {{ st.tr["Contact form"] }}
- //my-game(:game-ref="gameRef" :mode="mode" :settings="settings" @game-over="archiveGame")
- //// TODO: add only the necessary icons to mini-css custom build
- //script(src="//unpkg.com/feather-icons")
+ | {{ st.tr["Contact"] }}
+ a.menuitem(href="https://forum.vchess.club")
+ | {{ st.tr["Forum"] }}