CameraContent-2-2-3.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <template>
  2. <div class="camera-content-1-1">
  3. <button
  4. class="return"
  5. @click="emit('close')"
  6. />
  7. <div class="content-wrap">
  8. <div class="left">
  9. <h2 class="one">
  10. 聊城古船
  11. </h2>
  12. <p class="text-indent">
  13. 船长126cm、船宽23cm、船高80cm
  14. </p>
  15. <p class="text-indent">
  16. 隔舱板及肋骨:江西小叶樟
  17. </p>
  18. <p class="text-indent">
  19. 甲板、船壳外板:柚木、梢木
  20. </p>
  21. <p class="one text-indent">
  22. 船附件:菠萝格、龙眼木
  23. </p>
  24. </div>
  25. <div class="right">
  26. <img
  27. class=""
  28. src="@/assets/images/camera-content-2-2-3-img.png"
  29. alt=""
  30. draggable="false"
  31. >
  32. <p> 图注:模型(依据史料定制复原)</p>
  33. </div>
  34. </div>
  35. </div>
  36. </template>
  37. <script setup>
  38. import { ref, computed, watch, onMounted } from "vue"
  39. import { useRoute, useRouter } from "vue-router"
  40. import { useStore } from "vuex"
  41. const {
  42. windowSizeInCssForRef,
  43. windowSizeWhenDesignForRef,
  44. } = useSizeAdapt(1920, 970)
  45. const route = useRoute()
  46. const router = useRouter()
  47. const store = useStore()
  48. const emit = defineEmits(['close'])
  49. </script>
  50. <style lang="less" scoped>
  51. .camera-content-1-1{
  52. position: absolute;
  53. left: 0;
  54. top: 0;
  55. width: 100%;
  56. height: 100%;
  57. background: rgba(0,0,0,0.45);
  58. backdrop-filter: blur(60px);
  59. >button.return{
  60. position: absolute;
  61. width: 58px;
  62. height: 58px;
  63. left: 42px;
  64. top: 68px;
  65. background-image: url(@/assets/images/btn-return.png);
  66. background-size: contain;
  67. background-repeat: no-repeat;
  68. background-position: center center;
  69. }
  70. >.content-wrap{
  71. position: absolute;
  72. left: 50%;
  73. top: 54%;
  74. width: 100%;
  75. // width: calc(1920 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  76. height: calc(723 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  77. transform: translate(-50%, -50%);
  78. background-image: url(@/assets/images/camera-content-2-1-1-design-bg.png);
  79. background-size: cover;
  80. background-repeat: no-repeat;
  81. background-position: center center;
  82. display: flex;
  83. justify-content: space-evenly;
  84. align-items: center;
  85. >.left{
  86. flex: 0 0 auto;
  87. width: calc(818 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  88. height: calc(438 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  89. >h2{
  90. width: calc(616 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  91. height: calc(62 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  92. font-size: calc(28 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  93. font-family: Source Han Serif SC, Source Han Serif SC;
  94. font-weight: 600;
  95. color: #6A3906;
  96. line-height: calc(33 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  97. letter-spacing: calc(5 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  98. background-image: url(@/assets/images/camera-content-1-1-3-title-bg.png);
  99. background-size: contain;
  100. background-repeat: no-repeat;
  101. background-position: center center;
  102. display: flex;
  103. justify-content: center;
  104. align-items: center;
  105. padding-top: calc(2 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  106. padding-left: calc(20 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  107. margin-bottom: calc(15 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  108. }
  109. >p{
  110. font-size: calc(20 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  111. font-family: Source Han Sans CN, Source Han Sans CN;
  112. font-weight: 300;
  113. color: #000000;
  114. line-height: 30px;
  115. // letter-spacing: calc(8 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  116. }
  117. >p.one{
  118. margin-bottom: calc(50 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  119. }
  120. }
  121. >.right{
  122. flex: 0 0 auto;
  123. position: relative;
  124. width: calc(818 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  125. height: calc(438 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  126. >img{
  127. // position: absolute;
  128. // left: 0;
  129. // top: 0;
  130. width: 100%;
  131. height: 100%;
  132. background: rgba(145,129,117,0.25);
  133. border: 1px solid #FFE88B;
  134. margin: 0;
  135. padding: 0;
  136. padding: calc(25 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  137. }
  138. >p{
  139. text-align: center;
  140. line-height: 1.5;
  141. // margin-top: 120%;
  142. }
  143. }
  144. }
  145. }
  146. </style>