<template>
  <div id="userLayout" :class="['user-layout-wrapper', isMobile && 'mobile']">
    <img class="logo" src="~@/assets/images/login/logo.png" alt="">
    <div class="container">
      <div class="main-wrap">
        <div class="top">
          <div class="title">欢迎登录 </div>
          <div class="desc">新天能源主数据管理系统<span class="line"></span>
          </div>
        </div>
        <router-view />
      </div>

      <!-- <div class="footer">
        <div class="links">
          <a href="https://github.com/fuzui/RuoYi-Antdv" target="_blank">帮助</a>
          <a href="https://github.com/fuzui/RuoYi-Antdv" target="_blank">隐私</a>
          <a href="https://github.com/fuzui/RuoYi-Antdv" target="_blank">条款</a>
        </div>
        <div class="copyright">
          Copyright &copy; 2021 <a href="https://github.com/fuzui/RuoYi-Antdv" target="_blank">RuoYi-Antdv</a>
        </div>
      </div> -->
    </div>
  </div>
</template>

<script>
import { deviceMixin } from '@/store/device-mixin'

export default {
  name: 'UserLayout',
  mixins: [deviceMixin],
  mounted() {
    document.body.classList.add('userLayout')
  },
  beforeDestroy() {
    document.body.classList.remove('userLayout')
  }
}
</script>

<style lang="less" scoped>
#userLayout.user-layout-wrapper {
  height: 100%;
  background: #fff;
  position: relative;
  .logo {
    position: absolute;
    top: 8%;
    left: 5%;
    z-index: 99;
  }

  .container {
    width: 100%;
    min-height: 100%;
    background: url(~@/assets/images/login/bg.png) no-repeat left top;
    background-size: auto 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 15%;
    .main-wrap {
      width: 37%;
      min-width: 400px;
      .top {
        .title {
          height: 44px;
          font-family: MicrosoftYaHei;
          font-size: 38px;
          color: #3b75f5;
        }
        .desc {
          font-family: MicrosoftYaHei;
          font-size: 38px;
          color: #333333;
          margin-top: 12px;
          margin-bottom: 40px;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
          .line {
            display: block;
            width: 157px;
            height: 5px;
            border-radius: 5px;
            background-color: #3b75f5;
            box-shadow: 0px 2px 4px 0 rgba(74, 78, 82, 0.25);
          }
        }
      }
    }

    // .footer {
    //   position: absolute;
    //   width: 100%;
    //   bottom: 0;
    //   padding: 0 16px;
    //   margin: 48px 0 24px;
    //   text-align: center;

    //   .links {
    //     margin-bottom: 8px;
    //     font-size: 14px;
    //     a {
    //       color: rgba(0, 0, 0, 0.45);
    //       transition: all 0.3s;
    //       &:not(:last-child) {
    //         margin-right: 40px;
    //       }
    //     }
    //   }
    //   .copyright {
    //     color: rgba(0, 0, 0, 0.45);
    //     font-size: 14px;
    //   }
    // }
  }
}

</style>
