App.vue 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <template>
  2. <div>
  3. <Categories
  4. :categories="categories"
  5. @active="onActive"
  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>
  17. import Categories from './components/Categories'
  18. import List from './components/List'
  19. export default {
  20. name: 'App',
  21. components: {
  22. Categories,
  23. List
  24. },
  25. data () {
  26. return {
  27. current: 'all',
  28. categories: {
  29. all: 'All Themes',
  30. admin: 'Admin & Dashboards',
  31. css: 'CSS Frameworks',
  32. vue: 'Vuejs',
  33. others: 'Others'
  34. },
  35. themes: {
  36. admin: [
  37. {
  38. name: 'Light Bootstrap Dashboard Pro',
  39. desc: 'Responsive Bootstrap 4 Admin Template.',
  40. img: '/assets/images/light-bootstrap.jpg',
  41. 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',
  42. 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',
  43. price: '$39'
  44. },
  45. {
  46. name: 'Paper Dashboard Pro',
  47. desc: 'Premium Bootstrap Admin Template.',
  48. img: '/assets/images/pager-dashboard.jpg',
  49. 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',
  50. 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',
  51. price: '$39'
  52. },
  53. {
  54. name: 'Remark',
  55. desc: 'Responsive Bootstrap 4 Admin Template.',
  56. img: 'https://themeforest.img.customer.envatousercontent.com/files/256697282/Preview.__large_preview.png?auto=compress%2Cformat&q=80&fit=crop&crop=top&max-h=8000&max-w=590&s=c4340f8d5e70cd6fb77fd5b2f670b486',
  57. url: 'https://1.envato.market/j0mdP',
  58. demo: 'https://1.envato.market/PEbGe',
  59. price: '$24'
  60. },
  61. {
  62. name: 'Ubold',
  63. desc: 'Admin & Dashboard Template.',
  64. 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',
  65. url: 'https://1.envato.market/5EnJ2',
  66. demo: 'https://1.envato.market/kEWdL',
  67. price: '$29'
  68. },
  69. {
  70. name: 'Metronic',
  71. desc: 'Bootstrap 4, Angular 8, React Admin Dashboard Theme.',
  72. 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',
  73. url: 'https://1.envato.market/KmzbN',
  74. demo: 'https://1.envato.market/7qMPg',
  75. price: '$35'
  76. },
  77. {
  78. name: 'Pages',
  79. desc: 'Admin Dashboard Template with Angular 6, Bootstrap 4 & HTML.',
  80. 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',
  81. url: 'https://1.envato.market/LB26M',
  82. demo: 'https://1.envato.market/q9yMY',
  83. price: '$24'
  84. }
  85. ],
  86. css: [
  87. {
  88. name: 'Bootstrap v5',
  89. desc: 'The most popular HTML, CSS, and JavaScript framework.',
  90. img: '/assets/images/bootstrap5.jpg',
  91. url: '/docs/getting-started/introduction/',
  92. demo: 'https://examples.bootstrap-table.com/index.html?bootstrap5',
  93. price: ''
  94. },
  95. {
  96. name: 'Bootstrap v4',
  97. desc: 'The most popular HTML, CSS, and JavaScript framework.',
  98. img: '/assets/images/bootstrap4.jpg',
  99. url: '/themes/bootstrap4/',
  100. demo: 'https://examples.bootstrap-table.com/',
  101. price: ''
  102. },
  103. {
  104. name: 'Bootstrap v3',
  105. desc: 'The most popular HTML, CSS, and JavaScript framework.',
  106. img: '/assets/images/bootstrap3.jpg',
  107. url: '/themes/bootstrap3/',
  108. demo: 'https://examples.bootstrap-table.com/index.html?bootstrap3',
  109. price: ''
  110. },
  111. {
  112. name: 'Bootstrap Table',
  113. desc: 'Our custom theme of Bootstrap Table.',
  114. img: '/assets/images/bootstrap-table.jpg',
  115. url: '/themes/bootstrap-table/',
  116. demo: 'https://examples.bootstrap-table.com/index.html?bootstrap-table',
  117. price: ''
  118. },
  119. {
  120. name: 'Semantic UI',
  121. desc: 'UI component framework based around useful principles from natural language.',
  122. img: '/assets/images/semantic.jpg',
  123. url: '/themes/semantic/',
  124. demo: 'https://examples.bootstrap-table.com/index.html?semantic',
  125. price: ''
  126. },
  127. {
  128. name: 'Bulma',
  129. desc: 'Modern CSS framework based on Flexbox.',
  130. img: '/assets/images/bulma.jpg',
  131. url: '/themes/bulma/',
  132. demo: 'https://examples.bootstrap-table.com/index.html?bulma',
  133. price: ''
  134. },
  135. {
  136. name: 'Materialize',
  137. desc: 'A modern responsive front-end framework based on Material Design.',
  138. img: '/assets/images/materialize.jpg',
  139. url: '/themes/materialize/',
  140. demo: 'https://examples.bootstrap-table.com/index.html?materialize',
  141. price: ''
  142. },
  143. {
  144. name: 'Foundation',
  145. desc: 'The most advanced responsive front-end framework in the world.',
  146. img: '/assets/images/foundation.jpg',
  147. url: '/themes/foundation/',
  148. demo: 'https://examples.bootstrap-table.com/index.html?foundation',
  149. price: ''
  150. }
  151. ],
  152. vue: [
  153. {
  154. name: 'Element Table',
  155. desc: 'An extended table to integration with bootstrap-table and element-ui.',
  156. img: '/assets/images/element-table.jpg',
  157. url: 'https://element.bootstrap-table.com/',
  158. demo: 'https://element.bootstrap-table.com/',
  159. price: ''
  160. }
  161. ],
  162. others: [
  163. {
  164. name: 'Fresh Bootstrap Table',
  165. desc: 'Fresh Bootstrap Table Template.',
  166. img: '/assets/images/fresh-table.jpg',
  167. 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',
  168. demo: 'https://wenzhixin.github.io/fresh-bootstrap-table/compact-table.html',
  169. price: ''
  170. }
  171. ]
  172. }
  173. }
  174. },
  175. methods: {
  176. onActive (current) {
  177. this.current = current
  178. }
  179. }
  180. }
  181. </script>
  182. <style>
  183. .bs-tooltip-top .arrow::before {
  184. border-top-color: #FAE5A8;
  185. }
  186. .tooltip-inner {
  187. background: #FAE5A8;
  188. color: #724729;
  189. }
  190. </style>