import React, { useState } from "react"; import { useMediaQuery } from "@definitions/helpers"; type CardInfo = { title: string; description: string; link: string; iconUrl: string; }; const cards: CardInfo[] = [ { title: "Documentation", description: "Learn about the technical details of using Refine in your projects.", link: "https://refine.dev/docs", iconUrl: "https://refine.ams3.cdn.digitaloceanspaces.com/welcome-page/book.svg", }, { title: "Tutorial", description: "Learn how to use Refine by building a fully-functioning CRUD app, from scratch to full launch.", link: "https://refine.dev/tutorial", iconUrl: "https://refine.ams3.cdn.digitaloceanspaces.com/welcome-page/hat.svg", }, { title: "Templates", description: "Explore a range of pre-built templates, perfect everything from admin panels to dashboards and CRMs.", link: "https://refine.dev/templates", iconUrl: "https://refine.ams3.cdn.digitaloceanspaces.com/welcome-page/application.svg", }, { title: "Community", description: "Join our Discord community and keep up with the latest news.", link: "https://discord.gg/refine", iconUrl: "https://refine.ams3.cdn.digitaloceanspaces.com/welcome-page/discord.svg", }, ]; /** * It is a page that welcomes you after the configuration is completed. */ export const ConfigSuccessPage: React.FC = () => { const isTablet = useMediaQuery("(max-width: 1010px)"); const isMobile = useMediaQuery("(max-width: 650px)"); const getGridTemplateColumns = () => { if (isMobile) { return "1, 280px"; } if (isTablet) { return "2, 280px"; } return "4, 1fr"; }; const getHeaderFontSize = () => { if (isMobile) { return "32px"; } if (isTablet) { return "40px"; } return "48px"; }; const getSubHeaderFontSize = () => { if (isMobile) { return "16px"; } if (isTablet) { return "20px"; } return "24px"; }; return (