Libraries.vue 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <div class="my-16 xl:max-w-none">
  3. <!-- <Heading level={2} id="official-libraries">
  4. Official libraries
  5. </Heading> -->
  6. <div class="not-prose mt-4 grid grid-cols-1 gap-x-6 gap-y-10 border-t pt-10 border-white/5 sm:grid-cols-2 xl:max-w-none xl:grid-cols-3">
  7. <div v-for="library in libraries" :key="library.name" class="flex flex-row-reverse gap-6">
  8. <div class="flex-auto">
  9. <h3 class="text-sm font-semibold text-white">
  10. {{ library.name }}
  11. </h3>
  12. <p class="mt-1 text-sm text-zinc-400">
  13. {{ library.description }}
  14. </p>
  15. <p class="mt-4">
  16. <AppLink :href="library.href"
  17. :variant="'text'"
  18. :arrow="'right'">
  19. Read more
  20. </AppLink>
  21. </p>
  22. </div>
  23. <img
  24. :src=library.logo
  25. alt=""
  26. class="h-12 w-12"/>
  27. </div>
  28. </div>
  29. </div>
  30. </template>
  31. <script setup>
  32. const libraries = ref([
  33. {
  34. href: '#',
  35. name: 'PHP',
  36. description: 'A popular general-purpose scripting language that is especially suited to web development.',
  37. logo: '/images/logos/php.svg',
  38. },
  39. {
  40. href: '#',
  41. name: 'Ruby',
  42. description: 'A dynamic, open source programming language with a focus on simplicity and productivity.',
  43. logo: '/images/logos/ruby.svg',
  44. },
  45. {
  46. href: '#',
  47. name: 'Node.js',
  48. description: 'Node.js® is an open-source, cross-platform JavaScript runtime environment.',
  49. logo: '/images/logos/node.svg',
  50. },
  51. {
  52. href: '#',
  53. name: 'Python',
  54. description: 'Python is a programming language that lets you work quickly and integrate systems more effectively.',
  55. logo: '/images/logos/python.svg',
  56. },
  57. {
  58. href: '#',
  59. name: 'Go',
  60. description: 'An open-source programming language supported by Google with built-in concurrency.',
  61. logo: '/images/logos/go.svg',
  62. },
  63. ])
  64. </script>