footer.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <template>
  2. <footer class="footer">
  3. <div class="container">
  4. <div class="footer-main">
  5. <p class="footer-main-title">Element 1.0 Hydrogen</p>
  6. <span class="footer-main-link">反馈建议</span>
  7. <span class="footer-main-link"><router-link to="/changelog">更新日志</router-link></span>
  8. </div>
  9. <div class="footer-social">
  10. <el-popover
  11. ref="weixin"
  12. placement="top"
  13. width="120"
  14. class="footer-popover"
  15. trigger="hover">
  16. <div class="footer-popover-title">饿了么 UED</div>
  17. <img src="../assets/images/qrcode.png" alt="">
  18. </el-popover>
  19. <i class="doc-icon-weixin elementdoc" v-popover:weixin></i>
  20. <a href="//github.com/elemefe" target="_blank">
  21. <i class="doc-icon-github elementdoc"></i>
  22. </a>
  23. </div>
  24. </div>
  25. </footer>
  26. </template>
  27. <style>
  28. .footer {
  29. height: 120px;
  30. background-color: #324057;
  31. color: #fff;
  32. width: 100%;
  33. z-index: 1000;
  34. * {
  35. word-spacing: 0;
  36. }
  37. .container {
  38. height: 100%;
  39. }
  40. .footer-main {
  41. font-size: 0;
  42. padding-top: 40px;
  43. display: inline-block;
  44. .footer-main-title {
  45. line-height: 1;
  46. font-size: 22px;
  47. margin: 0;
  48. }
  49. .footer-main-link {
  50. display: inline-block;
  51. margin: 12px 18px 0 0;
  52. line-height: 1;
  53. font-size: 12px;
  54. color: #8492a6;
  55. a {
  56. color: #8492a6;
  57. text-decoration: none;
  58. }
  59. }
  60. }
  61. .footer-social {
  62. float: right;
  63. line-height: 120px;
  64. .footer-popover {
  65. padding: 0;
  66. min-width: 120px;
  67. line-height: normal;
  68. box-shadow: 0 0 11px 0 rgba(174, 187, 211, 0.24);
  69. .footer-popover-title {
  70. border-bottom: solid 1px #eaeefb;
  71. height: 30px;
  72. line-height: 30px;
  73. text-align: center;
  74. color: #99a9bf;
  75. background-color: #f8f9fe;
  76. }
  77. img {
  78. size: 100px;
  79. margin: 10px;
  80. }
  81. }
  82. .elementdoc {
  83. transition: .3s;
  84. display: inline-block;
  85. line-height: 32px;
  86. text-align: center;
  87. color: #324057;
  88. background-color: #fff;
  89. size: 32px;
  90. border-radius: 50%;
  91. font-size: 22px;
  92. &:hover {
  93. color: #fff;
  94. transform: scale(1.2);
  95. }
  96. }
  97. .doc-icon-weixin {
  98. margin-right: 36px;
  99. &:hover {
  100. background-color: #26CB72;
  101. }
  102. }
  103. .doc-icon-github {
  104. margin-right: 0;
  105. transform: translateY(8px);
  106. position: relative;
  107. &::before {
  108. position: absolute;
  109. left: 4px;
  110. bottom: -6px;
  111. }
  112. &:hover {
  113. transform: translateY(8px) scale(1.2);
  114. background-color: #437AC0;
  115. }
  116. }
  117. }
  118. }
  119. </style>