FitTrackee/fittrackee_client/src/components/Footer.vue

92 lines
1.9 KiB
Vue
Raw Normal View History

2021-07-25 17:10:55 +02:00
<template>
2023-07-13 16:18:03 +02:00
<footer id="footer">
2021-07-25 17:10:55 +02:00
<div class="footer-items">
<div class="footer-item">
<strong>FitTrackee</strong>
v{{ version }}
</div>
2021-07-25 17:10:55 +02:00
<div class="footer-item bullet"></div>
<div class="footer-item">
<router-link to="/about">
{{ $t('common.ABOUT') }}
</router-link>
</div>
<div class="footer-item bullet" v-if="adminContact"></div>
<div class="footer-item" v-if="adminContact">
<a :href="`mailto:${adminContact}`">{{ $t('common.CONTACT') }}</a>
2021-07-25 17:10:55 +02:00
</div>
<div class="footer-item bullet"></div>
<div class="footer-item">
<router-link to="/privacy-policy">
{{ $t('privacy_policy.TITLE') }}
</router-link>
2021-07-25 17:10:55 +02:00
</div>
</div>
2023-07-13 16:18:03 +02:00
</footer>
2021-07-25 17:10:55 +02:00
</template>
<script setup lang="ts">
import { toRefs } from 'vue'
interface Props {
version: string
adminContact?: string
}
const props = defineProps<Props>()
const { adminContact, version } = toRefs(props)
</script>
2021-07-25 17:10:55 +02:00
<style scoped lang="scss">
2021-11-29 11:23:21 +01:00
@import '~@/scss/vars.scss';
2021-07-25 17:10:55 +02:00
#footer {
display: flex;
bottom: 0;
position: fixed;
2021-07-25 17:10:55 +02:00
width: 100%;
background: var(--footer-background-color);
color: var(--footer-color);
2021-07-25 17:10:55 +02:00
font-size: 0.9em;
a {
text-decoration: none;
}
.footer-items {
display: flex;
flex-wrap: wrap;
2021-07-25 17:10:55 +02:00
align-content: center;
justify-content: center;
width: 100%;
.footer-item {
padding: 10px 10px;
border-top: solid 1px var(--footer-border-color);
2021-07-25 17:10:55 +02:00
text-align: center;
}
}
2021-08-18 17:10:16 +02:00
@media screen and (max-width: $x-small-limit) {
2021-07-25 17:10:55 +02:00
.footer-items {
border-top: solid 1px var(--footer-border-color);
2021-07-25 17:10:55 +02:00
font-size: 0.85em;
padding: 0 0 2px;
2021-07-25 17:10:55 +02:00
.footer-item {
border-top: none;
padding: 1px 5px;
2021-07-25 17:10:55 +02:00
}
.bullet {
padding: 1px 0;
2021-07-25 17:10:55 +02:00
}
}
}
}
</style>