Skip to content

Commit

Permalink
update links
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Oct 18, 2024
1 parent 35e9109 commit d998de5
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 16 deletions.
4 changes: 3 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ VITE_LINK_CFL_DOCS=https://docs.codeforlife.education/become-a-contributor
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
VITE_LINK_GRASS_SNAKES_CLUB_PACK=https://3289537671-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FS5kw31UTGL8CPHU9skBS%2Fuploads%2FKsC7tdyT6htj5JX1ig28%2FGrass%20Snakes%20Club.zip?alt=media&token=1f6e6f0e-1a10-4bef-a8f8-a20b0a59e4c0
VITE_LINK_TIGER_SNAKES_CLUB_PACK=https://3289537671-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FS5kw31UTGL8CPHU9skBS%2Fuploads%2FSIeSsvz348nXjNMcVPxx%2FTiger%20Snakes%20Club.zip?alt=media&token=872b383f-a209-4864-a0e0-26d7ba3a8d74
VITE_LINK_COBRA_SNAKES_CLUB_PACK=https://3289537671-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FS5kw31UTGL8CPHU9skBS%2Fuploads%2FITTbTC8DVwr8LdCkN82d%2FCobra%20Club.zip?alt=media&token=bfd94842-cba9-45c7-892b-331bc82c33e9
VITE_LINK_IMPACT_REPORT_2023=https://storage.googleapis.com/codeforlife-assets/impact_reports/impact_report_2023.pdf
VITE_LINK_IDEAS_BOX=https://docs.google.com/forms/d/e/1FAIpQLSclasSZCb7s26Yax3KZuXIFhLjMhGK591WPvht0BkfjSiQR1w/viewform
VITE_LINK_HOME_LEARNING_BEGINNER=https://code-for-life.gitbook.io/independent-student-resources/rapid-router-resources/beginner
Expand Down
4 changes: 3 additions & 1 deletion src/app/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ export const LINK_CFL_DOCS = env.VITE_LINK_CFL_DOCS
export const LINK_PRIMARY_PACK_GITBOOK = env.VITE_LINK_PRIMARY_PACK_GITBOOK
export const LINK_PRIMARY_PACK_DOWNLOAD = env.VITE_LINK_PRIMARY_PACK_DOWNLOAD
export const LINK_PYTHON_PACK_GITBOOK = env.VITE_LINK_PYTHON_PACK_GITBOOK
export const LINK_PYTHON_PACK_DOWNLOAD = env.VITE_LINK_PYTHON_PACK_DOWNLOAD
export const LINK_GRASS_SNAKES_CLUB_PACK = env.VITE_LINK_GRASS_SNAKES_CLUB_PACK
export const LINK_TIGER_SNAKES_CLUB_PACK = env.VITE_LINK_TIGER_SNAKES_CLUB_PACK
export const LINK_COBRA_SNAKES_CLUB_PACK = env.VITE_LINK_COBRA_SNAKES_CLUB_PACK

Check warning on line 27 in src/app/env.ts

View check run for this annotation

Codecov / codecov/patch

src/app/env.ts#L25-L27

Added lines #L25 - L27 were not covered by tests
export const LINK_IMPACT_REPORT_2023 = env.VITE_LINK_IMPACT_REPORT_2023
export const LINK_IDEAS_BOX = env.VITE_LINK_IDEAS_BOX
export const LINK_HOME_LEARNING_BEGINNER = env.VITE_LINK_HOME_LEARNING_BEGINNER
Expand Down
49 changes: 35 additions & 14 deletions src/pages/codingClubs/Python.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { Link, LinkButton } from "codeforlife/components/router"
import { Stack, Typography } from "@mui/material"
import { Download as DownloadIcon } from "@mui/icons-material"
import { type FC } from "react"
import { Typography } from "@mui/material"

import {
LINK_PYTHON_PACK_DOWNLOAD,
LINK_COBRA_SNAKES_CLUB_PACK,
LINK_GRASS_SNAKES_CLUB_PACK,
LINK_PYTHON_PACK_GITBOOK,
LINK_TIGER_SNAKES_CLUB_PACK,
} from "../../app/env"
import Introduction from "../../components/Introduction"
import PythonClubImage from "../../images/coding_club_python_pack.png"
Expand All @@ -23,11 +25,11 @@ const Python: FC<PythonProps> = () => {
direction="row-reverse"
>
<Typography>
Download your FREE coding club pack for students aged 12 and above. This
pack is a fast paced introduction to Python. It is aimed at students
already interested in learning coding, individuals looking to learn and
run their own club, or adults wanting to try coding out. It is designed
to be used in face-to-face or online clubs.
Download your FREE club packs for students aged 12 and above. These
packs provide a variety of challenges for different abilities. They are
aimed at students already interested in learning coding, individuals
looking to learn and run their own club, or adults wanting to try coding
out. They are designed to be used in face-to-face or online clubs.
</Typography>
<Typography>
View the resources{" "}
Expand All @@ -37,14 +39,33 @@ const Python: FC<PythonProps> = () => {
.
</Typography>
{/*TODO: Link to GTM for analytics*/}
<LinkButton
sx={{ marginTop: "auto" }}
to={LINK_PYTHON_PACK_DOWNLOAD}
target="_blank"
endIcon={<DownloadIcon />}
<Stack
direction={{ sm: "row", md: "column", lg: "row" }}
gap={2}
marginTop="auto"
>
Download the Python coding club pack
</LinkButton>
<LinkButton
to={LINK_GRASS_SNAKES_CLUB_PACK}
target="_blank"
endIcon={<DownloadIcon />}
>
Lvl 1: Grass Snakes
</LinkButton>
<LinkButton
to={LINK_TIGER_SNAKES_CLUB_PACK}
target="_blank"
endIcon={<DownloadIcon />}
>
Lvl 2: Tiger Snakes
</LinkButton>
<LinkButton
to={LINK_COBRA_SNAKES_CLUB_PACK}
target="_blank"
endIcon={<DownloadIcon />}
>
Lvl 3: Cobra Snakes
</LinkButton>
</Stack>
</Introduction>
)
}
Expand Down

0 comments on commit d998de5

Please sign in to comment.