<template>
    <div class="column items-center about-box" ref="aboutinfo1">
      <div :class="{'animate__animated animate__fadeInUp':aboutinfo1 && scrollTop>=(aboutinfo1.offsetTop-clientHeight+30)}">
          <div class="full-width text-center cn">关于，成都微途科技</div>
          <div class="cd">成都微途科技有限公司成立于2013年<br/>
          多年以来专注于旅游行业，致力于旅游行业系统化、标准化进程<br/>
          协助旅游行业快速进行互联网转型<br/>
          总部位于四川成都，主要提供旅游行业ERP综合管理系统<br/>
          CRM系统、数据分析系统、同业服务系统等相关系统IT支持。</div>
      </div>
      <div class="about-btn cusor-pointer" @click="forwardLogin" :class="{'animate__animated animate__fadeInUp  animate__delay-1s':aboutinfo1 && scrollTop>=(aboutinfo1.offsetTop-clientHeight+30)}">立即使用</div>
    </div>
  </template>
  
  <script lang="ts" setup>
  import { ref } from "vue";
  
  const props = defineProps({
    scrollTop: {
      type: Number,
      required: true,
    },
  });
  const aboutinfo1=ref<HTMLElement>()
  const clientHeight = ref(document.documentElement.clientHeight)
  const forwardLogin = ()=>{
    location.href='/login'
  }
  </script>
  
  <style scoped>
  .website .about-box{
      margin: 14.583vw auto 0 auto;
  }
  .website .about-box .cn{
    font-weight: 800;
    font-size: 3.6458vw;
    color: #313131;
    line-height: 1;
    background: linear-gradient(134deg, #649DED 0%, #570AD8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .website .cd{
    font-weight: bold;
    font-size: 1.25vw;
    color: #625A7E;
    line-height: 2.5vw;
    margin-top: 3.645833vw;
    margin-bottom: 5.20833vw;
    text-align: center;
    
  }
  .website .about-btn{
      background: linear-gradient(134deg, #649DED, #570AD8);
      border-radius: 1.77vw;
      height: 3.541vw;
      line-height: 3.541vw;
      padding: 0 3.90625vw;
      font-size: 1.3541vw;
      color: #FFFFFF;
      display: inline-block;
  }
  </style>