page.tsx 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579
  1. import React from 'react';
  2. import Link from 'next/link';
  3. import questions from '@/data/faq.json';
  4. import { componentsCount, iconsUrl } from '@/config/site';
  5. import Features from '@/components/Features';
  6. import ResponsiveImage from '@/components/ResponsiveImage';
  7. import SectionDivider from '@/components/SectionDivider';
  8. import Shape from '@/components/Shape';
  9. import Testimonials from '@/components/layout/Testimonials';
  10. import TestimonialsShare from '@/components/layout/TestimonialsShare';
  11. import HeroUi from '@/components/layout/hero/Ui';
  12. import { sponsors } from '@/config/sponsors';
  13. export const metadata = {
  14. title: 'Premium dashboard template with responsive and high quality UI',
  15. description: 'Tabler comes with tons of well-designed components and features. Start your adventure with Tabler and make your dashboard great again. For free!',
  16. };
  17. const benefits = [
  18. 'Fully responsive',
  19. 'Based on Bootstrap 5',
  20. 'Built with Sass',
  21. 'Detailed documentation',
  22. 'MIT license',
  23. 'Customizable',
  24. `${componentsCount}+ UI components`,
  25. 'Multiple layouts',
  26. 'Dark mode',
  27. 'Premium vector icons',
  28. ];
  29. const FAQ = () => {
  30. return (
  31. <section className="section section-light">
  32. <div className="container">
  33. <div className="row xl:g-6">
  34. <div className="md:col-4" data-aos="fade-up">
  35. <div className="section-header text-left sticky-top">
  36. <div className="section-title">Frequently asked questions</div>
  37. <p className="section-description">
  38. Can’t find the answer you’re looking for? Reach out to our
  39. customer support team.
  40. </p>
  41. </div>
  42. </div>
  43. <div className="col">
  44. <div className="space-y-5">
  45. {questions.map((question, i) => (
  46. <div data-aos="fade-up" data-aos-delay={i * 150} key={i}>
  47. <div className="h3 mb-1">{question.question}</div>
  48. <div className="text-muted">{question.answer}</div>
  49. </div>
  50. ))}
  51. </div>
  52. <div className="mt-5">
  53. <Link href="/faq" className="btn">
  54. Read more questions
  55. </Link>
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. </section>
  61. );
  62. };
  63. const Projects = () => {
  64. return (
  65. <section className="section">
  66. <div className="container">
  67. <div className="section-header">
  68. <h3 className="section-title">Section title</h3>
  69. <p className="section-description">
  70. Lorem ipsum dolor sit amet, consectetur adipisicing elit.
  71. </p>
  72. </div>
  73. <div className="row">
  74. <div className="col">
  75. <div className="card">
  76. <div className="row g-0">
  77. <div className="col">
  78. <div className="card-body h-100 d-flex flex-column pr-0">
  79. <div className="h-subheader text-primary">Tabler Icons</div>
  80. <h3 className="section-title mb-4">
  81. Brilliant Toolkit to Build Nextgen Website Faster.
  82. </h3>
  83. <div className="text-muted markdown">
  84. <p>
  85. Lorem ipsum dolor sit amet, consectetur adipisicing
  86. elit. Illo perferendis, repellat! Asperiores ducimus
  87. esse nobis quaerat sed! Delectus eius illum incidunt
  88. minus neque, quos ratione reiciendis voluptatum. Odio
  89. quia, similique.
  90. </p>
  91. </div>
  92. <div className="mt-auto pt-5">
  93. <div className="btn-list">
  94. <a
  95. href={iconsUrl}
  96. className="btn btn-primary"
  97. target="_blank"
  98. >
  99. Browse icons
  100. </a>
  101. <Link href="/icons" className="btn">
  102. More info
  103. </Link>
  104. </div>
  105. </div>
  106. </div>
  107. </div>
  108. <div className="col-4">
  109. <div
  110. className="ratio ratio-1x1 rounded-right"
  111. style={{
  112. backgroundColor: '#fff',
  113. backgroundImage: 'url(/img/tabler/icons-bg.png)',
  114. }}
  115. />
  116. </div>
  117. </div>
  118. </div>
  119. </div>
  120. <div className="col">
  121. <div className="card">
  122. <div className="row g-0">
  123. <div className="col">
  124. <div className="card-body h-100 d-flex flex-column pr-0">
  125. <div className="h-subheader text-primary">
  126. Tabler Emails
  127. </div>
  128. <h3 className="section-title mb-4">
  129. Brilliant Toolkit to Build Nextgen Website Faster.
  130. </h3>
  131. <div className="text-muted markdown">
  132. <p>
  133. Lorem ipsum dolor sit amet, consectetur adipisicing
  134. elit. Illo perferendis, repellat! Asperiores ducimus
  135. esse nobis quaerat sed! Delectus eius illum incidunt
  136. minus neque, quos ratione reiciendis voluptatum. Odio
  137. quia, similique.
  138. </p>
  139. </div>
  140. <div className="mt-auto pt-5">
  141. <div className="btn-list">
  142. <a href="#" className="btn btn-primary">
  143. Buy emails for $29
  144. </a>
  145. <Link href="/icons" className="btn">
  146. More info
  147. </Link>
  148. </div>
  149. </div>
  150. </div>
  151. </div>
  152. <div className="col-4">
  153. <div
  154. className="ratio ratio-1x1 rounded-right"
  155. style={{
  156. backgroundColor: '#fff',
  157. backgroundImage: 'url(/img/tabler/icons-bg.png)',
  158. }}
  159. />
  160. </div>
  161. </div>
  162. </div>
  163. </div>
  164. </div>
  165. </div>
  166. </section>
  167. );
  168. };
  169. const Sponsors = () => {
  170. return (
  171. <div className="section section-light pt-6 pb-5">
  172. <SectionDivider />
  173. <div className="container img-overlap-padding text-center">
  174. <div className="mb-6">
  175. <h2 className="h4 font-normal text-muted mb-6">The project was made possible thanks to wonderful sponsors:</h2>
  176. <div className="row gx-6 md:gx-7 gy-4 items-center justify-center">
  177. {sponsors.map((sponsor, i) => (
  178. <div className="col-auto" key={i}>
  179. <a href={sponsor.url} className="link-brand" dangerouslySetInnerHTML={{ __html: sponsor.logo }} target="_blank" rel="nofollow"></a>
  180. </div>
  181. ))}
  182. </div>
  183. </div>
  184. </div>
  185. </div>
  186. );
  187. };
  188. export default async function HomePage() {
  189. const features = [
  190. {
  191. icon: 'brand-github',
  192. title: 'Free and open source',
  193. description:
  194. 'A big choice of free UI elements and layouts in one efficient, open source solution',
  195. },
  196. {
  197. icon: 'brand-bootstrap',
  198. title: 'Based on Bootstrap 5',
  199. description:
  200. 'Based on the latest version of Bootstrap, Tabler is a UI Kit of the future',
  201. },
  202. {
  203. icon: 'brand-html5',
  204. title: 'Modern design',
  205. description:
  206. 'Beautiful, fully responsive UI elements that will make your design modern and user-friendly',
  207. },
  208. ];
  209. const highlighCode = `<div className="col" data-aos="fade-up">
  210. <h2 className="section-title">
  211. Loving Tabler? Get to know our set of {iconsCount}&nbsp;free vector icons!
  212. </h2>
  213. <p className="section-description">
  214. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eligendi ex facere impedit nostrum
  215. obcaecati. Ipsam, magnam nam nihil quisquam repellendus tempora. Dicta dignissimos ex laudantium
  216. reiciendis sapiente ut voluptate voluptatibus?
  217. </p>
  218. <div className="mt-5">
  219. <Link href="/icons" className="btn">
  220. Read more about icons
  221. </Link>
  222. </div>
  223. </div>`;
  224. return (
  225. <>
  226. {/*<Modal />*/}
  227. <HeroUi />
  228. <Sponsors />
  229. {/* <div className="section section-light pt-6 pb-6">
  230. <SectionDivider />
  231. <div className="container img-overlap-padding">
  232. <Features list={features} />
  233. </div>
  234. </div> */}
  235. <section className="section" id="features">
  236. <div className="container">
  237. <div className="row items-center">
  238. <div className="lg:col-6" data-aos="fade-up">
  239. <div className="section-header w-100">
  240. <h2 className="section-title text-center lg:text-left">Benefit from Tabler’s top-notch features</h2>
  241. </div>
  242. {/*<p className="section-description mb-5">*/}
  243. {/* Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aspernatur*/}
  244. {/* deleniti dicta, earum eligendi exercitationem itaque molestias nobis non optio perspiciatis*/}
  245. {/* placeat possimus praesentium rerum tempora tempore totam vel. Autem, repudiandae!*/}
  246. {/*</p>*/}
  247. <div className="row">
  248. {benefits.map((benefit, i) => (
  249. <div className="sm:col-6 md:col-4 lg:col-6" key={i}>
  250. <Shape icon="check" color="green" className="mr-3" size="sm" rounded />
  251. {benefit}
  252. </div>
  253. ))}
  254. </div>
  255. </div>
  256. <div className="lg:col-6" data-aos="fade-up">
  257. <ResponsiveImage src="/img/tabler/features/charts.png" width="510" height="524" className="mx-auto" />
  258. </div>
  259. </div>
  260. </div>
  261. </section>
  262. <section className="section section-light">
  263. <div className="container">
  264. <div className="section-header">
  265. <h2 className="section-title">Multiple Demos</h2>
  266. <p className="section-description">6 Pre-built layout options to cater needs of modern web applications. Ready-to-use UI elements enable to develop modern web application with great speed</p>
  267. </div>
  268. <div className="row" data-aos-id-blocks-previews>
  269. <div className="col-6 md:col-4">
  270. <a href="https://preview.tabler.io?theme=light" className="d-block text-center link text-reset" data-aos="fade-up" data-aos-anchor="[data-aos-id-blocks-previews]" data-aos-delay={0} target="_blank" rel="noopener noreferrer">
  271. <ResponsiveImage src="/img/tabler/preview.png" width="389" height="243" className="mx-auto rounded link-img" />
  272. <div className="mt-3">Modern dashboard</div>
  273. </a>
  274. </div>
  275. <div className="col-6 md:col-4">
  276. <a href="https://preview.tabler.io?theme=dark" className="d-block text-center link text-reset" data-aos="fade-up" data-aos-anchor="[data-aos-id-blocks-previews]" data-aos-delay={150} target="_blank" rel="noopener noreferrer">
  277. <ResponsiveImage src="/img/tabler/preview-dark.png" width="389" height="243" className="mx-auto rounded link-img" />
  278. <div className="mt-3">Dark mode</div>
  279. </a>
  280. </div>
  281. <div className="col-6 md:col-4">
  282. <a
  283. href="https://preview.tabler.io/layout-vertical.html?theme=light"
  284. className="d-block text-center link text-reset"
  285. data-aos="fade-up"
  286. data-aos-anchor="[data-aos-id-blocks-previews]"
  287. data-aos-delay={300}
  288. target="_blank"
  289. rel="noopener noreferrer"
  290. >
  291. <ResponsiveImage src="/img/tabler/preview-sidebar.png" width="389" height="243" className="mx-auto rounded link-img" />
  292. <div className="mt-3">With sidebar navigation</div>
  293. </a>
  294. </div>
  295. <div className="col-6 md:col-4">
  296. <a
  297. href="https://preview.tabler.io/layout-navbar-overlap.html?theme=light"
  298. className="d-block text-center link text-reset"
  299. data-aos="fade-up"
  300. data-aos-anchor="[data-aos-id-blocks-previews]"
  301. data-aos-delay={450}
  302. target="_blank"
  303. rel="noopener noreferrer"
  304. >
  305. <ResponsiveImage src="/img/tabler/preview-navbar-overlap.png" width="389" height="243" className="mx-auto rounded link-img" />
  306. <div className="mt-3">With overlap navbar</div>
  307. </a>
  308. </div>
  309. <div className="col-6 md:col-4">
  310. <a
  311. href="https://preview.tabler.io/layout-vertical-transparent.html?theme=light"
  312. className="d-block text-center link text-reset"
  313. data-aos="fade-up"
  314. data-aos-anchor="[data-aos-id-blocks-previews]"
  315. data-aos-delay={600}
  316. target="_blank"
  317. rel="noopener noreferrer"
  318. >
  319. <ResponsiveImage src="/img/tabler/preview-sidebar-transparent.png" width="389" height="243" className="mx-auto rounded link-img" />
  320. <div className="mt-3">With transparent navigation</div>
  321. </a>
  322. </div>
  323. <div className="col-6 md:col-4">
  324. <a
  325. href="https://preview.tabler.io/layout-rtl.html?theme=light"
  326. className="d-block text-center link text-reset"
  327. data-aos="fade-up"
  328. data-aos-anchor="[data-aos-id-blocks-previews]"
  329. data-aos-delay={750}
  330. target="_blank"
  331. rel="noopener noreferrer"
  332. >
  333. <ResponsiveImage src="/img/tabler/preview-rtl.png" width="389" height="243" className="mx-auto rounded link-img" />
  334. <div className="mt-3">RTL mode</div>
  335. </a>
  336. </div>
  337. </div>
  338. </div>
  339. </section>
  340. <section className="section">
  341. <div className="container">
  342. <div className="section-header">
  343. <h2 className="section-title">Create a perfect interface. Make your life easier.</h2>
  344. </div>
  345. <div className="row items-center">
  346. <div className="lg:col-6" data-aos="fade-up">
  347. <ResponsiveImage src="/img/tabler/features/forms.png" width={510} height={524} className="mx-auto" />
  348. </div>
  349. <div className="lg:col-6">
  350. <div className="space-y-5">
  351. <div data-aos="fade-up" data-aos-delay="0">
  352. <div className="row">
  353. <div className="col-auto">
  354. <Shape size="md" color="primary" icon="tools" />
  355. </div>
  356. <div className="col">
  357. <h3>Designed with users in mind</h3>
  358. <p className="text-muted m-0">
  359. Tabler is fully responsive and compatible with all modern browsers. Thanks to its modern, user-friendly design you can create a fully functional interface that users will love. Every UI element has been created with
  360. attention to detail to make your interface beautiful!
  361. </p>
  362. </div>
  363. </div>
  364. </div>
  365. <div data-aos="fade-up" data-aos-delay="150">
  366. <div className="row">
  367. <div className="col-auto">
  368. <Shape size="md" color="primary" icon="brand-bootstrap" />
  369. </div>
  370. <div className="col">
  371. <h3>Built for developers</h3>
  372. <p className="text-muted m-0">
  373. Having in mind what it takes to write high-quality code, we want to help you speed up the development process and keep your code clean. Based on Bootstrap 5, Tabler is a cutting-edge solution, compatible with all
  374. modern browsers and fully responsive.
  375. </p>
  376. </div>
  377. </div>
  378. </div>
  379. <div data-aos="fade-up" data-aos-delay="300">
  380. <div className="row">
  381. <div className="col-auto">
  382. <Shape size="md" color="primary" icon="paint" />
  383. </div>
  384. <div className="col">
  385. <h3>Fully customizable</h3>
  386. <p className="text-muted m-0">You can easily customize the UI elements to make them fit the needs of your project. And don’t worry if you don’t have much experience - Tabler is easy to get started!</p>
  387. </div>
  388. </div>
  389. </div>
  390. </div>
  391. </div>
  392. </div>
  393. </div>
  394. </section>
  395. <section className="section section-dark">
  396. <div className="container">
  397. <div className="section-header">
  398. <h2 className="section-title">Dark theme whenever you need it ✨</h2>
  399. </div>
  400. <div className="row items-center">
  401. <div className="lg:col-6">
  402. <div className="space-y-5">
  403. <div data-aos="fade-up" data-aos-delay="0">
  404. <div className="row">
  405. <div className="col-auto">
  406. <Shape size="md" color="white" icon="sun-moon" />
  407. </div>
  408. <div className="col">
  409. <h3>Change default variant when you need</h3>
  410. <p className="text-muted m-0">
  411. Tabler is a beautiful dashboard that comes in 2 versions: Dark and Light Mode. If you are looking for a tool to manage and visualize data about your business, this dashboard is the thing for you. It combines colors
  412. that are easy on the eye, spacious cards, beautiful typography, and graphics.
  413. </p>
  414. </div>
  415. </div>
  416. </div>
  417. <div data-aos="fade-up" data-aos-delay="150">
  418. <div className="row">
  419. <div className="col-auto">
  420. <Shape size="md" color="white" icon="tools" />
  421. </div>
  422. <div className="col">
  423. <h3>All components available in dark mode</h3>
  424. <p className="text-muted m-0">Tabler contains a vast collection of assorted reusable dark UI components, page layouts, charts, tables, UI elements, and icons.</p>
  425. </div>
  426. </div>
  427. </div>
  428. <div data-aos="fade-up" data-aos-delay="300">
  429. <div className="row">
  430. <div className="col-auto">
  431. <Shape size="md" color="white" icon="paint" />
  432. </div>
  433. <div className="col">
  434. <h3>A lot of reasons why dark theme are used widely</h3>
  435. <p className="text-muted m-0">
  436. Dark mode saves battery life and can reduce eye fatigue in low-light conditions. The high contrast between text and background reduces eye fatigue, and the dark screen helps you focus your eyes longer and helps your
  437. brain keep more attention on the screen.
  438. </p>
  439. </div>
  440. </div>
  441. </div>
  442. </div>
  443. </div>
  444. <div className="lg:col-6" data-aos="fade-up">
  445. <ResponsiveImage src="/img/tabler/features/dark.png" width={510} height={524} className="mx-auto" />
  446. </div>
  447. </div>
  448. </div>
  449. </section>
  450. <section className="section">
  451. <div className="container">
  452. <div className="section-header">
  453. <h2 className="section-title">Trusted by hundreds</h2>
  454. <p className="section-description">Our Users send us bunch of smilies with our services, and we love them 😍</p>
  455. </div>
  456. <div className="expandable">
  457. <Testimonials limit={10} />
  458. </div>
  459. <TestimonialsShare />
  460. </div>
  461. </section>
  462. {/*<section className="section section-light">*/}
  463. {/* <div className="container">*/}
  464. {/* <div className="row items-center">*/}
  465. {/* <div className="col" data-aos="fade-up">*/}
  466. {/* <ResponsiveImage*/}
  467. {/* src="/img/features/code.png"*/}
  468. {/* width={510}*/}
  469. {/* height={276}*/}
  470. {/* />*/}
  471. {/* </div>*/}
  472. {/* <div className="col" data-aos="fade-up">*/}
  473. {/* <h2 className="section-title">*/}
  474. {/* Loving Tabler? Get to know our set of {iconsCount}&nbsp;free vector icons!*/}
  475. {/* </h2>*/}
  476. {/* <p className="section-description">*/}
  477. {/* Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eligendi ex facere impedit nostrum*/}
  478. {/* obcaecati. Ipsam, magnam nam nihil quisquam repellendus tempora. Dicta dignissimos ex laudantium*/}
  479. {/* reiciendis sapiente ut voluptate voluptatibus?*/}
  480. {/* </p>*/}
  481. {/* <div className="mt-5">*/}
  482. {/* <Link href="/icons" className="btn">*/}
  483. {/* Read more about icons*/}
  484. {/* </Link>*/}
  485. {/* </div>*/}
  486. {/* </div>*/}
  487. {/* </div>*/}
  488. {/* </div>*/}
  489. {/*</section>*/}
  490. {/*<section className="section">*/}
  491. {/* <div className="container text-center">*/}
  492. {/* <blockquote className="font-h2 lh-h2 mb-5 font-medium">*/}
  493. {/* “UI Prep has been instrumental in our agency work. UI Prep helps us start at 60% instead of 0%. It’s comprehensive, organized, and very*/}
  494. {/* thoughtfully designed. I could not recommend this more.”*/}
  495. {/* </blockquote>*/}
  496. {/* <div>*/}
  497. {/* <span className="avatar avatar-xl" style={{ backgroundImage: "url(/img/authors/codecalm.jpg)"}} />*/}
  498. {/* </div>*/}
  499. {/* <div className="h4">Jon Moore</div>*/}
  500. {/* <div className="text-muted">Principal Product Designer at Innovate map</div>*/}
  501. {/* <div>*/}
  502. {/* <Icon name="star" filled color="yellow" />*/}
  503. {/* <Icon name="star" filled color="yellow" />*/}
  504. {/* <Icon name="star" filled color="yellow" />*/}
  505. {/* <Icon name="star" filled color="yellow" />*/}
  506. {/* <Icon name="star" filled color="yellow" />*/}
  507. {/* </div>*/}
  508. {/* </div>*/}
  509. {/*</section>*/}
  510. {/*<section className="section section-light">*/}
  511. {/* <div className="container">*/}
  512. {/* <div className="row items-center">*/}
  513. {/* <div className="col-6" data-aos="fade-up">*/}
  514. {/* <h2 className="section-title">*/}
  515. {/* Loving Tabler? Get to know our set of {iconsCount}&nbsp;free vector icons!*/}
  516. {/* </h2>*/}
  517. {/* <p className="section-description">*/}
  518. {/* Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eligendi ex facere impedit nostrum*/}
  519. {/* obcaecati. Ipsam, magnam nam nihil quisquam repellendus tempora. Dicta dignissimos ex laudantium*/}
  520. {/* reiciendis sapiente ut voluptate voluptatibus?*/}
  521. {/* </p>*/}
  522. {/* <div className="mt-5">*/}
  523. {/* <Link href="/icons" className="btn">*/}
  524. {/* Read more about icons*/}
  525. {/* </Link>*/}
  526. {/* </div>*/}
  527. {/* </div>*/}
  528. {/* <div className="col-6" data-aos="fade-up">*/}
  529. {/* <div className="highlight highlight-readonly" data-language="html">*/}
  530. {/* <SyntaxHighlighter language={"xml"} useInlineStyles={false}>*/}
  531. {/* {highlighCode}*/}
  532. {/* </SyntaxHighlighter>*/}
  533. {/* </div>*/}
  534. {/* </div>*/}
  535. {/* </div>*/}
  536. {/* </div>*/}
  537. {/*</section>*/}
  538. {/*<News />*/}
  539. {/*<Projects />*/}
  540. <FAQ />
  541. </>
  542. );
  543. }
  544. HomePage.bodyClass = 'xxx';