Continue organization
This commit is contained in:
parent
4898382f78
commit
b012f8295b
152 changed files with 21348 additions and 18 deletions
30
apps/leafcutter/components/AboutBox.tsx
Normal file
30
apps/leafcutter/components/AboutBox.tsx
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
import { FC } from "react";
|
||||
import { Box } from "@mui/material";
|
||||
import { useAppContext } from "./AppProvider";
|
||||
|
||||
interface AboutBoxProps {
|
||||
backgroundColor: string;
|
||||
}
|
||||
|
||||
export const AboutBox: FC<AboutBoxProps> = ({ backgroundColor, children }) => {
|
||||
const {
|
||||
colors: { white },
|
||||
} = useAppContext();
|
||||
|
||||
return (
|
||||
<Box
|
||||
sx={{
|
||||
width: "100%",
|
||||
backgroundColor,
|
||||
color: white,
|
||||
p: 4,
|
||||
borderRadius: "10px",
|
||||
mt: "66px",
|
||||
mb: "22px",
|
||||
textAlign: "center",
|
||||
}}
|
||||
>
|
||||
{children}
|
||||
</Box>
|
||||
);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue