Featured.vue 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <template>
  2. <div class="card">
  3. <div class="card-header">
  4. <h3 class="card-title">Featured Projects</h3>
  5. <div class="card-tools">
  6. <button type="button" class="btn btn-tool" data-card-widget="collapse">
  7. <i class="fas fa-minus"></i>
  8. </button>
  9. <button type="button" class="btn btn-tool" data-card-widget="remove">
  10. <i class="fas fa-times"></i>
  11. </button>
  12. </div>
  13. </div>
  14. <div class="card-body p-0">
  15. <ul class="products-list product-list-in-card pl-2 pr-2">
  16. <li class="item my-3 flex flex-row gap-4" v-for="feature of featured" v-bind:key="feature.url">
  17. <img :src="feature.imageurl" alt="Product Image" class="w-16 rounded-lg border-4 border-yellow-400">
  18. <div class="">
  19. <a :href="feature.url" target="_blank" class="product-title">
  20. {{feature.title}}
  21. <span class="badge badge-secondary float-right">{{feature.specs}}</span>
  22. </a>
  23. <span class="">
  24. {{feature.description}}
  25. </span>
  26. </div>
  27. </li>
  28. </ul>
  29. </div>
  30. <div class="card-footer text-center">
  31. <a href="javascript://" class="uppercase">View All Projects</a>
  32. </div>
  33. </div>
  34. </template>
  35. <script>
  36. export default {
  37. data: () => {
  38. return {
  39. featured: []
  40. }
  41. },
  42. created: function () {
  43. this.featured.push({
  44. url: 'https://github.com/gcash/bchd',
  45. imageurl: 'https://i.imgur.com/fcmBat6.png',
  46. title: 'BCHD',
  47. specs: '15 | 195 | 53',
  48. description: 'An alternative full node bitcoin cash implementation written in Go (golang).',
  49. })
  50. this.featured.push({
  51. url: 'https://github.com/Bitcoin-com/cashscript',
  52. imageurl: 'https://i.imgur.com/7ChHedR.jpg',
  53. title: 'CashScript',
  54. specs: '19 | 55 | 13',
  55. description: 'Easily write and interact with cash contracts on Bitcoin Cash.',
  56. })
  57. this.featured.push({
  58. url: 'https://github.com/Bitcoin-com/badger',
  59. imageurl: 'https://i.imgur.com/Io5SpcY.png',
  60. title: 'Badger',
  61. specs: '12 | 42 | 37',
  62. description: 'Your gateway to the world of Bitcoin Cash (BCH) apps.',
  63. })
  64. this.featured.push({
  65. url: 'https://github.com/simpleledger/SLPDB',
  66. imageurl: 'https://i.imgur.com/g2WM5TR.jpg',
  67. title: 'SLPDB',
  68. specs: '3 | 18 | 16',
  69. description: 'SLP Token Graph Indexer',
  70. })
  71. this.featured.push({
  72. url: 'https://gitlab.com/GeneralProtocols/electrum-cash',
  73. imageurl: 'https://i.imgur.com/VnLZKbH.png',
  74. title: 'electrum-cash',
  75. specs: '0 | 0 | 0',
  76. description: 'Electrum-cash is a lightweight JavaScript library that lets you connect with one or more Electrum servers.',
  77. })
  78. },
  79. }
  80. </script>