X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2FApp.vue;h=f337394ef791785eca539c7ee680550a0f820178;hb=4f8871051c030acd51172b73cd20aedce687c2a8;hp=745dd79934e7809a6b8d91f442c67f708f4be975;hpb=8d61fc4ab7373b4a576f3f9108cdf7768ae27096;p=vchess.git diff --git a/client/src/App.vue b/client/src/App.vue index 745dd799..f337394e 100644 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -1,63 +1,44 @@ @@ -66,16 +47,32 @@ import ContactForm from "@/components/ContactForm.vue"; import Language from "@/components/Language.vue"; import Settings from "@/components/Settings.vue"; +import UpsertUser from "@/components/UpsertUser.vue"; +import { store } from "./store.js"; export default { - data: function() { - return { - settings: {}, //TODO - }; - }, components: { ContactForm, Language, Settings, + UpsertUser, + }, + data: function() { + return { + st: store.state, + }; + }, + computed: { + flagImage: function() { + return `/images/flags/${this.st.lang}.svg`; + }, + }, + methods: { + hideDrawer: function(e) { + if (e.target.innerText == "Forum") + return; //external link + e.preventDefault(); //TODO: why is this needed? + document.getElementsByClassName("drawer")[0].checked = false; + }, }, }; @@ -85,14 +82,87 @@ export default { font-family: "Avenir", Helvetica, Arial, sans-serif -webkit-font-smoothing: antialiased -moz-osx-font-smoothing: grayscale - text-align: center - color: #2c3e50 -#nav - padding: 30px - a - font-weight: bold - color: #2c3e50 - &.router-link-exact-active - color: #42b983 +.container + @media screen and (max-width: 767px) + padding: 0 + +.row > div + padding: 0 + +.nopadding + padding: 0 + +header + width: 100% + display: flex + align-items: center + justify-content: center + margin: 0 auto + & > img + width: 30px + height: 30px + +.clickable + cursor: pointer + +nav + width: 100% + margin: 0 + padding: 0 + & > #menuBar + width: 100% + padding: 0 + & > #leftMenu + padding: 0 + width: 50% + display: inline-flex + align-items: center + justify-content: flex-start + & > a + display: inline-block + color: #2c3e50 + &.router-link-exact-active + color: #42b983 + & > #rightMenu + padding: 0 + width: 50% + display: inline-flex + align-items: center + justify-content: flex-end + & > div + display: inline-block + &#flagContainer + display: inline-flex + & > img + padding: 0 + width: 36px + height: 27px + +[type="checkbox"].drawer+* + right: -767px + +#menuBar + label.drawer-close + top: 50px + +footer + //background-color: #000033 + font-size: 1rem + width: 100% + padding-left: 0 + padding-right: 0 + display: inline-flex + align-items: center + justify-content: center + & > .menuitem + display: inline-block + margin: 0 10px 0 0 + &:link + color: #2c3e50 + &:hover + text-decoration: none + & > p + display: inline-block + margin: 0 0 0 10px