LoginLayout.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <template>
  2. <div class="fluid-dashboard">
  3. <div class="frame-top">
  4. <div class="top-logo">
  5. <img :src="brand.logo" />
  6. </div>
  7. <div class="title glow-text" :data-text="brand.title">{{ brand.title }}</div>
  8. <div class="top-right-actions">
  9. <FullscreenToggle />
  10. <slot name="top-actions"></slot>
  11. </div>
  12. </div>
  13. <div class="frame-bottom"></div>
  14. <slot name="background"></slot>
  15. <div class="ui-layer">
  16. <main class="main-layout" :class="layoutClass">
  17. <slot name="main"></slot>
  18. </main>
  19. </div>
  20. </div>
  21. </template>
  22. <script>
  23. import FullscreenToggle from '@/components/ui/FullscreenToggle.vue';
  24. import brand from '@/utils/brand';
  25. export default {
  26. name: 'LoginLayout',
  27. mixins: [],
  28. components: {
  29. FullscreenToggle,
  30. },
  31. props: {
  32. layoutClass: {
  33. type: String,
  34. default: ''
  35. }
  36. },
  37. data() {
  38. return {
  39. brand,
  40. }
  41. },
  42. methods: {
  43. }
  44. }
  45. </script>
  46. <style scoped>
  47. .fluid-dashboard {
  48. width: 100vw;
  49. height: 100vh;
  50. position: relative;
  51. overflow: hidden;
  52. background: #050a17;
  53. }
  54. .frame-top,
  55. .frame-left,
  56. .frame-right,
  57. .frame-bottom {
  58. position: absolute;
  59. pointer-events: none;
  60. z-index: 50;
  61. }
  62. .frame-top {
  63. top: 0;
  64. left: 0;
  65. width: 100%;
  66. height: 100px;
  67. background: url('@/assets/images/layout-top.png') no-repeat center top;
  68. background-size: 100% 100%;
  69. }
  70. .top-logo {
  71. position: absolute;
  72. top: 10px;
  73. left: 100px;
  74. height: 30px;
  75. }
  76. .top-logo img {
  77. width: 100%;
  78. height: 100%;
  79. object-fit: contain;
  80. }
  81. .top-right-actions {
  82. position: absolute;
  83. top: 2px;
  84. right: 50px;
  85. pointer-events: auto;
  86. z-index: 100;
  87. display: flex;
  88. align-items: center;
  89. gap: 12px;
  90. height: 45px;
  91. }
  92. .frame-top .title {
  93. font-family: var(--title-font-family);
  94. font-size: 48px;
  95. color: #ffffff;
  96. line-height: 63px;
  97. text-align: center;
  98. font-style: normal;
  99. text-transform: none;
  100. white-space: nowrap;
  101. }
  102. .frame-left {
  103. top: 10px;
  104. left: 0;
  105. width: 16px;
  106. height: calc(100% - 10px - 40px);
  107. background: url('@/assets/images/layout-left.png') no-repeat left center;
  108. background-size: 100% 100%;
  109. }
  110. .frame-right {
  111. top: 10px;
  112. right: 0;
  113. width: 16px;
  114. height: calc(100% - 10px - 40px);
  115. background: url('@/assets/images/layout-right.png') no-repeat right center;
  116. background-size: 100% 100%;
  117. }
  118. .frame-bottom {
  119. bottom: 0;
  120. left: 0;
  121. width: 100%;
  122. height: 17px;
  123. background-size: 100% 100%;
  124. }
  125. .ui-layer {
  126. position: absolute;
  127. top: 0;
  128. left: 0;
  129. width: 100%;
  130. height: 100%;
  131. z-index: 2;
  132. pointer-events: none;
  133. display: grid;
  134. grid-template-rows: 80px 1fr;
  135. }
  136. .main-layout {
  137. height: 100%;
  138. box-sizing: border-box;
  139. pointer-events: none;
  140. }
  141. .main-layout > * {
  142. pointer-events: auto;
  143. }
  144. </style>