Skip to content

Commit 33ca60f

Browse files
committed
UserActions component and Snapshot stub
1 parent a671a3b commit 33ca60f

File tree

4 files changed

+27
-27
lines changed

4 files changed

+27
-27
lines changed

vue/src/App.vue

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,11 @@
22
<i18n>
33
{
44
"de": {
5-
"loginText": "Login",
6-
"signupText": "Unverbindliche Anfrage",
75
"mainnav.about": "Hintergrund",
86
"mainnav.imprint": "Impressum",
97
"mainnav.contact": "Kontakt"
108
},
119
"fr": {
12-
"loginText": "Login",
13-
"signupText": "Demande sans engagement",
1410
"mainnav.about": "Contexte",
1511
"mainnav.imprint": "Impressum",
1612
"mainnav.contact": "Contact"
@@ -35,14 +31,7 @@
3531
<v-spacer></v-spacer>
3632
<div class="d-none d-md-block"><language-switch/></div>
3733
<div class="useractions d-none d-sm-block">
38-
<v-btn small text color="primary">
39-
<router-link :to="'/' + $i18n.locale + '/login'">{{ $t('loginText') }}</router-link>
40-
</v-btn>
41-
<v-btn small outlined color="primary">
42-
<router-link key="signup" :to="'/' + $i18n.locale + '/signup'">
43-
{{ $t('signupText') }}
44-
</router-link>
45-
</v-btn>
34+
<user-actions />
4635
</div>
4736
<v-app-bar-nav-icon @click="mobnav=!mobnav" class="d-md-none"></v-app-bar-nav-icon>
4837
</v-app-bar>
@@ -67,14 +56,7 @@
6756
</v-list>
6857
<v-flex class="useractions d-sm-none center">
6958
<v-divider></v-divider>
70-
<v-btn small text color="white" class="mt-4">
71-
<router-link :to="'/' + $i18n.locale + '/login'">{{ $t('loginText') }}</router-link>
72-
</v-btn><br>
73-
<v-btn small outlined color="white" class="mt-4">
74-
<router-link key="signup" :to="'/' + $i18n.locale + '/signup'">
75-
{{ $t('signupText') }}
76-
</router-link>
77-
</v-btn>
59+
<user-actions vertical="1" />
7860
</v-flex>
7961
</v-navigation-drawer>
8062

vue/src/components/LanguageSwitch.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<div v-else>
1414
<v-speed-dial
1515
id="langnav"
16-
open-on-hover="true"
16+
open-on-hover
1717
direction="left"
1818
transition="slide-x-reverse-transition">
1919
<template v-slot:activator>

vue/src/main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import router from './router';
88
import store from './store';
99
import i18n from './trans';
1010
import LanguageSwitch from './components/LanguageSwitch.vue';
11+
import UserActions from './components/UserActions.vue';
1112
import App from './App.vue';
1213

1314
require('@/assets/styles/main.css');
@@ -31,6 +32,7 @@ const apolloProvider = new VueApollo({
3132
});
3233

3334
Vue.component('language-switch', LanguageSwitch);
35+
Vue.component('user-actions', UserActions);
3436

3537
new Vue({
3638
router,

vue/src/views/Snapshot.vue

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,28 @@
1010
<!-- eslint-enable -->
1111

1212
<template>
13-
<v-container my-12>
14-
<v-layout >
15-
<v-flex>
16-
<h1>Snapshot</h1>
17-
</v-flex>
18-
</v-layout>
13+
<v-container>
14+
<v-navigation-drawer
15+
:width="320"
16+
left app >
17+
<router-link id="logo" :to="'/' + $i18n.locale + '/'" class="px-4 py-1 d-block">
18+
<img alt="gemeindescan logo" height="50" src="@/assets/images/gemeindescan-logo.svg">
19+
</router-link>
20+
21+
<v-toolbar
22+
:width="320"
23+
absolute
24+
bottom
25+
class="useractions center">
26+
<user-actions />
27+
</v-toolbar>
28+
</v-navigation-drawer>
29+
30+
<v-layout >
31+
<v-flex>
32+
<h1>Map</h1>
33+
</v-flex>
34+
</v-layout>
1935
</v-container>
2036
</template>
2137

0 commit comments

Comments
 (0)