You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

carouselSection.vue 9.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  1. <template>
  2. <section id="intro">
  3. <div class="container">
  4. <div class="form">
  5. <div class="row">
  6. <div align="left" class="col-sm-12 col-md-12 col-lg-8">
  7. <div class="intro-content">
  8. <h2>Find your perfect Property</h2>
  9. <ul class="nav nav-tabs mb-3" id="pills-tab" role="tablist">
  10. <li class="nav-item">
  11. <a
  12. class="nav-link"
  13. id="timeshare-tab"
  14. data-toggle="pill"
  15. href="#timeshare"
  16. role="tab"
  17. aria-controls="timeshare"
  18. aria-selected="false"
  19. >
  20. Timeshare
  21. </a>
  22. </li>
  23. <li class="nav-item">
  24. <a
  25. class="nav-link"
  26. id="commercial-tab"
  27. data-toggle="pill"
  28. href="#commercial"
  29. role="tab"
  30. aria-controls="commercial"
  31. aria-selected="false"
  32. >
  33. Commercial
  34. </a>
  35. </li>
  36. <li class="nav-item">
  37. <a
  38. class="nav-link"
  39. id="residential-tab"
  40. data-toggle="pill"
  41. href="#residential"
  42. role="tab"
  43. aria-controls="residential"
  44. aria-selected="false"
  45. >
  46. Residential
  47. </a>
  48. </li>
  49. </ul>
  50. <!--======== header tabs ==========-->
  51. <div class="tab-content" id="pills-tabContent">
  52. <div
  53. class="tab-pane fade show active"
  54. id="start"
  55. role="tabpanel"
  56. aria-labelledby="start-tab"
  57. >
  58. <p>Choose an option to start your adventure</p>
  59. </div>
  60. <div
  61. class="tab-pane fade"
  62. id="timeshare"
  63. role="tabpanel"
  64. aria-labelledby="timeshare-tab"
  65. >
  66. <H4>Timeshare Sales</H4>
  67. <p>Start exploring your posibilities</p>
  68. <div id="row">
  69. <router-link to="/timeshare/buy" class="btn-white-border">
  70. <i class="fa fa-search"></i>
  71. Buy
  72. </router-link>
  73. <router-link to="/timeshare/sell" class="btn-white-border">
  74. <i class="fa chevron-circle-right"></i>
  75. Sell
  76. </router-link>
  77. </div>
  78. </div>
  79. <div
  80. class="tab-pane fade"
  81. id="commercial"
  82. role="tabpanel"
  83. aria-labelledby="commercial-tab"
  84. >
  85. <h4>Commercial Properties</h4>
  86. <p>
  87. Select the region you are looking for to start your search
  88. </p>
  89. <div id="row">
  90. <div class="form-group">
  91. <autoComplete @GoogleAddress="UpdateAddress" />
  92. </div>
  93. <a
  94. v-on:click="SearchClickRentComm()"
  95. class="btn-white-border scrollto"
  96. >
  97. <i class="fa fa-search"></i>
  98. Rent
  99. </a>
  100. <a
  101. v-on:click="SearchClickBuyComm()"
  102. class="btn-white-border scrollto"
  103. >
  104. <i class="fa fa-search"></i>
  105. Buy
  106. </a>
  107. </div>
  108. </div>
  109. <div
  110. class="tab-pane fade"
  111. id="residential"
  112. role="tabpanel"
  113. aria-labelledby="residential-tab"
  114. >
  115. <h4>Residential Properties</h4>
  116. <p>
  117. Select the region you are looking for to start your search
  118. </p>
  119. <div id="row">
  120. <div class="form-group">
  121. <autoComplete @GoogleAddress="UpdateAddress" />
  122. </div>
  123. <a
  124. v-on:click="SearchClickRentRes()"
  125. class="btn-white-border scrollto"
  126. >
  127. <i class="fa fa-search"></i>
  128. Rent
  129. </a>
  130. <a
  131. v-on:click="SearchClickBuyRes()"
  132. class="btn-white-border scrollto"
  133. >
  134. <i class="fa fa-search"></i>
  135. Buy
  136. </a>
  137. </div>
  138. </div>
  139. </div>
  140. <div></div>
  141. </div>
  142. </div>
  143. </div>
  144. </div>
  145. </div>
  146. <carousel
  147. :nav="false"
  148. :dots="false"
  149. :items="1"
  150. :autoplay="true"
  151. :loop="true"
  152. id="intro-carousel"
  153. style="margin-top: -50px;"
  154. :responsive="{
  155. 0: { items: 1, nav: false },
  156. 600: { items: 1, nav: false },
  157. }"
  158. >
  159. <img
  160. class="item"
  161. src="/img/intro-carousel/home-1.jpg"
  162. style="object-fit: cover;"
  163. alt
  164. />
  165. <img
  166. class="item"
  167. src="/img/intro-carousel/home-2.jpg"
  168. style="object-fit: cover;"
  169. alt
  170. />
  171. <img
  172. class="item"
  173. src="/img/intro-carousel/home-3.jpg"
  174. style="object-fit: cover;"
  175. alt
  176. />
  177. <img
  178. class="item"
  179. src="/img/intro-carousel/home-4.jpg"
  180. style="object-fit: cover;"
  181. alt
  182. />
  183. <img
  184. class="item"
  185. src="/img/intro-carousel/home-5.jpg"
  186. style="object-fit: cover;"
  187. alt
  188. />
  189. <img
  190. class="item"
  191. src="/img/intro-carousel/home-6.jpg"
  192. style="object-fit: cover;"
  193. alt
  194. />
  195. </carousel>
  196. <div id="intro-carousel" class="owl-carousel"></div>
  197. </section>
  198. <!-- #intro -->
  199. </template>
  200. <script>
  201. /* eslint-disable */
  202. import { mapState, mapActions } from 'vuex'
  203. import carousel from 'vue-owl-carousel'
  204. import autoComplete from '../shared/addressAutoComplete'
  205. export default {
  206. components: {
  207. carousel,
  208. autoComplete,
  209. },
  210. computed: {
  211. ...mapState('propertySearch', ['suburbs', 'suburbList', 'propertySearch']),
  212. },
  213. data() {
  214. return {
  215. propertyUsageType: 'Commercial',
  216. salesType: 'Sale',
  217. searchText: '',
  218. clicked: false,
  219. }
  220. },
  221. methods: {
  222. ...mapActions('propertySearch', ['applyFilter']),
  223. SetSalesType(value) {
  224. this.salesType = value
  225. },
  226. SearchClickBuyRes() {
  227. // const item = this.suburbs.find((s) => s.display === this.searchText);
  228. // this.propertySearch.province = item.province;
  229. // this.propertySearch.city = item.city;
  230. // this.propertySearch.suburb = item.suburb;
  231. this.propertySearch.propertyUsageType = 'Residential'
  232. this.propertySearch.salesType = 'Sale'
  233. this.$router.push('/property/residential/searchResult')
  234. },
  235. SearchClickRentRes() {
  236. // const item = this.suburbs.find((s) => s.display === this.searchText);
  237. // this.propertySearch.province = item.province;
  238. // this.propertySearch.city = item.city;
  239. // this.propertySearch.suburb = item.suburb;
  240. this.propertySearch.propertyUsageType = 'Residential'
  241. this.propertySearch.salesType = 'Rent'
  242. this.$router.push('/property/residential/searchResult')
  243. },
  244. SearchClickBuyComm() {
  245. // const item = this.suburbs.find((s) => s.display === this.searchText);
  246. // this.propertySearch.province = item.province;
  247. // this.propertySearch.city = item.city;
  248. // this.propertySearch.suburb = item.suburb;
  249. this.propertySearch.propertyUsageType = 'Commercial'
  250. this.propertySearch.salesType = 'Sale'
  251. this.$router.push('/property/commercial/searchResult')
  252. },
  253. SearchClickRentComm() {
  254. // const item = this.suburbs.find((s) => s.display === this.searchText);
  255. // this.propertySearch.province = item.province;
  256. // this.propertySearch.city = item.city;
  257. // this.propertySearch.suburb = item.suburb;
  258. this.propertySearch.propertyUsageType = 'Commercial'
  259. this.propertySearch.salesType = 'Rent'
  260. this.$router.push('/property/commercial/searchResult')
  261. },
  262. SelectedFilter(item) {
  263. this.searchText = item
  264. },
  265. UpdateAddress(place) {
  266. this.propertySearch.province = place.province
  267. this.propertySearch.city = place.city
  268. this.propertySearch.suburb = place.suburb
  269. },
  270. },
  271. }
  272. </script>
  273. <style lang="scss" scoped>
  274. /* Extra small devices (phones, 600px and down) */
  275. @media only screen and (max-width: 600px) {
  276. .introContentAdjust {
  277. margin-top: 140px !important;
  278. }
  279. }
  280. /* Small devices (portrait tablets and large phones, 600px and up) */
  281. @media only screen and (min-width: 600px) {
  282. .introContentAdjust {
  283. margin-top: 150px !important;
  284. }
  285. }
  286. /* Medium devices (landscape tablets, 768px and up) */
  287. @media only screen and (min-width: 768px) {
  288. .introContentAdjust {
  289. margin-top: 160px !important;
  290. }
  291. }
  292. /* Large devices (laptops/desktops, 992px and up) */
  293. @media only screen and (min-width: 992px) {
  294. .introContentAdjust {
  295. margin-top: 160px !important;
  296. }
  297. }
  298. /* Extra large devices (large laptops and desktops, 1200px and up) */
  299. @media only screen and (min-width: 1200px) {
  300. .introContentAdjust {
  301. margin-top: 120px !important;
  302. }
  303. }
  304. .nav-tabs li a {
  305. border-top: none;
  306. border-left: none;
  307. border-right: none;
  308. margin-left: 10px;
  309. margin-right: 10px;
  310. background-color: white;
  311. border-bottom-color: rgb(27, 117, 187);
  312. border: 1px solid rgb(27, 117, 187);
  313. }
  314. </style>