<template>
    <div class="resource-list">
      <div class="title">
        素材库
      </div>
      <div class="content">
        <div class="img-block">
          <img :src="defaultImgUrl"/>
          添加图片
        </div>
        <div class="img-block">
          <img :src="defaultTxtUrl"/>
          添加文字
        </div>
        <div class="img-block">
          <img :src="defaultMusicUrl"/>
          添加音频
        </div>
        <div class="img-block">
          <img :src="defaultVideoUrl"/>
          添加视频
        </div>
        <div class="img-block">
          <img :src="defaultTxtUrl"/>
          添加绘本
        </div>
      </div>
    </div>
</template>

<script>
  import defaultImgUrl from '../../assets/defaultImg.png'
  import defaultTxtUrl from '../../assets/defaultTxt.png'
  import defaultMusicUrl from '../../assets/defaultMusic.png'
  import defaultVideoUrl from '../../assets/defaultVideo.png'
  import defaultBookUrl from '../../assets/defaultBook.png'
    export default {
        name: "resourcesList",
        data(){
          return{
            defaultImgUrl:defaultImgUrl,
            defaultTxtUrl:defaultTxtUrl,
            defaultMusicUrl:defaultMusicUrl,
            defaultVideoUrl:defaultVideoUrl,
            defaultBookUrl:defaultBookUrl
          }
        }
    }
</script>

<style scoped lang="less">
  @import "../../util/public";
  .resource-list{
    height: 100%;
    background: @light-line;
    position: relative;
    .title{
      text-align: center;
      background: white;
      height: 30px;
      line-height: 30px;
      border-bottom: 1px solid @secondary-font-color;
    }
    .content{
      position: absolute;
      top: 31px;
      bottom: 0;
      left: 0;
      right: 0;
      overflow: auto;
      .img-block{
        margin: 10px;
        background: white;
        text-align: center;
        padding: 10px;
        img{
          width: 60%;
          margin: auto;
          display: block;
        }
      }
    }
  }
</style>
