MainFooter.vue 2.3 KB

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