footer.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <template>
  2. <div class="footer">
  3. <div class="content">
  4. <img class="logo" src="../static/img/footer_logo.svg" />
  5. <div class="link">
  6. <div class="item" @click="twitter">
  7. <img src="../static/img/footer_twitter.svg" />
  8. <div class="font">Twitter</div>
  9. </div>
  10. <div class="item" @click="telegram">
  11. <img src="../static/img/footer_telegram.svg" />
  12. <div class="font">Telegram</div>
  13. </div>
  14. <div class="item" @click="discord">
  15. <img src="../static/img/footer_discord.svg" />
  16. <div class="font">Discord</div>
  17. </div>
  18. <div class="item">
  19. <a href="mailto:denet.web3@gmail.com">
  20. <img src="../static/img/footer_email.svg" />
  21. <div class="font">Email</div>
  22. </a>
  23. </div>
  24. </div>
  25. </div>
  26. </div>
  27. </template>
  28. <script lang="ts" setup>
  29. import { postRequest } from '../static/http'
  30. const twitter = () => {
  31. window.open(`https://twitter.com/denet2022`);
  32. }
  33. const telegram = () => {
  34. window.open(`https://t.me/denetpro`);
  35. }
  36. const discord = () => {
  37. window.open(`https://discord.gg/wZSz9p8ddG`);
  38. }
  39. </script>
  40. <style lang="less" scoped>
  41. .footer {
  42. display: flex;
  43. justify-content: space-between;
  44. height: 1.56rem;
  45. background-color: #1D2431;
  46. .content {
  47. display: flex;
  48. align-items: center;
  49. justify-content: space-between;
  50. margin: auto;
  51. width: 8.343rem;
  52. }
  53. .logo {
  54. width: 1.703rem;
  55. }
  56. .link {
  57. display: flex;
  58. .item {
  59. margin: 0 0.093rem;
  60. width: 0.468rem;
  61. cursor: pointer;
  62. text-align: center;
  63. img {
  64. width: 0.468rem;
  65. margin: auto;
  66. text-align: center;
  67. }
  68. .font {
  69. overflow: hidden;
  70. font-size: 0.101rem;
  71. margin-top: 0.078rem;
  72. color: rgba(255, 255, 255, .4);
  73. }
  74. a {
  75. text-decoration: none;
  76. }
  77. }
  78. }
  79. }
  80. @media screen and (max-width:600px) {
  81. .footer {
  82. height: 1.8rem;
  83. .content {
  84. width: 9.5rem;
  85. .logo {
  86. width: 3rem;
  87. }
  88. .link {
  89. .item {
  90. width: 1.1rem;
  91. img {
  92. width: .8rem;
  93. }
  94. .font {
  95. font-size: 0.301rem;
  96. margin-top: -0.1rem;
  97. }
  98. }
  99. }
  100. }
  101. }
  102. }
  103. </style>