HeaderPage.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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/who01.png">
  19. <span>我是管理者</span>
  20. </li>
  21. <li class=" show animated slideInLeft ">
  22. <img src="../assets/image/who02.png">
  23. <span>我是教师</span>
  24. </li>
  25. <li class="show animated slideInRight">
  26. <img src="../assets/image/who03.png">
  27. <span>我是学生</span>
  28. </li>
  29. <li class="show animated slideInRight delay-1s">
  30. <img src="../assets/image/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/center01.png" >
  38. <img src="../assets/image/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/banner02.png')
  49. },
  50. {
  51. images: require('../assets/image/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. margin-top: 5%;
  66. }
  67. .header {
  68. height: 80px;
  69. background-color: rgb(29, 34, 34);
  70. }
  71. .demo-carousel {
  72. width: 100%;
  73. }
  74. .carousel-img {
  75. width: 100%;
  76. cursor: pointer;
  77. margin: auto;
  78. }
  79. .who-is {
  80. height: 240px;
  81. margin-top: -70px;
  82. position: relative;
  83. z-index: 21;
  84. width: 64%;
  85. overflow: hidden;
  86. margin-left: 19%;
  87. }
  88. .people-list {
  89. display: block;
  90. }
  91. .who-is ul {
  92. list-style: none;
  93. }
  94. .who-is ul li span {
  95. padding-top: 20px;
  96. font-size: 24px;
  97. color: #fff;
  98. }
  99. .who-is ul li {
  100. float: left;
  101. width: 300px;
  102. height: 264px;
  103. text-align: center;
  104. position: relative;
  105. /*opacity: 0;
  106. opacity: 1\9;*/
  107. background-color: #289EFB;
  108. }
  109. .show:hover {
  110. transition: all 0.6s;
  111. margin-top: -2%;
  112. cursor:pointer;
  113. }
  114. .who-is ul li img {
  115. border: 0;
  116. vertical-align: middle;
  117. margin-top: 30%;
  118. }
  119. .center-info{
  120. width:100%;
  121. }
  122. .center-info h1{
  123. font-size:40px;
  124. text-align:center;
  125. }
  126. .center-info span {
  127. color: #289EFB;
  128. font-size:60px;
  129. }
  130. </style>