X-Git-Url: https://git.auder.net/doc/current/git-logo.png?a=blobdiff_plain;f=client%2Fsrc%2FApp.vue;h=c71ebfc41893f215d3ad027f727d440cb562619e;hb=934f7f70431e9892b3ea48ba199356b4f24eaf1b;hp=a9c1d4cce5b87ae70bc08f5926eabcdeb530a967;hpb=92a523d1a74cbabcfd7d6ade45f25fa622815f0b;p=vchess.git
diff --git a/client/src/App.vue b/client/src/App.vue
index a9c1d4cc..c71ebfc4 100644
--- a/client/src/App.vue
+++ b/client/src/App.vue
@@ -1,6 +1,5 @@
#app
- Language
Settings
ContactForm
UpsertUser
@@ -8,81 +7,105 @@
.row
.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, problems
- // Right: usermenu, settings, flag
+ // Left: hall, variants, problems, mygames
+ // Right: usermenu, settings
nav
label.drawer-toggle(for="drawerControl")
input#drawerControl.drawer(type="checkbox")
- #menuBar
+ #menuBar(@click="hideDrawer($event)")
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"] }}
+ router-link(to="/variants")
+ | {{ st.tr["Variants"] }}
router-link(to="/problems")
| {{ st.tr["Problems"] }}
#rightMenu
- .clickable(onClick="doClick('modalUser')")
- | {{ st.user.id > 0 ? "Update" : "Login" }}
- .clickable(onClick="doClick('modalSettings')")
- | {{ st.tr["Settings"] }}
- .clickable#flagContainer(onClick="doClick('modalLang')")
- img(v-if="!!st.lang" :src="flagImage")
+ .clickable(onClick="window.doClick('modalUser')")
+ | {{ st.user.id > 0 ? (st.user.name || "@nonymous") : "Login" }}
+ #divSettings.clickable(onClick="window.doClick('modalSettings')")
+ span {{ st.tr["Settings"] }}
+ img(src="/images/icons/settings.svg")
router-view
- .row
- .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"] }}
- // TODO: add only the necessary icons to mini-css custom build
- //script(src="//unpkg.com/feather-icons")
+ .row
+ .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"] }}
+ router-link.menuitem#newsMenu(to="/news") {{ st.tr["News"] }}
+ a.menuitem(href="https://discord.gg/a9ZFKBe")
+ span Discord
+ img(src="/images/icons/discord.svg")
+ a.menuitem(href="https://github.com/yagu0/vchess")
+ span {{ st.tr["Code"] }}
+ img(src="/images/icons/github.svg")
+ p.clickable(onClick="window.doClick('modalContact')")
+ | {{ st.tr["Contact"] }}