Newer
Older
shipFront / src / layout / Layout.vue
[wangxitong] on 15 Oct 2021 1 KB first commit
<template>
  <div class="layout">
    <app-header ref="header" style="z-index: 1000"/>
    <div ref="body" class="body">
      <left ref="left" class="left"/>
      <right ref="right" class="right"/>
    </div>
  </div>
</template>

<script>
import AppHeader from './components/AppHeader'
import Left from '@/views/overview/left'
import Right from '@/views/overview/right'

  export default {
    name: 'Layout',
    components: {Right, AppHeader, Left},
    data() {
      return {
      }
    },
    mounted () {
    },
    methods: {
    }
  }
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
  .layout{
    top:0px !important;
    background-color: #0d1838;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    .body{
    position:relative;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: row;
    padding: 0px 35px;
    padding-bottom: 35px;
    background: url("../assets/images/background.png") no-repeat;
    -webkit-background-size: 100% 100%;
    background-size: 100% 100%;
    .left{
      margin-left: 20px;
      width: 300px;
      display: flex;
      flex-direction: column;
      .position{
        margin-top: 20px;
        width: 100%;
        height: 25%;
      }
      .weather{
        margin-top: 20px;
        width: 100%;
        height: 30%;
      }
      .water{
        margin-top: 20px;
        width: 100%;
        height: 45%;
      }
    }
    .right{
      flex: 1;
      padding-left: 20px;
      /*background-color: #E6A23C;*/
    }
  }
  }

</style>