<template>
  <div class="s-footer">
    <div class="left-box">
      <div class="des-content">
        <logoSvg></logoSvg>
        <span>{{ $t('footer.Introduce') }} </span>
      </div>
    </div>
    <div class="center-box">
      <span>{{ $t('footer.JoinUs') }}</span>
      <div class="icons-box">
        <a
          v-for="item in FooterImg"
          :key="item.url"
          class="icons"
          :href="item.url"
          target="_blank"
        >
          <img :src="item.img" alt="" />
        </a>
      </div>
    </div>
    <div class="right-box">
      <div class="right-box-child">
        <span class="right-title">{{ $t('footer.ContactUs') }}</span>
        <div class="right-email-tg">
          <emailSvg></emailSvg>
          <span>dexfilter@gmail.com</span>
        </div>
        <a class="right-email-tg" :href="tgUrl" target="_blank">
          <tgSvg></tgSvg>
          <span class="website-title">@DexFilter3</span>
        </a>
      </div>
    </div>
  </div>
</template>
<script lang="ts" setup>
import { tgUrl, FooterImg } from '@/utils/open';
import logoSvg from '/public/images/svg/footer/footerLogo.svg';
import emailSvg from '/public/images/svg/footer/email.svg';
import tgSvg from '/public/images/svg/footer/tg.svg';
</script>

<style lang="less" scoped>
@import '@/style/variables.less';
@import '@/style/flex.less';
.s-footer {
  width: 100%;
  height: 250px;
  box-sizing: border-box;
  width: 100vw;
  margin: 0 auto;
  padding: 12px 50px;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  .left-box {
    width: 30%;
    .da();
    .des-content {
      img {
        margin-top: 30px;
      }
      span {
        display: inline-block;
      }
    }
  }
  .center-box {
    width: 34%;
    text-align: center;
    span {
      line-height: 100px;
      font-weight: bold;
      color: black;
      font-size: @font-size-xl;
    }
    .icons-box {
      height: calc(100% - 100px);
      display: flex;
      justify-content: space-around;
      .icons {
        cursor: pointer;
        width: 40px;
        height: 40px;
      }
    }
  }
  .right-box {
    width: 26%;
    .right-box-child {
      width: 80%;
      height: 100%;
      float: right;
      > div:nth-child(3) {
        margin-top: 20px;
      }
      .right-title {
        line-height: 100px;
        font-weight: bold;
        color: black;
        font-size: @font-size-xl;
      }
      .right-email-tg {
        display: flex;
        align-items: center;
        cursor: pointer;
        margin: 6px 0;
        text-decoration: none;
        color: var(--td-text-color-placeholder);
        span {
          margin-left: 12px;
          font-size: @font-size-base;
        }
        &:hover {
          color: rgb(100, 100, 100);
          transition: all 0.3s;
        }
      }
    }
  }
}
</style>
