MainFooter.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <template>
  2. <footer class="footer">
  3. <div class="container">
  4. <div class="content has-text-centered">
  5. <div id="footer-social-icons">
  6. <a
  7. class="icon"
  8. :href="`${this.socialLinks.github}`"
  9. target="_blank"
  10. title="GitHub Repository"
  11. >
  12. <img src="/assets/social/github.svg" />
  13. </a>
  14. <a
  15. class="icon"
  16. :href="`${this.socialLinks.twitter}`"
  17. target="_blank"
  18. title="Twitter Account"
  19. >
  20. <img src="/assets/social/twitter.svg" />
  21. </a>
  22. <a
  23. class="icon"
  24. :href="`${this.socialLinks.facebook}`"
  25. target="_blank"
  26. title="Facebook Page"
  27. >
  28. <img src="/assets/social/facebook.svg" />
  29. </a>
  30. <a
  31. class="icon"
  32. :href="`${this.socialLinks.discord}`"
  33. target="_blank"
  34. title="Discord Server"
  35. >
  36. <img src="/assets/social/discord.svg" />
  37. </a>
  38. </div>
  39. <a href="/"
  40. ><img
  41. id="footer-logo"
  42. src="/assets/blue_wordmark.png"
  43. alt="Musare"
  44. /></a>
  45. <div id="footer-links">
  46. <router-link title="About Musare" to="/about"
  47. >About</router-link
  48. >
  49. <router-link title="Musare Team" to="/team"
  50. >Team</router-link
  51. >
  52. <router-link title="News" to="/news">News</router-link>
  53. </div>
  54. <p>© Copyright Musare 2015 - 2020</p>
  55. </div>
  56. </div>
  57. </footer>
  58. </template>
  59. <script>
  60. export default {
  61. data() {
  62. return {
  63. socialLinks: {
  64. github: "",
  65. twitter: "",
  66. facebook: "",
  67. discord: ""
  68. }
  69. };
  70. },
  71. mounted() {
  72. lofig.get("siteSettings.socialLinks").then(socialLinks => {
  73. this.socialLinks = socialLinks;
  74. });
  75. }
  76. };
  77. </script>
  78. <style lang="scss" scoped>
  79. @import "./../../styles/global.scss";
  80. .night-mode {
  81. footer.footer,
  82. footer.footer .container,
  83. footer.footer .container .content {
  84. background-color: #222;
  85. }
  86. footer.footer #footer-social-icons img {
  87. filter: invert(1);
  88. }
  89. }
  90. .content a:not(.button) {
  91. border: 0;
  92. }
  93. .content {
  94. display: flex;
  95. align-items: center;
  96. flex-direction: column;
  97. }
  98. .footer {
  99. flex-shrink: 0;
  100. height: 240px;
  101. padding: 40px 20px 40px;
  102. border-radius: 33% 33% 0% 0% / 7% 7% 0% 0%;
  103. box-shadow: 0 4px 8px 0 rgba(3, 169, 244, 0.65),
  104. 0 6px 20px 0 rgba(3, 169, 244, 0.4);
  105. background-color: $white;
  106. width: 100%;
  107. #footer-logo {
  108. display: block;
  109. margin-left: auto;
  110. margin-right: auto;
  111. margin-bottom: 15px;
  112. width: 200px;
  113. }
  114. #footer-social-icons {
  115. user-select: none;
  116. -webkit-user-select: none;
  117. .icon {
  118. height: 28px;
  119. line-height: 28px;
  120. width: 28px;
  121. }
  122. }
  123. #footer-links {
  124. :not(:last-child) {
  125. border-right: solid 1px $primary-color;
  126. }
  127. a {
  128. padding: 0 7px;
  129. font-size: 18px;
  130. color: $primary-color;
  131. &:first-of-type {
  132. padding: 0 7px 0 0;
  133. }
  134. &:last-of-type {
  135. padding: 0 0 0 7px;
  136. }
  137. &:hover {
  138. color: $primary-color;
  139. text-decoration: underline;
  140. }
  141. }
  142. }
  143. }
  144. @media only screen and (min-width: 992px) {
  145. .footer {
  146. height: 180px;
  147. #footer-social-icons {
  148. left: 0;
  149. top: 35px;
  150. position: absolute;
  151. }
  152. #footer-links {
  153. right: 0;
  154. top: 35px;
  155. position: absolute;
  156. }
  157. }
  158. }
  159. </style>