Tailwind.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. <template>
  2. <!-- <main class="relative min-h-screen bg-gray-100"> -->
  3. <main class="py-8 overflow-x-hidden overflow-y-hidden bg-gradient-to-r from-blue-100 to-blue-300">
  4. <div class="max-w-3xl mx-auto px-4 sm:px-6 lg:max-w-7xl lg:px-8">
  5. <h1 class="sr-only">Profile</h1>
  6. <!-- Main 3 column grid -->
  7. <div class="grid grid-cols-1 gap-4 items-start lg:grid-cols-3 lg:gap-8">
  8. <!-- Left column -->
  9. <div class="grid grid-cols-1 gap-4 lg:col-span-2">
  10. <!-- Welcome panel -->
  11. <section aria-labelledby="profile-overview-title">
  12. <div class="rounded-lg bg-white overflow-hidden shadow">
  13. <h2 class="sr-only" id="profile-overview-title">Profile Overview</h2>
  14. <div class="bg-white p-6">
  15. <div class="sm:flex sm:items-center sm:justify-between">
  16. <div class="sm:flex sm:space-x-5">
  17. <div class="flex-shrink-0">
  18. <img
  19. class="mx-auto h-20 w-20 rounded-full"
  20. src="~/assets/img/logos/Tailwind_CSS_Logo.svg.png"
  21. alt=""
  22. />
  23. </div>
  24. <div class="mt-4 text-center sm:mt-0 sm:pt-1 sm:text-left">
  25. <p class="text-sm font-medium text-gray-600">
  26. Connected to Mainnet
  27. </p>
  28. <p class="text-xl font-bold text-gray-900 sm:text-2xl">
  29. Tailwind CSS
  30. </p>
  31. <p class="text-sm font-medium text-gray-600">
  32. TBD
  33. </p>
  34. </div>
  35. </div>
  36. <div class="mt-5 flex justify-center sm:mt-0">
  37. <a href="javascript://" class="flex justify-center items-center px-4 py-2 border border-gray-300 shadow-sm text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">
  38. Test MetaMask
  39. </a>
  40. <a href="javascript://" class="flex justify-center items-center px-4 py-2 border border-gray-300 shadow-sm text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">
  41. Test Signing
  42. </a>
  43. </div>
  44. </div>
  45. </div>
  46. <div class="border-t border-gray-200 bg-gray-50 grid grid-cols-1 divide-y divide-gray-200 sm:grid-cols-3 sm:divide-y-0 sm:divide-x">
  47. <div class="px-6 py-5 text-sm font-medium text-center">
  48. <span class="block text-gray-600">Latest Block Height</span>
  49. <span class="block text-gray-900">displayBlockHeight</span>
  50. </div>
  51. <div class="px-6 py-5 text-sm font-medium text-center">
  52. <span class="block text-gray-600">Last Block Validator</span>
  53. <span class="block text-gray-900">n/a</span>
  54. </div>
  55. <div class="px-6 py-5 text-sm font-medium text-center">
  56. <span class="block text-gray-600">Next Difficulty Adjustment</span>
  57. <span class="block text-gray-900">n/a</span>
  58. </div>
  59. </div>
  60. </div>
  61. </section>
  62. <!-- Actions panel -->
  63. <section aria-labelledby="quick-links-title">
  64. <div class="rounded-lg bg-gray-200 overflow-hidden shadow divide-y divide-gray-200 sm:divide-y-0 sm:grid sm:grid-cols-2 sm:gap-px">
  65. <h2 class="sr-only" id="quick-links-title">Quick links</h2>
  66. <div class="rounded-tl-lg rounded-tr-lg sm:rounded-tr-none relative group bg-white p-6 focus-within:ring-2 focus-within:ring-inset focus-within:ring-cyan-500">
  67. <div>
  68. <span class="rounded-lg inline-flex p-3 bg-teal-50 text-teal-700 ring-4 ring-white">
  69. <!-- Heroicon name: outline/clock -->
  70. <svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">
  71. <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z" />
  72. </svg>
  73. </span>
  74. </div>
  75. <div class="mt-8">
  76. <h3 class="text-lg font-medium">
  77. <a href="javascript://" class="focus:outline-none">
  78. <!-- Extend touch target to entire panel -->
  79. <span class="absolute inset-0" aria-hidden="true"></span>
  80. Getting Started
  81. </a>
  82. </h3>
  83. <p class="mt-2 text-sm text-gray-500">
  84. Doloribus dolores nostrum quia qui natus officia quod et dolorem. Sit repellendus qui ut at blanditiis et quo et molestiae.
  85. </p>
  86. </div>
  87. <span class="pointer-events-none absolute top-6 right-6 text-gray-300 group-hover:text-gray-400" aria-hidden="true">
  88. <svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24">
  89. <path
  90. d="M20 4h1a1 1 0 00-1-1v1zm-1 12a1 1 0 102 0h-2zM8 3a1 1 0 000 2V3zM3.293 19.293a1 1 0 101.414 1.414l-1.414-1.414zM19 4v12h2V4h-2zm1-1H8v2h12V3zm-.707.293l-16 16 1.414 1.414 16-16-1.414-1.414z"
  91. />
  92. </svg>
  93. </span>
  94. </div>
  95. <div class="sm:rounded-tr-lg relative group bg-white p-6 focus-within:ring-2 focus-within:ring-inset focus-within:ring-cyan-500">
  96. <div>
  97. <span class="rounded-lg inline-flex p-3 bg-purple-50 text-purple-700 ring-4 ring-white">
  98. <!-- Heroicon name: outline/badge-check -->
  99. <svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">
  100. <path
  101. stroke-linecap="round"
  102. stroke-linejoin="round"
  103. stroke-width="2"
  104. d="M9 12l2 2 4-4M7.835 4.697a3.42 3.42 0 001.946-.806 3.42 3.42 0 014.438 0 3.42 3.42 0 001.946.806 3.42 3.42 0 013.138 3.138 3.42 3.42 0 00.806 1.946 3.42 3.42 0 010 4.438 3.42 3.42 0 00-.806 1.946 3.42 3.42 0 01-3.138 3.138 3.42 3.42 0 00-1.946.806 3.42 3.42 0 01-4.438 0 3.42 3.42 0 00-1.946-.806 3.42 3.42 0 01-3.138-3.138 3.42 3.42 0 00-.806-1.946 3.42 3.42 0 010-4.438 3.42 3.42 0 00.806-1.946 3.42 3.42 0 013.138-3.138z"
  105. />
  106. </svg>
  107. </span>
  108. </div>
  109. <div class="mt-8">
  110. <h3 class="text-lg font-medium">
  111. <NuxtLink to="/smartbch/contracts" class="focus:outline-none">
  112. <!-- Extend touch target to entire panel -->
  113. <span class="absolute inset-0" aria-hidden="true"></span>
  114. Notable Contracts
  115. </NuxtLink>
  116. </h3>
  117. <p class="mt-2 text-sm text-gray-500">
  118. Doloribus dolores nostrum quia qui natus officia quod et dolorem. Sit repellendus qui ut at blanditiis et quo et molestiae.
  119. </p>
  120. </div>
  121. <span class="pointer-events-none absolute top-6 right-6 text-gray-300 group-hover:text-gray-400" aria-hidden="true">
  122. <svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24">
  123. <path
  124. d="M20 4h1a1 1 0 00-1-1v1zm-1 12a1 1 0 102 0h-2zM8 3a1 1 0 000 2V3zM3.293 19.293a1 1 0 101.414 1.414l-1.414-1.414zM19 4v12h2V4h-2zm1-1H8v2h12V3zm-.707.293l-16 16 1.414 1.414 16-16-1.414-1.414z"
  125. />
  126. </svg>
  127. </span>
  128. </div>
  129. <div class="relative group bg-white p-6 focus-within:ring-2 focus-within:ring-inset focus-within:ring-cyan-500">
  130. <div>
  131. <span class="rounded-lg inline-flex p-3 bg-sky-50 text-sky-700 ring-4 ring-white">
  132. <!-- Heroicon name: outline/users -->
  133. <svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">
  134. <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z" />
  135. </svg>
  136. </span>
  137. </div>
  138. <div class="mt-8">
  139. <h3 class="text-lg font-medium">
  140. <NuxtLink to="/snippets/sol" class="focus:outline-none">
  141. <!-- Extend touch target to entire panel -->
  142. <span class="absolute inset-0" aria-hidden="true"></span>
  143. Solidity Code Snippets
  144. </NuxtLink>
  145. </h3>
  146. <p class="mt-2 text-sm text-gray-500">
  147. Doloribus dolores nostrum quia qui natus officia quod et dolorem. Sit repellendus qui ut at blanditiis et quo et molestiae.
  148. </p>
  149. </div>
  150. <span class="pointer-events-none absolute top-6 right-6 text-gray-300 group-hover:text-gray-400" aria-hidden="true">
  151. <svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24">
  152. <path
  153. d="M20 4h1a1 1 0 00-1-1v1zm-1 12a1 1 0 102 0h-2zM8 3a1 1 0 000 2V3zM3.293 19.293a1 1 0 101.414 1.414l-1.414-1.414zM19 4v12h2V4h-2zm1-1H8v2h12V3zm-.707.293l-16 16 1.414 1.414 16-16-1.414-1.414z"
  154. />
  155. </svg>
  156. </span>
  157. </div>
  158. <div class="relative group bg-white p-6 focus-within:ring-2 focus-within:ring-inset focus-within:ring-cyan-500">
  159. <div>
  160. <span class="rounded-lg inline-flex p-3 bg-yellow-50 text-yellow-700 ring-4 ring-white">
  161. <!-- Heroicon name: outline/cash -->
  162. <svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">
  163. <path
  164. stroke-linecap="round"
  165. stroke-linejoin="round"
  166. stroke-width="2"
  167. d="M17 9V7a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2m2 4h10a2 2 0 002-2v-6a2 2 0 00-2-2H9a2 2 0 00-2 2v6a2 2 0 002 2zm7-5a2 2 0 11-4 0 2 2 0 014 0z"
  168. />
  169. </svg>
  170. </span>
  171. </div>
  172. <div class="mt-8">
  173. <h3 class="text-lg font-medium">
  174. <NuxtLink to="/smartbch/exchange" class="focus:outline-none">
  175. <!-- Extend touch target to entire panel -->
  176. <span class="absolute inset-0" aria-hidden="true"></span>
  177. Exchange
  178. </NuxtLink>
  179. </h3>
  180. <p class="mt-2 text-sm text-gray-500">
  181. Doloribus dolores nostrum quia qui natus officia quod et dolorem. Sit repellendus qui ut at blanditiis et quo et molestiae.
  182. </p>
  183. </div>
  184. <span class="pointer-events-none absolute top-6 right-6 text-gray-300 group-hover:text-gray-400" aria-hidden="true">
  185. <svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24">
  186. <path
  187. d="M20 4h1a1 1 0 00-1-1v1zm-1 12a1 1 0 102 0h-2zM8 3a1 1 0 000 2V3zM3.293 19.293a1 1 0 101.414 1.414l-1.414-1.414zM19 4v12h2V4h-2zm1-1H8v2h12V3zm-.707.293l-16 16 1.414 1.414 16-16-1.414-1.414z"
  188. />
  189. </svg>
  190. </span>
  191. </div>
  192. <div class="sm:rounded-bl-lg relative group bg-white p-6 focus-within:ring-2 focus-within:ring-inset focus-within:ring-cyan-500">
  193. <div>
  194. <span class="rounded-lg inline-flex p-3 bg-rose-50 text-rose-700 ring-4 ring-white">
  195. <!-- Heroicon name: outline/receipt-refund -->
  196. <svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">
  197. <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 15v-1a4 4 0 00-4-4H8m0 0l3 3m-3-3l3-3m9 14V5a2 2 0 00-2-2H6a2 2 0 00-2 2v16l4-2 4 2 4-2 4 2z" />
  198. </svg>
  199. </span>
  200. </div>
  201. <div class="mt-8">
  202. <h3 class="text-lg font-medium">
  203. <NuxtLink to="/smartbch/verify" class="focus:outline-none">
  204. <!-- Extend touch target to entire panel -->
  205. <span class="absolute inset-0" aria-hidden="true"></span>
  206. Contract Verification
  207. </NuxtLink>
  208. </h3>
  209. <p class="mt-2 text-sm text-gray-500">
  210. Quickly and easily verify your smart contracts are deployed with the proper bytecode.
  211. </p>
  212. </div>
  213. <span class="pointer-events-none absolute top-6 right-6 text-gray-300 group-hover:text-gray-400" aria-hidden="true">
  214. <svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24">
  215. <path
  216. d="M20 4h1a1 1 0 00-1-1v1zm-1 12a1 1 0 102 0h-2zM8 3a1 1 0 000 2V3zM3.293 19.293a1 1 0 101.414 1.414l-1.414-1.414zM19 4v12h2V4h-2zm1-1H8v2h12V3zm-.707.293l-16 16 1.414 1.414 16-16-1.414-1.414z"
  217. />
  218. </svg>
  219. </span>
  220. </div>
  221. <div class="rounded-bl-lg rounded-br-lg sm:rounded-bl-none relative group bg-white p-6 focus-within:ring-2 focus-within:ring-inset focus-within:ring-cyan-500">
  222. <div>
  223. <span class="rounded-lg inline-flex p-3 bg-indigo-50 text-indigo-700 ring-4 ring-white">
  224. <!-- Heroicon name: outline/academic-cap -->
  225. <svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">
  226. <path d="M12 14l9-5-9-5-9 5 9 5z" />
  227. <path d="M12 14l6.16-3.422a12.083 12.083 0 01.665 6.479A11.952 11.952 0 0012 20.055a11.952 11.952 0 00-6.824-2.998 12.078 12.078 0 01.665-6.479L12 14z" />
  228. <path
  229. stroke-linecap="round"
  230. stroke-linejoin="round"
  231. stroke-width="2"
  232. d="M12 14l9-5-9-5-9 5 9 5zm0 0l6.16-3.422a12.083 12.083 0 01.665 6.479A11.952 11.952 0 0012 20.055a11.952 11.952 0 00-6.824-2.998 12.078 12.078 0 01.665-6.479L12 14zm-4 6v-7.5l4-2.222"
  233. />
  234. </svg>
  235. </span>
  236. </div>
  237. <div class="mt-8">
  238. <h3 class="text-lg font-medium">
  239. <a href="javascript://" class="focus:outline-none">
  240. <!-- Extend touch target to entire panel -->
  241. <span class="absolute inset-0" aria-hidden="true"></span>
  242. Hire A Developer
  243. </a>
  244. </h3>
  245. <p class="mt-2 text-sm text-gray-500">
  246. Doloribus dolores nostrum quia qui natus officia quod et dolorem. Sit repellendus qui ut at blanditiis et quo et molestiae.
  247. </p>
  248. </div>
  249. <span class="pointer-events-none absolute top-6 right-6 text-gray-300 group-hover:text-gray-400" aria-hidden="true">
  250. <svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24">
  251. <path
  252. d="M20 4h1a1 1 0 00-1-1v1zm-1 12a1 1 0 102 0h-2zM8 3a1 1 0 000 2V3zM3.293 19.293a1 1 0 101.414 1.414l-1.414-1.414zM19 4v12h2V4h-2zm1-1H8v2h12V3zm-.707.293l-16 16 1.414 1.414 16-16-1.414-1.414z"
  253. />
  254. </svg>
  255. </span>
  256. </div>
  257. </div>
  258. </section>
  259. </div>
  260. <!-- Right column -->
  261. <div class="grid grid-cols-1 gap-4">
  262. <span>
  263. Tailwind CSS is an open source CSS framework.
  264. <a href="https://tailwindcss.com/" target="_blank" class="text-blue-900 font-medium hover:underline">https://tailwindcss.com</a>
  265. </span>
  266. The main feature of this library is that, unlike other CSS frameworks like Bootstrap, it does not provide a series of predefined classes for elements such as buttons or tables.
  267. Instead, it creates a list of "utility" CSS classes that can be used to style each element by mixing and matching.
  268. </div>
  269. </div>
  270. </div>
  271. </main>
  272. </template>