2019-04-03 15:29:03 +00:00
|
|
|
<template>
|
2020-02-18 07:57:00 +00:00
|
|
|
<footer class="footer" ref="footer">
|
2020-10-16 14:36:16 +00:00
|
|
|
<img :src="`/img/pics/footer_${random}.jpg`" alt="" />
|
2020-02-18 07:57:00 +00:00
|
|
|
<ul>
|
|
|
|
<li>
|
2020-06-15 16:12:49 +00:00
|
|
|
<router-link :to="{ name: RouteName.ABOUT }">{{ $t("About") }}</router-link>
|
2020-02-18 07:57:00 +00:00
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<router-link :to="{ name: RouteName.TERMS }">{{ $t("Terms") }}</router-link>
|
|
|
|
</li>
|
|
|
|
<li>
|
2020-09-29 07:53:48 +00:00
|
|
|
<a hreflang="en" href="https://framagit.org/framasoft/mobilizon/blob/master/LICENSE">
|
2020-02-18 07:57:00 +00:00
|
|
|
{{ $t("License") }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<div class="content has-text-centered">
|
2020-06-15 16:12:49 +00:00
|
|
|
<i18n
|
|
|
|
tag="span"
|
|
|
|
path="Powered by {mobilizon}. © 2018 - {date} The Mobilizon Contributors - Made with the financial support of {contributors}."
|
|
|
|
>
|
|
|
|
<a slot="mobilizon" href="https://joinmobilizon.org">{{ $t("Mobilizon") }}</a>
|
|
|
|
<span slot="date">{{ new Date().getFullYear() }}</span>
|
|
|
|
<a href="https://joinmobilizon.org/hall-of-fame" slot="contributors">{{
|
|
|
|
$t("more than 1360 contributors")
|
|
|
|
}}</a>
|
|
|
|
</i18n>
|
2020-02-18 07:57:00 +00:00
|
|
|
</div>
|
|
|
|
</footer>
|
2019-04-03 15:29:03 +00:00
|
|
|
</template>
|
|
|
|
<script lang="ts">
|
2020-02-18 07:57:00 +00:00
|
|
|
import { Component, Vue } from "vue-property-decorator";
|
|
|
|
import RouteName from "../router/name";
|
2019-04-03 15:29:03 +00:00
|
|
|
|
2020-10-16 14:36:16 +00:00
|
|
|
@Component
|
2019-04-03 15:29:03 +00:00
|
|
|
export default class Footer extends Vue {
|
2019-12-20 12:04:34 +00:00
|
|
|
RouteName = RouteName;
|
2020-10-16 14:36:16 +00:00
|
|
|
|
|
|
|
// eslint-disable-next-line class-methods-use-this
|
|
|
|
get random(): number {
|
|
|
|
return Math.floor(Math.random() * 4) + 1;
|
|
|
|
}
|
2019-04-03 15:29:03 +00:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
2020-10-16 14:36:16 +00:00
|
|
|
@import "~bulma/sass/utilities/mixins.sass";
|
2020-02-18 07:57:00 +00:00
|
|
|
footer.footer {
|
|
|
|
color: $secondary;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
2020-06-15 16:12:49 +00:00
|
|
|
font-size: 14px;
|
2020-10-16 14:36:16 +00:00
|
|
|
padding: 1rem 1.5rem;
|
2019-04-03 15:29:03 +00:00
|
|
|
|
2020-10-16 14:36:16 +00:00
|
|
|
img {
|
2020-02-18 07:57:00 +00:00
|
|
|
flex: 1;
|
2020-10-16 14:36:16 +00:00
|
|
|
max-width: 40rem;
|
|
|
|
@include mobile {
|
|
|
|
max-width: 400px;
|
|
|
|
}
|
2020-02-18 07:57:00 +00:00
|
|
|
}
|
2019-04-03 15:29:03 +00:00
|
|
|
|
2020-02-18 07:57:00 +00:00
|
|
|
div.content {
|
|
|
|
flex: 1;
|
|
|
|
}
|
2019-04-03 15:29:03 +00:00
|
|
|
|
2020-10-16 14:36:16 +00:00
|
|
|
ul {
|
2020-02-18 07:57:00 +00:00
|
|
|
display: inline-flex;
|
2020-10-16 14:36:16 +00:00
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: space-around;
|
|
|
|
|
|
|
|
li {
|
|
|
|
display: inline-flex;
|
|
|
|
margin: auto 5px;
|
|
|
|
a {
|
|
|
|
font-size: 1.1rem;
|
|
|
|
}
|
2019-04-03 15:29:03 +00:00
|
|
|
}
|
2020-02-18 07:57:00 +00:00
|
|
|
}
|
2020-06-15 16:12:49 +00:00
|
|
|
|
|
|
|
a {
|
|
|
|
color: $white;
|
|
|
|
text-decoration: underline;
|
|
|
|
text-decoration-color: $secondary;
|
|
|
|
}
|
2020-02-18 07:57:00 +00:00
|
|
|
}
|
2019-04-03 15:29:03 +00:00
|
|
|
</style>
|