1
0
mirror of https://github.com/TeamPiped/Piped.git synced 2024-12-14 22:30:28 +05:30
Piped/src/components/FooterComponent.vue

56 lines
1.7 KiB
Vue
Raw Normal View History

2022-09-09 23:43:56 +05:30
<template>
2022-11-02 20:38:35 +05:30
<footer class="text-center py-4 rounded-xl children:(mx-3) w-full mt-10">
2022-11-14 07:25:53 +05:30
<a aria-label="GitHub" href="https://github.com/TeamPiped/Piped" target="_blank">
<font-awesome-icon :icon="['fab', 'github']" />
<span class="ml-2" v-t="'actions.source_code'" />
</a>
<a href="https://docs.piped.video/" target="_blank">
<font-awesome-icon :icon="['fa', 'book']" />
<span class="ml-2" v-t="'actions.documentation'" />
</a>
<a href="https://github.com/TeamPiped/Piped#donations" target="_blank">
<font-awesome-icon :icon="['fab', 'bitcoin']" />
<span class="ml-2" v-t="'actions.donations'" />
</a>
<a v-if="statusPageHref" :href="statusPageHref">
<font-awesome-icon :icon="['fa', 'server']" />
<span class="ml-2" v-t="'actions.status_page'" />
</a>
<a v-if="donationHref" :href="donationHref">
<font-awesome-icon :icon="['fa', 'donate']" />
<span class="ml-2" v-t="'actions.instance_donations'" />
</a>
</footer>
2022-09-09 23:43:56 +05:30
</template>
<script>
2022-11-14 07:25:53 +05:30
export default {
data() {
return {
donationHref: null,
statusPageHref: null,
};
},
mounted() {
this.fetchConfig();
},
methods: {
async fetchConfig() {
this.fetchJson(this.apiUrl() + "/config").then(config => {
this.donationHref = config?.donationUrl;
this.statusPageHref = config?.statusPageUrl;
});
},
},
};
2022-09-09 23:43:56 +05:30
</script>
2022-09-10 14:39:54 +05:30
<style>
2022-11-14 07:25:53 +05:30
footer {
@apply bg-light-900;
}
.dark footer {
@apply bg-dark-800;
}
2022-09-09 23:43:56 +05:30
</style>