MainFooter.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <template>
  2. <footer class="footer">
  3. <div class="container">
  4. <div class="footer-content has-text-centered">
  5. <div id="footer-copyright">
  6. <p>© Copyright Musare 2015 - 2021</p>
  7. </div>
  8. <a id="footer-logo" href="/"
  9. ><img src="/assets/blue_wordmark.png" alt="Musare"
  10. /></a>
  11. <div id="footer-links">
  12. <a
  13. :href="`${this.github}`"
  14. target="_blank"
  15. title="GitHub Repository"
  16. >
  17. GitHub
  18. </a>
  19. <router-link title="About Musare" to="/about"
  20. >About</router-link
  21. >
  22. <router-link title="Musare Team" to="/team"
  23. >Team</router-link
  24. >
  25. <router-link title="News" to="/news">News</router-link>
  26. </div>
  27. </div>
  28. </div>
  29. </footer>
  30. </template>
  31. <script>
  32. export default {
  33. data() {
  34. return {
  35. github: "#"
  36. };
  37. },
  38. async mounted() {
  39. this.github = await lofig.get("siteSettings.github");
  40. }
  41. };
  42. </script>
  43. <style lang="scss" scoped>
  44. .night-mode {
  45. footer.footer,
  46. footer.footer .container,
  47. footer.footer .container .footer-content {
  48. background-color: var(--dark-grey-3);
  49. }
  50. }
  51. .footer {
  52. position: relative;
  53. bottom: 0;
  54. flex-shrink: 0;
  55. height: auto;
  56. padding: 20px;
  57. border-radius: 33% 33% 0% 0% / 7% 7% 0% 0%;
  58. box-shadow: 0 4px 8px 0 rgba(3, 169, 244, 0.4),
  59. 0 6px 20px 0 rgba(3, 169, 244, 0.2);
  60. background-color: var(--white);
  61. width: 100%;
  62. height: 160px;
  63. font-size: 16px;
  64. .footer-content {
  65. display: flex;
  66. align-items: center;
  67. flex-direction: column;
  68. & > * {
  69. margin: 5px 0;
  70. }
  71. a:not(.button) {
  72. border: 0;
  73. }
  74. }
  75. @media (max-width: 650px) {
  76. border-radius: 0;
  77. }
  78. #footer-logo {
  79. display: block;
  80. margin-left: auto;
  81. margin-right: auto;
  82. width: 160px;
  83. order: 1;
  84. }
  85. #footer-links {
  86. order: 2;
  87. :not(:last-child) {
  88. border-right: solid 1px var(--primary-color);
  89. }
  90. a {
  91. padding: 0 7px;
  92. color: var(--primary-color);
  93. &:first-of-type {
  94. padding: 0 7px 0 0;
  95. }
  96. &:last-of-type {
  97. padding: 0 0 0 7px;
  98. }
  99. &:hover {
  100. color: var(--primary-color);
  101. text-decoration: underline;
  102. }
  103. }
  104. }
  105. #footer-copyright {
  106. order: 3;
  107. }
  108. }
  109. @media only screen and (min-width: 990px) {
  110. .footer {
  111. height: 100px;
  112. #footer-copyright {
  113. left: 0;
  114. top: 0;
  115. position: absolute;
  116. line-height: 50px;
  117. }
  118. #footer-links {
  119. right: 0;
  120. top: 0;
  121. position: absolute;
  122. line-height: 50px;
  123. }
  124. }
  125. }
  126. </style>