2019-10-07 16:48:13 +02:00
|
|
|
<template>
|
2020-02-18 08:57:00 +01:00
|
|
|
<div>
|
2020-06-19 19:27:10 +02:00
|
|
|
<div class="hero intro is-small is-primary">
|
2020-02-18 08:57:00 +01:00
|
|
|
<div class="hero-body">
|
|
|
|
<div class="container">
|
|
|
|
<h1 class="title">{{ $t("About Mobilizon") }}</h1>
|
2020-06-19 19:27:10 +02:00
|
|
|
<p>
|
|
|
|
{{
|
|
|
|
$t(
|
|
|
|
"A user-friendly, emancipatory and ethical tool for gathering, organising, and mobilising."
|
|
|
|
)
|
|
|
|
}}
|
2020-02-18 08:57:00 +01:00
|
|
|
</p>
|
|
|
|
<b-button
|
|
|
|
icon-left="open-in-new"
|
|
|
|
size="is-large"
|
|
|
|
type="is-secondary"
|
|
|
|
tag="a"
|
|
|
|
href="https://joinmobilizon.org"
|
|
|
|
>{{ $t("Learn more") }}</b-button
|
|
|
|
>
|
2019-10-07 16:48:13 +02:00
|
|
|
</div>
|
2020-02-18 08:57:00 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-06-19 19:27:10 +02:00
|
|
|
<main class="container">
|
|
|
|
<div class="columns">
|
|
|
|
<div class="column is-one-quarter-desktop">
|
|
|
|
<aside class="menu">
|
2020-10-26 11:38:45 +01:00
|
|
|
<p class="menu-list">
|
|
|
|
<router-link :to="{ name: RouteName.ABOUT_INSTANCE }">{{
|
|
|
|
$t("About this instance")
|
|
|
|
}}</router-link>
|
2020-02-18 08:57:00 +01:00
|
|
|
</p>
|
2020-06-19 19:27:10 +02:00
|
|
|
<p class="menu-label">
|
|
|
|
{{ $t("Legal") }}
|
2020-02-18 08:57:00 +01:00
|
|
|
</p>
|
2020-06-19 19:27:10 +02:00
|
|
|
<ul class="menu-list">
|
|
|
|
<li>
|
|
|
|
<router-link :to="{ name: RouteName.TERMS }">{{
|
|
|
|
$t("Terms of service")
|
|
|
|
}}</router-link>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<router-link :to="{ name: RouteName.PRIVACY }">{{
|
|
|
|
$t("Privacy policy")
|
|
|
|
}}</router-link>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<router-link :to="{ name: RouteName.RULES }">{{
|
|
|
|
$t("Instance rules")
|
|
|
|
}}</router-link>
|
|
|
|
</li>
|
|
|
|
<li>
|
2020-11-30 10:24:11 +01:00
|
|
|
<router-link :to="{ name: RouteName.GLOSSARY }">{{
|
|
|
|
$t("Glossary")
|
|
|
|
}}</router-link>
|
2020-06-19 19:27:10 +02:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</aside>
|
2020-02-18 08:57:00 +01:00
|
|
|
</div>
|
2020-06-19 19:27:10 +02:00
|
|
|
<div class="column router">
|
|
|
|
<router-view />
|
2020-02-18 08:57:00 +01:00
|
|
|
</div>
|
2020-06-19 19:27:10 +02:00
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
|
2020-02-18 08:57:00 +01:00
|
|
|
<!-- We hide the "Find an instance button until https://joinmobilizon.org gets a instance picker -->
|
2020-10-26 11:38:45 +01:00
|
|
|
<div class="hero register is-primary is-medium">
|
2020-02-18 08:57:00 +01:00
|
|
|
<div class="hero-body">
|
|
|
|
<div class="container has-text-centered">
|
|
|
|
<div class="columns">
|
2020-10-26 11:38:45 +01:00
|
|
|
<div class="column" v-if="config && config.registrationsOpen">
|
2020-06-09 15:59:13 +02:00
|
|
|
<h2 class="title">{{ $t("Register on this instance") }}</h2>
|
2020-02-18 08:57:00 +01:00
|
|
|
<b-button
|
|
|
|
type="is-secondary"
|
|
|
|
size="is-large"
|
|
|
|
tag="router-link"
|
|
|
|
:to="{ name: RouteName.REGISTER }"
|
2020-10-12 08:50:51 +02:00
|
|
|
>{{ $t("Create an account") }}</b-button
|
2020-02-18 08:57:00 +01:00
|
|
|
>
|
|
|
|
</div>
|
2020-10-26 11:38:45 +01:00
|
|
|
<div class="column">
|
|
|
|
<h2 class="title">{{ $t("Find another instance") }}</h2>
|
2020-11-30 10:24:11 +01:00
|
|
|
<b-button
|
|
|
|
type="is-secondary"
|
|
|
|
size="is-large"
|
|
|
|
tag="a"
|
|
|
|
href="https://mobilizon.org"
|
|
|
|
>{{ $t("Pick an instance") }}</b-button
|
|
|
|
>
|
2020-10-26 11:38:45 +01:00
|
|
|
</div>
|
2020-02-18 08:57:00 +01:00
|
|
|
</div>
|
2019-10-07 16:48:13 +02:00
|
|
|
</div>
|
2020-02-18 08:57:00 +01:00
|
|
|
</div>
|
2019-10-07 16:48:13 +02:00
|
|
|
</div>
|
2020-02-18 08:57:00 +01:00
|
|
|
</div>
|
2019-10-07 16:48:13 +02:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2020-02-18 08:57:00 +01:00
|
|
|
import { Component, Vue } from "vue-property-decorator";
|
|
|
|
import { CONFIG } from "@/graphql/config";
|
|
|
|
import { IConfig } from "@/types/config.model";
|
|
|
|
import RouteName from "../router/name";
|
2019-10-07 16:48:13 +02:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
apollo: {
|
|
|
|
config: {
|
|
|
|
query: CONFIG,
|
|
|
|
},
|
|
|
|
},
|
2021-05-25 16:21:29 +02:00
|
|
|
metaInfo() {
|
|
|
|
return {
|
|
|
|
title: this.$t("About {instance}", {
|
|
|
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
|
|
// @ts-ignore
|
|
|
|
instance: this?.config?.name,
|
|
|
|
}) as string,
|
|
|
|
};
|
|
|
|
},
|
2019-10-07 16:48:13 +02:00
|
|
|
})
|
|
|
|
export default class About extends Vue {
|
|
|
|
config!: IConfig;
|
|
|
|
|
|
|
|
RouteName = RouteName;
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2020-06-17 15:54:24 +02:00
|
|
|
.hero.is-primary {
|
|
|
|
background: $background-color;
|
2020-06-09 15:59:13 +02:00
|
|
|
|
2020-06-19 19:27:10 +02:00
|
|
|
.title {
|
|
|
|
margin: 30px auto 1rem auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
|
|
margin-bottom: 1rem;
|
2020-06-09 15:59:13 +02:00
|
|
|
}
|
|
|
|
}
|
2019-10-07 16:48:13 +02:00
|
|
|
|
2020-02-18 08:57:00 +01:00
|
|
|
.hero.register {
|
2020-06-24 10:05:22 +02:00
|
|
|
.title {
|
|
|
|
color: $violet-1;
|
|
|
|
}
|
|
|
|
background: $purple-2;
|
2020-02-18 08:57:00 +01:00
|
|
|
}
|
2019-10-07 16:48:13 +02:00
|
|
|
|
2020-06-19 19:27:10 +02:00
|
|
|
aside.menu {
|
|
|
|
position: sticky;
|
|
|
|
top: 2rem;
|
|
|
|
margin-top: 2rem;
|
2020-02-18 08:57:00 +01:00
|
|
|
}
|
2019-10-07 16:48:13 +02:00
|
|
|
|
2020-06-19 19:27:10 +02:00
|
|
|
.router.column {
|
|
|
|
background: $white;
|
|
|
|
}
|
2019-10-07 16:48:13 +02:00
|
|
|
|
2020-06-19 19:27:10 +02:00
|
|
|
ul.menu-list > li > a {
|
|
|
|
text-decoration: none;
|
2020-02-18 08:57:00 +01:00
|
|
|
}
|
|
|
|
</style>
|