list.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. {{ define "main" }}
  2. <!-- <amp-script layout="container" height="4096" src="/js/cz_filter.js"> -->
  3. <div class="page-wrapper">
  4. <div class="container mb-5">
  5. <section class="section15" style="padding-top:60px;">
  6. <div class="text-center mb-4">
  7. <div class="title"><b>{{ .Title }}</b></div>
  8. </div>
  9. </section>
  10. <!-- 手機版 -->
  11. <div class="d-block d-md-none">
  12. <div class="row">
  13. <!-- <div class="col-md-3">
  14. <div class="mb-4 list-group">
  15. <div class="list-group-item list-group-item-action active" aria-current="true">
  16. 風格
  17. </div>
  18. <div class="list-group-item list-group-item-action">
  19. <input class="style ms-1" type="radio" id="m_風格不限" name="m_style" value="所有風格" checked/>
  20. <label for="m_風格不限">不限</label>
  21. <input class="style ms-1" type="radio" id="m_北歐風" name="m_style" value="北歐風" />
  22. <label for="m_北歐風">北歐風</label>
  23. <input class="style ms-1" type="radio" id="m_現代風" name="m_style" value="現代風" />
  24. <label for="m_現代風">現代風</label>
  25. <input class="style ms-1" type="radio" id="m_日式風" name="m_style" value="日式風" />
  26. <label for="m_日式風">日式風</label>
  27. <input class="style ms-1" type="radio" id="m_工業風" name="m_style" value="工業風" />
  28. <label for="m_工業風">工業風</label>
  29. <input class="style ms-1" type="radio" id="m_混搭風" name="m_style" value="混搭風" />
  30. <label for="m_混搭風">混搭風</label>
  31. </div>
  32. </div>
  33. <div class="mb-4 list-group">
  34. <div class="list-group-item list-group-item-action active" aria-current="true">
  35. 坪數
  36. </div>
  37. <div class="list-group-item list-group-item-action">
  38. <input class="roomsize ms-1" type="radio" id="m_坪數不限" name="m_roomsize" value="所有坪數" checked/>
  39. <label for="m_坪數不限">不限</label>
  40. <input class="roomsize ms-1" type="radio" id="m_10~20坪" name="m_roomsize" value="10~20坪" />
  41. <label for="m_10~20坪">10~20坪</label>
  42. <input class="roomsize ms-1" type="radio" id="m_21~30坪" name="m_roomsize" value="21~30坪" />
  43. <label for="m_21~30坪">21~30坪</label>
  44. <input class="roomsize ms-1" type="radio" id="m_31~40坪" name="m_roomsize" value="31~40坪" />
  45. <label for="m_31~40坪">31~40坪</label>
  46. <input class="roomsize ms-1" type="radio" id="m_41~50坪" name="m_roomsize" value="41~50坪" />
  47. <label for="m_41~50坪">41~50坪</label>
  48. <input class="roomsize ms-1" type="radio" id="m_51坪以上" name="m_roomsize" value="51坪以上" />
  49. <label for="m_51坪以上">51坪以上</label>
  50. </div>
  51. </div>
  52. <div class="list-group">
  53. <div class="list-group-item list-group-item-action active" aria-current="true">
  54. 預算
  55. </div>
  56. <div class="list-group-item list-group-item-action">
  57. <input class="budget ms-1" type="radio" id="m_預算不限" name="m_budget" value="所有預算" checked/>
  58. <label for="m_預算不限">不限</label>
  59. <input class="budget ms-1" type="radio" id="m_35萬以下" name="m_budget" value="35萬以下" />
  60. <label for="m_35萬以下">35萬以下</label>
  61. <input class="budget ms-1" type="radio" id="m_36~50萬" name="m_budget" value="36~50萬" />
  62. <label for="m_36~50萬">36~50萬</label>
  63. <input class="budget ms-1" type="radio" id="m_51~70萬" name="m_budget" value="51~70萬" />
  64. <label for="m_51~70萬">51~70萬</label>
  65. <input class="budget ms-1" type="radio" id="m_70~99萬" name="m_budget" value="70~99萬" />
  66. <label for="m_70~99萬">70~99萬</label>
  67. <input class="budget ms-1" type="radio" id="m_100萬以上" name="m_budget" value="100萬以上" />
  68. <label for="m_100萬以上">100萬以上</label>
  69. </div>
  70. </div>
  71. </div> -->
  72. <div class="col-md-12">
  73. <div class="row row-cols-1 row-cols-sm-3">
  74. {{ $paginator := .Paginate .Data.Pages }}
  75. {{ range $paginator.Pages }}
  76. <div class="col">
  77. <div class="card h-100">
  78. <a href="{{ .RelPermalink }}" style="color:#444444;">
  79. <amp-img
  80. alt="{{ .Title }}"
  81. src="{{ .Params.Image | relURL }}"
  82. height="1"
  83. width="1.4"
  84. layout="responsive">
  85. </amp-img>
  86. </a>
  87. <div class="card-body">
  88. <a href="{{ .RelPermalink }}" style="color:#444444;">
  89. <div class="title-size"><b>{{ .Title }}</b></div>
  90. </a>
  91. <p class="card-text" style="color:#4D4D4D;">{{ .Description | safeHTML }}</p>
  92. </div>
  93. </div>
  94. </div>
  95. {{ end }}
  96. </div>
  97. </div>
  98. </div>
  99. </div>
  100. <!-- 電腦版 -->
  101. <div class="d-none d-md-block">
  102. <div class="row">
  103. <!-- <div class="col-md-3">
  104. <div class="mb-4 list-group">
  105. <div class="list-group-item list-group-item-action active" aria-current="true">
  106. 風格
  107. </div>
  108. <div class="list-group-item list-group-item-action">
  109. <input class="style ms-1" type="radio" id="風格不限" name="style" value="風格不限" checked/>
  110. <label for="風格不限">不限</label>
  111. </div>
  112. <div class="list-group-item list-group-item-action">
  113. <input class="style ms-1" type="radio" id="北歐風" name="style" value="北歐風" />
  114. <label for="北歐風">北歐風</label>
  115. </div>
  116. <div class="list-group-item list-group-item-action">
  117. <input class="style ms-1" type="radio" id="現代風" name="style" value="現代風" />
  118. <label for="現代風">現代風</label>
  119. </div>
  120. <div class="list-group-item list-group-item-action">
  121. <input class="style ms-1" type="radio" id="日式風" name="style" value="日式風"/>
  122. <label for="日式風">日式風</label>
  123. </div>
  124. <div class="list-group-item list-group-item-action">
  125. <input class="style ms-1" type="radio" id="工業風" name="style" value="工業風"/>
  126. <label for="工業風">工業風</label>
  127. </div>
  128. <div class="list-group-item list-group-item-action">
  129. <input class="style ms-1" type="radio" id="混搭風" name="style" value="混搭風"/>
  130. <label for="混搭風">混搭風</label>
  131. </div>
  132. </div>
  133. <div class="mb-4 list-group">
  134. <div class="list-group-item list-group-item-action active" aria-current="true">
  135. 坪數
  136. </div>
  137. <div class="list-group-item list-group-item-action">
  138. <input class="roomsize ms-1" type="radio" id="坪數不限" name="roomsize" value="坪數不限" checked/>
  139. <label for="坪數不限">不限</label>
  140. </div>
  141. <div class="list-group-item list-group-item-action">
  142. <input class="roomsize ms-1" type="radio" id="10~20坪" name="roomsize" value="10~20坪" />
  143. <label for="10~20坪">10~20坪</label>
  144. </div>
  145. <div class="list-group-item list-group-item-action">
  146. <input class="roomsize ms-1" type="radio" id="21~30坪" name="roomsize" value="21~30坪" />
  147. <label for="21~30坪">21~30坪</label>
  148. </div>
  149. <div class="list-group-item list-group-item-action">
  150. <input class="roomsize ms-1" type="radio" id="31~40坪" name="roomsize" value="31~40坪" />
  151. <label for="31~40坪">31~40坪</label>
  152. </div>
  153. <div class="list-group-item list-group-item-action">
  154. <input class="roomsize ms-1" type="radio" id="41~50坪" name="roomsize" value="41~50坪" />
  155. <label for="41~50坪">41~50坪</label>
  156. </div>
  157. <div class="list-group-item list-group-item-action">
  158. <input class="roomsize ms-1" type="radio" id="51坪以上" name="roomsize" value="51坪以上" />
  159. <label for="51坪以上">51坪以上</label>
  160. </div>
  161. </div>
  162. <div class="list-group">
  163. <div class="list-group-item list-group-item-action active" aria-current="true">
  164. 預算
  165. </div>
  166. <div class="list-group-item list-group-item-action">
  167. <input class="budget ms-1" type="radio" id="預算不限" name="budget" value="預算不限" checked/>
  168. <label for="預算不限">不限</label>
  169. </div>
  170. <div class="list-group-item list-group-item-action">
  171. <input class="budget ms-1" type="radio" id="35萬以下" name="budget" value="35萬以下" />
  172. <label for="35萬以下">35萬以下</label>
  173. </div>
  174. <div class="list-group-item list-group-item-action">
  175. <input class="budget ms-1" type="radio" id="36~50萬" name="budget" value="36~50萬" />
  176. <label for="36~50萬">36~50萬</label>
  177. </div>
  178. <div class="list-group-item list-group-item-action">
  179. <input class="budget ms-1" type="radio" id="51~70萬" name="budget" value="51~70萬" />
  180. <label for="51~70萬">51~70萬</label>
  181. </div>
  182. <div class="list-group-item list-group-item-action">
  183. <input class="budget ms-1" type="radio" id="70~99萬" name="budget" value="70~99萬" />
  184. <label for="70~99萬">70~99萬</label>
  185. </div>
  186. <div class="list-group-item list-group-item-action">
  187. <input class="budget ms-1" type="radio" id="100萬以上" name="budget" value="100萬以上" />
  188. <label for="100萬以上">100萬以上</label>
  189. </div>
  190. </div>
  191. </div> -->
  192. <div class="col-md-12">
  193. <!-- 更新內容區塊 -->
  194. <div class="update_info row row-cols-1 row-cols-sm-3">
  195. {{ $paginator := .Paginate .Data.Pages }}
  196. {{ range $paginator.Pages }}
  197. <div class="col">
  198. <div class="card h-100">
  199. <a href="{{ .RelPermalink }}" style="color:#444444;">
  200. <amp-img
  201. alt="{{ .Title }}"
  202. src="{{ .Params.Image | relURL }}"
  203. height="1"
  204. width="1.4"
  205. layout="responsive">
  206. </amp-img>
  207. </a>
  208. <div class="card-body">
  209. <a href="{{ .RelPermalink }}" style="color:#444444;">
  210. <div class="title-size"><b>{{ .Title }}</b></div>
  211. </a>
  212. <p class="card-text" style="color:#4D4D4D;">{{ .Description | safeHTML }}</p>
  213. </div>
  214. </div>
  215. </div>
  216. {{ end }}
  217. </div>
  218. </div>
  219. </div>
  220. </div>
  221. </div>
  222. </div>
  223. </amp-script>
  224. {{ end }}