-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
/
Copy pathProductSuite.tsx
52 lines (50 loc) · 2.05 KB
/
ProductSuite.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import * as React from 'react';
import Grid from '@material-ui/core/Grid';
import Container from '@material-ui/core/Container';
import Box from '@material-ui/core/Box';
import Typography from '@material-ui/core/Typography';
import GradientText from 'docs/src/components/typography/GradientText';
import ProductsSwitcher from 'docs/src/components/home/ProductsSwitcher';
import CoreShowcase from 'docs/src/components/home/CoreShowcase';
import ShowcaseContainer from 'docs/src/components/home/ShowcaseContainer';
import StoreTemplatesBanner from 'docs/src/components/home/StoreTemplatesBanner';
import DesignKits from 'docs/src/components/home/DesignKits';
const ProductSuite = () => {
const [productIndex, setProductIndex] = React.useState(0);
return (
<Box
sx={{
bgcolor: (theme) => (theme.palette.mode === 'dark' ? 'primaryDark.900' : 'grey.50'),
py: { xs: 4, sm: 6, md: 8 },
overflow: 'hidden',
}}
>
<Container>
<Grid container spacing={2}>
<Grid item md={6}>
<Box maxWidth={500}>
<Typography variant="body2" color="primary" fontWeight="bold">
Products
</Typography>
<Typography variant="h2" sx={{ my: 1 }}>
Extensive library of components, ready for <GradientText>production</GradientText>.
</Typography>
<Typography color="text.secondary">
We bring together a suite of products integrated to make your life easier when it
comes to setting up design systems.
</Typography>
</Box>
<ProductsSwitcher productIndex={productIndex} setProductIndex={setProductIndex} />
</Grid>
<Grid item xs={12} md={6}>
{productIndex === 0 && <CoreShowcase />}
{productIndex === 1 && <ShowcaseContainer />}
{productIndex === 2 && <StoreTemplatesBanner />}
{productIndex === 3 && <DesignKits />}
</Grid>
</Grid>
</Container>
</Box>
);
};
export default ProductSuite;