You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.2 KiB

  1. <template lang="pug">
  2. v-footer.justify-center(:color='bgColor', inset)
  3. .caption.grey--text.text--darken-1
  4. span(v-if='company && company.length > 0') {{ $t('common:footer.copyright', { company: company, year: currentYear, interpolation: { escapeValue: false } }) }} |&nbsp;
  5. span {{ $t('common:footer.poweredBy') }} #[a(href='https://wiki.js.org', ref='nofollow') Wiki.js]
  6. </template>
  7. <script>
  8. import { get } from 'vuex-pathify'
  9. export default {
  10. props: {
  11. color: {
  12. type: String,
  13. default: 'grey lighten-3'
  14. },
  15. darkColor: {
  16. type: String,
  17. default: 'grey darken-3'
  18. }
  19. },
  20. data() {
  21. return {
  22. currentYear: (new Date()).getFullYear()
  23. }
  24. },
  25. computed: {
  26. company: get('site/company'),
  27. darkMode: get('site/dark'),
  28. bgColor() {
  29. if (!this.darkMode) {
  30. return this.color
  31. } else {
  32. return this.darkColor
  33. }
  34. }
  35. }
  36. }
  37. </script>
  38. <style lang="scss">
  39. .v-footer {
  40. a {
  41. text-decoration: none;
  42. }
  43. &.altbg {
  44. background: mc('theme', 'primary');
  45. span {
  46. color: mc('blue', '300');
  47. }
  48. a {
  49. color: mc('blue', '200');
  50. }
  51. }
  52. }
  53. </style>