Skip to content

Commit c265c38

Browse files
committed
search always goes to /new-municipality/, adds contact info to Snapshot view, merges About and Contact into one page.
1 parent f02979d commit c265c38

File tree

7 files changed

+48
-90
lines changed

7 files changed

+48
-90
lines changed

vue/src/components/MainNavigation.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22
<i18n>
33
{
44
"de": {
5-
"mainnav.about": "Hintergrund",
65
"mainnav.imprint": "Impressum",
76
"mainnav.contact": "Kontakt"
87
},
98
"fr": {
10-
"mainnav.about": "Contexte",
119
"mainnav.imprint": "Impressum",
1210
"mainnav.contact": "Contact"
1311
}
@@ -81,7 +79,6 @@ export default {
8179
return {
8280
mobnav: false,
8381
mainnav: [
84-
{ route: '/about', textKey: 'mainnav.about' },
8582
{ route: '/imprint', textKey: 'mainnav.imprint' },
8683
{ route: '/contact', textKey: 'mainnav.contact' }
8784
]

vue/src/components/Search.vue

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -97,22 +97,22 @@ export default {
9797
9898
submitMunicipality() {
9999
if (this.select.node.bfsNumber) {
100-
if (this.select.node.snapshots.length === 0) {
101-
this.$router.push({
102-
name: 'snapshotNew',
103-
params: {
104-
hash: null,
105-
bfsNumber: this.select.node.bfsNumber
106-
}
107-
});
108-
} else {
109-
this.$router.push({
110-
name: 'snapshot',
111-
params: {
112-
hash: this.select.node.snapshots[0].pk
113-
}
114-
});
115-
}
100+
// if (this.select.node.snapshots.length === 0) {
101+
this.$router.push({
102+
name: 'snapshotNew',
103+
params: {
104+
hash: null,
105+
bfsNumber: this.select.node.bfsNumber
106+
}
107+
});
108+
// } else {
109+
// this.$router.push({
110+
// name: 'snapshot',
111+
// params: {
112+
// hash: this.select.node.snapshots[0].pk
113+
// }
114+
// });
115+
// }
116116
}
117117
}
118118
},

vue/src/router/index.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,6 @@ const routes = [
4444
layout: () => import('@/layouts/LayoutDefault.vue')
4545
}
4646
},
47-
{
48-
path: 'about/',
49-
name: 'about',
50-
component: () => import('@/views/About.vue'),
51-
meta: {
52-
layout: () => import('@/layouts/LayoutDefault.vue')
53-
}
54-
},
5547
{
5648
path: 'imprint/',
5749
name: 'imprint',

vue/src/views/About.vue

Lines changed: 0 additions & 34 deletions
This file was deleted.

vue/src/views/Contact.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
"cividi - digitale Werkzeuge für die analoge Stadt.",
1212
"p.4":
1313
"<small>Das Pionierprojekt wird ermöglicht durch <a href=\"https://www.engagement-migros.ch/de\" target=\"_blank\">Engagement Migros</a>,<br>dem Förderfonds der Migros-Gruppe.</small>",
14+
"p.5":
15+
"Der Gemeindescan ist eine <a href=\"https://cividi.ch\" target=\"_blank\">cividi</a> Anwendung, die in Zusammenarbeit mit <a href=\"https://taywa.ch\" target=\"_blank\">Taywa</a> entwickelt wird.",
1416
"cividi.link":
1517
"https://cividi.ch",
1618
"em.link":
@@ -26,6 +28,8 @@
2628
"cividi - Des outils numériques pour la ville analogique",
2729
"p.4":
2830
"<small>Ce projet innovateur est rendu possible grâce à <a href=\"https://www.engagement-migros.ch/fr\" target=\"_blank\">l'engagement de Migros</a>,<br>le fonds de développement du groupe Migros.</small>",
31+
"p.5":
32+
"Le Gemeindescan est une application <a href=\"https://cividi.ch/societe/\" target=\"_blank\">cividi</a> développée en coopération avec <a href=\"https://taywa.ch\" target=\"_blank\">Taywa</a>.",
2933
"cividi.link":
3034
"https://cividi.ch/societe",
3135
"em.link":
@@ -44,6 +48,8 @@
4448
<h1>
4549
{{ $t('h1.1')}}
4650
</h1>
51+
<p v-html="$t('p.5')">
52+
</p>
4753
<p v-html="$t('p.1')">
4854
</p>
4955
<p v-html="$t('p.2')">

vue/src/views/Imprint.vue

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,17 @@
88
Impressum
99
</h1>
1010
<p>
11-
cividi<br>
12-
℅ Smartuse GmbH<br>
11+
cividi GmbH<br>
1312
Flüelastrasse 10<br>
1413
8048 Zürich<br>
15-
<a href="mailto:legal@gemeindescan.ch" target="_blank">legal@gemeindescan.ch</a>
14+
<a href="mailto:legal@cividi.ch" target="_blank">legal@cividi.ch</a>
1615
</p>
1716

1817
<h2>
1918
Datenschutzerklärung
2019
</h2>
2120
<p>
22-
Diese Webseite und ihr Inhalt wird durch Smartuse GmbH gestellt.
21+
Diese Webseite und ihr Inhalt wird durch cividi GmbH gestellt.
2322
Der Schutz Ihrer persönlichen Daten ist uns wichtig und wir behandeln
2423
personenbezogenen Daten vertraulich und entsprechend der gesetzlichen
2524
Datenschutzvorschriften sowie dieser Datenschutzerklärung.
@@ -93,30 +92,6 @@
9392
<a href="https://admin.typeform.com/to/L9Crcj" target="_blank">hier</a> nachlesen.
9493
</p>
9594

96-
<h3>
97-
Google Analytics
98-
</h3>
99-
<p>
100-
Diese Website benutzt Google Analytics, einen Webanalysedienst der Google LLC,
101-
1600 Amphitheatre Parkway, Mountain View, CA 94043 USA (nachfolgend: „Google”).
102-
Google Analytics verwendet sog. „Cookies”, also Textdateien, die auf eurem
103-
Computer gespeichert werden und die eine Analyse eurer Benutzung der Webseite
104-
ermöglichen. Die durch das Cookie erzeugten Informationen über eure Benutzung
105-
unserer Webseite werden in der Regel an einen Server von Google in den USA
106-
übertragen und dort gespeichert. Aufgrund der Aktivierung der IP-Anonymisierung,
107-
wird eure IP-Adresse von Google jedoch innerhalb von Mitgliedstaaten der
108-
Europäischen Union oder in anderen Vertragsstaaten des Abkommens über den
109-
Europäischen Wirtschaftsraum zuvor gekürzt. Nur in Ausnahmefällen wird die
110-
volle IP-Adresse an einen Server von Google in den USA übertragen und dort
111-
gekürzt. Im Auftrag des Betreibers dieser Website wird Google diese
112-
Informationen benutzen, um eure Nutzung der Webseite auszuwerten,
113-
um Reports über die Webseitenaktivitäten zusammenzustellen und um weitere
114-
mit der Webseitenutzung und der Internetnutzung verbundene Dienstleistungen
115-
gegenüber dem Webseitenbetreiber zu erbringen. Die im Rahmen von Google Analytics
116-
von eurem Browser übermittelte IP-Adresse wird nicht mit anderen Daten von Google
117-
zusammengeführt.
118-
</p>
119-
12095
<h3>
12196
TLS-Verschlüsselung
12297
</h3>
@@ -141,7 +116,7 @@
141116
142117
</p>
143118
<p>
144-
Zürich, 02.02.2020
119+
Zürich, 09.11.2020
145120
</p>
146121
</v-flex>
147122
</v-layout>

vue/src/views/Snapshot.vue

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
"noSnapshot.municipalityText": "diese Gemeinde",
1111
"noSnapshot.p1": "Für {municipalityText} sind zur Zeit noch keine Analysen freigeschaltet.",
1212
"noSnapshot.p2": "Erkunden Sie unsere Fallbeispiele um ein besseres Bild der Möglichkeiten für Ihre Gemeinde zu erhalten.",
13+
"noSnapshot.p3.1": "Gerne beraten wir sie via",
14+
"noSnapshot.p3.2": "oder telefonisch unter",
15+
"contactEmail": "[email protected]",
16+
"contactEmailSubject": "Anfrage Gemeindescan",
17+
"contactPhone": "+41 43 543 44 48",
1318
"listtitle": "Fallbeispiele",
1419
"listtitleMore": "Weitere Fallbeispiele"
1520
},
@@ -22,6 +27,11 @@
2227
"noSnapshot.municipalityText": "cette communauté",
2328
"noSnapshot.p1": "En ce moment il n’éxiste pas encore de données pour {municipalityText}.",
2429
"noSnapshot.p2": "Prenez compte de nos études pour une meilleure vue d’ensemble des possibilitiées qui s’offrent à votre commune.",
30+
"noSnapshot.p3.1": "Gerne beraten wir sie via",
31+
"noSnapshot.p3.2": "oder telefonisch unter",
32+
"contactEmail": "[email protected]",
33+
"contactEmailSubject": "Offre pour Gemeindescan",
34+
"contactPhone": "+41 43 543 44 48",
2535
"listtitle": "Examples",
2636
"listtitleMore": "D'autres examples"
2737
}
@@ -52,6 +62,12 @@
5262
<!-- <h4>{{ $t('noSnapshot.title') }}</h4> -->
5363
<p>{{ $t('noSnapshot.p1', { municipalityText: municipalityText }) }}</p>
5464
<p>{{ $t('noSnapshot.p2') }}</p>
65+
<p>
66+
{{ $t('noSnapshot.p3.1') }}
67+
<a @click="composeEmail">{{$t('contactEmail')}}</a>
68+
{{ $t('noSnapshot.p3.2') }}
69+
<a @click="makeCall">{{$t('contactPhone')}}</a>.
70+
</p>
5571
</div>
5672
</div>
5773

@@ -346,6 +362,12 @@ export default {
346362
this.$store.commit('setBfsnumber', result.data.municipality.bfsNumber);
347363
this.$store.commit('setBfsname', result.data.municipality.fullname);
348364
}
365+
},
366+
composeEmail() {
367+
window.location.href = `mailto:${this.$t('contactEmail')}?subject=${this.$t('contactEmailSubject')}&body=`;
368+
},
369+
makeCall() {
370+
window.location.href = `tel:${this.$t('contactPhone')}`;
349371
}
350372
}
351373
};

0 commit comments

Comments
 (0)