Resources.vue 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <template>
  2. <div class="my-16 xl:max-w-none">
  3. <AppHeading2 :id="'resources'">
  4. Resources
  5. </AppHeading2>
  6. <div class="not-prose mt-4 grid grid-cols-1 gap-8 border-t pt-10 border-white/5 sm:grid-cols-2 xl:grid-cols-4">
  7. <Resource v-for="resource in resources"
  8. :key="resource.href"
  9. :resource="resource"/>
  10. </div>
  11. </div>
  12. </template>
  13. <script setup>
  14. const resources = ref([
  15. {
  16. href: '/contacts',
  17. name: 'Contacts',
  18. description: 'Learn about the contact model and how to create, retrieve, update, delete, and list contacts.',
  19. icon: 'icons-user',
  20. pattern: {
  21. y: 16,
  22. squares: [
  23. [0, 1],
  24. [1, 3],
  25. ],
  26. },
  27. },
  28. {
  29. href: '/conversations',
  30. name: 'Conversations',
  31. description: 'Learn about the conversation model and how to create, retrieve, update, delete, and list conversations.',
  32. icon: 'icons-chat-bubble',
  33. pattern: {
  34. y: -6,
  35. squares: [
  36. [-1, 2],
  37. [1, 3],
  38. ],
  39. },
  40. },
  41. {
  42. href: '/messages',
  43. name: 'Messages',
  44. description: 'Learn about the message model and how to create, retrieve, update, delete, and list messages.',
  45. icon: 'icons-envelope',
  46. pattern: {
  47. y: 32,
  48. squares: [
  49. [0, 2],
  50. [1, 4],
  51. ],
  52. },
  53. },
  54. {
  55. href: '/groups',
  56. name: 'Groups',
  57. description: 'Learn about the group model and how to create, retrieve, update, delete, and list groups.',
  58. icon: 'icons-users',
  59. pattern: {
  60. y: 22,
  61. squares: [[0, 1]],
  62. },
  63. },
  64. ]);
  65. </script>