list.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  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. <div class="row" style="padding-top:60px;">
  6. <div class="col-md-10 mx-auto">
  7. <h1 class="post-title mb-5">{{ .Title }}</h1>
  8. </div>
  9. </div>
  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-9">
  73. <!-- 更新內容區塊 -->
  74. <div class="row row-cols-1 row-cols-sm-3">
  75. {{ $paginator := .Paginate .Data.Pages }}
  76. {{ range $paginator.Pages }}
  77. <div class="col">
  78. <div class="card h-100">
  79. <a href="{{ .Permalink }}" style="color:#444444;">
  80. <img src="{{ .Params.Image | relURL }}" class="card-img-top" alt="{{ .Title }}">
  81. </a>
  82. <div class="card-body">
  83. <a href="{{ .Permalink }}" style="color:#444444;">
  84. <h3 class="card-title"><b>{{ .Title }}</b></h3>
  85. </a>
  86. <p class="card-text">{{ .Description }}</p>
  87. </div>
  88. </div>
  89. </div>
  90. {{ end }}
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. <!-- 電腦版 -->
  96. <div class="d-none d-md-block">
  97. <div class="row">
  98. <div class="col-md-3">
  99. <div class="mb-4 list-group">
  100. <div class="list-group-item list-group-item-action active" aria-current="true">
  101. 風格
  102. </div>
  103. <div class="list-group-item list-group-item-action">
  104. <input class="style ms-1" type="radio" id="風格不限" name="style" value="風格不限" checked/>
  105. <label for="風格不限">不限</label>
  106. </div>
  107. <div class="list-group-item list-group-item-action">
  108. <input class="style ms-1" type="radio" id="北歐風" name="style" value="北歐風" />
  109. <label for="北歐風">北歐風</label>
  110. </div>
  111. <div class="list-group-item list-group-item-action">
  112. <input class="style ms-1" type="radio" id="現代風" name="style" value="現代風" />
  113. <label for="現代風">現代風</label>
  114. </div>
  115. <div class="list-group-item list-group-item-action">
  116. <input class="style ms-1" type="radio" id="日式風" name="style" value="日式風"/>
  117. <label for="日式風">日式風</label>
  118. </div>
  119. <div class="list-group-item list-group-item-action">
  120. <input class="style ms-1" type="radio" id="工業風" name="style" value="工業風"/>
  121. <label for="工業風">工業風</label>
  122. </div>
  123. <div class="list-group-item list-group-item-action">
  124. <input class="style ms-1" type="radio" id="混搭風" name="style" value="混搭風"/>
  125. <label for="混搭風">混搭風</label>
  126. </div>
  127. </div>
  128. <div class="mb-4 list-group">
  129. <div class="list-group-item list-group-item-action active" aria-current="true">
  130. 坪數
  131. </div>
  132. <div class="list-group-item list-group-item-action">
  133. <input class="roomsize ms-1" type="radio" id="坪數不限" name="roomsize" value="坪數不限" checked/>
  134. <label for="坪數不限">不限</label>
  135. </div>
  136. <div class="list-group-item list-group-item-action">
  137. <input class="roomsize ms-1" type="radio" id="10~20坪" name="roomsize" value="10~20坪" />
  138. <label for="10~20坪">10~20坪</label>
  139. </div>
  140. <div class="list-group-item list-group-item-action">
  141. <input class="roomsize ms-1" type="radio" id="21~30坪" name="roomsize" value="21~30坪" />
  142. <label for="21~30坪">21~30坪</label>
  143. </div>
  144. <div class="list-group-item list-group-item-action">
  145. <input class="roomsize ms-1" type="radio" id="31~40坪" name="roomsize" value="31~40坪" />
  146. <label for="31~40坪">31~40坪</label>
  147. </div>
  148. <div class="list-group-item list-group-item-action">
  149. <input class="roomsize ms-1" type="radio" id="41~50坪" name="roomsize" value="41~50坪" />
  150. <label for="41~50坪">41~50坪</label>
  151. </div>
  152. <div class="list-group-item list-group-item-action">
  153. <input class="roomsize ms-1" type="radio" id="51坪以上" name="roomsize" value="51坪以上" />
  154. <label for="51坪以上">51坪以上</label>
  155. </div>
  156. </div>
  157. <div class="list-group">
  158. <div class="list-group-item list-group-item-action active" aria-current="true">
  159. 預算
  160. </div>
  161. <div class="list-group-item list-group-item-action">
  162. <input class="budget ms-1" type="radio" id="預算不限" name="budget" value="預算不限" checked/>
  163. <label for="預算不限">不限</label>
  164. </div>
  165. <div class="list-group-item list-group-item-action">
  166. <input class="budget ms-1" type="radio" id="35萬以下" name="budget" value="35萬以下" />
  167. <label for="35萬以下">35萬以下</label>
  168. </div>
  169. <div class="list-group-item list-group-item-action">
  170. <input class="budget ms-1" type="radio" id="36~50萬" name="budget" value="36~50萬" />
  171. <label for="36~50萬">36~50萬</label>
  172. </div>
  173. <div class="list-group-item list-group-item-action">
  174. <input class="budget ms-1" type="radio" id="51~70萬" name="budget" value="51~70萬" />
  175. <label for="51~70萬">51~70萬</label>
  176. </div>
  177. <div class="list-group-item list-group-item-action">
  178. <input class="budget ms-1" type="radio" id="70~99萬" name="budget" value="70~99萬" />
  179. <label for="70~99萬">70~99萬</label>
  180. </div>
  181. <div class="list-group-item list-group-item-action">
  182. <input class="budget ms-1" type="radio" id="100萬以上" name="budget" value="100萬以上" />
  183. <label for="100萬以上">100萬以上</label>
  184. </div>
  185. </div>
  186. </div>
  187. <div class="col-md-9">
  188. <!-- 更新內容區塊 -->
  189. <div class="update_info row row-cols-1 row-cols-sm-3">
  190. {{ $paginator := .Paginate .Data.Pages }}
  191. {{ range $paginator.Pages }}
  192. <div class="col">
  193. <div class="card h-100">
  194. <a href="{{ .Permalink }}" target="_blank">
  195. <img src="{{ .Params.Image | relURL }}" class="card-img-top" alt="{{ .Title }}">
  196. </a>
  197. <div class="card-body">
  198. <a href="{{ .Permalink }}" target="_blank">
  199. <h3 class="card-title"><b>{{ .Title }}</b></h3>
  200. </a>
  201. <p class="card-text">{{ .Description }}</p>
  202. </div>
  203. </div>
  204. </div>
  205. {{ end }}
  206. </div>
  207. </div>
  208. </div>
  209. </div>
  210. </div>
  211. </div>
  212. </amp-script>
  213. {{ end }}