-
-
Notifications
You must be signed in to change notification settings - Fork 0
Add site with upstream SDC content, unedited #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| /.env |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| /.hugo_build.lock | ||
| /node_modules/ | ||
| /public/ | ||
| /resources/ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| @mixin light-palette { | ||
| // these brand colours are set and then everything else is derived from the key | ||
| --theme-color--brand: rgb(21, 212, 190); | ||
| --theme-color--brand-shade: rgba(21, 212, 190, .05); | ||
| --theme-color--accent: rgb(21, 212, 190); | ||
| --theme-color--accent-shade: hsla(146, 100%, 46%, 0.5); | ||
| --theme-color--pop: hsla(262, 100%, 62%, 1); | ||
| // key | ||
| --hue: 210; | ||
| --sat: 35%; | ||
| --lum: 90%; | ||
| --alpha: 0.95; | ||
| --hsl: var(--hue), var(--sat), var(--lum); | ||
| // now build all the shades | ||
| --theme-color--paper: hsla( | ||
| var(--hue), | ||
| calc(var(--sat) * 1.2), | ||
| calc(var(--lum) * 1.06), | ||
| var(--alpha) | ||
| ); | ||
| --theme-color--ink: hsla( | ||
| var(--hue), | ||
| calc(var(--sat) * 2.2), | ||
| calc(var(--lum) * 0.3), | ||
| var(--alpha) | ||
| ); | ||
| --theme-color--ink-fade: hsla( | ||
| var(--hue), | ||
| calc(var(--sat) * 2.2), | ||
| calc(var(--lum) * 0.3), | ||
| calc(var(--alpha) * 0.3) | ||
| ); | ||
| --theme-color--paper-fade: hsla( | ||
| var(--hue), | ||
| calc(var(--sat) * 1.2), | ||
| calc(var(--lum) * 1.06), | ||
| 0.9 | ||
| ); | ||
| --theme-color--contrast-max: hsl( | ||
| var(--hue), | ||
| calc(var(--sat) / 100), | ||
| calc(var(--lum) * 2) var(--alpha) | ||
| ); | ||
|
|
||
| // backdrop | ||
| --theme-color--block: hsla(var(--hsl), var(--alpha)); | ||
| --theme-color--outline: hsl(var(--hsl), 1); | ||
| --theme-color--backdrop-from: hsl(var(--hsl) / 0.25); | ||
| --theme-color--backdrop-to: hsl(var(--hsl) / 0.2); | ||
| } | ||
|
|
||
| @mixin dark-palette { | ||
| --hue: 270; | ||
| --sat: 8%; | ||
| --lum: 20%; | ||
| --alpha: 0.99; | ||
| --theme-color--ink: hsla( | ||
| calc(var(--hue) * 1.1), | ||
| calc(var(--sat) + 60%), | ||
| calc(var(--lum) * 4.4), | ||
| var(--alpha) | ||
| ); | ||
| --theme-color--accent: rgb(21, 212, 190); | ||
| --theme-color--pop: hsl(321, 100%, 46%); | ||
| } | ||
|
|
||
| :root { | ||
| @include light-palette(); | ||
| @media (prefers-color-scheme: dark) { | ||
| @include dark-palette(); | ||
| } | ||
| } | ||
|
|
||
| // see states for classes that toggle these | ||
| // no classes in the variables folder | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| :root { | ||
| --theme-font--display: "Jura", serif; | ||
| --theme-font--copy: "Inter", system-ui, -apple-system, BlinkMacSystemFont, | ||
| "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", | ||
| sans-serif; | ||
| --theme-font--system: 100 100%/2 "Monaco", "Menlo", "Space Grotesk", monospace; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| .is-dark-mode, | ||
| :root:has(.is-dark-mode) { | ||
| @include dark-palette; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| .is-light-mode, | ||
| :root:has(.is-light-mode) { | ||
| @include light-palette; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| +++ | ||
| title = "Software Development Course" | ||
| menus_to_map = ["start here", "SDC"] | ||
| description = "Practical, employment-focused training in foundational software concepts." | ||
| emoji = "🧑🏾🔧" | ||
| +++ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| +++ | ||
| title = "Overview" | ||
| emoji = "🌐" | ||
| time = 5 | ||
| hide_from_overview = true | ||
| [build] | ||
| render = "never" | ||
| list = "local" | ||
| publishResources = false | ||
| +++ | ||
|
|
||
| <!-- | ||
| TODO: Consider rewriting this block - it's currently specific to CYF's pacing. | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This intro is currently not shared from the upstream repo. Upstream it is CYF-specific (we can tell this because it's in https://github.com/CodeYourFuture/curriculum/blob/main/org-cyf-sdc/content/blocks/decomposition-sprint1-overview/index.md which has You probably want to rewrite this block to describe how you break things up yourselves into different days and weeks. For now, I copy it over verbatim as a placeholder. |
||
| --> | ||
|
|
||
| This sprint we're going to focus on why and how we break up software into different components, such as a frontend and backend. | ||
|
|
||
| We will do this through a worked example. We will build a quote website, which lets people get quotes, or add quotes to a list. | ||
|
|
||
| We will supply most of the code for you. You should read the code and make sure you understand it. Then you should copy it onto your computer, run it, and experiment with it. Later, you will need to deploy it to the internet, and you will need to modify the code yourself. | ||
|
|
||
| Next sprint, you will be building your own website. It will be similar, but not the same. You will build an interactive chat room, where multiple users can chat in real-time. We will not supply the code. You will need to apply all of the skills you're learning this sprint to write and deploy the code yourself. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| +++ | ||
| title = "Complexity" | ||
| description = "Efficiency, optimisation, and trade-offs" | ||
| layout = "module" | ||
| emoji = "🪆" | ||
| menu = ["syllabus", "core", "SDC"] | ||
| weight = "6" | ||
| +++ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| +++ | ||
| title = "Prep" | ||
| description = "Prepare to succeed in this module" | ||
| layout = "prep" | ||
| emoji = "🧰" | ||
| menu_level = ["module"] | ||
| weight = 1 | ||
| [[blocks]] | ||
| title = "Introduction" | ||
| src = "module/complexity/introduction" | ||
| time = 10 | ||
| +++ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| +++ | ||
| title = "Sprint 1" | ||
| description = "The plan for this sprint" | ||
| layout = "sprint" | ||
| emoji = "⏱️" | ||
| menu_level = ["module"] | ||
| weight = 2 | ||
| theme = "Memory and CPU" | ||
| +++ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| +++ | ||
| title = "Backlog" | ||
| layout = "backlog" | ||
| emoji = "🥞" | ||
| menu_level = ["sprint"] | ||
| weight = 2 | ||
| backlog = "Module-Complexity" | ||
| backlog_filter = "📅 Sprint 1" | ||
| +++ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| +++ | ||
| title = "Day Plan" | ||
| layout = "day-plan" | ||
| emoji = "🧑🏾🤝🧑🏾" | ||
| menu_level = ["sprint"] | ||
| weight = 3 | ||
| [[blocks]] | ||
| name = "Morning orientation" | ||
| src = "blocks/morning-orientation" | ||
| [[blocks]] | ||
| name = "Sorting Cards Workshop" | ||
| src = "https://github.com/CodeYourFuture/CYF-Workshops/readme/sorting-cards" | ||
| time = "90" | ||
| [[blocks]] | ||
| name = "Morning break" | ||
| src = "blocks/morning-break" | ||
| [[blocks]] | ||
| name = "Discussion: Technical Interviews" | ||
| src = "blocks/discuss-technical-interviews" | ||
| [[blocks]] | ||
| name = "Games, rules, logic and strategy" | ||
| src = "blocks/games" | ||
| time = "25" | ||
| [[blocks]] | ||
| name = "lunch" | ||
| src = "blocks/lunch" | ||
| [[blocks]] | ||
| name = "demo" | ||
| src = "blocks/demo" | ||
| time = "30" | ||
| [[blocks]] | ||
| name = "Study Group" | ||
| src = "blocks/study-group" | ||
| time = "45" | ||
| [[blocks]] | ||
| name = "Code Review" | ||
| src = "https://github.com/CodeYourFuture/Module-Complexity/pulls" | ||
| time = "0" | ||
| [[blocks]] | ||
| name = "Afternoon break" | ||
| src = "blocks/afternoon-break" | ||
| [[blocks]] | ||
| name = "Study Group" | ||
| src = "blocks/study-group" | ||
| time = "60" | ||
| [[blocks]] | ||
| name = "Retro" | ||
| src = "blocks/retro" | ||
| +++ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| +++ | ||
| title = "Prep" | ||
| description = "Examining the cost of computation" | ||
| layout = "prep" | ||
| emoji = "🧑🏾💻" | ||
| menu_level = ["sprint"] | ||
| weight = 1 | ||
| [[blocks]] | ||
| name = "Space: Memory consumption" | ||
| src = "module/complexity/memory-consumption" | ||
| [[blocks]] | ||
| name = "Time: Big-O" | ||
| src = "module/complexity/big-o" | ||
| [[blocks]] | ||
| name = "Worked example" | ||
| src = "module/complexity/worked-example-duplicate-encoder" | ||
| [[blocks]] | ||
| name = "'Expensive' Operations" | ||
| src = "module/complexity/operations" | ||
| [[blocks]] | ||
| name = "Network as a bottleneck" | ||
| src = "module/complexity/network-as-a-bottleneck" | ||
| [[blocks]] | ||
| name = "n+1" | ||
| src = "module/complexity/n+1" | ||
| [[blocks]] | ||
| name = "Memory, Cache Locality, and why arrays are fast" | ||
| src = "https://www.youtube.com/watch?v=247cXLkYt2M" | ||
| +++ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| +++ | ||
| title = "Success" | ||
| layout = "success" | ||
| emoji = "✅" | ||
| menu_level = ["sprint"] | ||
| weight = 4 | ||
| +++ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| +++ | ||
| title = "Sprint 2" | ||
| description = "The plan for this sprint" | ||
| layout = "sprint" | ||
| emoji = "⏱️" | ||
| menu_level = ["module"] | ||
| weight = 2 | ||
| theme = "Caches and trade-offs" | ||
| +++ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| +++ | ||
| title = "Backlog" | ||
| layout = "backlog" | ||
| emoji = "🥞" | ||
| menu_level = ["sprint"] | ||
| weight = 2 | ||
| backlog = "Module-Complexity" | ||
| backlog_filter = "📅 Sprint 2" | ||
| +++ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| +++ | ||
| title = "Day Plan" | ||
| layout = "day-plan" | ||
| emoji = "🧑🏾🤝🧑🏾" | ||
| menu_level = ["sprint"] | ||
| weight = 3 | ||
| [[blocks]] | ||
| name = "Morning orientation" | ||
| src = "blocks/morning-orientation" | ||
| [[blocks]] | ||
| name = "User Needs and Acceptance Criteria Workshop" | ||
| src = "https://github.com/CodeYourFuture/CYF-Workshops/readme/user-needs-and-acceptance-criteria" | ||
| time = "60" | ||
| [[blocks]] | ||
| name = "Morning break" | ||
| src = "blocks/morning-break" | ||
| [[blocks]] | ||
| name = "Clean Code Workshop" | ||
| src = "module/complexity/clean-code-workshop" | ||
| time = "45" | ||
| [[blocks]] | ||
| name = "Study Group" | ||
| src = "blocks/study-group" | ||
| time = "40" | ||
| [[blocks]] | ||
| name = "lunch" | ||
| src = "blocks/lunch" | ||
| [[blocks]] | ||
| name = "demo" | ||
| src = "blocks/demo" | ||
| time = "30" | ||
| [[blocks]] | ||
| name = "Study Group" | ||
| src = "blocks/study-group" | ||
| time = "45" | ||
| [[blocks]] | ||
| name = "Code Review" | ||
| src = "https://github.com/CodeYourFuture/Module-Complexity/pulls" | ||
| time = "0" | ||
| [[blocks]] | ||
| name = "Afternoon break" | ||
| src = "blocks/afternoon-break" | ||
| [[blocks]] | ||
| name = "Study Group" | ||
| src = "blocks/study-group" | ||
| time = "60" | ||
| [[blocks]] | ||
| name = "Retro" | ||
| src = "blocks/retro" | ||
| +++ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This theming is currently in the
org-mcb-sdcsite.When we pull a second site in here (e.g. itp), we probably want to move them into a module where they can be shared between both sites.
But for now, they're only used in here, so I've left them in-line.