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.

contentSection.vue 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <template>
  2. <section>
  3. <div class="container">
  4. <div class="row" id="resort-profile">
  5. <div class="col-md-4">
  6. <div class="resPortfolioSection">
  7. <div v-for="(image, i) in propertyImages" @click="index = i" :key="i">
  8. <div v-if="i < 3">
  9. <img
  10. v-if="i === 0"
  11. style="width:100%; height:201px;object-fit: cover"
  12. :src="image"
  13. />
  14. <div v-else-if="i !== 0">
  15. <img
  16. v-if="i % 2 === 0"
  17. style="width:50%; height:140px; float:right;"
  18. :src="image"
  19. />
  20. <img v-else style="width:50%; height:140px; float:left" :src="image" />
  21. </div>
  22. </div>
  23. </div>
  24. <gallery :images="propertyImages" :index="index" @close="index = null"></gallery>
  25. </div>
  26. <div class="panel-left p-5" style="margin-top:140px; margin-bottom:50px">
  27. <h2>Property Detial</h2>
  28. <!-- <p>{{ property.addressLine1 }}</p>
  29. <p>Town, Suburb</p> -->
  30. <p>{{ property.shortDescription }}</p>
  31. <!-- <p>{{ property.price }}</p> -->
  32. </div>
  33. </div>
  34. <div class="col-md-8 p-5 resort-profile">
  35. <h2>{{ property.propertyName }} / {{ property.addressLine1 }}</h2>
  36. <div>
  37. <table class="table table-striped">
  38. <thead>
  39. <tr>
  40. <th scope="col">Reference</th>
  41. <th scope="col">Size</th>
  42. <th scope="col">Location</th>
  43. <th scope="col">Kitchen</th>
  44. <th scope="col">Extras</th>
  45. <th scope="col"></th>
  46. </tr>
  47. </thead>
  48. <tbody>
  49. <tr>
  50. <td>#123456</td>
  51. <td>#m2</td>
  52. <td>Second Floor</td>
  53. <td>yes</td>
  54. <td>open plan</td>
  55. <td>
  56. <router-link to="/EnquireNow">More Info</router-link>
  57. </td>
  58. </tr>
  59. <tr>
  60. <td>#123456</td>
  61. <td>#m2</td>
  62. <td>Top Floor</td>
  63. <td>yes</td>
  64. <td>open plan</td>
  65. <td><router-link to="/EnquireNow">More Info</router-link></td>
  66. </tr>
  67. </tbody>
  68. </table>
  69. </div>
  70. <p></p>
  71. <!-- <div class="d-flex mt-3">
  72. <iframe
  73. width="100%"
  74. height="200"
  75. id="gmap_canvas"
  76. src="https://maps.google.com/maps?q=ngwenya%20lodge&t=&z=13&ie=UTF8&iwloc=&output=embed"
  77. frameborder="0"
  78. scrolling="no"
  79. marginheight="0"
  80. marginwidth="0"
  81. ></iframe>
  82. </div> -->
  83. </div>
  84. </div>
  85. </div>
  86. </section>
  87. </template>
  88. <script>
  89. /* eslint-disable */
  90. import gallery from "../../../shared/gallerySlideShow";
  91. export default {
  92. components: {
  93. gallery
  94. },
  95. props: {
  96. property: {},
  97. propertyImages: {}
  98. },
  99. data() {
  100. return {
  101. index: null,
  102. date: new Date()
  103. };
  104. }
  105. };
  106. </script>
  107. <style lang="scss" scoped>
  108. /* Extra small devices (phones, 600px and down) */
  109. @media only screen and (max-width: 575px) {
  110. .resPortfolioSection {
  111. margin-bottom: 100px;
  112. }
  113. }
  114. /* Small devices (portrait tablets and large phones, 600px and up) */
  115. @media only screen and (min-width: 576px) {
  116. .resPortfolioSection {
  117. margin-bottom: 140px;
  118. }
  119. }
  120. /* Medium devices (landscape tablets, 768px and up) */
  121. @media only screen and (min-width: 768px) {
  122. .resPortfolioSection {
  123. margin-bottom: 50px;
  124. }
  125. }
  126. /* Large devices (laptops/desktops, 992px and up) */
  127. @media only screen and (min-width: 992px) {
  128. .resPortfolioSection {
  129. margin-bottom: 60px;
  130. }
  131. }
  132. /* Extra large devices (large laptops and desktops, 1200px and up) */
  133. @media only screen and (min-width: 1200px) {
  134. .resPortfolioSection {
  135. margin-bottom: 80px;
  136. }
  137. }
  138. </style>