cus-website-page.scss 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  1. @import "../base/utils";
  2. @import "cus-website-common";
  3. @mixin setWebsitePage() {
  4. /******** describe: 网站首页 author: TX date:2020-07-30 ********/
  5. .website-index-page{
  6. width: 100%;
  7. min-width: 1240px;
  8. /* 网站banner */
  9. .website-banner{
  10. width: 100%;
  11. height: 480px;
  12. background-image: url("~@/assets/images/website/index/" + "index-banner-background.png");
  13. background-position-x: center;
  14. .banner-left{
  15. width:500px;
  16. display: inline-block;
  17. h1{@include setFontStyle(40);color: #FFF;letter-spacing: 0;padding-top: 150px;}
  18. p{@include setFontStyle(4);display: inline-block;background: #6D4FFF;border-radius: 24px;color: #FFF;margin: 24px 5px;padding: 6px 40px;}
  19. }
  20. .banner-right{
  21. width: 611px;
  22. height: 432px;
  23. float: right;
  24. margin-top: 48px;
  25. background-image: url("~@/assets/images/website/index/" + "index-banner-img.png");
  26. position: relative;
  27. .banner-tel-box{
  28. width: 284px;
  29. height: 328px;
  30. background-image: url("~@/assets/images/website/index/" + "index-banner-tel.png");
  31. position: absolute;
  32. top: -10px;
  33. left: 140px;
  34. //电视屏幕
  35. img{position: absolute;top: 25px;left: 98px;animation: 5s bannerTel ease infinite;-webkit-animation: 5s bannerTel ease infinite;-moz-animation: 5s bannerTel ease infinite;-o-animation: 5s bannerTel ease infinite;}
  36. //电视屏幕动画效果
  37. @keyframes bannerTel{
  38. from {top: 25px;left: 98px;opacity: 1;}
  39. to {top: 35px;left: 65px;opacity: 0.1;}
  40. }
  41. }
  42. //饼图
  43. .banner-pie{
  44. width: 35px;
  45. height: 31px;
  46. display: block;
  47. position: absolute;
  48. top: 86px;
  49. right: 62px;
  50. background-image: url("~@/assets/images/website/index/" + "index-banner-pie.png");
  51. animation: 5s webPie ease infinite;-webkit-animation: 5s webPie ease infinite;-moz-animation: 5s webPie ease infinite;-o-animation: 5s webPie ease infinite;
  52. }
  53. //饼图动画效果
  54. @keyframes webPie {
  55. from {top: 86px;opacity: 1;}
  56. to {top: 50px;opacity: 0;transform: scale(1.3);}
  57. }
  58. //漂浮小圆点
  59. .banner-i-run i{
  60. width: 16px;
  61. height: 16px;
  62. display: block;
  63. position: absolute;
  64. background:#51E2F4;
  65. border-radius: 50%;
  66. bottom: 150px;
  67. left: 80px;
  68. opacity: 0;
  69. }
  70. .banner-i-run i:nth-child(1){animation: 5s bannerRunI1 ease infinite;-webkit-animation: 5s bannerRunI1 ease infinite;-moz-animation: 10s bannerRunI1 ease infinite;-o-animation: 5s bannerRunI1 ease infinite;}
  71. .banner-i-run i:nth-child(2){width:8px;height:8px;bottom: 240px;left: 50px;opacity: 0;animation: 5s bannerRunI2 ease 2s infinite;-webkit-animation: 5s bannerRunI2 ease 2s infinite;-moz-animation: 5s bannerRunI2 ease infinite;-o-animation: 5s bannerRunI2 ease infinite;}
  72. .banner-i-run i:nth-child(3){width:7px;height:7px;bottom: 220px;left: 110px;opacity: 0;animation: 5s bannerRunI3 ease 3s infinite;-webkit-animation: 5s bannerRunI3 ease 3s infinite;-moz-animation: 5s bannerRunI3 ease infinite;-o-animation: 5s bannerRunI3 ease infinite;}
  73. .banner-i-run i:nth-child(4){width:9px;height:9px;bottom: 300px;left: 130px;opacity: 0;animation: 5s bannerRunI4 ease 4s infinite;-webkit-animation: 5s bannerRunI4 ease 4s infinite;-moz-animation: 5s bannerRunI4 ease infinite;-o-animation: 5s bannerRunI4 ease infinite;}
  74. .banner-i-run i:nth-child(5){width:6px;height:6px;bottom: 310px;left: 70px;opacity: 0;animation: 5s bannerRunI5 ease 5s infinite;-webkit-animation: 5s bannerRunI5 ease 5s infinite;-moz-animation: 5s bannerRunI5 ease infinite;-o-animation: 5s bannerRunI5 ease infinite;}
  75. @keyframes bannerRunI1 {
  76. 0%{bottom: 150px;opacity: 1;}
  77. 100%{bottom: 240px;opacity: 0;left: 70px;}
  78. }
  79. @keyframes bannerRunI2 {
  80. //0%{opacity: 0.5;}
  81. 0%{opacity: 0;}
  82. 5%{bottom: 240px;opacity: 0.7;}
  83. 100%{bottom: 410px;opacity: 0;left: 40px;}
  84. }
  85. @keyframes bannerRunI3 {
  86. 0%{opacity: 0;}
  87. 5%{bottom: 220px;opacity: 0.8;}
  88. 100%{bottom: 380px;opacity: 0;left: 130px}
  89. }
  90. @keyframes bannerRunI4 {
  91. 0%{opacity: 0;}
  92. 5%{bottom: 300px;opacity: 0.8;}
  93. 70%{bottom: 400px;opacity: 0;left: 160px}
  94. }
  95. @keyframes bannerRunI5 {
  96. 0%{opacity: 0;}
  97. 5%{bottom: 310px;opacity: 0.6;}
  98. 100%{bottom: 420px;opacity: 0;left: 110px}
  99. }
  100. }
  101. }
  102. /* 网站标题 */
  103. .website-index-title{ @include setFontStyle(14);color: rgba(0,0,0,0.85);letter-spacing: 0;padding-top: 80px;text-align: center;}
  104. /* 产品和服务 */
  105. .products-services-box{
  106. padding: 116px 0 30px;
  107. li{
  108. width: 33.33%;
  109. display: inline-block;
  110. vertical-align: top;
  111. position: relative;
  112. //头部图片
  113. .products-services-img{
  114. height: 173px;
  115. position: absolute;
  116. top: -80px;
  117. left: 50%;
  118. transition: .3s all linear;
  119. i{
  120. display: block;
  121. position: absolute;
  122. }
  123. }
  124. //内容区域
  125. .products-services-content{
  126. padding: 110px 32px 48px 32px;
  127. transition: .3s all linear;
  128. @include setFontStyle(-6);
  129. h2{@include setFontStyle(2);color: rgba(0,0,0,0.85);text-align: center;margin-bottom: 16px;}
  130. p{line-height: 22px;color: rgba(0,0,0,0.65);margin-bottom: 32px;text-align: justify;min-height: 136px;@include multi-line-ellipsis(6);}
  131. a{background: #2B5CFD;border-radius: 4px;color: rgba(255, 255, 255, 0.85);cursor: pointer;width: 120px;height: 32px;line-height: 32px;display: block;text-align: center;margin: 0 auto;}
  132. }
  133. }
  134. li:nth-child(1){
  135. .products-services-img{
  136. width: 148px;
  137. margin-left: -74px;
  138. background-image: url("~@/assets/images/website/index/" + "index-products-kaoshi.png");
  139. i{width:57px;height:41px;top: 28px;left: 50px;background-image: url("~@/assets/images/website/index/" + "index-products-kaoshi-icon.png");animation: 3s servicesImgUpDown linear infinite;}
  140. }
  141. }
  142. li:nth-child(2){
  143. .products-services-img{
  144. width: 138px;
  145. margin-left: -69px;
  146. background-image: url("~@/assets/images/website/index/" + "index-products-peixun.png");
  147. i{width:31px;height:45px;top: 28px;left: 60px;background-image: url("~@/assets/images/website/index/" + "index-products-peixun-icon.png");animation: 3s servicesImgUpDown linear infinite;}
  148. }
  149. }
  150. li:nth-child(3){
  151. .products-services-img{
  152. width: 155px;
  153. margin-left: -77px;
  154. background-image: url("~@/assets/images/website/index/" + "index-products-kejian.png");
  155. i{width:48px;height:48px;top: 35px;left: 45px;background-image: url("~@/assets/images/website/index/" + "index-products-kejian-icon.png");transform:rotate(0);animation: 4s servicesImgRotate linear infinite;}
  156. }
  157. }
  158. //小图标动画效果
  159. //饼图动画效果
  160. @keyframes servicesImgUpDown {
  161. 0%, to {top: 28px}
  162. 50% {top: 40px;}
  163. }
  164. @keyframes servicesImgRotate{
  165. from {transform:rotate(0);}
  166. to {transform:rotate(360deg);}
  167. }
  168. // li-鼠标悬浮效果
  169. li:hover{
  170. //头部图片
  171. .products-services-img{top: -100px;}
  172. //内容区域
  173. .products-services-content{
  174. cursor: default;
  175. box-shadow: 0 4px 8px 0 rgba(214,214,214,0.76);
  176. border-radius: 8px;
  177. }
  178. }
  179. }
  180. /* 行业学习需求 */
  181. .website-demand-box{
  182. background: #F9FAFF;
  183. padding-bottom: 80px;
  184. // 行业ul
  185. .industry-box{
  186. margin-top: 8px;
  187. li{
  188. width: 25%;display: inline-block;margin-top: 32px;height: 147px;overflow: hidden;
  189. img{margin: 0 auto;display: block;transition: all .2s linear;}
  190. div{transition: all .25s linear;text-align: center;}
  191. h2{@include setFontStyle(2);color: rgba(0,0,0,0.85);text-align: center;margin: 24px 0 16px;}
  192. p{@include setFontStyle(-6);color: rgba(0,0,0,0.65);line-height: 22px;margin: 0 8px 8px;min-height: 48px;@include multi-line-ellipsis(2);}
  193. a{@include setFontStyle(-6);display: block;color: #2B5CFD;line-height: 24px;margin: 0 auto;}
  194. }
  195. li:hover{
  196. img{opacity: 0;transform: translateY(10px);}
  197. div{margin-top: -147px}
  198. h2{@include setFontStyle(-2);margin-top: 80px;}
  199. a{cursor: pointer;}
  200. }
  201. }
  202. }
  203. /* 超过10万家客户的信任之选 */
  204. .website-customer-box{
  205. .customer-img-box{
  206. margin: 40px 0 80px;
  207. li{
  208. width: 20%;
  209. display: inline-block;
  210. }
  211. img{margin: 16px auto;transition: all 0.5s;}
  212. li:hover{
  213. img{transform: scale(1.1);box-shadow: 0 4px 8px 0 rgba(214, 214, 214, 0.76);border-radius: 8px}
  214. }
  215. }
  216. }
  217. /* 我们始终专注教育系统研发更懂用户需求 */
  218. .website-cert-box{
  219. background: #F9FAFF;
  220. padding-bottom: 80px;
  221. .website-index-title{padding-bottom: 8px;}
  222. .cert-img-box{
  223. display: flex;
  224. justify-content: space-between;
  225. margin: 32px 0;
  226. span{display:block;border: 2px solid #2B5CFD;border-radius: 8px;padding:5px;overflow: hidden;}
  227. img{width: 200px;height:280px;transition: all 0.5s;}
  228. img:hover{transform: scale(1.1);}
  229. }
  230. a{width:238px;height:40px;line-height: 40px;margin: 40px auto 0;text-align: center;@include setFontStyle(-4);display:block;background: #2B5CFD;border-radius: 4px;color: rgba(255,255,255,0.85);}
  231. a:hover{cursor: pointer}
  232. }
  233. /* 为什么选择我们 */
  234. .website-chose-box{
  235. padding-bottom: 80px;
  236. .chose-img-box{
  237. li{
  238. width: 25%;display: inline-block;
  239. div{width: 190px;height: 190px;border-radius:50%;position:relative;margin: 40px auto 24px;transition: all 0.3s;background-size: cover}
  240. i{width: 62px;height: 62px;position: absolute;top: 65px;left: 45px;background-size: cover;}
  241. h2{@include setFontStyle(2);text-align: center;color: rgba(0,0,0,0.85);}
  242. }
  243. li:nth-child(1){
  244. div{background-image: url("~@/assets/images/website/index/" + "index-chose-service.png");}
  245. i{background-image: url("~@/assets/images/website/index/" + "index-chose-service-icon.png");animation: 3s choseImgUpDown1 linear infinite;}
  246. }
  247. li:nth-child(2){
  248. div{background-image: url("~@/assets/images/website/index/" + "index-chose-system.png");}
  249. i{background-image: url("~@/assets/images/website/index/" + "index-chose-system-icon.png");top: 30px;left: 55px;animation: 3s choseImgUpDown2 linear infinite;}
  250. }
  251. li:nth-child(3){
  252. div{background-image: url("~@/assets/images/website/index/" + "index-chose-tech.png");}
  253. i{background-image: url("~@/assets/images/website/index/" + "index-chose-tech-icon.png");animation: 3s choseImgUpDown1 linear infinite;}
  254. }
  255. li:nth-child(4){
  256. div{background-image: url("~@/assets/images/website/index/" + "index-chose-operate.png");}
  257. i{background-image: url("~@/assets/images/website/index/" + "index-chose-operate-icon.png");top: 50px;animation: 3s choseImgUpDown3 linear infinite;}
  258. }
  259. li:hover{
  260. div{box-shadow: 0 3px 9px rgba(43, 92, 253,0.25);transform: translateY(-10px);cursor: pointer;}
  261. h2{color: #2B5CFD;}
  262. }
  263. //选择我们动画效果
  264. @keyframes choseImgUpDown1 {
  265. 0%, to {top: 65px;}
  266. 50% {top: 55px;}
  267. }
  268. @keyframes choseImgUpDown2 {
  269. 0%, to {top: 30px;}
  270. 50% {top: 40px;}
  271. }
  272. @keyframes choseImgUpDown3 {
  273. 0%, to {top: 40px;}
  274. 50% {top: 50px;}
  275. }
  276. }
  277. }
  278. /* 行业资讯 */
  279. .website-industry-information{
  280. background: #F9FAFF;
  281. padding-bottom: 80px;
  282. // 轮播组件
  283. .el-carousel{
  284. margin-top: 40px;
  285. .el-carousel__container{
  286. height: 360px;
  287. }
  288. }
  289. .el-carousel__item{
  290. background: #FFFFFF;
  291. border-radius: 8px;
  292. .website-img-box{
  293. width: 200px;
  294. height: 360px;
  295. background-repeat: no-repeat;
  296. background-size: cover;
  297. background-position: center;
  298. transition: 0.3s;
  299. float: left;
  300. }
  301. .website-content-box{
  302. margin-left: 200px;
  303. padding:32px;
  304. h1{@include setFontStyle(2);color: rgba(0,0,0,0.85);margin-bottom: 16px;}
  305. p{@include setFontStyle(-4);color: rgba(0,0,0,0.64);line-height: 24px;@include multi-line-ellipsis(9);min-height: 200px;margin-bottom: 24px;}
  306. a{width: 132px;height: 32px;line-height:32px;display: inline-block;@include setFontStyle(-4);background: #2B5CFD;border-radius: 4px;color: rgba(255,255,255,0.85);text-align: center}
  307. }
  308. }
  309. .el-carousel__item.is-active{
  310. height: 350px;
  311. box-shadow: 0 4px 8px 0 rgba(214, 214, 214, 0.76);
  312. .website-img-box{width: 400px;}
  313. .website-content-box{
  314. margin-left: 400px;
  315. p{@include multi-line-ellipsis(9);}
  316. }
  317. }
  318. //指示器
  319. .el-carousel__indicators{display: none}
  320. }
  321. }
  322. }