home.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <template>
  2. <div class="home">
  3. <div class="title">
  4. <!--顶部轮播图-->
  5. <div >
  6. <Carousel >
  7. <CarouselItem v-for="(homeImagesList,index) in homeCarouselImg" :key="index">
  8. <div class="demo-carousel">
  9. <img class="carousel-img" :src="homeImagesList.images" >
  10. </div>
  11. </CarouselItem>
  12. </Carousel>
  13. </div>
  14. </div>
  15. <div class="who-is">
  16. <ul class="people-list">
  17. <li class=" show animated slideInLeft delay-1s">
  18. <img src="../../assets/image/resource/who01.png">
  19. <span>我是管理者</span>
  20. </li>
  21. <li class=" show animated slideInLeft ">
  22. <img src="../../assets/image/resource/who02.png">
  23. <span>我是教师</span>
  24. </li>
  25. <li class="show animated slideInRight">
  26. <img src="../../assets/image/resource/who03.png">
  27. <span>我是学生</span>
  28. </li>
  29. <li class="show animated slideInRight delay-1s">
  30. <img src="../../assets/image/resource/who04.png">
  31. <span>我是家长</span>
  32. </li>
  33. </ul>
  34. </div>
  35. <div class="center-info">
  36. <h1>已超过<span>1000</span>所学校开通了我们的服务</h1>
  37. <img src="../../assets/image/resource/center01.png" >
  38. <img src="../../assets/image/resource/bottom.png" >
  39. </div>
  40. </div>
  41. </template>
  42. <script>
  43. export default {
  44. data() {
  45. return {
  46. homeCarouselImg: [
  47. {
  48. images: require('../../assets/image/resource/banner02.png')
  49. },
  50. {
  51. images: require('../../assets/image/resource/banner01.png')
  52. },
  53. ]
  54. };
  55. },
  56. }
  57. </script>
  58. <style scoped>
  59. .home {
  60. width: 100%;
  61. margin: auto;
  62. }
  63. .title {
  64. width: 100%;
  65. }
  66. .header {
  67. height: 80px;
  68. background-color: rgb(29, 34, 34);
  69. }
  70. .demo-carousel {
  71. /*width: 100%;*/
  72. background-size:cover;
  73. height:500px;
  74. }
  75. .carousel-img {
  76. width: 100%;
  77. cursor: pointer;
  78. margin: auto;
  79. }
  80. .who-is {
  81. height: 240px;
  82. margin-top: -70px;
  83. position: relative;
  84. z-index: 21;
  85. width: 64%;
  86. overflow: hidden;
  87. margin-left: 19%;
  88. }
  89. .people-list {
  90. display: block;
  91. }
  92. .who-is ul {
  93. list-style: none;
  94. }
  95. .who-is ul li span {
  96. padding-top: 20px;
  97. font-size: 24px;
  98. color: #fff;
  99. }
  100. .who-is ul li {
  101. float: left;
  102. width: 300px;
  103. height: 264px;
  104. text-align: center;
  105. position: relative;
  106. /*opacity: 0;
  107. opacity: 1\9;*/
  108. background-color: #289EFB;
  109. }
  110. .show:hover {
  111. transition: all 0.6s;
  112. margin-top: -2%;
  113. cursor:pointer;
  114. }
  115. .who-is ul li img {
  116. border: 0;
  117. vertical-align: middle;
  118. margin-top: 30%;
  119. }
  120. .center-info{
  121. width:100%;
  122. }
  123. .center-info h1{
  124. font-size:40px;
  125. text-align:center;
  126. }
  127. .center-info span {
  128. color: #289EFB;
  129. font-size:60px;
  130. }
  131. </style>