Home.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <template>
  2. <div
  3. class="home"
  4. :style="{
  5. backgroundImage: `url(${require('@/assets/images/proj2022/bg.png')})`,
  6. }"
  7. >
  8. <div class="h-con">
  9. <div class="h-title">
  10. <img :src="require('@/assets/images/proj2022/title.png')" alt="" />
  11. </div>
  12. <!-- <ul>
  13. <li v-for="(item, i) in units" :key="i">
  14. <span>{{ item.unit }}:</span>
  15. <span>{{ item.val }}</span>
  16. </li>
  17. </ul> -->
  18. <img class="tunits" :src="require('@/assets/images/proj2022/pc_units.png')" alt="" />
  19. <img @click="$showBirdView({
  20. hideClose:true
  21. })" class="h-btn" :src="require('@/assets/images/project/btn.png')" alt="" />
  22. </div>
  23. </div>
  24. </template>
  25. <script>
  26. // import {units} from './units'
  27. export default {
  28. data() {
  29. return {
  30. // units,
  31. };
  32. },
  33. };
  34. </script>
  35. <style lang="less" scoped>
  36. .home {
  37. width: 100%;
  38. height: 100%;
  39. background-repeat: no-repeat;
  40. background-color: #10337f;
  41. background-size: 100% auto;
  42. background-position: bottom left;
  43. .h-con {
  44. width: 60%;
  45. margin: 0 auto;
  46. padding-top: 30px;
  47. color: #fff;
  48. text-align: center;
  49. .h-title {
  50. width: 100%;
  51. > img {
  52. width: 90%;
  53. }
  54. }
  55. .tunits {
  56. width: 98%;
  57. margin: 40px auto 0;
  58. }
  59. > ul {
  60. width: 96%;
  61. margin: 40px auto 0;
  62. text-align: left;
  63. > li {
  64. display: flex;
  65. margin: 10px 0;
  66. > span {
  67. line-height: 1.4;
  68. font-size: 22px;
  69. &:first-of-type {
  70. text-align: justify;
  71. min-width: 150px;
  72. flex-shrink: 0;
  73. }
  74. }
  75. }
  76. }
  77. .h-btn {
  78. margin: 8% auto 0;
  79. max-width: 298px;
  80. cursor: pointer;
  81. }
  82. }
  83. }
  84. @media screen and (max-width: 1600px) {
  85. .home {
  86. .h-con {
  87. > ul {
  88. > li {
  89. > span {
  90. font-size: 18px;
  91. &:first-of-type {
  92. min-width: 120px;
  93. }
  94. }
  95. }
  96. }
  97. .h-btn {
  98. max-width: 218px;
  99. }
  100. }
  101. }
  102. }
  103. </style>