index.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <template>
  2. <div class="container">
  3. <div class="logo">
  4. <!-- <img alt="logo" :src="carouselItem.image" style="height: 50px; border-radius: 50%" /> -->
  5. <div class="logo-text">Easy life Platform</div>
  6. </div>
  7. <div class="banner">
  8. <div class="carousel-item">
  9. <div class="carousel-title">{{ carouselItem.slogan }}</div>
  10. <div class="carousel-sub-title">{{ carouselItem.subSlogan }}</div>
  11. <img class="carousel-image" :src="carouselItem.image" />
  12. </div>
  13. </div>
  14. <div class="content">
  15. <div class="content-inner">
  16. <LoginForm />
  17. </div>
  18. </div>
  19. </div>
  20. </template>
  21. <script setup>
  22. import { onMounted } from "vue"
  23. import LoginForm from './login-form.vue'
  24. import bannerImage from '@/assets/images/login-banner.png'
  25. const carouselItem = {
  26. slogan: 'Easy life Platform',
  27. subSlogan: 'Technology serves life',
  28. image: bannerImage,
  29. }
  30. </script>
  31. <style scoped lang="less">
  32. .container {
  33. display: flex;
  34. height: 100vh;
  35. min-width: 1000px;
  36. flex-direction: row;
  37. .banner {
  38. width: 550px;
  39. background: linear-gradient(163.85deg, #1d2129 0%, #00308f 100%);
  40. }
  41. .content {
  42. position: relative;
  43. display: flex;
  44. flex: 1;
  45. align-items: center;
  46. justify-content: center;
  47. padding-bottom: 40px;
  48. background: @bg_color_2;
  49. }
  50. .footer {
  51. position: absolute;
  52. right: 0;
  53. bottom: 0;
  54. width: 100%;
  55. }
  56. }
  57. .logo {
  58. position: fixed;
  59. top: 24px;
  60. left: 22px;
  61. z-index: 1;
  62. display: inline-flex;
  63. align-items: center;
  64. &-text {
  65. margin-right: 4px;
  66. margin-left: 4px;
  67. color: @bg_color_6;
  68. font-size: 20px;
  69. }
  70. }
  71. .banner {
  72. display: flex;
  73. align-items: center;
  74. justify-content: center;
  75. }
  76. .carousel {
  77. height: 100%;
  78. &-item {
  79. display: flex;
  80. flex-direction: column;
  81. align-items: center;
  82. justify-content: center;
  83. height: 100%;
  84. }
  85. &-title {
  86. color: @bg_color_6;
  87. font-weight: 500;
  88. font-size: 20px;
  89. line-height: 28px;
  90. }
  91. &-sub-title {
  92. margin-top: 8px;
  93. color: @text_color_2;
  94. font-size: 14px;
  95. line-height: 22px;
  96. }
  97. &-image {
  98. width: 320px;
  99. margin-top: 30px;
  100. }
  101. }
  102. </style>