DashboardContainer.vue 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <template>
  2. <div :class="{ none: !$slots.default}" class="dashboard-container">
  3. <slot></slot>
  4. <div v-if="!props.hide" class="wow home-main">
  5. <div class="home-main-left wow slideInLeft">
  6. <slot name="left"></slot>
  7. </div>
  8. <div class="home-main-center wow bounceIn">
  9. <slot name="center"></slot>
  10. </div>
  11. <div class="home-main-right wow slideInRight">
  12. <slot name="right"></slot>
  13. </div>
  14. </div>
  15. </div>
  16. </template>
  17. <script setup>
  18. import { onMounted } from 'vue';
  19. import WOW from 'wow.js';
  20. const props = defineProps({
  21. hide: {
  22. type: Boolean,
  23. default: false,
  24. },
  25. });
  26. onMounted(() => {
  27. const wow = new WOW();
  28. wow.init();
  29. });
  30. </script>
  31. <style lang="scss" scoped>
  32. .dashboard-container {
  33. position: relative;
  34. width: 100%;
  35. min-height: 100vh;
  36. background: url('../../../../assets/images/bg-99b6904c.png');
  37. background-size: 100% 100%;
  38. &.none {
  39. .home-main {
  40. padding-top: 20px;
  41. }
  42. }
  43. .home-main {
  44. position: relative;
  45. width: calc(100% - 20px);
  46. padding: 100px 0 20px;
  47. margin-left: 20px;
  48. height: 100vh;
  49. display: flex;
  50. z-index: 1;
  51. justify-content: space-between;
  52. align-items: flex-start;
  53. flex-wrap: nowrap;
  54. flex-direction: row;
  55. pointer-events: none;
  56. overflow: hidden;
  57. .home-main-left, .home-main-right {
  58. width: calc(30% + -0px);
  59. position: relative;
  60. height: calc(100% + -0px);
  61. display: flex;
  62. justify-content: space-between;
  63. align-items: center;
  64. flex-wrap: nowrap;
  65. flex-direction: column;
  66. align-content: flex-start;
  67. z-index: 2;
  68. pointer-events: initial;
  69. }
  70. .home-main-left-inner, .home-main-center, .home-main-right-inner {
  71. width: calc(100% + -0px);
  72. height: 100%;
  73. position: relative;
  74. display: flex;
  75. justify-content: space-between;
  76. align-items: center;
  77. flex-wrap: nowrap;
  78. flex-direction: column;
  79. align-content: flex-start;
  80. z-index: 2;
  81. pointer-events: initial;
  82. }
  83. .home-main-center {
  84. width: calc(40% - 20px);
  85. }
  86. }
  87. }
  88. </style>