<template>
  <div class="app-container home">

    <el-row :gutter="20">
      <el-col :xs="12" :sm="12" :md="12" :lg="12">
        <el-carousel height="350px" style="margin-bottom: 20px;">
          <el-carousel-item v-for="item in urls" :key="item">
            <el-image :src="item"></el-image>
          </el-carousel-item>
        </el-carousel>
      </el-col>
      <el-col :xs="12" :sm="12" :md="12" :lg="12">
        <el-carousel height="350px" style="margin-bottom: 20px;">
          <el-carousel-item v-for="item in urls" :key="item">
            <el-image :src="item"></el-image>
          </el-carousel-item>
        </el-carousel>
      </el-col>
    </el-row>

    <el-row :gutter="20">
      <el-col :xs="24" :sm="24" :md="12" :lg="8">
        <el-card class="update-log">
          <div slot="header" class="clearfix">
        <span class="title">
          通知公告
        </span>
          </div>
          <div class="body">
            <p>
              <a class="link">让党旗在疫情防控一线高高飘扬...</a>
              <span class="date">2022-05-10</span>
            </p>
            <p>
              <a class="link">我校王昕、李新宁作为“四进”攻坚工作组...</a>
              <span class="date">2022-04-04</span>
            </p>
            <p>
              <a class="link">“第一书记”帮包村客人来我校赠送锦旗</a>
              <span class="date">2021-05-31</span>
            </p>
            <p>
              <a class="link">我校第三轮“第一书记”载誉归来</a>
              <span class="date">2019-04-25</span>
            </p>
          </div>
        </el-card>
      </el-col>
      <el-col :xs="24" :sm="24" :md="12" :lg="8">
        <el-card class="update-log">
          <div slot="header" class="clearfix">
        <span class="title">
          政治生日
        </span>
          </div>
          <div class="body">
            <p>
              <a class="link">让党旗在疫情防控一线高高飘扬...</a>
              <span class="date">2022-05-10</span>
            </p>
            <p>
              <a class="link">我校王昕、李新宁作为“四进”攻坚工作组...</a>
              <span class="date">2022-04-04</span>
            </p>
            <p>
              <a class="link">“第一书记”帮包村客人来我校赠送锦旗</a>
              <span class="date">2021-05-31</span>
            </p>
            <p>
              <a class="link">我校第三轮“第一书记”载誉归来</a>
              <span class="date">2019-04-25</span>
            </p>
          </div>
        </el-card>
      </el-col>
      <el-col :xs="24" :sm="24" :md="12" :lg="8">
        <el-card class="update-log">
          <div slot="header" class="clearfix">
        <span class="title">
          先进风采
        </span>
          </div>
          <div class="body">
            <p>
              <a class="link">让党旗在疫情防控一线高高飘扬...</a>
              <span class="date">2022-05-10</span>
            </p>
            <p>
              <a class="link">我校王昕、李新宁作为“四进”攻坚工作组...</a>
              <span class="date">2022-04-04</span>
            </p>
            <p>
              <a class="link">“第一书记”帮包村客人来我校赠送锦旗</a>
              <span class="date">2021-05-31</span>
            </p>
            <p>
              <a class="link">我校第三轮“第一书记”载誉归来</a>
              <span class="date">2019-04-25</span>
            </p>
          </div>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: "Index",
  data() {
    return {
      urls: [
        'https://p5.img.cctvpic.com/photoworkspace/contentimg/2023/06/08/2023060807144929248.jpg',
        'https://p1.img.cctvpic.com/photoworkspace/contentimg/2023/06/08/2023060821005989847.jpg',
        'https://p4.img.cctvpic.com/photoAlbum/page/performance/img/2022/6/23/1655955351125_157.jpg'
      ],
      // 版本号
      version: "3.8.5"
    };
  },
  methods: {
    goTarget(href) {
      window.open(href, "_blank");
    }
  }
};
</script>

<style scoped lang="scss">
.home {
  blockquote {
    padding: 10px 20px;
    margin: 0 0 20px;
    font-size: 17.5px;
    border-left: 5px solid #eee;
  }
  hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eee;
  }
  .col-item {
    margin-bottom: 20px;
  }

  ul {
    padding: 0;
    margin: 0;
  }

  font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: #676a6c;
  overflow-x: hidden;

  ul {
    list-style-type: none;
  }

  h4 {
    margin-top: 0px;
  }

  h2 {
    margin-top: 10px;
    font-size: 26px;
    font-weight: 100;
  }

  p {
    margin-top: 10px;

    b {
      font-weight: 700;
    }
  }

  .update-log {
    ol {
      display: block;
      list-style-type: decimal;
      margin-block-start: 1em;
      margin-block-end: 1em;
      margin-inline-start: 0;
      margin-inline-end: 0;
      padding-inline-start: 40px;
    }
  }
}

.link:hover{
  color: red;
}

.date{
  float: right;
}

.title{
  font-size: 18px;
}

.el-carousel__item h3 {
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  line-height: 150px;
  margin: 0;
  text-align: center;
}

/*.el-carousel__item:nth-child(2n) {*/
  /*background-color: #99a9bf;*/
/*}*/

/*.el-carousel__item:nth-child(2n+1) {*/
  /*background-color: #d3dce6;*/
/*}*/

img{
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}
</style>

