index.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <template>
  2. <view class="gradient-bg">
  3. <view class="logo-area">
  4. <text class="logo-text">Wordmates</text>
  5. </view>
  6. <view class="lines">
  7. <view class="line red"></view>
  8. <view class="line yellow"></view>
  9. <view class="line green"></view>
  10. </view>
  11. <view class="faces">
  12. <view class="face yellow-face">
  13. <text class="face-eye">●</text>
  14. <text class="face-eye">●</text>
  15. <text class="face-mouth">︶</text>
  16. </view>
  17. <view class="face blue-face">
  18. <text class="face-eye">●</text>
  19. <text class="face-eye">●</text>
  20. <text class="face-mouth">∪</text>
  21. </view>
  22. <view class="bubble">hi</view>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. export default {
  28. data() {
  29. return {};
  30. },
  31. onLoad() {
  32. setTimeout(() => {
  33. uni.redirectTo({
  34. url: '/pages/login/login'
  35. });
  36. }, 3000);
  37. },
  38. methods: {
  39. }
  40. }
  41. </script>
  42. <style>
  43. .gradient-bg {
  44. min-height: 100vh;
  45. width: 100vw;
  46. display: flex;
  47. flex-direction: column;
  48. align-items: center;
  49. justify-content: flex-start;
  50. background: linear-gradient(180deg, #4b3bbd 0%, #3ec6e0 100%);
  51. position: relative;
  52. overflow: hidden;
  53. }
  54. .logo-area {
  55. margin-top: 120rpx;
  56. text-align: center;
  57. }
  58. .logo-text {
  59. font-size: 64rpx;
  60. font-weight: bold;
  61. color: #fff;
  62. letter-spacing: 8rpx;
  63. font-family: 'Arial Rounded MT Bold', 'PingFang SC', sans-serif;
  64. }
  65. .lines {
  66. position: absolute;
  67. width: 100vw;
  68. height: 60vh;
  69. top: 20vh;
  70. left: 0;
  71. z-index: 1;
  72. }
  73. .line {
  74. position: absolute;
  75. width: 120rpx;
  76. height: 8rpx;
  77. border-radius: 8rpx;
  78. }
  79. .red { left: 30vw; top: 10vh; background: #ff5a5f; transform: rotate(60deg); }
  80. .yellow { right: 10vw; top: 20vh; background: #ffe066; transform: rotate(-30deg); }
  81. .green { left: 10vw; bottom: 10vh; background: #3ec6e0; transform: rotate(30deg); }
  82. .faces {
  83. position: absolute;
  84. bottom: 0;
  85. left: 0;
  86. width: 100vw;
  87. height: 200rpx;
  88. display: flex;
  89. align-items: flex-end;
  90. justify-content: center;
  91. z-index: 2;
  92. }
  93. .face {
  94. width: 120rpx;
  95. height: 120rpx;
  96. border-radius: 60rpx;
  97. background: #ffe066;
  98. margin: 0 20rpx;
  99. display: flex;
  100. flex-direction: column;
  101. align-items: center;
  102. justify-content: center;
  103. position: relative;
  104. }
  105. .yellow-face { background: #ffe066; }
  106. .blue-face { background: #3ec6e0; }
  107. .face-eye {
  108. font-size: 24rpx;
  109. margin: 0 8rpx;
  110. }
  111. .face-mouth {
  112. font-size: 28rpx;
  113. margin-top: 8rpx;
  114. }
  115. .bubble {
  116. position: absolute;
  117. left: 50%;
  118. bottom: 120rpx;
  119. transform: translateX(-50%);
  120. background: #fff;
  121. color: #3ec6e0;
  122. border-radius: 20rpx;
  123. padding: 8rpx 24rpx;
  124. font-size: 32rpx;
  125. font-weight: bold;
  126. box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.1);
  127. z-index: 3;
  128. }
  129. </style>