MainFooter.vue 2.3 KB

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