方诺官网改正版
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

354 lines
13 KiB

  1. <template>
  2. <div class="grid grid-cols-12 gap-6 mt-8">
  3. <div class="col-span-12 lg:col-span-3 xxl:col-span-2">
  4. <h2 class="intro-y text-lg font-medium mr-auto mt-2">Inbox</h2>
  5. <!-- BEGIN: Inbox Menu -->
  6. <div class="intro-y box bg-theme-1 p-5 mt-6">
  7. <button
  8. type="button"
  9. class="button button--lg flex items-center justify-center text-gray-700 w-full bg-white mt-2"
  10. >
  11. <Edit3Icon class="w-4 h-4 mr-2" /> Compose
  12. </button>
  13. <div
  14. class="border-t border-theme-3 mt-6 pt-6 text-white"
  15. >
  16. <a
  17. href=""
  18. class="flex items-center px-3 py-2 rounded-md bg-theme-22 font-medium"
  19. >
  20. <MailIcon class="w-4 h-4 mr-2" /> Inbox
  21. </a>
  22. <a href="" class="flex items-center px-3 py-2 mt-2 rounded-md">
  23. <StarIcon class="w-4 h-4 mr-2" /> Marked
  24. </a>
  25. <a href="" class="flex items-center px-3 py-2 mt-2 rounded-md">
  26. <InboxIcon class="w-4 h-4 mr-2" /> Draft
  27. </a>
  28. <a href="" class="flex items-center px-3 py-2 mt-2 rounded-md">
  29. <SendIcon class="w-4 h-4 mr-2" /> Sent
  30. </a>
  31. <a href="" class="flex items-center px-3 py-2 mt-2 rounded-md">
  32. <TrashIcon class="w-4 h-4 mr-2" /> Trash
  33. </a>
  34. </div>
  35. <div
  36. class="border-t border-theme-3 mt-5 pt-5 text-white"
  37. >
  38. <a href="" class="flex items-center px-3 py-2 truncate">
  39. <div class="w-2 h-2 bg-theme-11 rounded-full mr-3"></div>
  40. Custom Work
  41. </a>
  42. <a
  43. href=""
  44. class="flex items-center px-3 py-2 mt-2 rounded-md truncate"
  45. >
  46. <div class="w-2 h-2 bg-theme-9 rounded-full mr-3"></div>
  47. Important Meetings
  48. </a>
  49. <a
  50. href=""
  51. class="flex items-center px-3 py-2 mt-2 rounded-md truncate"
  52. >
  53. <div class="w-2 h-2 bg-theme-12 rounded-full mr-3"></div>
  54. Work
  55. </a>
  56. <a
  57. href=""
  58. class="flex items-center px-3 py-2 mt-2 rounded-md truncate"
  59. >
  60. <div class="w-2 h-2 bg-theme-11 rounded-full mr-3"></div>
  61. Design
  62. </a>
  63. <a
  64. href=""
  65. class="flex items-center px-3 py-2 mt-2 rounded-md truncate"
  66. >
  67. <div class="w-2 h-2 bg-theme-6 rounded-full mr-3"></div>
  68. Next Week
  69. </a>
  70. <a
  71. href=""
  72. class="flex items-center px-3 py-2 mt-2 rounded-md truncate"
  73. >
  74. <PlusIcon class="w-4 h-4 mr-2" /> Add New Label
  75. </a>
  76. </div>
  77. </div>
  78. <!-- END: Inbox Menu -->
  79. </div>
  80. <div class="col-span-12 lg:col-span-9 xxl:col-span-10">
  81. <!-- BEGIN: Inbox Filter -->
  82. <div class="intro-y flex flex-col-reverse sm:flex-row items-center">
  83. <div class="w-full sm:w-auto relative mr-auto mt-3 sm:mt-0">
  84. <SearchIcon
  85. class="w-4 h-4 absolute my-auto inset-y-0 ml-3 left-0 z-10 text-gray-700"
  86. />
  87. <input
  88. type="text"
  89. class="input w-full sm:w-64 box px-10 text-gray-700 placeholder-theme-13"
  90. placeholder="Search mail"
  91. />
  92. <div
  93. class="inbox-filter dropdown absolute inset-y-0 mr-3 right-0 flex items-center"
  94. data-placement="bottom-start"
  95. >
  96. <ChevronDownIcon
  97. class="dropdown-toggle w-4 h-4 cursor-pointer text-gray-700"
  98. />
  99. <div class="inbox-filter__dropdown-box dropdown-box pt-2">
  100. <div class="dropdown-box__content box p-5">
  101. <div class="grid grid-cols-12 gap-4 row-gap-3">
  102. <div class="col-span-6">
  103. <div class="text-xs">From</div>
  104. <input
  105. type="text"
  106. class="input w-full border mt-2 flex-1"
  107. placeholder="example@gmail.com"
  108. />
  109. </div>
  110. <div class="col-span-6">
  111. <div class="text-xs">To</div>
  112. <input
  113. type="text"
  114. class="input w-full border mt-2 flex-1"
  115. placeholder="example@gmail.com"
  116. />
  117. </div>
  118. <div class="col-span-6">
  119. <div class="text-xs">Subject</div>
  120. <input
  121. type="text"
  122. class="input w-full border mt-2 flex-1"
  123. placeholder="Important Meeting"
  124. />
  125. </div>
  126. <div class="col-span-6">
  127. <div class="text-xs">Has the Words</div>
  128. <input
  129. type="text"
  130. class="input w-full border mt-2 flex-1"
  131. placeholder="Job, Work, Documentation"
  132. />
  133. </div>
  134. <div class="col-span-6">
  135. <div class="text-xs">Doesn't Have</div>
  136. <input
  137. type="text"
  138. class="input w-full border mt-2 flex-1"
  139. placeholder="Job, Work, Documentation"
  140. />
  141. </div>
  142. <div class="col-span-6">
  143. <div class="text-xs">Size</div>
  144. <select class="input w-full border mt-2 flex-1">
  145. <option>10</option>
  146. <option>25</option>
  147. <option>35</option>
  148. <option>50</option>
  149. </select>
  150. </div>
  151. <div class="col-span-12 flex items-center mt-3">
  152. <button
  153. class="button w-32 justify-center block bg-gray-200 text-gray-600 ml-auto"
  154. >
  155. Create Filter
  156. </button>
  157. <button
  158. class="button w-32 justify-center block bg-theme-1 text-white ml-2"
  159. >
  160. Search
  161. </button>
  162. </div>
  163. </div>
  164. </div>
  165. </div>
  166. </div>
  167. </div>
  168. <div class="w-full sm:w-auto flex">
  169. <button class="button text-white bg-theme-1 shadow-md mr-2">
  170. Start a Video Call
  171. </button>
  172. <div class="dropdown">
  173. <button
  174. class="dropdown-toggle button px-2 box text-gray-700"
  175. >
  176. <span class="w-5 h-5 flex items-center justify-center">
  177. <PlusIcon class="w-4 h-4" />
  178. </span>
  179. </button>
  180. <div class="dropdown-box w-40">
  181. <div class="dropdown-box__content box p-2">
  182. <a
  183. href=""
  184. class="flex items-center block p-2 transition duration-300 ease-in-out bg-white hover:bg-gray-200:bg-dark-2 rounded-md"
  185. >
  186. <UserIcon class="w-4 h-4 mr-2" /> Contacts
  187. </a>
  188. <a
  189. href=""
  190. class="flex items-center block p-2 transition duration-300 ease-in-out bg-white hover:bg-gray-200:bg-dark-2 rounded-md"
  191. >
  192. <SettingsIcon class="w-4 h-4 mr-2" /> Settings
  193. </a>
  194. </div>
  195. </div>
  196. </div>
  197. </div>
  198. </div>
  199. <!-- END: Inbox Filter -->
  200. <!-- BEGIN: Inbox Content -->
  201. <div class="intro-y inbox box mt-5">
  202. <div
  203. class="p-5 flex flex-col-reverse sm:flex-row text-gray-600 border-b border-gray-200"
  204. >
  205. <div
  206. class="flex items-center mt-3 sm:mt-0 border-t sm:border-0 border-gray-200 pt-5 sm:pt-0 mt-5 sm:mt-0 -mx-5 sm:mx-0 px-5 sm:px-0"
  207. >
  208. <input class="input border border-gray-500" type="checkbox" />
  209. <div class="dropdown ml-1" data-placement="bottom-start">
  210. <a
  211. class="dropdown-toggle w-5 h-5 block"
  212. href="javascript:;"
  213. >
  214. <ChevronDownIcon class="w-5 h-5" />
  215. </a>
  216. <div class="dropdown-box w-32">
  217. <div class="dropdown-box__content box p-2">
  218. <a
  219. href=""
  220. class="flex items-center block p-2 transition duration-300 ease-in-out bg-white hover:bg-gray-200:bg-dark-2 rounded-md"
  221. >All</a
  222. >
  223. <a
  224. href=""
  225. class="flex items-center block p-2 transition duration-300 ease-in-out bg-white hover:bg-gray-200:bg-dark-2 rounded-md"
  226. >None</a
  227. >
  228. <a
  229. href=""
  230. class="flex items-center block p-2 transition duration-300 ease-in-out bg-white hover:bg-gray-200:bg-dark-2 rounded-md"
  231. >Read</a
  232. >
  233. <a
  234. href=""
  235. class="flex items-center block p-2 transition duration-300 ease-in-out bg-white hover:bg-gray-200:bg-dark-2 rounded-md"
  236. >Unread</a
  237. >
  238. <a
  239. href=""
  240. class="flex items-center block p-2 transition duration-300 ease-in-out bg-white hover:bg-gray-200:bg-dark-2 rounded-md"
  241. >Starred</a
  242. >
  243. <a
  244. href=""
  245. class="flex items-center block p-2 transition duration-300 ease-in-out bg-white hover:bg-gray-200:bg-dark-2 rounded-md"
  246. >Unstarred</a
  247. >
  248. </div>
  249. </div>
  250. </div>
  251. <a
  252. href="javascript:;"
  253. class="w-5 h-5 ml-5 flex items-center justify-center"
  254. >
  255. <RefreshCwIcon class="w-4 h-4" />
  256. </a>
  257. <a
  258. href="javascript:;"
  259. class="w-5 h-5 ml-5 flex items-center justify-center"
  260. >
  261. <MoreHorizontalIcon class="w-4 h-4" />
  262. </a>
  263. </div>
  264. <div class="flex items-center sm:ml-auto">
  265. <div class="dark:text-gray-300">1 - 50 of 5,238</div>
  266. <a
  267. href="javascript:;"
  268. class="w-5 h-5 ml-5 flex items-center justify-center"
  269. >
  270. <ChevronLeftIcon class="w-4 h-4" />
  271. </a>
  272. <a
  273. href="javascript:;"
  274. class="w-5 h-5 ml-5 flex items-center justify-center"
  275. >
  276. <ChevronRightIcon class="w-4 h-4" />
  277. </a>
  278. <a
  279. href="javascript:;"
  280. class="w-5 h-5 ml-5 flex items-center justify-center"
  281. >
  282. <SettingsIcon class="w-4 h-4" />
  283. </a>
  284. </div>
  285. </div>
  286. <div class="overflow-x-auto sm:overflow-x-visible">
  287. <div
  288. v-for="(faker, fakerKey) in $f()"
  289. :key="fakerKey"
  290. class="intro-y"
  291. >
  292. <div
  293. class="inbox__item inline-block sm:block text-gray-700 bg-gray-100 border-b border-gray-200"
  294. :class="{ 'inbox__item--active': faker.true_false[0] }"
  295. >
  296. <div class="flex px-5 py-3">
  297. <div class="w-56 flex-none flex items-center mr-10">
  298. <input
  299. class="input flex-none border border-gray-500"
  300. type="checkbox"
  301. :checked="faker.true_false[0]"
  302. />
  303. <a
  304. href="javascript:;"
  305. class="w-5 h-5 flex-none ml-4 flex items-center justify-center text-gray-500"
  306. >
  307. <StarIcon class="w-4 h-4" />
  308. </a>
  309. <a
  310. href="javascript:;"
  311. class="w-5 h-5 flex-none ml-2 flex items-center justify-center text-gray-500"
  312. >
  313. <BookmarkIcon class="w-4 h-4" />
  314. </a>
  315. <div class="w-6 h-6 flex-none image-fit relative ml-5">
  316. <img
  317. alt=""
  318. class="rounded-full"
  319. :src="require(`@/assets/images/${faker.photos[0]}`)"
  320. />
  321. </div>
  322. <div class="inbox__item--sender truncate ml-3">
  323. {{ faker.users[0].name }}
  324. </div>
  325. </div>
  326. <div class="w-64 sm:w-auto truncate">
  327. <span class="inbox__item--highlight">{{
  328. faker.news[0].super_short_content
  329. }}</span>
  330. {{ faker.news[0].short_content }}
  331. </div>
  332. <div class="inbox__item--time whitespace-no-wrap ml-auto pl-10">
  333. {{ faker.times[0] }}
  334. </div>
  335. </div>
  336. </div>
  337. </div>
  338. </div>
  339. <div
  340. class="p-5 flex flex-col sm:flex-row items-center text-center sm:text-left text-gray-600"
  341. >
  342. <div class="dark:text-gray-300">
  343. 4.41 GB (25%) of 17 GB used Manage
  344. </div>
  345. <div class="sm:ml-auto mt-2 sm:mt-0">
  346. Last account activity: 36 minutes ago
  347. </div>
  348. </div>
  349. </div>
  350. <!-- END: Inbox Content -->
  351. </div>
  352. </div>
  353. </template>