home.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <template>
  2. <div class="website-home">
  3. <div class="main">
  4. <div class="container">
  5. <div class="main-title">有极-寻找合适的房源</div>
  6. <div class="main-sub-title">方便、快捷、精准</div>
  7. <div class="main-input">
  8. <input type="text" placeholder="请输入房源名称或项目名称" />
  9. <div class="main-input-button">
  10. <i class="el-icon-search"></i>
  11. </div>
  12. </div>
  13. </div>
  14. </div>
  15. <div class="container high-seas">
  16. <div class="title">公海房源</div>
  17. <div class="house-list">
  18. <div class="house-item">
  19. <img src="https://img0.baidu.com/it/u=3837888269,660016232&fm=253&fmt=auto&app=138&f=JPEG?w=1067&h=800"
  20. alt="滨湖万丽南排小高,耳朵户型凤凰层" />
  21. </div>
  22. </div>
  23. </div>
  24. </div>
  25. </template>
  26. <script>
  27. </script>
  28. <style lang="scss">
  29. .website-home {
  30. .container {
  31. width: 100%;
  32. max-width: 1200px;
  33. margin: 0 auto;
  34. padding: 0 20px;
  35. }
  36. .main {
  37. height: 600px;
  38. background: url(https://file-node.oss-cn-shanghai.aliyuncs.com/youji/5ea8dc9317c643d0b0254d8d13a154f3);
  39. background-repeat: no-repeat;
  40. background-size: 100% 100%;
  41. color: #fff;
  42. padding-top: 100px;
  43. box-sizing: border-box;
  44. .main-title {
  45. font-weight: 500;
  46. font-size: 36px;
  47. line-height: 50px;
  48. margin-bottom: 12px;
  49. }
  50. .main-sub-title {
  51. font-weight: 300;
  52. font-size: 20px;
  53. line-height: 28px;
  54. opacity: .7;
  55. margin-bottom: 50px;
  56. }
  57. .main-input {
  58. display: flex;
  59. input {
  60. width: 400px;
  61. height: 50px;
  62. padding: 0 20px;
  63. border-radius: 6px 0 0 6px;
  64. font-size: 16px;
  65. }
  66. .main-input-button {
  67. width: 76px;
  68. text-align: center;
  69. height: 50px;
  70. line-height: 50px;
  71. background: $--color-primary;
  72. color: #fff;
  73. border-radius: 0 6px 6px 0;
  74. font-size: 22px;
  75. cursor: pointer;
  76. &:hover {
  77. opacity: 0.7;
  78. }
  79. }
  80. }
  81. .container {
  82. width: 100%;
  83. height: 100%;
  84. max-width: 1200px;
  85. margin: 0 auto;
  86. padding: 0 20px;
  87. display: flex;
  88. flex-direction: column;
  89. justify-content: center;
  90. }
  91. }
  92. .high-seas {
  93. color: #191919;
  94. margin-top: 80px;
  95. .title {
  96. font-size: 36px;
  97. line-height: 50px;
  98. font-weight: 600;
  99. margin-bottom: 30px;
  100. }
  101. .house-list {
  102. display: flex;
  103. .house-item {
  104. width: 265px;
  105. background: #fff;
  106. border-radius: 8px;
  107. box-sizing: border-box;
  108. position: relative;
  109. margin-bottom: 15px;
  110. cursor: pointer;
  111. &:hover {
  112. box-shadow: 0px 1px 12px rgba(3, 3, 3, 0.08);
  113. }
  114. img {
  115. border-radius: 4px;
  116. width: 265px;
  117. height: 205px;
  118. border: 0;
  119. vertical-align: top;
  120. }
  121. }
  122. }
  123. }
  124. }
  125. </style>