MainFooter.vue 2.3 KB

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