Skip to content

Add proof of concept Codewars workshops #1538

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions common-theme/assets/styles/04-components/block.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,9 @@
color: var(--theme-color--pop);
}
}

&--codewars-workshop iframe {
width: 100%;
height: 90vh;
}
}
2 changes: 2 additions & 0 deletions common-theme/layouts/partials/block/block.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
{{ partial "block/slide.html" . }}
{{ else if eq $blockData.type "link" }}
{{ partial "block/link.html" . }}
{{ else if eq $blockData.type "codewars-workshop" }}
{{ partial "block/codewars-workshop.html" . }}
{{ else }}
{{ errorf "Unrecognized block type %s" $blockData.type }}
{{ end }}
19 changes: 19 additions & 0 deletions common-theme/layouts/partials/block/codewars-workshop.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{{ $blockData := .Page.Scratch.Get "blockData" }}

<section
class="c-block c-block--{{ $blockData.type }}"
aria-labelledby="{{ $blockData.name | urlize }}">
<header class="c-block__header">
<h2 class="c-block__title e-heading__2" id="{{ $blockData.name | urlize }}">
<a href="{{ $blockData.sot }}">🔗 {{ $blockData.name }}</a>
</h2>

{{ partial "time.html" . }}
</header>

<p>In groups, we will work through this Codewars problem. Split into groups, one per volunteer.</p>

<p>Remember: Our goals are to: Understand the problem and make a plan to solve it. These are more important steps than actually writing the code (though we should do that too, after we have a plan).</p>

<iframe src="{{ $blockData.sot }}"></iframe>
</section>
4 changes: 4 additions & 0 deletions common-theme/layouts/partials/block/data.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@
{{/* TODO pull time from commented out front matter in Github readmes */}}
{{ end }}

{{ if "codewars-workshops." | in $src }}
{{ .Scratch.SetInMap "blockData" "type" "codewars-workshop" }}
{{ end }}

{{/* TODO get rid of the old way of bringing in cyf pd and remove hardcoded CYF stuff here */}}
{{ if or ("cyf-pd.netlify.app" | in $src) ("/pd/"| in $src) }}
{{ .Scratch.SetInMap "blockData" "type" "pd" }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ time=10
name="Energiser: Popcorn"
src="energisers/popcorn-screen-share"
[[blocks]]
name="Javascript Test Your Understanding"
src="https://github.com/CodeYourFuture/CYF-Workshops/tree/main/js1-wk1-eval"
name="Problem Solving Workshop"
src="https://codewars-workshops.codeyourfuture.io/problem-01/"
time=65
[[blocks]]
name="Morning break"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ name="Morning orientation"
src="blocks/morning-orientation"
time=15
[[blocks]]
name="Questions and Review Workshop"
src="https://github.com/CodeYourFuture/CYF-Workshops/tree/main/questions-and-reviews"
name="Problem Solving Workshop"
src="https://codewars-workshops.codeyourfuture.io/problem-02/"
time=60
[[blocks]]
name="Morning break"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@ time=20
[[blocks]]
name="Workshop:Playing Computer"
src="https://github.com/CodeYourFuture/CYF-Workshops/tree/main/playing-computer"
time=140
time=65
[[blocks]]
name="Morning break"
src="blocks/morning-break"
[[blocks]]
name="Problem Solving Workshop"
src="https://codewars-workshops.codeyourfuture.io/problem-03/"
time=60
[[blocks]]
name="lunch"
src="blocks/lunch"
Expand Down
4 changes: 2 additions & 2 deletions org-cyf-itp/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ go 1.24.5

require (
github.com/CodeYourFuture/CYF-PD v1.0.1-0.20240905150045-7be086ff6886 // indirect
github.com/CodeYourFuture/curriculum/common-content v0.0.0-20241022142707-ee3974f18eb2 // indirect
github.com/CodeYourFuture/curriculum/common-theme v0.0.0-20241022142707-ee3974f18eb2 // indirect
github.com/CodeYourFuture/curriculum/common-content v0.0.0-20250801130816-705636729ea4 // indirect
github.com/CodeYourFuture/curriculum/common-theme v0.0.0-20250801130816-705636729ea4 // indirect
github.com/CodeYourFuture/curriculum/org-cyf-guides v0.0.0-20241022142707-ee3974f18eb2 // indirect
github.com/CodeYourFuture/curriculum/org-cyf-how-this-works v0.0.0-20241022142707-ee3974f18eb2 // indirect
github.com/CodeYourFuture/curriculum/org-cyf-piscine v0.0.0-20241022142707-ee3974f18eb2 // indirect
Expand Down
Loading