ventBox1.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <template>
  2. <div class="vent-box1-bg">
  3. <div class="box1-top">
  4. <div class="title">
  5. <slot name="title"></slot>
  6. </div>
  7. </div>
  8. <div class="box1-center">
  9. <div class="box-container">
  10. <slot name="container"></slot>
  11. </div>
  12. </div>
  13. <div class="box1-bottom"></div>
  14. </div>
  15. </template>
  16. <script>
  17. import { defineComponent } from 'vue';
  18. export default defineComponent({
  19. name: 'VentBox1',
  20. setup() {},
  21. });
  22. </script>
  23. <style lang="less" scoped>
  24. .vent-box1-bg {
  25. width: 100%;
  26. min-height: 80px;
  27. position: relative;
  28. .box1-top {
  29. width: 100%;
  30. height: 35px;
  31. background: url('/@/assets/images/vent/border/box1-top.png') no-repeat;
  32. background-size: 100% 100%;
  33. .title {
  34. width: 100%;
  35. height: 35px;
  36. display: flex;
  37. justify-content: center;
  38. align-items: center;
  39. color: #fff;
  40. }
  41. }
  42. .box1-center {
  43. width: calc(100% + 0.5px);
  44. position: relative;
  45. .box-container {
  46. width: calc(100% - 2px);
  47. min-height: 50px;
  48. // position: relative;
  49. padding: 10px;
  50. color: #fff;
  51. // background-color: #0097ff05;
  52. background-color: #00213236;
  53. backdrop-filter: blur(5px);
  54. &::before {
  55. content: '';
  56. display: block;
  57. position: absolute;
  58. top: 5px;
  59. left: 0;
  60. width: 1px;
  61. height: calc(100% - 10px);
  62. background-image: linear-gradient(#3df6ff00, #3df6ff, #3df6ff00);
  63. }
  64. &::after {
  65. content: '';
  66. display: block;
  67. position: absolute;
  68. right: 0;
  69. top: 5px;
  70. width: 1px;
  71. height: calc(100% - 10px);
  72. background: linear-gradient(#3df6ff00, #3df6ff, #3df6ff00);
  73. }
  74. }
  75. }
  76. .box1-bottom {
  77. width: 100%;
  78. height: 35px;
  79. background: url('/@/assets/images/vent/border/box1-bottom.png') no-repeat;
  80. background-size: 100% 100%;
  81. position: absolute;
  82. bottom: 0px;
  83. z-index: 1;
  84. pointer-events: none;
  85. }
  86. }
  87. </style>