UiIcons.tsx 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. import { iconsCount, iconsGithubUrl, iconsUrl } from '@/config/site';
  2. import ResponsiveImage from '@/components/ResponsiveImage';
  3. import Icon from '@/components/Icon';
  4. import React from 'react';
  5. import Slider from '@/components/Slider';
  6. export default function LayoutHeroUiIcons() {
  7. return (
  8. <header className="hero">
  9. <div className="container">
  10. <div className="row items-center xl:g-6">
  11. <div className="md:col-6 md:text-left" data-aos="fade-up">
  12. <div className="hero-subheader">Tabler Icons</div>
  13. <h1 className="hero-title">Pixel-perfect icons that match your design</h1>
  14. <p className="hero-description mt-4">
  15. {iconsCount} free, open source icons designed to make your website or app attractive, visually
  16. consistent and simply beautiful.
  17. </p>
  18. <div className="mt-5 lg:mt-7">
  19. <div className="row justify-center md:justify-start g-3">
  20. <div className="col-auto">
  21. <a href={iconsUrl} className="btn btn-lg btn-primary" target="_blank">
  22. <Icon name="search" /> Browse icons
  23. </a>
  24. </div>
  25. <div className="col-auto">
  26. <a href={iconsGithubUrl} className="btn btn-lg" target="_blank" rel="noopener noreferrer">
  27. See on GitHub
  28. </a>
  29. </div>
  30. </div>
  31. </div>
  32. </div>
  33. <div className="md:col-6 md:order-first" data-aos="fade-up">
  34. <div className="hero-img-side">
  35. <Slider
  36. style={{
  37. background: 'url(/img/icons/hero-bg.svg) no-repeat center/contain'
  38. }}
  39. slides={[
  40. <ResponsiveImage
  41. src="/img/icons/hero-1.png"
  42. className="mx-auto"
  43. width="552"
  44. height="420"
  45. alt=""
  46. key="hero-1"
  47. />,
  48. <ResponsiveImage
  49. src="/img/icons/hero-2.png"
  50. className="mx-auto"
  51. width="552"
  52. height="420"
  53. alt=""
  54. key="hero-2"
  55. />,
  56. <ResponsiveImage
  57. src="/img/icons/hero-3.png"
  58. className="mx-auto"
  59. width="552"
  60. height="420"
  61. alt=""
  62. key="hero-3"
  63. />,
  64. <ResponsiveImage
  65. src="/img/icons/hero-4.png"
  66. className="mx-auto"
  67. width="552"
  68. height="420"
  69. alt=""
  70. key="hero-4"
  71. />,
  72. <ResponsiveImage
  73. src="/img/icons/hero-5.png"
  74. className="mx-auto"
  75. width="552"
  76. height="420"
  77. alt=""
  78. key="hero-5"
  79. />
  80. ]}
  81. />
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86. </header>
  87. );
  88. }