Icons.tsx 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import Icon from '@/components/Icon';
  2. import { escapeHtml, iconsCountRounded, iconsUrl } from '@/config/site';
  3. const twitterUrl = `https://twitter.com/intent/tweet?url=${escapeHtml(
  4. iconsUrl
  5. )}&via=codecalm&text=Over%20${iconsCountRounded}%20free%20and%20open%20source%20icons%20for%20web%20design%3A%20Tabler%20Icons&hashtags=opensource,icons,iconfont,freebie`;
  6. const fbUrl = `https://www.facebook.com/sharer/sharer.php?u=${escapeHtml(iconsUrl)}`;
  7. export default function LayoutHeroIcons() {
  8. return (
  9. <div>
  10. <header className="hero pb-8">
  11. <div className="container">
  12. <h1 className="hero-title">Over {iconsCountRounded} pixel-perfect icons for web design</h1>
  13. <p className="hero-description mt-4">
  14. Free and open source icons designed to make your website or app attractive, visually consistent and simply
  15. beautiful.
  16. </p>
  17. <div className="mt-5">
  18. <div className="row g-3 justify-center">
  19. <div className="col-auto">
  20. <a href={twitterUrl} className="btn btn-twitter" target="_blank" rel="noopener noreferrer">
  21. <Icon name="brand-twitter" />
  22. Tweet me
  23. </a>
  24. </div>
  25. <div className="col-auto">
  26. <a href={fbUrl} className="btn btn-facebook" target="_blank" rel="noopener noreferrer">
  27. <Icon name="brand-facebook" />
  28. Share me
  29. </a>
  30. </div>
  31. </div>
  32. </div>
  33. </div>
  34. </header>
  35. </div>
  36. );
  37. }