<template>
  <section class="banners">
    <!-- 背景图片 -->
    <img src="@/public/images/banner.png" class="banners__image" />

    <!-- content -->
    <div class="banners__content">
      <div class="banners__content-title">
        <span>{{ $t('paragraph["bannerTitle"]') }}</span>
      </div>
      <div class="banners__content-desc" v-html="$t(`paragraph['bannerDesc']`)"></div>
      <div class="banners__content-btn" @click="goRegister">
        <span>{{ $t('system["立即免费注册"]') }}</span>
      </div>
    </div>
  </section>
</template>


<script lang="ts" setup>
// 注册跳转
const goRegister = function () {
  window.open('https://vavabuy.net/#/pages/login/register', '__blank')
}
</script>


<style lang="less" scoped>
.banners {
  width: 100%;
  position: relative;

  .banners__image {
    width: 100%;
    height: auto;
    min-height: 250px;
    // min-height: 15rem;
    object-fit: cover;
  }

  .banners__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 100%;
    color: #fff;
    text-align: center;
  }

  .banners__content-title {
    font-family: Source Han Sans;
    font-size: 44px;
    font-size: 2.75rem;
    font-weight: bold;
    transition: all 0.3s;
  }

  .banners__content-desc {
    margin: 40px 0 80px;
    margin: 2.5rem 0 5rem;
    font-family: Source Han Sans;
    font-size: 18px;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 2;
    transition: all 0.3s;
  }

  .banners__content-btn {
    min-width: 164px;
    min-width: 10.25rem;
    height: 50px;
    height: 3.125rem;
    padding: 15px;
    padding: 0.9375rem;
    border-radius: 10px;
    border-radius: 0.625rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    color: #000;
    font-family: Source Han Sans;
    font-size: 18px;
    font-size: 1.125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
  }
}
</style>


<style lang="less" scoped>
@import url(./css/styles@1200.less);
@import url(./css/styles@1024.less);
@import url(./css/styles@768.less);
</style>