-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add coding clubs page * Prettier * Minify images * Merge branch 'development' into coding_clubs_page * Feedback round 1 * Merge branch 'coding_clubs_page' of https://github.com/ocadotechnology/codeforlife-portal-frontend into coding_clubs_page * Sort imports * Merge branch 'teacher_student_accept' into coding_clubs_page * Even more import sort * Final feedback * Prettier * Reuncomment routes * Feedback
- Loading branch information
1 parent
5b11644
commit 89d0aa6
Showing
51 changed files
with
335 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,11 @@ VITE_GMAIL_FILTERS_EMAIL_VERIFICATION="from:[email protected] | |
|
||
# Links to external sites. | ||
VITE_LINK_FEMALE_GRADUATES_IN_CS=https://www.wisecampaign.org.uk/core-stem-graduates-2019/ | ||
VITE_LINK_OUTLOOK_HOME=https://outlook.live.com/mail/ | ||
VITE_LINK_PRIMARY_PACK_GITBOOK=https://code-for-life.gitbook.io/teaching-resources/v/code-club-resources-primary | ||
VITE_LINK_PRIMARY_PACK_DOWNLOAD=https://storage.googleapis.com/codeforlife-assets/club_packs/PrimaryCodingClub.zip | ||
VITE_LINK_PYTHON_PACK_GITBOOK=https://code-for-life.gitbook.io/teaching-resources/v/rapid-introduction-to-python-code-club | ||
VITE_LINK_PYTHON_PACK_DOWNLOAD=https://storage.googleapis.com/codeforlife-assets/club_packs/PythonCodingClub.zip | ||
|
||
# TODO: determine which of these we need. | ||
# REACT_APP_CONTAINER_MAX_WIDTH=lg | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import type { FC, ReactNode } from "react" | ||
import { | ||
Unstable_Grid2 as Grid, | ||
type GridDirection, | ||
Stack, | ||
Typography, | ||
} from "@mui/material" | ||
import { Image } from "codeforlife/components" | ||
import type { ResponsiveStyleValue } from "@mui/system" | ||
|
||
export interface IntroductionProps { | ||
header: string | ||
img: { alt: string; src: string } | ||
children: ReactNode | ||
direction?: ResponsiveStyleValue<GridDirection> | ||
} | ||
|
||
const Introduction: FC<IntroductionProps> = ({ | ||
header, | ||
img, | ||
children, | ||
direction = "row", | ||
}) => { | ||
return ( | ||
<> | ||
<Grid | ||
container | ||
spacing={{ xs: 2, lg: 3 }} | ||
display="flex" | ||
direction={direction} | ||
> | ||
<Grid xs={12} md={6}> | ||
<Stack sx={{ height: "100%" }}> | ||
<Typography variant="h5">{header}</Typography> | ||
{children} | ||
</Stack> | ||
</Grid> | ||
<Grid xs={12} md={6} className="flex-center"> | ||
<Image alt={img.alt} src={img.src} /> | ||
</Grid> | ||
</Grid> | ||
</> | ||
) | ||
} | ||
|
||
export default Introduction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { Stack, Typography } from "@mui/material" | ||
import { type FC } from "react" | ||
|
||
export interface ClubAimProps {} | ||
|
||
const ClubAim: FC<ClubAimProps> = () => { | ||
return ( | ||
<> | ||
<Stack> | ||
<Typography variant="h4" textAlign="center"> | ||
Who are the club packs aimed at? | ||
</Typography> | ||
<Typography> | ||
The FREE resource packs are aimed at two different groups, the first | ||
is aimed at students ages between 7-11yrs with an interest in learning | ||
Python. The second pack is aimed at students 12yrs and up, including | ||
adults. This moves at a much faster pace and also introduces students | ||
to setting up an environment on their own computer. | ||
</Typography> | ||
<Typography mb={0}> | ||
Both packs are a condensed learning pathway using our game Rapid | ||
Router alongside suggested session plan and slides. | ||
</Typography> | ||
</Stack> | ||
</> | ||
) | ||
} | ||
|
||
export default ClubAim |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import * as page from "codeforlife/components/page" | ||
import { type FC } from "react" | ||
import { useTheme } from "@mui/material" | ||
|
||
import ClubAim from "./ClubAim" | ||
import CodeClubHeroImage from "../../images/coding_club_hero_hexagon.png" | ||
import Primary from "./Primary" | ||
import Python from "./Python" | ||
|
||
export interface CodingClubProps {} | ||
|
||
const CodingClubs: FC<CodingClubProps> = () => { | ||
const theme = useTheme() | ||
|
||
return ( | ||
<page.Page> | ||
<page.Banner | ||
imageProps={{ alt: "codeClubHero", src: CodeClubHeroImage }} | ||
header="Coding clubs" | ||
subheader="A FREE set of slides and guides to run your own coding clubs" | ||
/> | ||
<page.Section> | ||
<ClubAim /> | ||
</page.Section> | ||
<page.Section boxProps={{ bgcolor: theme.palette.info.main }}> | ||
<Primary /> | ||
</page.Section> | ||
<page.Section> | ||
<Python /> | ||
</page.Section> | ||
</page.Page> | ||
) | ||
} | ||
|
||
export default CodingClubs |
Oops, something went wrong.