Skip to content

Commit 900244c

Browse files
authored
Merge branch 'main' into fix/update-code-blocks
2 parents 2b4e1e1 + 038d234 commit 900244c

File tree

6 files changed

+33
-15
lines changed

6 files changed

+33
-15
lines changed

src/components/EducationResource/index.astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ interface Props {
88
}
99
1010
const { name, featuredImage, featuredImageAlt } = Astro.props;
11+
const authorHTML = (await Astro.slots.render("author")).replace(/\<p[^\>]*\>/gm, "");
1112
1213
---
1314
<li class="col-span-3">
@@ -21,6 +22,7 @@ const { name, featuredImage, featuredImageAlt } = Astro.props;
2122
</div>
2223
<div class="rendered-markdown">
2324
<div class="text-sm">
25+
<h4 set:html={authorHTML} />
2426
<slot name="description" />
2527
</div>
2628
<div class="text-sm leading-8 [&_a]:whitespace-nowrap [&_a]:rounded-full [&_a]:mr-1 [&_a]:py-1 [&_a]:px-2 [&_a]:outline [&_a]:outline-1 [&_a]:outline-[var(--type-magenta-dark)]">

src/content/pages/en/education-resources.mdx

Lines changed: 31 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Every teaching has its own unique goals, messages, conditions, and environments.
3434
</EducationResource>
3535

3636
<EducationResource
37-
name="Xin Xin’s p5.js Tutorials"
37+
name="p5.js Tutorials by Xin Xin"
3838
featuredImage={await import("../images/education-resources/xin-xin.jpg")}
3939
featuredImageAlt="Xin Xin’s tutorial cover titled “Experimental Typography textToPoints() Javascript splice()"
4040
>
@@ -50,7 +50,7 @@ Every teaching has its own unique goals, messages, conditions, and environments.
5050
</EducationResource>
5151

5252
<EducationResource
53-
name="Patt Vira’s p5.js Tutorials"
53+
name="p5.js Tutorials by Patt Vira"
5454
featuredImage={await import("../images/education-resources/patt-vira.jpg")}
5555
featuredImageAlt="Patt Vira’s youtube channel banner, showing “MAKE ART WITH CODE New video Monday, Wednesday, and Friday”"
5656
>
@@ -83,18 +83,34 @@ Every teaching has its own unique goals, messages, conditions, and environments.
8383
</EducationResource>
8484

8585
<EducationResource
86-
name="Creative Coding Class with p5.js"
87-
featuredImage={await import("../images/education-resources/cc2021lowres.jpg")}
88-
featuredImageAlt="Cover photo with text 'Creative Coding'"
86+
name="p5.js Tutorials by Computational Mama"
87+
featuredImage={await import("../images/education-resources/ComputationalMama.png")}
88+
featuredImageAlt="A screenshot of p5.js tutorial by Computational Mama"
8989
>
9090
<Fragment slot="author">
91-
Carrie Sijia Wang
91+
Computational Mama
9292
</Fragment>
9393
<Fragment slot="description">
94-
Fundamental coding class using p5.js
94+
Experiments with creative coding and live coding with p5js.
9595
</Fragment>
9696
<Fragment slot="materials">
97-
[GitHub](https://github.com/ellennickles/creative-coding-summer-21/blob/main/homework-carrie.md)
97+
[YouTube](https://www.youtube.com/@ComputationalMama)
98+
</Fragment>
99+
</EducationResource>
100+
101+
<EducationResource
102+
name="Critical Code Cookbook"
103+
featuredImage={await import("../images/education-resources/critical-code-cookbook.png")}
104+
featuredImageAlt="A header image showing “Critical Coding Cookbook: Intersectional Feminist Approaches to Teaching and Learning"
105+
>
106+
<Fragment slot="author">
107+
Critical Code Cookbook
108+
</Fragment>
109+
<Fragment slot="description">
110+
Intersectional Feminist Approaches to Teaching and Learning Material.
111+
</Fragment>
112+
<Fragment slot="materials">
113+
[Website](https://criticalcode.recipes/)
98114
</Fragment>
99115
</EducationResource>
100116

@@ -132,18 +148,18 @@ Every teaching has its own unique goals, messages, conditions, and environments.
132148
</EducationResource>
133149

134150
<EducationResource
135-
name="Critical Code Cookbook"
136-
featuredImage={await import("../images/education-resources/critical-code-cookbook.png")}
137-
featuredImageAlt="A header image showing “Critical Coding Cookbook: Intersectional Feminist Approaches to Teaching and Learning"
151+
name="Creative Coding Class with p5.js"
152+
featuredImage={await import("../images/education-resources/cc2021lowres.jpg")}
153+
featuredImageAlt="Cover photo with text 'Creative Coding'"
138154
>
139155
<Fragment slot="author">
140-
Critical Code Cookbook
156+
Carrie Sijia Wang
141157
</Fragment>
142158
<Fragment slot="description">
143-
Intersectional Feminist Approaches to Teaching and Learning Material.
159+
Fundamental coding class using p5.js
144160
</Fragment>
145161
<Fragment slot="materials">
146-
[Website](https://criticalcode.recipes/)
162+
[GitHub](https://github.com/ellennickles/creative-coding-summer-21/blob/main/homework-carrie.md)
147163
</Fragment>
148164
</EducationResource>
149165

@@ -165,7 +181,7 @@ Every teaching has its own unique goals, messages, conditions, and environments.
165181

166182
<EducationResource
167183
name="Machine Learning for the Web"
168-
featuredImage={await import("../images/education-resources/ml5js.jpg")}
184+
featuredImage={await import("../images/education-resources/ml5js.png")}
169185
featuredImageAlt="pix2pix demo image with cat image generated from edges."
170186
>
171187
<Fragment slot="author">
385 KB
Loading
-496 KB
Loading
Binary file not shown.
365 KB
Loading

0 commit comments

Comments
 (0)