Skip to content

Commit

Permalink
Get Involved page (#27)
Browse files Browse the repository at this point in the history
* Get Involved page

* Merge development

* Prettier
  • Loading branch information
faucomte97 authored Aug 13, 2024
1 parent a1baf2d commit 9c39634
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 2 deletions.
Binary file added src/images/clubs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/get_involved_hero_hexagon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/github.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/universities.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
84 changes: 84 additions & 0 deletions src/pages/getInvolved/GetInvolved.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
import * as page from "codeforlife/components/page"
import { ChevronRightRounded as ChevronRightRoundedIcon } from "@mui/icons-material"
import { type FC } from "react"
import { Unstable_Grid2 as Grid } from "@mui/material"
import { useNavigate } from "react-router-dom"

import Card from "../../components/Card"
import ClubsImg from "../../images/clubs.png"
import GetInvolvedHero from "../../images/get_involved_hero_hexagon.png"
import GithubImg from "../../images/github.png"
import UniversitiesImg from "../../images/universities.png"
import { paths } from "../../router"

export interface GetInvolvedProps {}

const GetInvolved: FC<GetInvolvedProps> = () => {
const navigate = useNavigate()

return (
<page.Page>
<page.Banner
header="Get involved"
subheader="How you can get involved with the creation of Code for Life products and resources"
imageProps={{
title: "Adult teaching two children",
alt: "Adult teaching two children",
src: GetInvolvedHero,
}}
/>
<page.Section>
<Grid container spacing={4}>
<Grid xs={12} md={6} lg={4}>
<Card
title="Starting a coding club of your own"
description="Become a Code for Life ambassador by starting up a coding club. Find out more about how you can get involved with this by visiting our coding club page."
mediaProps={{
title: "Student showing their work to teacher",
image: ClubsImg,
}}
buttonProps={{
onClick: () => {
navigate(paths.codingClubs._)
},
children: "Read more",
endIcon: <ChevronRightRoundedIcon />,
}}
/>
</Grid>
<Grid xs={12} md={6} lg={4}>
<Card
title="Contribute through code"
description="We welcome volunteers from all backgrounds to help us with our coding adventure. Take a look at our contribution guide to find out how to get involved in our open source projects."
mediaProps={{ title: "Github repository page", image: GithubImg }}
buttonProps={{
onClick: () => {
navigate(paths.contribute._)
},
children: "Read more",
endIcon: <ChevronRightRoundedIcon />,
}}
/>
</Grid>
<Grid xs={12} md={6} lg={4}>
<Card
title="University partnerships"
description="Please get in touch at [email protected] if you are interested in working on Code for Life projects with your students including coding, user experience, data analytics and new feature design."
mediaProps={{
title: "Three students looking at laptops",
image: UniversitiesImg,
}}
buttonProps={{
href: "mailto:[email protected]",
children: "Get in touch",
endIcon: <ChevronRightRoundedIcon />,
}}
/>
</Grid>
</Grid>
</page.Section>
</page.Page>
)
}

export default GetInvolved
4 changes: 2 additions & 2 deletions src/router/routes/general.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { Route } from "react-router-dom"

import AboutUs from "../../pages/aboutUs/AboutUs"
import CodingClubs from "../../pages/codingClubs/CodingClubs"
import GetInvolved from "../../pages/getInvolved/GetInvolved"
import Home from "../../pages/home/Home"
// import GetInvolved from '../../pages/getInvolved/GetInvolved';
// import Contribute from '../../pages/contribute/Contribute';
// import HomeLearning from '../../pages/homeLearning/HomeLearning';
// import PrivacyNotice from '../../pages/privacyNotice/PrivacyNotice';
Expand All @@ -17,7 +17,7 @@ const general = (
{/* <Route path={paths.privacyNotice.tab._} element={<PrivacyNotice />} /> */}
{/* <Route path={paths.termsOfUse.tab._} element={<TermsOfUse />} /> */}
{/* <Route path={paths.homeLearning._} element={<HomeLearning />} /> */}
{/* <Route path={paths.getInvolved._} element={<GetInvolved />} /> */}
<Route path={paths.getInvolved._} element={<GetInvolved />} />
<Route path={paths.codingClubs._} element={<CodingClubs />} />
{/* <Route path={paths.contribute._} element={<Contribute />} /> */}
</>
Expand Down

0 comments on commit 9c39634

Please sign in to comment.