From 001e0a19e3cf489d36e458a6b18acb0e86ede116 Mon Sep 17 00:00:00 2001 From: Kevin Vandy Date: Mon, 25 Sep 2023 23:15:37 -0500 Subject: [PATCH] update home page --- .../components/mdx/AnchorLink.tsx | 16 ++ .../components/mdx/HomeCards.tsx | 255 ++++++++++++++---- .../material-react-table-docs/pages/index.tsx | 18 +- 3 files changed, 224 insertions(+), 65 deletions(-) create mode 100644 apps/material-react-table-docs/components/mdx/AnchorLink.tsx diff --git a/apps/material-react-table-docs/components/mdx/AnchorLink.tsx b/apps/material-react-table-docs/components/mdx/AnchorLink.tsx new file mode 100644 index 000000000..4bf457fc3 --- /dev/null +++ b/apps/material-react-table-docs/components/mdx/AnchorLink.tsx @@ -0,0 +1,16 @@ +import { Link as MuiLink } from '@mui/material'; +import Link from 'next/link'; + +export const AnchorLink = (props) => { + return ( + + + {props.children} + + + ); +}; diff --git a/apps/material-react-table-docs/components/mdx/HomeCards.tsx b/apps/material-react-table-docs/components/mdx/HomeCards.tsx index 00320afb5..9235f97a2 100644 --- a/apps/material-react-table-docs/components/mdx/HomeCards.tsx +++ b/apps/material-react-table-docs/components/mdx/HomeCards.tsx @@ -1,60 +1,213 @@ -import { alpha, Card, Stack, Typography } from '@mui/material'; +import { Box, Card, Stack, Typography } from '@mui/material'; import Image from 'next/image'; - -const cardData = [ - { - text: 'High-quality and performant modern data grid features with a minimal amount of effort', - image: '/quality.svg', - alt: 'Quality', - }, - { - text: 'Great defaults, with customization treated as a top priority', - image: '/customizable.svg', - alt: 'Customizable', - }, - { - text: 'Easy to opt out of features or UI that you do not need', - image: '/opt-out.svg', - alt: 'Easy Opt-out', - }, - { - text: 'Efficient bundle size (47kb minzipped, including dependencies)', - image: '/efficient.svg', - alt: 'Efficient', - }, -]; +import { AnchorLink } from './AnchorLink'; export const HomeCards = () => { return ( - - {cardData.map((cd, index) => ( - ({ - alignItems: 'center', - backgroundColor: alpha(theme.palette.primary.main, 0.1), - display: 'flex', - gap: '1.5rem', - p: '1rem', - })} - variant="outlined" + + + + + The Best of Both Worlds + + Mui + React Table + + + Combine TanStack Table's Extensive API With Material UI's + Awesome Pre-Built Components! + + + + + Efficiency Icon{' '} + Efficient Bundle Size + + 33-47 KB depending on components imported. + + Import the recommended MaterialReactTable component, + or optionally import lighter weight MRT sub-components that only + include the UI you need. + + + + - {cd.text} - - {cd.text} + + + Quality Icon{' '} + Pre-Built or 100% Custom + + + Use the pre-built single component data grid with the{' '} + <MaterialReactTable /> component. + + + Or build your own markup from scratch using the{' '} + useMaterialReactTable hook. + + + All internal MRT components are exported for you to use as + "lego blocks" to build your own custom tables. + + + + + Customizable Icon{' '} + Easy Customization + + + Just about everything is customizable or overridable in Material + React Table. Pass in custom props or styles to all internal + components. Use simple enable* props to easily enable + or disable features. + + + + + + + + Quality Icon{' '} + Powerful Features + + + Material React Table has most of the features you would expect from a + modern table library including{' '} + Pagination,{' '} + Sorting,{' '} + + Filtering + + ,{' '} + + Row Selection + + ,{' '} + + Row Expansion + + ,{' '} + + Column Resizing + + ,{' '} + + Column Reordering + + , etc. + + + However, Material React Table also has advanced features that you may + not find in other table libraries such as{' '} + + Virtualization + + ,{' '} + + Aggregation and Grouping + + ,{' '} + + Advanced Filter UIs + + ,{' '} + + Fuzzy Search + + ,{' '} + + Full Editing (CRUD) + + ,{' '} + + Column Pinning + + ,{' '} + Row Numbers + ,{' '} + + Click to Copy + + , and more. + + + + 30+ i18n Locales + + The MRT Community has contributed{' '} + + over 30 Locales + {' '} + for everyone to import and use. - ))} - + + ); }; diff --git a/apps/material-react-table-docs/pages/index.tsx b/apps/material-react-table-docs/pages/index.tsx index d2fa051b1..1e6a0319b 100644 --- a/apps/material-react-table-docs/pages/index.tsx +++ b/apps/material-react-table-docs/pages/index.tsx @@ -1,5 +1,4 @@ import Link from 'next/link'; -import Image from 'next/image'; import { alpha, Box, @@ -23,7 +22,7 @@ import { InstallCommand } from '../components/mdx/InstallCommand'; const HomePage = () => { return ( <> - + { }, }} > - V1 + V2 @@ -97,7 +96,7 @@ const HomePage = () => { }, })} > - V2.0 Coming Soon (July 2023) + V2.0 Still in Alpha, but now installable! 👀 @@ -147,19 +146,10 @@ const HomePage = () => { - - Mui + React Table -