MainFooter.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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. @import "./../../styles/global.scss";
  45. .night-mode {
  46. footer.footer,
  47. footer.footer .container,
  48. footer.footer .container .footer-content {
  49. background-color: $night-mode-bg-secondary;
  50. }
  51. }
  52. .footer {
  53. position: relative;
  54. bottom: 0;
  55. flex-shrink: 0;
  56. height: auto;
  57. padding: 20px;
  58. border-radius: 33% 33% 0% 0% / 7% 7% 0% 0%;
  59. box-shadow: 0 4px 8px 0 rgba(3, 169, 244, 0.4),
  60. 0 6px 20px 0 rgba(3, 169, 244, 0.2);
  61. background-color: $white;
  62. width: 100%;
  63. height: 160px;
  64. font-size: 16px;
  65. .footer-content {
  66. display: flex;
  67. align-items: center;
  68. flex-direction: column;
  69. & > * {
  70. margin: 5px 0;
  71. }
  72. a:not(.button) {
  73. border: 0;
  74. }
  75. }
  76. @media (max-width: 650px) {
  77. border-radius: 0;
  78. }
  79. #footer-logo {
  80. display: block;
  81. margin-left: auto;
  82. margin-right: auto;
  83. width: 160px;
  84. order: 1;
  85. }
  86. #footer-links {
  87. order: 2;
  88. :not(:last-child) {
  89. border-right: solid 1px $primary-color;
  90. }
  91. a {
  92. padding: 0 7px;
  93. color: $primary-color;
  94. &:first-of-type {
  95. padding: 0 7px 0 0;
  96. }
  97. &:last-of-type {
  98. padding: 0 0 0 7px;
  99. }
  100. &:hover {
  101. color: $primary-color;
  102. text-decoration: underline;
  103. }
  104. }
  105. }
  106. #footer-copyright {
  107. order: 3;
  108. }
  109. }
  110. @media only screen and (min-width: 990px) {
  111. .footer {
  112. height: 100px;
  113. #footer-copyright {
  114. left: 0;
  115. top: 0;
  116. position: absolute;
  117. line-height: 50px;
  118. }
  119. #footer-links {
  120. right: 0;
  121. top: 0;
  122. position: absolute;
  123. line-height: 50px;
  124. }
  125. }
  126. }
  127. </style>