index.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <template>
  2. <div class="index-container">
  3. <!-- <div class="left-top"></div>
  4. <div class="left-bottom"></div>
  5. <div class="right-top"></div>
  6. <div class="right-bottom"></div> -->
  7. <el-row align="middle" justify="center">
  8. <el-col :span="24" :offset="0" class="position">
  9. <div class="center"></div>
  10. </el-col>
  11. </el-row>
  12. </div>
  13. </template>
  14. <script>
  15. export default {
  16. name: 'index1',
  17. data() {
  18. return {}
  19. },
  20. components: {},
  21. watch: {},
  22. mounted() {},
  23. methods: {},
  24. }
  25. </script>
  26. <style rel="stylesheet/scss" lang="scss">
  27. .index-container {
  28. width: 100%;
  29. height: calc(100vh - 50px);
  30. overflow: hidden;
  31. background: #fff;
  32. background: -webkit-linear-gradient(
  33. 75deg,
  34. #e9f0fb,
  35. #5bc4ef
  36. ); /* Safari 5.1 - 6.0 */
  37. background: -o-linear-gradient(
  38. 75deg,
  39. #e9f0fb,
  40. #5bc4ef
  41. ); /* Opera 11.1 - 12.0 */
  42. background: -moz-linear-gradient(
  43. 75deg,
  44. #e9f0fb,
  45. #5bc4ef
  46. ); /* Firefox 3.6 - 15 */
  47. background: linear-gradient(75deg, #e9f0fb, #e9f0fb);
  48. .position {
  49. padding-left: 10px;
  50. padding-right: 10px;
  51. margin-bottom: 0;
  52. position: absolute;
  53. top: 67px;
  54. }
  55. .left-top,
  56. .left-bottom,
  57. .right-top,
  58. .right-bottom {
  59. position: absolute;
  60. }
  61. .left-top {
  62. left: 0;
  63. top: 0;
  64. z-index: 1;
  65. width: 223px;
  66. height: 291px;
  67. background: url('../../../static/index-top-left.png');
  68. background-size: 100% 100%;
  69. }
  70. .left-bottom {
  71. left: 0;
  72. bottom: 0;
  73. z-index: 2;
  74. width: 461px;
  75. height: 236px;
  76. background: url('../../../static/index-bottom-left.png');
  77. background-size: 100% 100%;
  78. }
  79. .right-top {
  80. right: 0;
  81. top: 0;
  82. z-index: 31;
  83. width: 346px;
  84. height: 309px;
  85. background: url('../../../static/index-top-right.png');
  86. background-size: 100% 100%;
  87. }
  88. .right-bottom {
  89. right: 0;
  90. bottom: 0;
  91. z-index: 4;
  92. width: 463px;
  93. height: 320px;
  94. background: url('../../../static/index-bottom-right.png');
  95. background-size: 100% 100%;
  96. }
  97. .center {
  98. width: 100%;
  99. height: 93vh;
  100. bottom: 0;
  101. position: relative;
  102. max-width: 1893px;
  103. background: url('../../../static/index-center.png');
  104. background-size: 100% 100%;
  105. }
  106. }
  107. </style>