From f60799d78aac9f6f4cb068e03a003f192afccd50 Mon Sep 17 00:00:00 2001 From: Daniel Wagner-Hall Date: Tue, 23 Sep 2025 17:53:30 +0100 Subject: [PATCH 1/2] Add overview page showing the software pathway I perpetually re-create this display in slide decks - let's centralise the content somewhere we can link to. Right now it's not _beautiful_, but it exists. We can make it prettier. --- .../styles/04-components/course-overview.scss | 17 +++++++++++++ org-cyf-theme/data/courses/itp.toml | 7 +++++- org-cyf-theme/data/courses/piscine.toml | 6 +++++ org-cyf-theme/data/courses/sdc.toml | 8 +++++- org-cyf/content/_index.md | 2 +- org-cyf/content/overview/index.md | 4 +++ org-cyf/layouts/_default/overview.html | 25 +++++++++++++++++++ 7 files changed, 66 insertions(+), 3 deletions(-) create mode 100644 common-theme/assets/styles/04-components/course-overview.scss create mode 100644 org-cyf/content/overview/index.md create mode 100644 org-cyf/layouts/_default/overview.html diff --git a/common-theme/assets/styles/04-components/course-overview.scss b/common-theme/assets/styles/04-components/course-overview.scss new file mode 100644 index 000000000..dd088e883 --- /dev/null +++ b/common-theme/assets/styles/04-components/course-overview.scss @@ -0,0 +1,17 @@ +.c-course-overview { + &__courses { + display: flex; + flex-direction: row; + + > li { + flex: 1; + list-style: none; + } + + &__course { + &__skill { + margin-bottom: 1em; + } + } + } +} diff --git a/org-cyf-theme/data/courses/itp.toml b/org-cyf-theme/data/courses/itp.toml index ad480a53c..7db612a3d 100644 --- a/org-cyf-theme/data/courses/itp.toml +++ b/org-cyf-theme/data/courses/itp.toml @@ -2,10 +2,15 @@ name="Intro to Programming" code="itp" weight=2 menu="start here" -url="https://programming.codeyourfuture.io" +url="https://programming.codeyourfuture.io/" description="Programming with JavaScript, Python, and SQL; collaborate to deliver working software with tests" emoji="🐣" days=91 commitment="part time" frequency=3 locations=["Birmingham", "Capetown", "Glasgow", "London", "Manchester", "Sheffield"] +key_skills = [ + "Understanding requirements", + "Applying building blocks of code (variables, functions, arrays, if, for, ...)", + "Edge-cases and tests", +] diff --git a/org-cyf-theme/data/courses/piscine.toml b/org-cyf-theme/data/courses/piscine.toml index 28c771309..9e336efd9 100644 --- a/org-cyf-theme/data/courses/piscine.toml +++ b/org-cyf-theme/data/courses/piscine.toml @@ -9,3 +9,9 @@ days="22" commitment="part time" frequency=3 locations=["Birmingham", "Capetown", "Glasgow", "London", "Manchester", "Sheffield"] +key_skills = [ + "Test understanding with:", + "Projects", + "Demos", + "Interviews", +] diff --git a/org-cyf-theme/data/courses/sdc.toml b/org-cyf-theme/data/courses/sdc.toml index 77ce4dd96..db5e8fbc9 100644 --- a/org-cyf-theme/data/courses/sdc.toml +++ b/org-cyf-theme/data/courses/sdc.toml @@ -8,4 +8,10 @@ description="A secure grounding in software: binary, logic, systems, and problem days="84" commitment="part time" frequency=3 -locations=["Birmingham", "Capetown", "Glasgow", "London", "Manchester", "Sheffield"] \ No newline at end of file +locations=["Birmingham", "Capetown", "Glasgow", "London", "Manchester", "Sheffield"] +key_skills = [ + "Understanding limitations", + "Considering trade-offs", + "Designing systems", + "Working with legacy code", +] diff --git a/org-cyf/content/_index.md b/org-cyf/content/_index.md index 40de1d948..fd929f106 100644 --- a/org-cyf/content/_index.md +++ b/org-cyf/content/_index.md @@ -1,6 +1,6 @@ +++ title="Our Courses" menus_to_map=["start here", "selection", "trainees", "fellowships"] -description="Free training for good jobs in tech [📅 2025](/calendar)" +description="Free training for good jobs in tech | [Calendar](/calendar) | [Overview](/overview)" emoji= "🧑🏿‍🏫👨🏽‍🎓" +++ diff --git a/org-cyf/content/overview/index.md b/org-cyf/content/overview/index.md new file mode 100644 index 000000000..de06b1bf3 --- /dev/null +++ b/org-cyf/content/overview/index.md @@ -0,0 +1,4 @@ ++++ +title = "Overview of software courses" +layout = "overview" ++++ diff --git a/org-cyf/layouts/_default/overview.html b/org-cyf/layouts/_default/overview.html new file mode 100644 index 000000000..c8068459b --- /dev/null +++ b/org-cyf/layouts/_default/overview.html @@ -0,0 +1,25 @@ +{{ define "main" }} +{{ $site := .Site }} + +{{ partial "page-header.html" . }} + +{{ with . }} +
    + {{/* Range over the courses stored in /data/courses */}} + {{ $counter := 0 }} + {{ range $index, $course:= (sort site.Data.courses "weight" "asc") }} + {{ $counter = add $counter 1 }} + {{ if $course.key_skills }} +
  1. +

    {{ $course.name }}

    +
      + {{ range $key_skill := $course.key_skills }} +
    • {{ $key_skill }}
    • + {{ end }} +
    +
  2. + {{ end }} + {{ end }} +
+{{ end }} +{{ end }} From f5277ed572b05bf381b5dd8f64c48dc96e1f0197 Mon Sep 17 00:00:00 2001 From: Daniel Wagner-Hall Date: Wed, 24 Sep 2025 14:01:37 +0100 Subject: [PATCH 2/2] Remove double / --- org-cyf/layouts/_default/overview.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org-cyf/layouts/_default/overview.html b/org-cyf/layouts/_default/overview.html index c8068459b..e30e7f8ba 100644 --- a/org-cyf/layouts/_default/overview.html +++ b/org-cyf/layouts/_default/overview.html @@ -11,7 +11,7 @@ {{ $counter = add $counter 1 }} {{ if $course.key_skills }}
  • -

    {{ $course.name }}

    +

    {{ $course.name }}

      {{ range $key_skill := $course.key_skills }}
    • {{ $key_skill }}