sepia-search-motore-di-rice.../client/src/components/Footer.vue

169 lines
3.5 KiB
Vue
Raw Normal View History

2020-08-27 14:44:21 +02:00
<template>
<footer id="main-footer">
<div class="header">
2020-09-02 10:17:50 +02:00
<img src="/img/bottom-peertube-logo.svg" alt="">
2020-08-27 14:44:21 +02:00
2020-09-01 11:50:55 +02:00
<div v-translate class="description">A free software to take back control of your videos</div>
2020-08-27 14:44:21 +02:00
</div>
<div class="columns">
<div>
2020-09-01 11:50:55 +02:00
<div v-translate class="subtitle">Open your own videos website with PeerTube!</div>
2020-08-27 14:44:21 +02:00
2020-09-02 10:17:50 +02:00
<a target="_blank" v-translate href="https://docs.joinpeertube.org/#/install-any-os">Install PeerTube</a>
2020-08-27 14:44:21 +02:00
2020-09-02 10:17:50 +02:00
<a target="_blank" v-translate href="https://joinpeertube.org#what-is-peertube">Why should I have my own PeerTube website?</a>
2020-08-27 14:44:21 +02:00
</div>
<div>
2020-09-01 11:50:55 +02:00
<div v-translate class="subtitle">Create an account to take back control of your videos</div>
2020-08-27 14:44:21 +02:00
2020-09-02 10:17:50 +02:00
<a target="_blank" v-translate href="https://joinpeertube.org/instances">Open an account on a PeerTube website</a>
2020-08-27 14:44:21 +02:00
2020-09-02 10:17:50 +02:00
<a target="_blank" v-translate href="https://docs.joinpeertube.org/#/use-library?id=playlist">Create playlists</a>
2020-08-27 14:44:21 +02:00
</div>
</div>
2020-09-02 10:17:50 +02:00
2020-09-02 11:53:15 +02:00
<div class="big-link">
2020-09-02 10:17:50 +02:00
<a href="https://joinpeertube.org" target="_blank" v-translate> &gt;&gt; Check all guides on joinpeertube.org &lt;&lt; </a>
</div>
2020-09-02 11:53:15 +02:00
<div class="footer">
2020-09-02 14:07:22 +02:00
<a v-translate href="https://framagit.org/framasoft/peertube/search-index/" target="_blank">Source code</a>
<a v-if="legalNoticesUrl" v-translate :href="legalNoticesUrl" target="_blank">Legal notices</a>
2020-09-02 11:53:15 +02:00
</div>
2020-08-27 14:44:21 +02:00
</footer>
</template>
<style lang="scss">
@import '../scss/_variables';
footer {
width: $container-width;
margin: auto;
background-color: $orange-lighten;
2020-09-02 11:53:15 +02:00
padding: 30px 100px 10px 100px;
2020-08-27 14:44:21 +02:00
font-family: monospace;
.header {
margin: 50px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
2020-09-02 10:17:50 +02:00
img {
width: 100%;
max-width: 500px;
margin-bottom: 20px;
}
2020-08-27 14:44:21 +02:00
}
.description {
color: $grey;
2020-09-02 10:17:50 +02:00
text-align: center;
2020-08-27 14:44:21 +02:00
}
.columns {
display: flex;
> div {
display: flex;
flex-direction: column;
text-align: center;
}
@media screen and (max-width: $container-width) {
flex-direction: column;
> div {
margin-top: 50px;
}
}
}
2020-09-02 11:53:15 +02:00
.columns a,
.big-link a {
2020-08-27 14:44:21 +02:00
color: $orange;
margin: 0 auto 20px auto;
min-height: 40px;
display: flex;
width: fit-content;
&:hover {
color: $orange-darken;
}
}
2020-09-02 11:53:15 +02:00
.subtitle {
color: $grey;
font-size: 20px;
margin-bottom: 50px;
}
.big-link {
2020-09-02 10:17:50 +02:00
margin-top: 50px;
a {
font-size: 20px;
font-weight: bold;
text-decoration: none;
text-align: center;
}
}
2020-09-02 11:53:15 +02:00
.footer {
margin-top: 80px;
display: flex;
justify-content: center;
a {
color: $orange;
font-size: 10px;
2020-09-02 14:07:22 +02:00
margin-right: 10px;
2020-09-02 11:53:15 +02:00
}
}
2020-08-27 14:44:21 +02:00
@media screen and (max-width: $container-width) {
width: 100%;
}
@media screen and (max-width: $small-view) {
padding: 30px;
.title {
font-size: 20px;
}
.subtitle {
font-size: 16px;
}
2020-09-02 10:17:50 +02:00
.footer a {
font-size: 16px;
}
2020-08-27 14:44:21 +02:00
}
}
</style>
<script>
import Vue from 'vue'
2020-09-02 14:07:22 +02:00
import { getConfig } from '../shared/config'
2020-08-27 14:44:21 +02:00
export default Vue.extend({
2020-09-02 14:07:22 +02:00
data () {
return {
legalNoticesUrl: ''
}
},
2020-08-27 14:44:21 +02:00
2020-09-02 14:07:22 +02:00
async mounted () {
const config = await getConfig()
this.legalNoticesUrl = config.legalNoticesUrl
}
2020-08-27 14:44:21 +02:00
})
</script>