main.blade.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. @extends('mobile.layouts.app')
  2. @section('content')
  3. <div id="index" class="container">
  4. <section>
  5. <div class="row">
  6. <div class="col-lg-6 mb-2 mb-lg-0 notice">
  7. <div class="row align-items-end">
  8. <div class="col">
  9. 공지사항
  10. </div>
  11. <div class="col text-end">
  12. <a href="{{ route('board.list', 'notice') }}">전체보기</a>
  13. </div>
  14. </div>
  15. <hr/>
  16. <table class="table table-borderless">
  17. <colgroup>
  18. <col/>
  19. <col/>
  20. <col/>
  21. </colgroup>
  22. <tbody>
  23. @if($notice)
  24. @foreach($notice->list as $row)
  25. <tr>
  26. <td>
  27. <img src="/images/icon/notice.gif" alt="[공지]"/>
  28. </td>
  29. <td>
  30. <p class="ellip">
  31. @if($row->categoryName)
  32. <label>
  33. <a href="{{ $row->listURL }}?category={{ $row->board_category_id }}" rel="search">
  34. [{{ $row->categoryName }}]
  35. </a>
  36. </label>
  37. @endif
  38. <a href="{{ $row->viewURL }}" hreflang="ko" referrerpolicy="origin" type="text/html">{{ $row->subject }}</a>
  39. </p>
  40. </td>
  41. <td class="text-end">
  42. <small>{{ $row->createdAt }}</small>
  43. </td>
  44. </tr>
  45. @endforeach
  46. @else
  47. <tr>
  48. <td colspan="3" class="text-center p-2">
  49. 공지 글이 없습니다.
  50. </td>
  51. </tr>
  52. @endif
  53. </tbody>
  54. </table>
  55. </div>
  56. <div class="col-lg-6 mb-2 mb-lg-0 latest">
  57. <div class="row align-items-end">
  58. <div class="col">
  59. 최근 게시글
  60. </div>
  61. <div class="col text-end">
  62. <a href="/recently">전체보기</a>
  63. </div>
  64. </div>
  65. <hr/>
  66. <table class="table table-borderless">
  67. <tbody>
  68. @if($recent)
  69. @foreach($recent->list as $row)
  70. <tr>
  71. <td>
  72. <div class="row">
  73. <div class="col">
  74. <a href="{{ route('board.list', $row->code) }}" class="board-name">
  75. {{ $row->boardName }}
  76. </a>
  77. </div>
  78. <div class="col-auto text-end">
  79. <small>{{ $row->createdAt }}</small>
  80. </div>
  81. </div>
  82. <p class="ellip">
  83. @if($row->categoryName)
  84. <label>
  85. <a href="{{ $row->listURL }}?category={{ $row->board_category_id }}" rel="search">
  86. [{{ $row->categoryName }}]
  87. </a>
  88. </label>
  89. @endif
  90. @if($row->is_secret)
  91. <a href="{{ $row->viewURL }}" hreflang="ko" referrerpolicy="origin" type="text/html">
  92. <i class="fas fa-lock"></i> 비밀글입니다.
  93. </a>
  94. @elseif($row->isBlame)
  95. <i class="fas fa-ban"></i> <del>{{ $row->subject }}</del>
  96. @else
  97. <a href="{{ $row->viewURL }}" hreflang="ko" referrerpolicy="origin" type="text/html">{{ $row->subject }}</a>
  98. @endif
  99. @if($row->comment_rows > 0)
  100. <var>[{{ $row->comment_rows }}]</var>
  101. @endif
  102. @if($row->file_rows > 0)
  103. <i class="fas fa-save"></i>
  104. @endif
  105. @if($row->link_rows > 0)
  106. <i class="fas fa-external-link-alt"></i>
  107. @endif
  108. @if($row->image_rows > 0)
  109. <i class="fas fa-image"></i>
  110. @endif
  111. @if($row->isNew)
  112. <span class="badge bg-warning text-dark">New</span>
  113. @endif
  114. @if($row->isHot)
  115. <span class="badge bg-danger">Hot</span>
  116. @endif
  117. </p>
  118. </td>
  119. </tr>
  120. @endforeach
  121. @else
  122. <tr>
  123. <td colspan="3" class="text-center p-2">
  124. 최근 게시글이 없습니다.
  125. </td>
  126. </tr>
  127. @endif
  128. </tbody>
  129. </table>
  130. </div>
  131. </div>
  132. </section>
  133. <section class="photo">
  134. <div class="row align-items-end">
  135. <div class="col">
  136. 일상/풍경/사진
  137. </div>
  138. <div class="col text-end">
  139. <a href="{{ route('board.list', 'photo') }}">전체보기</a>
  140. </div>
  141. </div>
  142. <hr/>
  143. @if($photo && $photo->total > 0)
  144. <div class="d-flex flex-nowrap overflow-scroll photo-strip">
  145. @foreach($photo->list as $row)
  146. <figure class="figure h-100 d-flex flex-column">
  147. @if($row->thumbnail)
  148. <a href="{{ $row->viewURL }}" hreflang="ko" referrerpolicy="origin" type="text/html" target="_self" class="ratio ratio-4x3">
  149. <img src="{{ $row->thumbnail }}" class="figure-img img-fluid rounded object-fit-cover" alt="{{ $row->subject }}" onerror="this.src='{{ NO_IMAGE_NORMAL_SRC }}'"/>
  150. </a>
  151. @endif
  152. <figcaption class="figure-caption">
  153. @if($row->categoryName)
  154. <label>
  155. <a href="{{ $row->listURL }}?category={{ $row->board_category_id }}" rel="search">
  156. [{{ $row->categoryName }}]
  157. </a>
  158. </label>
  159. @endif
  160. @if($row->is_secret)
  161. <a href="{{ $row->viewURL }}" hreflang="ko" referrerpolicy="origin" type="text/html" target="_self">
  162. <i class="fas fa-lock"></i> 비밀글입니다.
  163. </a>
  164. @elseif($row->isBlame)
  165. <i class="fas fa-ban"></i> <del>{{ $row->subject }}</del>
  166. @else
  167. <a href="{{ $row->viewURL }}" hreflang="ko" referrerpolicy="origin" type="text/html" target="_self">{{ $row->subject }}</a>
  168. @endif
  169. @if($row->comment_rows > 0)
  170. <var>[{{ $row->comment_rows }}]</var>
  171. @endif
  172. @if($row->file_rows > 0)
  173. <i class="fas fa-save"></i>
  174. @endif
  175. @if($row->link_rows > 0)
  176. <i class="fas fa-external-link-alt"></i>
  177. @endif
  178. @if($row->image_rows > 0)
  179. <i class="fas fa-image"></i>
  180. @endif
  181. @if($row->isNew)
  182. <span class="badge bg-warning text-dark">New</span>
  183. @endif
  184. @if($row->isHot)
  185. <span class="badge bg-danger">Hot</span>
  186. @endif
  187. </figcaption>
  188. </figure>
  189. @endforeach
  190. </div>
  191. @else
  192. <div class="text-center p-2">
  193. 사진 글이 없습니다.
  194. </div>
  195. @endif
  196. </section>
  197. <section class="news">
  198. <div class="row pt-2 align-items-end">
  199. <div class="col">
  200. 주요 기사
  201. </div>
  202. <div class="col text-end">
  203. </div>
  204. </div>
  205. <hr/>
  206. <div class="row">
  207. @if($news)
  208. @foreach($news as $new)
  209. @break($loop->index == 8)
  210. <div class="col-sm-2 col-sm-6 col-xl-3 mb-1">
  211. <a href="{{ $new['link'] }}" class="d-flex" title="{{ $new['title'] }}" target="_blank">
  212. <div class="flex-shrink-0">
  213. @isset($new['thumbnail'])
  214. <div class="thumb">
  215. <img src="{!! $new['thumbnail'] !!}" class="rounded" alt="{{ $new['title'] }}">
  216. </div>
  217. @endisset
  218. </div>
  219. <div class="flex-grow-1 ms-3">
  220. <p class="fw-bold">{{ $new['title'] }}</p>
  221. <small class="text-muted">{{ $new['source'] ?? null }}</small>
  222. </div>
  223. </a>
  224. </div>
  225. @endforeach
  226. @endif
  227. </div>
  228. </section>
  229. <hr/>
  230. <section>
  231. <div class="row">
  232. <div class="col-lg-3">
  233. <fxwidget-cc amount="1000" decimals="0" large="false" shadow="true" symbol="true" grouping="true" from="KRW" to="USD" background-color="#000000" lang="ko" border-radius="0.2"></fxwidget-cc>
  234. </div>
  235. <div class="col-lg-3">
  236. <fxwidget-er inverse="true" amount="1000" decimals="0" large="false" shadow="false" symbol="true" flag="true" changes="true" grouping="true" main-curr="KRW" sel-curr="EUR,USD,GBP,CAD,AUD,CNY,JPY,HKD" background-color="#000000" border="true" border-radius="0" separator="," decimal-point="."></fxwidget-er>
  237. </div>
  238. <div class="col-lg-6 align-self-end">
  239. <div id="ww_d8c9e8037d02a" v='1.3' loc='auto' a='{"t":"responsive","lang":"ko","sl_lpl":1,"ids":[],"font":"Arial","sl_ics":"one_a","sl_sot":"celsius","cl_bkg":"#000000","cl_font":"#FFFFFF","cl_cloud":"#FFFFFF","cl_persp":"#81D4FA","cl_sun":"#FFC107","cl_moon":"#FFC107","cl_thund":"#FF5722","cl_odd":"#FFFFFF17"}'>Weather Data Source: <a href="https://wetterlang.de/" id="ww_d8c9e8037d02a_u" target="_blank">Wettervorhersage 30 tage</a></div>
  240. </div>
  241. </div>
  242. </section>
  243. </div>
  244. <script async src="https://s.fx-w.io/widgets/currency-converter/latest.js?ko"></script>
  245. <script async src="https://s.fx-w.io/widgets/exchange-rates/latest.js?ko"></script>
  246. <script async src="https://app1.weatherwidget.org/js/?id=ww_d8c9e8037d02a"></script>
  247. @endsection
  248. @push('styles')
  249. <link rel="stylesheet" href="{{ asset('css/mobile/main.css') }}"/>
  250. @endpush