2019-01-21 15:08:22 +01:00
|
|
|
<template>
|
2019-12-20 13:04:34 +01:00
|
|
|
<section class="section container has-text-centered not-found">
|
2020-10-18 15:19:12 +02:00
|
|
|
<div class="columns is-vertical is-centered">
|
|
|
|
<div class="column is-half">
|
|
|
|
<img src="/img/pics/2020-10-06-mobilizon-illustration-E_realisation.jpg" alt="" />
|
2020-02-18 08:57:00 +01:00
|
|
|
<h1 class="title">{{ $t("The page you're looking for doesn't exist.") }}</h1>
|
2019-04-03 17:29:03 +02:00
|
|
|
<p>
|
2019-09-12 11:34:01 +02:00
|
|
|
{{ $t("Please make sure the address is correct and that the page hasn't been moved.") }}
|
2019-04-03 17:29:03 +02:00
|
|
|
</p>
|
|
|
|
<p>
|
2019-09-12 11:34:01 +02:00
|
|
|
{{ $t("Please contact this instance's Mobilizon admin if you think this is a mistake.") }}
|
2019-04-03 17:29:03 +02: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">
|
2020-02-18 08:57:00 +01:00
|
|
|
<b-input
|
|
|
|
expanded
|
|
|
|
icon="magnify"
|
|
|
|
type="search"
|
|
|
|
:placeholder="searchPlaceHolder"
|
|
|
|
v-model="searchText"
|
|
|
|
/>
|
2019-04-03 17:29:03 +02:00
|
|
|
<p class="control">
|
2020-02-18 08:57:00 +01:00
|
|
|
<button type="submit" class="button is-primary">{{ $t("Search") }}</button>
|
2019-04-03 17:29:03 +02:00
|
|
|
</p>
|
|
|
|
</b-field>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-01-21 15:08:22 +01:00
|
|
|
</section>
|
|
|
|
</template>
|
2019-04-03 17:29:03 +02:00
|
|
|
<script lang="ts">
|
2020-02-18 08:57:00 +01:00
|
|
|
import { Component, Vue } from "vue-property-decorator";
|
|
|
|
import BField from "buefy/src/components/field/Field.vue";
|
|
|
|
import RouteName from "../router/name";
|
2019-04-03 17:29:03 +02:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
components: {
|
|
|
|
BField,
|
|
|
|
},
|
|
|
|
})
|
|
|
|
export default class PageNotFound extends Vue {
|
2020-02-18 08:57:00 +01:00
|
|
|
searchText = "";
|
2019-04-03 17:29:03 +02:00
|
|
|
|
|
|
|
get searchPlaceHolder(): string {
|
2020-02-18 08:57:00 +01:00
|
|
|
return this.$t("Search events, groups, etc.") as string;
|
2019-04-03 17:29:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
enter() {
|
2020-02-18 08:57:00 +01:00
|
|
|
this.$router.push({
|
|
|
|
name: RouteName.SEARCH,
|
2020-08-05 14:39:17 +02:00
|
|
|
query: { term: this.searchText },
|
2020-02-18 08:57:00 +01:00
|
|
|
});
|
2019-04-03 17:29:03 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<style lang="scss">
|
2020-02-18 08:57:00 +01:00
|
|
|
.container.not-found {
|
|
|
|
margin: auto;
|
2020-10-18 15:19:12 +02:00
|
|
|
background: $white;
|
2019-04-03 17:29:03 +02:00
|
|
|
|
2020-02-18 08:57:00 +01:00
|
|
|
img {
|
|
|
|
margin-top: 3rem;
|
|
|
|
}
|
2019-04-03 17:29:03 +02:00
|
|
|
|
2020-02-18 08:57:00 +01:00
|
|
|
p {
|
|
|
|
margin-bottom: 1em;
|
2019-04-03 17:29:03 +02:00
|
|
|
}
|
2020-02-18 08:57:00 +01:00
|
|
|
}
|
2019-04-03 17:29:03 +02:00
|
|
|
</style>
|