index.blade.php 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453
  1. @extends('blog.layouts.app')
  2. @section('title', $user["nickName"])
  3. @section('content')
  4. <section class="article-list">
  5. @foreach ($posts as $post)
  6. <article class="">
  7. <header class="article-header">
  8. <div class="article-details">
  9. <header class="article-category">
  10. <a href="https://demo.stack.jimmycai.com/categories/themes/">
  11. Themes
  12. </a>
  13. <a href="https://demo.stack.jimmycai.com/categories/syntax/">
  14. Syntax
  15. </a>
  16. </header>
  17. <div class="article-title-wrapper">
  18. <h2 class="article-title">
  19. <a
  20. href="{{ route('library.book.read', $post['uid']) }}">{{ $post->title }}</a>
  21. </h2>
  22. <h3 class="article-subtitle">
  23. {{ $post->summary }}
  24. </h3>
  25. </div>
  26. <footer class="article-time">
  27. <div>
  28. <svg
  29. xmlns="http://www.w3.org/2000/svg"
  30. class="icon icon-tabler icon-tabler-calendar-time"
  31. width="56"
  32. height="56"
  33. viewBox="0 0 24 24"
  34. stroke-width="2"
  35. stroke="currentColor"
  36. fill="none"
  37. stroke-linecap="round"
  38. stroke-linejoin="round">
  39. <path stroke="none" d="M0 0h24v24H0z"></path>
  40. <path
  41. d="M11.795 21h-6.795a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v4"></path>
  42. <circle cx="18" cy="18" r="4"></circle>
  43. <path d="M15 3v4"></path>
  44. <path d="M7 3v4"></path>
  45. <path d="M3 11h16"></path>
  46. <path d="M18 16.496v1.504l1 1"></path>
  47. </svg>
  48. <time class="article-time--published">{{ $post->formatted_updated_at }}</time>
  49. </div>
  50. <div>
  51. <svg
  52. xmlns="http://www.w3.org/2000/svg"
  53. class="icon icon-tabler icon-tabler-clock"
  54. width="24"
  55. height="24"
  56. viewBox="0 0 24 24"
  57. stroke-width="2"
  58. stroke="currentColor"
  59. fill="none"
  60. stroke-linecap="round"
  61. stroke-linejoin="round">
  62. <path stroke="none" d="M0 0h24v24H0z"></path>
  63. <circle cx="12" cy="12" r="9"></circle>
  64. <polyline points="12 7 12 12 15 15"></polyline>
  65. </svg>
  66. <time class="article-time--reading"> 3 minute read </time>
  67. </div>
  68. </footer>
  69. </div>
  70. </header>
  71. </article>
  72. @endforeach
  73. <article class="has-image">
  74. <header class="article-header">
  75. <div class="article-image">
  76. <a href="https://demo.stack.jimmycai.com/p/hello-world/">
  77. <img
  78. src="./Hugo Theme Stack Starter_files/cover_hu13459586684579990428.jpg"
  79. srcset="
  80. /p/hello-world/cover_hu13459586684579990428.jpg 800w,
  81. /p/hello-world/cover_hu3425483315149503896.jpg 1600w
  82. "
  83. width="800"
  84. height="534"
  85. loading="lazy"
  86. alt="Featured image of post Hello World" />
  87. </a>
  88. </div>
  89. <div class="article-details">
  90. <header class="article-category">
  91. <a
  92. href="https://demo.stack.jimmycai.com/categories/example-category/"
  93. style="background-color: #2a9d8f; color: #fff">
  94. Example Category
  95. </a>
  96. </header>
  97. <div class="article-title-wrapper">
  98. <h2 class="article-title">
  99. <a href="https://demo.stack.jimmycai.com/p/hello-world/">Hello World</a>
  100. </h2>
  101. <h3 class="article-subtitle">Welcome to Hugo Theme Stack</h3>
  102. </div>
  103. <footer class="article-time">
  104. <div>
  105. <svg
  106. xmlns="http://www.w3.org/2000/svg"
  107. class="icon icon-tabler icon-tabler-calendar-time"
  108. width="56"
  109. height="56"
  110. viewBox="0 0 24 24"
  111. stroke-width="2"
  112. stroke="currentColor"
  113. fill="none"
  114. stroke-linecap="round"
  115. stroke-linejoin="round">
  116. <path stroke="none" d="M0 0h24v24H0z"></path>
  117. <path
  118. d="M11.795 21h-6.795a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v4"></path>
  119. <circle cx="18" cy="18" r="4"></circle>
  120. <path d="M15 3v4"></path>
  121. <path d="M7 3v4"></path>
  122. <path d="M3 11h16"></path>
  123. <path d="M18 16.496v1.504l1 1"></path>
  124. </svg>
  125. <time class="article-time--published">Mar 06, 2022</time>
  126. </div>
  127. <div>
  128. <svg
  129. xmlns="http://www.w3.org/2000/svg"
  130. class="icon icon-tabler icon-tabler-clock"
  131. width="24"
  132. height="24"
  133. viewBox="0 0 24 24"
  134. stroke-width="2"
  135. stroke="currentColor"
  136. fill="none"
  137. stroke-linecap="round"
  138. stroke-linejoin="round">
  139. <path stroke="none" d="M0 0h24v24H0z"></path>
  140. <circle cx="12" cy="12" r="9"></circle>
  141. <polyline points="12 7 12 12 15 15"></polyline>
  142. </svg>
  143. <time class="article-time--reading"> 1 minute read </time>
  144. </div>
  145. </footer>
  146. </div>
  147. </header>
  148. </article>
  149. <article class="">
  150. <header class="article-header">
  151. <div class="article-details">
  152. <header class="article-category">
  153. <a href="https://demo.stack.jimmycai.com/categories/themes/">
  154. Themes
  155. </a>
  156. <a href="https://demo.stack.jimmycai.com/categories/syntax/">
  157. Syntax
  158. </a>
  159. </header>
  160. <div class="article-title-wrapper">
  161. <h2 class="article-title">
  162. <a
  163. href="https://demo.stack.jimmycai.com/p/markdown-syntax-guide/">Markdown Syntax Guide</a>
  164. </h2>
  165. <h3 class="article-subtitle">
  166. Sample article showcasing basic Markdown syntax and
  167. formatting for HTML elements.
  168. </h3>
  169. </div>
  170. <footer class="article-time">
  171. <div>
  172. <svg
  173. xmlns="http://www.w3.org/2000/svg"
  174. class="icon icon-tabler icon-tabler-calendar-time"
  175. width="56"
  176. height="56"
  177. viewBox="0 0 24 24"
  178. stroke-width="2"
  179. stroke="currentColor"
  180. fill="none"
  181. stroke-linecap="round"
  182. stroke-linejoin="round">
  183. <path stroke="none" d="M0 0h24v24H0z"></path>
  184. <path
  185. d="M11.795 21h-6.795a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v4"></path>
  186. <circle cx="18" cy="18" r="4"></circle>
  187. <path d="M15 3v4"></path>
  188. <path d="M7 3v4"></path>
  189. <path d="M3 11h16"></path>
  190. <path d="M18 16.496v1.504l1 1"></path>
  191. </svg>
  192. <time class="article-time--published">Sep 07, 2023</time>
  193. </div>
  194. <div>
  195. <svg
  196. xmlns="http://www.w3.org/2000/svg"
  197. class="icon icon-tabler icon-tabler-clock"
  198. width="24"
  199. height="24"
  200. viewBox="0 0 24 24"
  201. stroke-width="2"
  202. stroke="currentColor"
  203. fill="none"
  204. stroke-linecap="round"
  205. stroke-linejoin="round">
  206. <path stroke="none" d="M0 0h24v24H0z"></path>
  207. <circle cx="12" cy="12" r="9"></circle>
  208. <polyline points="12 7 12 12 15 15"></polyline>
  209. </svg>
  210. <time class="article-time--reading"> 3 minute read </time>
  211. </div>
  212. </footer>
  213. </div>
  214. </header>
  215. </article>
  216. <article class="has-image">
  217. <header class="article-header">
  218. <div class="article-image">
  219. <a href="https://demo.stack.jimmycai.com/p/image-gallery/">
  220. <img
  221. src="./Hugo Theme Stack Starter_files/2_hu3578945376017100738.jpg"
  222. srcset="
  223. /p/image-gallery/2_hu3578945376017100738.jpg 800w,
  224. /p/image-gallery/2_hu15750790370579438.jpg 1600w
  225. "
  226. width="800"
  227. height="1200"
  228. loading="lazy"
  229. alt="Featured image of post Image gallery" />
  230. </a>
  231. </div>
  232. <div class="article-details">
  233. <div class="article-title-wrapper">
  234. <h2 class="article-title">
  235. <a href="https://demo.stack.jimmycai.com/p/image-gallery/">Image gallery</a>
  236. </h2>
  237. <h3 class="article-subtitle">
  238. Create beautiful interactive image gallery using Markdown
  239. </h3>
  240. </div>
  241. <footer class="article-time">
  242. <div>
  243. <svg
  244. xmlns="http://www.w3.org/2000/svg"
  245. class="icon icon-tabler icon-tabler-calendar-time"
  246. width="56"
  247. height="56"
  248. viewBox="0 0 24 24"
  249. stroke-width="2"
  250. stroke="currentColor"
  251. fill="none"
  252. stroke-linecap="round"
  253. stroke-linejoin="round">
  254. <path stroke="none" d="M0 0h24v24H0z"></path>
  255. <path
  256. d="M11.795 21h-6.795a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v4"></path>
  257. <circle cx="18" cy="18" r="4"></circle>
  258. <path d="M15 3v4"></path>
  259. <path d="M7 3v4"></path>
  260. <path d="M3 11h16"></path>
  261. <path d="M18 16.496v1.504l1 1"></path>
  262. </svg>
  263. <time class="article-time--published">Aug 26, 2023</time>
  264. </div>
  265. <div>
  266. <svg
  267. xmlns="http://www.w3.org/2000/svg"
  268. class="icon icon-tabler icon-tabler-clock"
  269. width="24"
  270. height="24"
  271. viewBox="0 0 24 24"
  272. stroke-width="2"
  273. stroke="currentColor"
  274. fill="none"
  275. stroke-linecap="round"
  276. stroke-linejoin="round">
  277. <path stroke="none" d="M0 0h24v24H0z"></path>
  278. <circle cx="12" cy="12" r="9"></circle>
  279. <polyline points="12 7 12 12 15 15"></polyline>
  280. </svg>
  281. <time class="article-time--reading"> 1 minute read </time>
  282. </div>
  283. </footer>
  284. </div>
  285. </header>
  286. </article>
  287. <article class="has-image">
  288. <header class="article-header">
  289. <div class="article-image">
  290. <a href="https://demo.stack.jimmycai.com/p/shortcodes/">
  291. <img
  292. src="./Hugo Theme Stack Starter_files/cover_hu5876910065799140332.jpg"
  293. srcset="
  294. /p/shortcodes/cover_hu5876910065799140332.jpg 800w,
  295. /p/shortcodes/cover_hu14584859319700861491.jpg 1600w
  296. "
  297. width="800"
  298. height="533"
  299. loading="lazy"
  300. alt="Featured image of post Shortcodes" />
  301. </a>
  302. </div>
  303. <div class="article-details">
  304. <div class="article-title-wrapper">
  305. <h2 class="article-title">
  306. <a href="https://demo.stack.jimmycai.com/p/shortcodes/">Shortcodes</a>
  307. </h2>
  308. <h3 class="article-subtitle">
  309. Useful shortcodes that can be used in Markdown
  310. </h3>
  311. </div>
  312. <footer class="article-time">
  313. <div>
  314. <svg
  315. xmlns="http://www.w3.org/2000/svg"
  316. class="icon icon-tabler icon-tabler-calendar-time"
  317. width="56"
  318. height="56"
  319. viewBox="0 0 24 24"
  320. stroke-width="2"
  321. stroke="currentColor"
  322. fill="none"
  323. stroke-linecap="round"
  324. stroke-linejoin="round">
  325. <path stroke="none" d="M0 0h24v24H0z"></path>
  326. <path
  327. d="M11.795 21h-6.795a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v4"></path>
  328. <circle cx="18" cy="18" r="4"></circle>
  329. <path d="M15 3v4"></path>
  330. <path d="M7 3v4"></path>
  331. <path d="M3 11h16"></path>
  332. <path d="M18 16.496v1.504l1 1"></path>
  333. </svg>
  334. <time class="article-time--published">Aug 25, 2023</time>
  335. </div>
  336. <div>
  337. <svg
  338. xmlns="http://www.w3.org/2000/svg"
  339. class="icon icon-tabler icon-tabler-clock"
  340. width="24"
  341. height="24"
  342. viewBox="0 0 24 24"
  343. stroke-width="2"
  344. stroke="currentColor"
  345. fill="none"
  346. stroke-linecap="round"
  347. stroke-linejoin="round">
  348. <path stroke="none" d="M0 0h24v24H0z"></path>
  349. <circle cx="12" cy="12" r="9"></circle>
  350. <polyline points="12 7 12 12 15 15"></polyline>
  351. </svg>
  352. <time class="article-time--reading"> 1 minute read </time>
  353. </div>
  354. </footer>
  355. </div>
  356. </header>
  357. </article>
  358. <article class="">
  359. <header class="article-header">
  360. <div class="article-details">
  361. <div class="article-title-wrapper">
  362. <h2 class="article-title">
  363. <a
  364. href="https://demo.stack.jimmycai.com/p/math-typesetting/">Math Typesetting</a>
  365. </h2>
  366. <h3 class="article-subtitle">Math typesetting using KaTeX</h3>
  367. </div>
  368. <footer class="article-time">
  369. <div>
  370. <svg
  371. xmlns="http://www.w3.org/2000/svg"
  372. class="icon icon-tabler icon-tabler-calendar-time"
  373. width="56"
  374. height="56"
  375. viewBox="0 0 24 24"
  376. stroke-width="2"
  377. stroke="currentColor"
  378. fill="none"
  379. stroke-linecap="round"
  380. stroke-linejoin="round">
  381. <path stroke="none" d="M0 0h24v24H0z"></path>
  382. <path
  383. d="M11.795 21h-6.795a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v4"></path>
  384. <circle cx="18" cy="18" r="4"></circle>
  385. <path d="M15 3v4"></path>
  386. <path d="M7 3v4"></path>
  387. <path d="M3 11h16"></path>
  388. <path d="M18 16.496v1.504l1 1"></path>
  389. </svg>
  390. <time class="article-time--published">Aug 24, 2023</time>
  391. </div>
  392. <div>
  393. <svg
  394. xmlns="http://www.w3.org/2000/svg"
  395. class="icon icon-tabler icon-tabler-clock"
  396. width="24"
  397. height="24"
  398. viewBox="0 0 24 24"
  399. stroke-width="2"
  400. stroke="currentColor"
  401. fill="none"
  402. stroke-linecap="round"
  403. stroke-linejoin="round">
  404. <path stroke="none" d="M0 0h24v24H0z"></path>
  405. <circle cx="12" cy="12" r="9"></circle>
  406. <polyline points="12 7 12 12 15 15"></polyline>
  407. </svg>
  408. <time class="article-time--reading"> 1 minute read </time>
  409. </div>
  410. </footer>
  411. </div>
  412. </header>
  413. </article>
  414. </section>
  415. @endsection