方诺官网改正版
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 

242 řádky
8.4 KiB

  1. <template>
  2. <div>
  3. <div class="intro-y flex flex-col sm:flex-row items-center mt-8">
  4. <h2 class="text-lg font-medium mr-auto">Blog Layout</h2>
  5. <div class="w-full sm:w-auto flex mt-4 sm:mt-0">
  6. <button class="button text-white bg-theme-1 shadow-md mr-2">
  7. Add New Post
  8. </button>
  9. <div class="dropdown ml-auto sm:ml-0">
  10. <button
  11. class="dropdown-toggle button px-2 box text-gray-700"
  12. >
  13. <span class="w-5 h-5 flex items-center justify-center">
  14. <PlusIcon class="w-4 h-4" />
  15. </span>
  16. </button>
  17. <div class="dropdown-box w-40">
  18. <div class="dropdown-box__content box p-2">
  19. <a
  20. class="flex items-center block p-2 transition duration-300 ease-in-out bg-white hover:bg-gray-200:bg-dark-2 rounded-md"
  21. >
  22. <Share2Icon class="w-4 h-4 mr-2" /> Share Post
  23. </a>
  24. <a
  25. class="flex items-center block p-2 transition duration-300 ease-in-out bg-white hover:bg-gray-200:bg-dark-2 rounded-md"
  26. >
  27. <DownloadIcon class="w-4 h-4 mr-2" /> Download Post
  28. </a>
  29. </div>
  30. </div>
  31. </div>
  32. </div>
  33. </div>
  34. <div class="intro-y grid grid-cols-12 gap-6 mt-5">
  35. <!-- BEGIN: Blog Layout -->
  36. <div
  37. v-for="(faker, fakerKey) in $_.take($f(), 6)"
  38. :key="fakerKey"
  39. class="intro-y blog col-span-12 md:col-span-6 box"
  40. >
  41. <div class="blog__preview image-fit">
  42. <img
  43. alt=""
  44. class="rounded-t-md"
  45. :src="require(`@/assets/images/${faker.images[0]}`)"
  46. />
  47. <div class="absolute w-full flex items-center px-5 pt-6 z-10">
  48. <div class="w-10 h-10 flex-none image-fit">
  49. <img
  50. alt=""
  51. class="rounded-full"
  52. :src="require(`@/assets/images/${faker.photos[0]}`)"
  53. />
  54. </div>
  55. <div class="ml-3 text-white mr-auto">
  56. <a class="font-medium">{{ faker.users[0].name }}</a>
  57. <div class="text-xs">{{ faker.formatted_times[0] }}</div>
  58. </div>
  59. <div class="dropdown ml-3">
  60. <a
  61. href="javascript:;"
  62. class="blog__action dropdown-toggle w-8 h-8 flex items-center justify-center rounded-full"
  63. >
  64. <MoreVerticalIcon class="w-4 h-4 text-white" />
  65. </a>
  66. <div class="dropdown-box w-40">
  67. <div class="dropdown-box__content box p-2">
  68. <a
  69. class="flex items-center block p-2 transition duration-300 ease-in-out bg-white hover:bg-gray-200:bg-dark-2 rounded-md"
  70. >
  71. <Edit2Icon class="w-4 h-4 mr-2" /> Edit Post
  72. </a>
  73. <a
  74. class="flex items-center block p-2 transition duration-300 ease-in-out bg-white hover:bg-gray-200:bg-dark-2 rounded-md"
  75. >
  76. <TrashIcon class="w-4 h-4 mr-2" /> Delete Post
  77. </a>
  78. </div>
  79. </div>
  80. </div>
  81. </div>
  82. <div class="absolute bottom-0 text-white px-5 pb-6 z-10">
  83. <span class="blog__category px-2 py-1 rounded">{{
  84. faker.products[0].category
  85. }}</span>
  86. <a class="block font-medium text-xl mt-3">{{
  87. faker.news[0].title
  88. }}</a>
  89. </div>
  90. </div>
  91. <div class="p-5 text-gray-700">
  92. {{ faker.news[0].short_content }}
  93. </div>
  94. <div
  95. class="flex items-center px-5 py-3 border-t border-gray-200"
  96. >
  97. <Tippy
  98. tag="a"
  99. class="intro-x w-8 h-8 flex items-center justify-center rounded-full border border-gray-500 text-gray-600 mr-2"
  100. content="Bookmark"
  101. >
  102. <BookmarkIcon class="w-3 h-3" />
  103. </Tippy>
  104. <div class="intro-x flex mr-2">
  105. <div class="intro-x w-8 h-8 image-fit">
  106. <Tippy
  107. tag="img"
  108. alt=""
  109. class="rounded-full border border-white zoom-in"
  110. :src="require(`@/assets/images/${faker.photos[0]}`)"
  111. :content="faker.users[0].name"
  112. />
  113. </div>
  114. <div class="intro-x w-8 h-8 image-fit -ml-4">
  115. <Tippy
  116. tag="img"
  117. alt=""
  118. class="rounded-full border border-white zoom-in"
  119. :src="require(`@/assets/images/${faker.photos[1]}`)"
  120. :content="faker.users[1].name"
  121. />
  122. </div>
  123. <div class="intro-x w-8 h-8 image-fit -ml-4">
  124. <Tippy
  125. tag="img"
  126. alt=""
  127. class="rounded-full border border-white zoom-in"
  128. :src="require(`@/assets/images/${faker.photos[2]}`)"
  129. :content="faker.users[2].name"
  130. />
  131. </div>
  132. </div>
  133. <Tippy
  134. tag="a"
  135. class="intro-x w-8 h-8 flex items-center justify-center rounded-full bg-theme-14 text-theme-10 ml-auto"
  136. content="Share"
  137. >
  138. <Share2Icon class="w-3 h-3" />
  139. </Tippy>
  140. <Tippy
  141. tag="a"
  142. class="intro-x w-8 h-8 flex items-center justify-center rounded-full bg-theme-1 text-white ml-2"
  143. content="Download PDF"
  144. >
  145. <ShareIcon class="w-3 h-3" />
  146. </Tippy>
  147. </div>
  148. <div class="px-5 pt-3 pb-5 border-t border-gray-200">
  149. <div class="w-full flex text-gray-600 text-xs sm:text-sm">
  150. <div class="mr-2">
  151. Comments:
  152. <span class="font-medium">{{ faker.totals[0] }}</span>
  153. </div>
  154. <div class="mr-2">
  155. Views: <span class="font-medium">{{ faker.totals[1] }}k</span>
  156. </div>
  157. <div class="ml-auto">
  158. Likes: <span class="font-medium">{{ faker.totals[2] }}k</span>
  159. </div>
  160. </div>
  161. <div class="w-full flex items-center mt-3">
  162. <div class="w-8 h-8 flex-none image-fit mr-3">
  163. <img
  164. alt=""
  165. class="rounded-full"
  166. :src="require(`@/assets/images/${faker.photos[0]}`)"
  167. />
  168. </div>
  169. <div class="flex-1 relative text-gray-700">
  170. <input
  171. type="text"
  172. class="input w-full rounded-full bg-gray-200 pr-10 placeholder-theme-13"
  173. placeholder="Post a comment..."
  174. />
  175. <SmileIcon
  176. class="w-4 h-4 absolute my-auto inset-y-0 mr-3 right-0"
  177. />
  178. </div>
  179. </div>
  180. </div>
  181. </div>
  182. <!-- END: Blog Layout -->
  183. <!-- BEGIN: Pagiantion -->
  184. <div
  185. class="intro-y col-span-12 flex flex-wrap sm:flex-row sm:flex-no-wrap items-center"
  186. >
  187. <ul class="pagination">
  188. <li>
  189. <a class="pagination__link" >
  190. <ChevronsLeftIcon class="w-4 h-4" />
  191. </a>
  192. </li>
  193. <li>
  194. <a class="pagination__link" >
  195. <ChevronLeftIcon class="w-4 h-4" />
  196. </a>
  197. </li>
  198. <li>
  199. <a class="pagination__link" >...</a>
  200. </li>
  201. <li>
  202. <a class="pagination__link" >1</a>
  203. </li>
  204. <li>
  205. <a class="pagination__link pagination__link--active" >2</a>
  206. </li>
  207. <li>
  208. <a class="pagination__link" >3</a>
  209. </li>
  210. <li>
  211. <a class="pagination__link" >...</a>
  212. </li>
  213. <li>
  214. <a class="pagination__link" >
  215. <ChevronRightIcon class="w-4 h-4" />
  216. </a>
  217. </li>
  218. <li>
  219. <a class="pagination__link" >
  220. <ChevronsRightIcon class="w-4 h-4" />
  221. </a>
  222. </li>
  223. </ul>
  224. <select class="w-20 input box mt-3 sm:mt-0">
  225. <option>10</option>
  226. <option>25</option>
  227. <option>35</option>
  228. <option>50</option>
  229. </select>
  230. </div>
  231. <!-- END: Pagiantion -->
  232. </div>
  233. </div>
  234. </template>