X-Git-Url: https://git.auder.net/variants/Bario/complete_rules.html?a=blobdiff_plain;f=client%2Fsrc%2FApp.vue;h=0c0013e79730dbdfcf22fe588de6f683a95c560d;hb=b0c0499d0788f36efba7a3f6981ed81cc919c2a9;hp=89b645b37aae50dd490cd014dedcacd9c8197408;hpb=ee37e2af8fc3ce2273eddfbe66822ce8b6b011d6;p=vchess.git
diff --git a/client/src/App.vue b/client/src/App.vue
index 89b645b3..0c0013e7 100644
--- a/client/src/App.vue
+++ b/client/src/App.vue
@@ -1,94 +1,250 @@
#app
- // modal "welcome" will be filled in the selected language
- #modalWelcome
Language
- Settings(:settings="settings")
+ 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 {{ $lang }}
- 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(v-if="$route.path != '/'" to="/")
- | Home
- router-link(:href="getLink('/hall')")
- | getLink function : suffix ==> /variant + suffix
- =translations["Hall"]
- router-link(href="#tabGames")
- =translations["My games"]
- router-link(href="#rules")
- =translations["Rules"]
- router-link(href="#problems")
- =translations["Problems"]
- #userMenu.clickable.right-menu(onClick="doClick('modalUser')")
- .info-container
- if !user.email
- p
- span Login
- span.icon-user
- else
- p
- span Update
- span.icon-user
- #flagMenu.clickable.right-menu(onClick="doClick('modalLang')")
- img(src="/images/flags/" + lang + ".svg")
- #settings.clickable(v-show="display!='index'" onClick="doClick('modalSettings')")
- i(data-feather="settings")
- 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
- p.clickable(onClick="doClick('modalContact')")
- = translations["Contact form"]
+ .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
+ .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"] }}
+ a.menuitem(href="https://forum.vchess.club")
+ | {{ st.tr["Forum"] }}