<template>
  <div :class="$style.wrapper">
    <header>
      <div :class="$style.logotitle" :title="appTitle">
        <img :class="$style.title" src="../../../src_custom/images/logo-red.png" alt="" />
        <span :class="$style.title">{{ appTitle }}</span>
      </div>
    </header>
    <div :class="$style.art"></div>
    <footer>
      <span>建议使用Chrome或Firefox最新的三个版本浏览器，1920*1080分辨率访问本系统.</span>
    </footer>
    <!--
      @slot 输入框+登录页按钮区域
    -->
    <slot></slot>
  </div>
</template>

<script>
import components from './_import-components/ext-layout-import'
import storeMixin from '@/common/store-mixin'

/**
 * 登录页的整体布局内容，除了输入框和登录按钮等
 * @displayName ExtLayout 登录页布局
 */
export default {
  name: 'ExtLayout',
  components,
  mixins: [storeMixin],
}
</script>

<style module lang="scss">
@use '@/common/design' as *;
.art {
  position: absolute;
  top: 15%;
  width: 100%;
  height: 70%;
  background: no-repeat center url('../../../src_custom/images/bg-slogan.png');
  background-size: cover;
}

.wrapper {
  height: 100%;
  background: $body-background;

  footer {
    position: absolute;
    bottom: 5%;
    width: 100%;
    font-size: $font-size-sm;
    color: $text-color;
    text-align: center;
    span {
      margin: 0 5px;
    }
  }
  header {
    top: 5%;
    height: 5%;
    padding: 4%;
    h2 {
      color: $text-color;
    }
    .action {
      float: right;
    }
  }
}

.logotitle {
  display: flex;
  align-items: center;
  float: left;
  height: 100%;
  .logo {
    position: relative;
    top: -0.33em;
  }
  .title {
    margin-left: 10px;
    font-size: 1.1em;
    line-height: 1.15;
    color: $text-color;
  }
  .title::before {
    content: '|';
    position: relative;
    top: -1px;
    height: 100px;
    font-size: 20px;
    margin: 0 18px 0 10px;
  }
}
</style>

<docs>
```[import](../include.md)

```

#### 基本样例

```html static
<template>
  <div :class="$style.wrapper">
    <h1>欢迎使用</h1>
    <slot></slot>
  </div>
</template>

<script>
export default {
  name: 'ExtLayout',
}
</script>

<style module lang="scss">
@use '@/common/design' as *;
.wrapper {
  height: 100%;
  background-color: $primary-color;

  h1 {
    padding: $padding-md;
    color: $text-color-inverse;
  }
}
</style>

```
</docs>
