App.vue 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. <template>
  2. <div>
  3. <Categories
  4. :categories="categories"
  5. @active="key => current = key"
  6. />
  7. <List
  8. v-for="(value, key) in themes"
  9. v-show="current === 'all' || current === key"
  10. :key="key"
  11. :title="categories[key]"
  12. :themes="value"
  13. />
  14. </div>
  15. </template>
  16. <script setup>
  17. import { ref } from 'vue'
  18. import Categories from './components/Categories'
  19. import List from './components/List'
  20. const current = ref('all')
  21. const categories = {
  22. all: 'All Themes',
  23. admin: 'Admin & Dashboards',
  24. css: 'CSS Frameworks',
  25. vue: 'Vuejs',
  26. others: 'Others'
  27. }
  28. const themes = {
  29. admin: [
  30. {
  31. name: 'Light Bootstrap Dashboard Pro',
  32. desc: 'Responsive Bootstrap 4 Admin Template.',
  33. img: '/assets/images/light-bootstrap.jpg',
  34. url: 'https://secure.2checkout.com/affiliate.php?ACCOUNT=CREATIV&AFFILIATE=117417&PATH=https%3A%2F%2Fwww.creative-tim.com%2Fproduct%2Flight-bootstrap-dashboard-pro%3FAFFILIATE%3D117417',
  35. demo: 'https://secure.2checkout.com/affiliate.php?ACCOUNT=CREATIV&AFFILIATE=117417&PATH=https%3A%2F%2Fdemos.creative-tim.com%2Flight-bootstrap-dashboard-pro%2Fexamples%2Ftables%2Fbootstrap-table.html%3FAFFILIATE%3D117417',
  36. price: '$39'
  37. },
  38. {
  39. name: 'Paper Dashboard Pro',
  40. desc: 'Premium Bootstrap Admin Template.',
  41. img: '/assets/images/pager-dashboard.jpg',
  42. url: 'https://secure.2checkout.com/affiliate.php?ACCOUNT=CREATIV&AFFILIATE=117417&PATH=https%3A%2F%2Fwww.creative-tim.com%2Fproduct%2Fpaper-dashboard-pro%3FAFFILIATE%3D117417',
  43. demo: 'https://secure.2checkout.com/affiliate.php?ACCOUNT=CREATIV&AFFILIATE=117417&PATH=https%3A%2F%2Fdemos.creative-tim.com%2Fpaper-dashboard-pro%2Fexamples%2Ftables%2Fbootstrap-table.html%3FAFFILIATE%3D117417',
  44. price: '$39'
  45. },
  46. {
  47. name: 'Ubold',
  48. desc: 'Admin & Dashboard Template.',
  49. img: 'https://themeforest.img.customer.envatousercontent.com/files/273195428/01_ubold.__large_preview.jpg?auto=compress%2Cformat&q=80&fit=crop&crop=top&max-h=8000&max-w=590&s=a1318683a895fcf026cecd3e0b74d97b',
  50. url: 'https://1.envato.market/5EnJ2',
  51. demo: 'https://1.envato.market/kEWdL',
  52. price: '$29'
  53. },
  54. {
  55. name: 'Metronic',
  56. desc: 'Bootstrap 4, Angular 8, React Admin Dashboard Theme.',
  57. img: 'https://themeforest.img.customer.envatousercontent.com/files/276839308/plyushka.__large_preview.jpg?auto=compress%2Cformat&q=80&fit=crop&crop=top&max-h=8000&max-w=590&s=b7f0504d8697450845aa1d2f71a8c80b',
  58. url: 'https://1.envato.market/KmzbN',
  59. demo: 'https://1.envato.market/7qMPg',
  60. price: '$35'
  61. },
  62. {
  63. name: 'Pages',
  64. desc: 'Admin Dashboard Template with Angular 6, Bootstrap 4 & HTML.',
  65. img: 'https://themeforest.img.customer.envatousercontent.com/files/253934566/preview.__large_preview.png?auto=compress%2Cformat&q=80&fit=crop&crop=top&max-h=8000&max-w=590&s=bcc481514196e409152ae30e8668f0eb',
  66. url: 'https://1.envato.market/LB26M',
  67. demo: 'https://1.envato.market/q9yMY',
  68. price: '$24'
  69. }
  70. ],
  71. css: [
  72. {
  73. name: 'Bootstrap v5',
  74. desc: 'The most popular HTML, CSS, and JavaScript framework.',
  75. img: '/assets/images/bootstrap5.jpg',
  76. url: '/docs/getting-started/introduction/',
  77. demo: 'https://examples.bootstrap-table.com/index.html?bootstrap5',
  78. price: ''
  79. },
  80. {
  81. name: 'Bootstrap v4',
  82. desc: 'The most popular HTML, CSS, and JavaScript framework.',
  83. img: '/assets/images/bootstrap4.jpg',
  84. url: '/themes/bootstrap4/',
  85. demo: 'https://examples.bootstrap-table.com/',
  86. price: ''
  87. },
  88. {
  89. name: 'Bootstrap v3',
  90. desc: 'The most popular HTML, CSS, and JavaScript framework.',
  91. img: '/assets/images/bootstrap3.jpg',
  92. url: '/themes/bootstrap3/',
  93. demo: 'https://examples.bootstrap-table.com/index.html?bootstrap3',
  94. price: ''
  95. },
  96. {
  97. name: 'Bootstrap Table',
  98. desc: 'Our custom theme of Bootstrap Table.',
  99. img: '/assets/images/bootstrap-table.jpg',
  100. url: '/themes/bootstrap-table/',
  101. demo: 'https://examples.bootstrap-table.com/index.html?bootstrap-table',
  102. price: ''
  103. },
  104. {
  105. name: 'Semantic UI',
  106. desc: 'UI component framework based around useful principles from natural language.',
  107. img: '/assets/images/semantic.jpg',
  108. url: '/themes/semantic/',
  109. demo: 'https://examples.bootstrap-table.com/index.html?semantic',
  110. price: ''
  111. },
  112. {
  113. name: 'Bulma',
  114. desc: 'Modern CSS framework based on Flexbox.',
  115. img: '/assets/images/bulma.jpg',
  116. url: '/themes/bulma/',
  117. demo: 'https://examples.bootstrap-table.com/index.html?bulma',
  118. price: ''
  119. },
  120. {
  121. name: 'Materialize',
  122. desc: 'A modern responsive front-end framework based on Material Design.',
  123. img: '/assets/images/materialize.jpg',
  124. url: '/themes/materialize/',
  125. demo: 'https://examples.bootstrap-table.com/index.html?materialize',
  126. price: ''
  127. },
  128. {
  129. name: 'Foundation',
  130. desc: 'The most advanced responsive front-end framework in the world.',
  131. img: '/assets/images/foundation.jpg',
  132. url: '/themes/foundation/',
  133. demo: 'https://examples.bootstrap-table.com/index.html?foundation',
  134. price: ''
  135. }
  136. ],
  137. vue: [
  138. {
  139. name: 'Element Table',
  140. desc: 'An extended table to integration with bootstrap-table and element-ui.',
  141. img: '/assets/images/element-table.jpg',
  142. url: 'https://element.bootstrap-table.com/',
  143. demo: 'https://element.bootstrap-table.com/',
  144. price: ''
  145. }
  146. ],
  147. others: [
  148. {
  149. name: 'Fresh Bootstrap Table',
  150. desc: 'Fresh Bootstrap Table Template.',
  151. img: '/assets/images/fresh-table.jpg',
  152. url: 'https://secure.2checkout.com/affiliate.php?ACCOUNT=CREATIV&AFFILIATE=117417&PATH=https%3A%2F%2Fwww.creative-tim.com%2Fproduct%2Ffresh-bootstrap-table%3FAFFILIATE%3D117417',
  153. demo: 'https://wenzhixin.github.io/fresh-bootstrap-table/compact-table.html',
  154. price: ''
  155. }
  156. ]
  157. }
  158. </script>
  159. <style>
  160. .bs-tooltip-top .arrow::before {
  161. border-top-color: #FAE5A8;
  162. }
  163. .tooltip-inner {
  164. background: #FAE5A8;
  165. color: #724729;
  166. }
  167. </style>