front-hub/src/components/landing/Infographics.tsx

29 lines
669 B
TypeScript
Raw Normal View History

2022-11-17 12:25:23 +00:00
import { Box, Typography, useTheme } from "@mui/material";
interface Props {
bigText: string;
text: string;
flex: string;
}
export default function Infographics({ bigText, text, flex }: Props) {
const theme = useTheme();
return (
<Box
sx={{
flex,
}}
>
<Typography
variant="infographic"
color={theme.palette.custom.brightPurple.main}
sx={{
whiteSpace: "nowrap",
}}
>{bigText}</Typography>
<Typography sx={{ maxWidth: "10em" }}>{text}</Typography>
</Box>
);
}