home.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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. }
  73. .carousel-img {
  74. width: 100%;
  75. cursor: pointer;
  76. margin: auto;
  77. }
  78. .who-is {
  79. height: 240px;
  80. margin-top: -70px;
  81. position: relative;
  82. z-index: 21;
  83. width: 64%;
  84. overflow: hidden;
  85. margin-left: 19%;
  86. }
  87. .people-list {
  88. display: block;
  89. }
  90. .who-is ul {
  91. list-style: none;
  92. }
  93. .who-is ul li span {
  94. padding-top: 20px;
  95. font-size: 24px;
  96. color: #fff;
  97. }
  98. .who-is ul li {
  99. float: left;
  100. width: 300px;
  101. height: 264px;
  102. text-align: center;
  103. position: relative;
  104. /*opacity: 0;
  105. opacity: 1\9;*/
  106. background-color: #289EFB;
  107. }
  108. .show:hover {
  109. transition: all 0.6s;
  110. margin-top: -2%;
  111. cursor:pointer;
  112. }
  113. .who-is ul li img {
  114. border: 0;
  115. vertical-align: middle;
  116. margin-top: 30%;
  117. }
  118. .center-info{
  119. width:100%;
  120. }
  121. .center-info h1{
  122. font-size:40px;
  123. text-align:center;
  124. }
  125. .center-info span {
  126. color: #289EFB;
  127. font-size:60px;
  128. }
  129. </style>