dashy/src/components/PageStrcture/Footer.vue

55 lines
1.4 KiB
Vue

<template>
<!-- User Footer -->
<footer v-if="text && text !== ''" v-html="text"></footer>
<!-- Default Footer -->
<footer v-else>
Developed by <a :href="authorUrl">{{authorName}}</a>.
Licensed under <a :href="licenseUrl">{{license}}</a>
{{ showCopyright? '©': '' }} {{date}}.
Get the <a :href="repoUrl">Source Code</a>.
</footer>
</template>
<script>
export default {
name: 'Footer',
props: {
text: String,
authorName: { type: String, default: 'Alicia Sykes' },
authorUrl: { type: String, default: 'https://aliciasykes.com' },
license: { type: String, default: 'MIT' },
licenseUrl: { type: String, default: 'https://gist.github.com/Lissy93/143d2ee01ccc5c052a17' },
date: { type: String, default: `${new Date().getFullYear()}` },
showCopyright: { type: Boolean, default: true },
repoUrl: { type: String, default: 'https://github.com/lissy93/dashy' },
},
};
</script>
<style scoped lang="scss">
@import '@/styles/media-queries.scss';
footer {
width: calc(100% - 0.5rem);
bottom: 0;
padding: 0.25rem;
text-align: center;
color: var(--medium-grey);
opacity: var(--dimming-factor);
background: var(--footer-background);
margin-top: 1.5rem;
border-top: 1px solid var(--outline-color);
@include tablet-down {
display: none;
}
}
footer a{
color: var(--footer-text-color);
&:hover {
color: var(--footer-text-color-link);
}
}
</style>