Guest User

Untitled

a guest
Aug 20th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. <template>
  2. <div id="app">
  3. <link rel="stylesheet"
  4. href="node_modules/@fortawesome/fontawesome-free/css/all.css">
  5. <h1>Using Font Awesome "Brand" icons in Vue.js</h1>
  6. <p>Have a cup of coffee: <i class="fas fa-coffee"></i> </p>
  7. <p>Have a module of JavaScript: <i class="fab fa-js"></i> </p>
  8. <p>Have a module of Vue.js: <i class="fab fa-vuejs"></i> </p>
  9. <h1>Using Font Awesome by referencing SVG files</h1>
  10. <p>Have a cup of coffee:
  11. <svg>
  12. <use xlink:href="node_modules/@fortawesome/fontawesome-free/sprites/solid.svg#coffee"></use>
  13. </svg>
  14. </p>
  15. <p>Have a module of JavaScript:
  16. <svg>
  17. <use xlink:href="node_modules/@fortawesome/fontawesome-free/sprites/brands.svg#js"></use>
  18. </svg></p>
  19. <p>Have a module of Vue.js:
  20. <svg>
  21. <use xlink:href="node_modules/@fortawesome/fontawesome-free/sprites/brands.svg#vuejs"></use>
  22. </svg></p>
  23. </div>
  24. </template>
  25.  
  26. <script>
  27. export default {
  28. name: 'App'
  29. }
  30. </script>
  31.  
  32. <style>
  33. </style>
Add Comment
Please, Sign In to add comment