X-Git-Url: https://git.auder.net/images/pieces/Cwda/bd.svg?a=blobdiff_plain;f=client%2Fsrc%2FApp.vue;h=6590fcfbdc0b619ec8ac28d5b44b8c0b3b255c46;hb=fdfa7ece6d6b06a5eede9e61114ba516d7e7a0d1;hp=745dd79934e7809a6b8d91f442c67f708f4be975;hpb=8d61fc4ab7373b4a576f3f9108cdf7768ae27096;p=vchess.git
diff --git a/client/src/App.vue b/client/src/App.vue
index 745dd799..6590fcfb 100644
--- a/client/src/App.vue
+++ b/client/src/App.vue
@@ -1,98 +1,331 @@
#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
- 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")
- .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
- p.clickable(onClick="doClick('modalContact')")
- = translations["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")
+ .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
+ // Menu (top of page):
+ // Left: hall, variants, problems, mygames
+ // Right: usermenu, settings
+ nav
+ label.drawer-toggle(for="drawerControl")
+ input#drawerControl.drawer(type="checkbox")
+ #menuBar(@click="hideDrawer($event)")
+ label.drawer-close(for="drawerControl")
+ #leftMenu
+ router-link(to="/")
+ | {{ st.tr["Hall"] }}
+ 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="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"] }}
+ 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"] }}