diff --git a/src/Pages/CampusChapters/CampusChapters.jsx b/src/Pages/CampusChapters/CampusChapters.jsx index 03757cb6a..cb12db74d 100644 --- a/src/Pages/CampusChapters/CampusChapters.jsx +++ b/src/Pages/CampusChapters/CampusChapters.jsx @@ -11,6 +11,7 @@ import Typography from "@mui/material/Typography"; import { Button, CardActionArea, CardActions } from "@mui/material"; import Levels from "./Levels/Levels"; import axios from "axios"; +import { CampusCard } from "./campus-card/CampusCard"; const CampusChapters = () => { const [selectedZone, setSelectedZone] = useState("all"); @@ -197,25 +198,7 @@ const CampusChapters = () => { (selectedZone === "all" && campus.district === selectedDistrict) ) { - return ( -
-
{campus.name}
-
- {campus.district} -
-
- Zone: {campus.zone} -
-
- Campus Lead: {campus.lead} -
- {campus.email && ( -
- Email Address: {campus.email} -
- )} -
- ); + return ; } //return the campuses that match the selected zone and district // else if ( diff --git a/src/Pages/CampusChapters/CampusChapters.module.css b/src/Pages/CampusChapters/CampusChapters.module.css index 61a9422b3..1424169d4 100644 --- a/src/Pages/CampusChapters/CampusChapters.module.css +++ b/src/Pages/CampusChapters/CampusChapters.module.css @@ -562,6 +562,8 @@ p { display: flex; flex-direction: row; flex-wrap: wrap; + gap: 1.5rem; + margin-top: 1.5rem; } .college { @@ -642,4 +644,4 @@ p { font-family: "Noto Sans", sans-serif; font-size: 4.55rem; font-weight: 600; -} +} \ No newline at end of file diff --git a/src/Pages/CampusChapters/campus-card/CampusCard.jsx b/src/Pages/CampusChapters/campus-card/CampusCard.jsx new file mode 100644 index 000000000..7f9fd4b1e --- /dev/null +++ b/src/Pages/CampusChapters/campus-card/CampusCard.jsx @@ -0,0 +1,61 @@ +import React from 'react' +export const Content = ({ title, children, className }) => { + return ( +
+

{title}

+

{children}

+
+ ) +} +export const CampusName = ({ children }) => { + return ( +
+

{children}

+

+ {children} +

+
+ ) +} +export const CampusCard = ({ data }) => { + + return ( +
+ {data.name} +
+
+ {data.zone} + {data.district} +
+ {data.lead} + + + + {data.email} + + +
+
+ ) +} +export const MailSvg = () => { + return ( + + + + + ) +} + +export const PopUp = () => { + return ( +
PopUp
+ ) +} \ No newline at end of file