2019-01-21 14:08:22 +00:00
|
|
|
<template>
|
2019-12-20 12:04:34 +00:00
|
|
|
<section class="section container has-text-centered not-found">
|
2019-04-03 15:29:03 +00:00
|
|
|
<div class="columns is-vertical">
|
|
|
|
<div class="column is-centered">
|
|
|
|
<img src="../assets/oh_no.jpg" alt="Not found 'oh no' picture">
|
|
|
|
<h1 class="title">
|
2019-09-12 09:34:01 +00:00
|
|
|
{{ $t("The page you're looking for doesn't exist.") }}
|
2019-04-03 15:29:03 +00:00
|
|
|
</h1>
|
|
|
|
<p>
|
2019-09-12 09:34:01 +00:00
|
|
|
{{ $t("Please make sure the address is correct and that the page hasn't been moved.") }}
|
2019-04-03 15:29:03 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
2019-09-12 09:34:01 +00:00
|
|
|
{{ $t("Please contact this instance's Mobilizon admin if you think this is a mistake.") }}
|
2019-04-03 15:29:03 +00:00
|
|
|
</p>
|
|
|
|
<!-- The following should just be replaced with the SearchField component but it fails for some reason -->
|
|
|
|
<form @submit="enter">
|
|
|
|
<b-field class="search">
|
|
|
|
<b-input expanded icon="magnify" type="search" :placeholder="searchPlaceHolder" v-model="searchText" />
|
|
|
|
<p class="control">
|
2019-09-12 09:34:01 +00:00
|
|
|
<button type="submit" class="button is-primary">{{ $t('Search') }}</button>
|
2019-04-03 15:29:03 +00:00
|
|
|
</p>
|
|
|
|
</b-field>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-01-21 14:08:22 +00:00
|
|
|
</section>
|
|
|
|
</template>
|
2019-04-03 15:29:03 +00:00
|
|
|
<script lang="ts">
|
|
|
|
import { Component, Vue } from 'vue-property-decorator';
|
|
|
|
import { RouteName } from '@/router';
|
|
|
|
import BField from 'buefy/src/components/field/Field.vue';
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
components: {
|
|
|
|
BField,
|
|
|
|
},
|
|
|
|
})
|
|
|
|
export default class PageNotFound extends Vue {
|
|
|
|
searchText: string = '';
|
|
|
|
|
|
|
|
get searchPlaceHolder(): string {
|
2019-09-12 09:34:01 +00:00
|
|
|
return this.$t('Search events, groups, etc.') as string;
|
2019-04-03 15:29:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
enter() {
|
|
|
|
this.$router.push({ name: RouteName.SEARCH, params: { searchTerm: this.searchText } });
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
|
|
.container.not-found {
|
|
|
|
margin: auto;
|
|
|
|
max-width: 600px;
|
|
|
|
|
|
|
|
img {
|
|
|
|
margin-top: 3rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|