X-Git-Url: https://git.auder.net/pieces/Checkered/cn.svg?a=blobdiff_plain;f=client%2Fsrc%2FApp.vue;h=27e5582a7bc9b347f51585e2da1c7768ca082532;hb=760865ac92508676c0047b84c5ba3e12d41d7c20;hp=0199db21af5bf2f0d6797b85ca309287b3d8ecc1;hpb=625022fdcf750f0aff8fcd699f7e9b89730e1d10;p=vchess.git
diff --git a/client/src/App.vue b/client/src/App.vue
index 0199db21..27e5582a 100644
--- a/client/src/App.vue
+++ b/client/src/App.vue
@@ -1,14 +1,82 @@
- #app
- #nav
- router-link(to="/") Home
- | |
- router-link(to="/about") About
- | |
- router-link(to="/test") Test
- router-view
+#app
+ // modal "welcome" will be filled in the selected language
+ #modalWelcome
+ Language
+ Settings(:settings="settings")
+ ContactForm
+ .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")
+ .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"]
+
+