diff --git a/src/pages/home/Home.tsx b/src/pages/home/Home.tsx new file mode 100644 index 0000000..4218a45 --- /dev/null +++ b/src/pages/home/Home.tsx @@ -0,0 +1,40 @@ +import { useTheme } from "@mui/material" +import { type FC } from "react" + +import * as page from "codeforlife/components/page" +import { useLocation } from "codeforlife/hooks" + +import AboutUs from "./AboutUs" +import CodingClubs from "./CodingClubs" +import Quotes from "./Quotes" +import TargetAudience from "./TargetAudience" + +const Home: FC = () => { + const theme = useTheme() + const { state } = useLocation<{ signUpSuccess: boolean }>() + + return ( + + {state?.signUpSuccess !== undefined && ( + + {state.signUpSuccess + ? "Thank you for signing up! 🎉" + : "Invalid email address. Please try again."} + + )} + {/* Special case: un-contained page section */} + + + + + + + + + + + + ) +} + +export default Home