notLogged.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. <template>
  2. <div class="notLo">
  3. <div class="container">
  4. <div class="card">
  5. <div class="icon-container">
  6. <img :src='jkecLogo' class="icon-containe-img"/>
  7. </div>
  8. <h1 class="title">暂未登录</h1>
  9. <p class="message">
  10. 您当前尚未登录系统,请登录后<br>
  11. 访问完整功能和个性化内容
  12. </p>
  13. <div class="divider"></div>
  14. </div>
  15. </div>
  16. </div>
  17. </template>
  18. <script setup lang='ts'>
  19. import { ref, reactive } from 'vue'
  20. import jkecLogo from '/@/assets/icons/jkec_logo.png'
  21. </script>
  22. <style scoped lang='scss'>
  23. * {
  24. margin: 0;
  25. padding: 0;
  26. box-sizing: border-box;
  27. font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
  28. }
  29. body {
  30. background-color: #f8fafc;
  31. min-height: 100vh;
  32. display: flex;
  33. align-items: center;
  34. justify-content: center;
  35. padding: 2rem;
  36. background-image:
  37. radial-gradient(circle at 10% 20%, rgba(30, 48, 80, 0.04) 0%, transparent 30%),
  38. radial-gradient(circle at 90% 80%, rgba(30, 48, 80, 0.04) 0%, transparent 30%);
  39. }
  40. /* 主容器样式 */
  41. .notLo{
  42. width: 100%;
  43. height: 100%;
  44. display: flex;
  45. align-items: center;
  46. justify-content: center;
  47. }
  48. .container {
  49. width: 100%;
  50. max-width: 550px;
  51. }
  52. .card {
  53. background: #ffffff;
  54. border-radius: 28px;
  55. box-shadow: 0 20px 60px rgba(0, 0, 0, 0.07);
  56. padding: 5rem 3.5rem;
  57. text-align: center;
  58. position: relative;
  59. overflow: hidden;
  60. transition: transform 0.3s ease;
  61. }
  62. .card:hover {
  63. transform: translateY(-5px);
  64. }
  65. /* 装饰元素 */
  66. .card::before {
  67. content: '';
  68. position: absolute;
  69. top: -150px;
  70. right: -150px;
  71. width: 350px;
  72. height: 350px;
  73. background: radial-gradient(circle, rgba(30, 64, 175, 0.08) 0%, rgba(30, 64, 175, 0) 70%);
  74. border-radius: 50%;
  75. z-index: 0;
  76. }
  77. .card::after {
  78. content: '';
  79. position: absolute;
  80. bottom: -120px;
  81. left: -120px;
  82. width: 300px;
  83. height: 300px;
  84. background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, rgba(59, 130, 246, 0) 70%);
  85. border-radius: 50%;
  86. z-index: 0;
  87. }
  88. /* 图标样式 */
  89. .icon-container {
  90. width: 130px;
  91. height: 130px;
  92. margin: 0 auto 3rem;
  93. // background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  94. border-radius: 50%;
  95. display: flex;
  96. align-items: center;
  97. justify-content: center;
  98. position: relative;
  99. z-index: 1;
  100. // box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  101. }
  102. .icon-containe-img{
  103. width: 100%;
  104. height: 100%;
  105. }
  106. .user-icon {
  107. width: 50px;
  108. height: 50px;
  109. color: #1e40af;
  110. font-size: 64px;
  111. opacity: 0.95;
  112. }
  113. /* 文字样式 */
  114. .title {
  115. font-size: clamp(2.2rem, 6vw, 3.2rem);
  116. font-weight: 700;
  117. color: #1e293b;
  118. margin-bottom: 1.5rem;
  119. position: relative;
  120. z-index: 1;
  121. letter-spacing: -0.6px;
  122. line-height: 1.1;
  123. }
  124. .message {
  125. font-size: clamp(1.1rem, 3vw, 1.35rem);
  126. color: #64748b;
  127. line-height: 1.7;
  128. max-width: 360px;
  129. margin: 0 auto;
  130. position: relative;
  131. z-index: 1;
  132. }
  133. /* 底部装饰线 */
  134. .divider {
  135. width: 80px;
  136. height: 3px;
  137. background: linear-gradient(90deg, rgba(30, 64, 175, 0) 0%, rgba(30, 64, 175, 0.3) 50%, rgba(30, 64, 175, 0) 100%);
  138. margin: 4rem auto 0;
  139. position: relative;
  140. z-index: 1;
  141. }
  142. /* 响应式调整 */
  143. @media (max-width: 640px) {
  144. .card {
  145. padding: 4rem 2.5rem;
  146. border-radius: 24px;
  147. }
  148. .icon-container {
  149. width: 120px;
  150. height: 120px;
  151. margin-bottom: 2.5rem;
  152. }
  153. .user-icon {
  154. font-size: 56px;
  155. }
  156. .divider {
  157. margin-top: 3.5rem;
  158. }
  159. }
  160. </style>