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">
|
2020-12-11 15:27:04 +01:00
|
|
|
<picture>
|
|
|
|
<source
|
|
|
|
srcset="/img/pics/error-480w.webp 1x, /img/pics/error-1024w.webp 2x"
|
|
|
|
type="image/webp"
|
|
|
|
/>
|
|
|
|
<source
|
|
|
|
srcset="/img/pics/error-480w.jpg 1x, /img/pics/error-1024w.jpg 2x"
|
|
|
|
type="image/jpeg"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<img
|
|
|
|
:src="`/img/pics/error-480w.jpg`"
|
|
|
|
alt=""
|
|
|
|
width="2616"
|
|
|
|
height="1698"
|
|
|
|
loading="lazy"
|
|
|
|
/>
|
|
|
|
</picture>
|
2020-11-30 10:24:11 +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>
|
2020-11-30 10:24:11 +01: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>
|
2020-11-30 10:24:11 +01: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 -->
|
2021-08-13 17:00:21 +02:00
|
|
|
<form @submit.prevent="enter">
|
2019-04-03 17:29:03 +02:00
|
|
|
<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-11-30 10:24:11 +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,
|
|
|
|
},
|
2021-05-25 16:21:29 +02:00
|
|
|
metaInfo() {
|
|
|
|
return {
|
|
|
|
title: this.$t("Page not found") as string,
|
|
|
|
};
|
|
|
|
},
|
2019-04-03 17:29:03 +02:00
|
|
|
})
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2020-11-27 19:27:44 +01:00
|
|
|
async enter(): Promise<void> {
|
|
|
|
await this.$router.push({
|
2020-02-18 08:57:00 +01:00
|
|
|
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>
|