mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
54 lines
1.2 KiB
Vue
54 lines
1.2 KiB
Vue
<template>
|
|
<div id="footer" class="ds-footer">
|
|
<!-- links to internal or external pages -->
|
|
<span v-for="pageParams in links.FOOTER_LINK_LIST" :key="pageParams.name">
|
|
<page-params-link :pageParams="pageParams">
|
|
{{ $t(pageParams.internalPage.footerIdent) }}
|
|
</page-params-link>
|
|
<span class="division-space"> </span>
|
|
</span>
|
|
<!-- version -->
|
|
<a
|
|
href="https://github.com/Ocelot-Social-Community/Ocelot-Social/releases"
|
|
target="_blank"
|
|
data-test="version-link"
|
|
>
|
|
{{ version }}
|
|
</a>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import links from '~/constants/links.js'
|
|
import PageParamsLink from '~/components/_new/features/PageParamsLink/PageParamsLink.vue'
|
|
|
|
export default {
|
|
components: {
|
|
PageParamsLink,
|
|
},
|
|
data() {
|
|
return { links, version: `v${this.$env.VERSION}` }
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.ds-footer {
|
|
text-align: center;
|
|
position: fixed;
|
|
bottom: 0px;
|
|
z-index: 10;
|
|
background-color: $color-footer-background;
|
|
width: 100%;
|
|
padding: 10px 10px;
|
|
box-shadow: 0px -6px 12px -4px rgba(0, 0, 0, 0.1);
|
|
}
|
|
.ds-footer a {
|
|
color: $color-footer-link;
|
|
}
|
|
.division-space {
|
|
margin-left: 0.4rem;
|
|
margin-right: 0.4rem;
|
|
}
|
|
</style>
|