Yarn.vue 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <template>
  2. <NuxtLayout name="guides">
  3. <template #intro>
  4. <div class="max-w-xl">
  5. <h2 class="text-4xl font-extrabold text-gray-100 sm:text-5xl sm:tracking-tight lg:text-6xl">
  6. Yarn
  7. </h2>
  8. <p class="mt-5 text-xl text-indigo-300">
  9. Yarn is a great package manager for Node.js.
  10. </p>
  11. </div>
  12. </template>
  13. <template #links>
  14. <div class="mt-10 w-full max-w-xs lg:mt-0">
  15. <label for="currency" class="block text-2xl font-medium text-indigo-400">
  16. Recommended Links
  17. </label>
  18. <div class="flex flex-col mt-1.5 pl-3 relative text-indigo-200">
  19. <div>
  20. ↳ <NuxtLink to="/guides/veracrypt" class="hover:underline">
  21. Setup your first container
  22. </NuxtLink>
  23. </div>
  24. <div>
  25. ↳ <NuxtLink>
  26. Nuxt Link #2
  27. </NuxtLink>
  28. </div>
  29. <div>
  30. ↳ <NuxtLink>
  31. Nuxt Link #3
  32. </NuxtLink>
  33. </div>
  34. </div>
  35. </div>
  36. </template>
  37. <!-- Page Section -->
  38. <template #main>
  39. <section class="col-span-3 p-3 h-full bg-gradient-to-r from-gray-50 to-gray-100">
  40. <h3 class="text-2xl font-medium">
  41. Add the public key
  42. </h3>
  43. <div class="my-5 w-3/4 border-4 border-yellow-300 bg-yellow-100 rounded-xl overflow-hidden">
  44. <textarea rows="1" class="-mb-2 p-5 w-full border-0 bg-yellow-100">curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -</textarea>
  45. </div>
  46. <h3 class="mt-10 text-2xl font-medium">
  47. Add the new source
  48. </h3>
  49. <div class="my-5 w-3/4 border-4 border-yellow-300 bg-yellow-100 rounded-xl overflow-hidden">
  50. <textarea rows="1" class="-mb-2 p-5 w-full border-0 bg-yellow-100">echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list</textarea>
  51. </div>
  52. <h3 class="mt-10 text-2xl font-medium">
  53. Update the repository
  54. </h3>
  55. <div class="my-5 w-3/4 border-4 border-yellow-300 bg-yellow-100 rounded-xl overflow-hidden">
  56. <textarea rows="1" class="-mb-2 p-5 w-full border-0 bg-yellow-100">apt update</textarea>
  57. </div>
  58. <h3 class="mt-10 text-2xl font-medium">
  59. Install Yarn
  60. </h3>
  61. <div class="my-5 w-3/4 border-4 border-yellow-300 bg-yellow-100 rounded-xl overflow-hidden">
  62. <textarea rows="1" class="-mb-2 p-5 w-full border-0 bg-yellow-100">apt install yarn</textarea>
  63. </div>
  64. </section>
  65. </template>
  66. </NuxtLayout>
  67. </template>