Skip to content

Commit 2fff10b

Browse files
committed
Merge branch 'main' into banner
2 parents 2996fa9 + 4a41b8d commit 2fff10b

17 files changed

Lines changed: 137 additions & 19 deletions

src/components/ReferenceDirectoryWithFilter/index.tsx

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,18 @@ export const ReferenceDirectoryWithFilter = ({
104104
</div>
105105
);
106106

107+
const subcatShouldHaveHeading = (
108+
subcat: { name: string },
109+
category: { name: string },
110+
) => {
111+
return !(!subcat.name || !category.name || subcat.name === "p5.sound");
112+
}
113+
107114
const getSubcatHeading = (
108115
subcat: { name: string },
109116
category: { name: string },
110117
) => {
111-
if (!subcat.name || !category.name || subcat.name === "p5.sound") {
118+
if (!subcatShouldHaveHeading(subcat, category)) {
112119
return null;
113120
}
114121

@@ -136,7 +143,14 @@ export const ReferenceDirectoryWithFilter = ({
136143
}
137144
return filteredEntries.map((category) => (
138145
<section key={category.name}>
139-
<h2 class="mb-0" id={category.name}>
146+
<h2
147+
class={
148+
subcatShouldHaveHeading(category.subcats[0], category)
149+
? "mb-0"
150+
: "mb-[var(--gutter-md)]"
151+
}
152+
id={category.name}
153+
>
140154
{category.name}
141155
</h2>
142156
{category.subcats.map((subcat) => (

src/content/homepage/en.yaml

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,29 @@
11
title: p5.js
22
heroImages:
33
- image: ./images/hero.webp
4-
altText: Lauren Lee McCarthy reading the Processing Community Catalog
5-
caption: "Lauren Lee McCarthy reading the Processing Community Catalog. Photo: Maximo Xtravaganza"
6-
- image: ./images/salon-9.webp
7-
altText: Image alt text here
8-
caption: "New web editor features"
9-
- image: ./images/2015-7.webp
10-
altText: Image alt text here
11-
caption: "Contributors Conference 2015"
4+
altText: Lauren Lee McCarthy reading the Processing Community Catalog.
5+
caption: "Lauren Lee McCarthy reading the Processing Community Catalog. Photo: Maximo Xtravaganza."
6+
- image: ./images/p5for50plus.webp
7+
altText: Inhwa Yeom teaching p5.js to people aged 50+.
8+
caption: "Coding Club for people aged 50+ in Korea, led by Inhwa Yeom."
9+
- image: ./images/salon-2.webp
10+
altText: Qianqian Ye holding a mic next to a big t.v. screen that has a grid of p5.js contributor photos on it.
11+
caption: "Qianqian Ye introducing 600+ p5.js contributors at p5.js Community Salon."
12+
- image: ./images/ccfest2018.webp
13+
altText: p5.js workshop participants coding while showing their projects on screen.
14+
caption: "p5.js workshop at CC Fest NYC at ITP-NYU in November 2018."
15+
- image: ./images/tunapanda.webp
16+
altText: Students learning to code while checking a p5.js book.
17+
caption: "p5.js workshop at Tunapanda Institute in Nairobi"
18+
- image: ./images/contributor-conf-2019_10.webp
19+
altText: Person with a microphone speaking to fellow participants in front of text that reads p5.js will not add any new features except those that increase access.
20+
caption: "p5.js will not add any new features except those that increase access."
21+
- image: ./images/contributor-conf-2015.webp
22+
altText: Participants jump, smile and throw their hands in the air on a green lawn.
23+
caption: "p5.js Contributors Conference 2015."
24+
- image: ./images/contributor-conf-2019.webp
25+
altText: Participants sit around a table with their laptops and observe code on a screen.
26+
caption: "p5.js Contributors Conference 2019."
1227
heroText: >
1328
p5.js is a friendly tool for learning to code and make art. It is a free and open-source JavaScript library built by an inclusive, nurturing community. p5.js welcomes artists, designers, beginners, educators, and anyone else!
1429
referenceHeaderText: Explore the p5.js library reference

src/content/homepage/es.yaml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,29 @@ heroText: >
33
p5.js es una herramienta amigable para aprender a programar y hacer arte. Es una biblioteca de JavaScript libre y de código abierto construida por una comunidad inclusiva y solidaria. ¡p5.js da la bienvenida a artistas, diseñadores, principiantes, educadores y cualquier otra persona!
44
heroImages:
55
- image: ./images/hero.webp
6-
altText: Lauren Lee McCarthy reading the Processing Community Catalog
7-
caption: "Lauren Lee McCarthy reading the Processing Community Catalog. Photo: Maximo Xtravaganza"
6+
altText: Lauren Lee McCarthy reading the Processing Community Catalog.
7+
caption: "Lauren Lee McCarthy reading the Processing Community Catalog. Photo: Maximo Xtravaganza."
8+
- image: ./images/p5for50plus.webp
9+
altText: Inhwa Yeom teaching p5.js to people aged 50+.
10+
caption: "Coding Club for people aged 50+ in Korea, led by Inhwa Yeom."
11+
- image: ./images/salon-2.webp
12+
altText: Qianqian Ye holding a mic next to a big t.v. screen that has a grid of p5.js contributor photos on it.
13+
caption: "Qianqian Ye introducing 600+ p5.js contributors at p5.js Community Salon."
14+
- image: ./images/ccfest2018.webp
15+
altText: p5.js workshop participants coding while showing their projects on screen.
16+
caption: "p5.js workshop at CC Fest NYC at ITP-NYU in November 2018."
17+
- image: ./images/tunapanda.webp
18+
altText: Students learning to code while checking a p5.js book.
19+
caption: "p5.js workshop at Tunapanda Institute in Nairobi"
20+
- image: ./images/contributor-conf-2019_10.webp
21+
altText: Person with a microphone speaking to fellow participants in front of text that reads p5.js will not add any new features except those that increase access.
22+
caption: "p5.js will not add any new features except those that increase access."
23+
- image: ./images/contributor-conf-2015.webp
24+
altText: Participants jump, smile and throw their hands in the air on a green lawn.
25+
caption: "p5.js Contributors Conference 2015."
26+
- image: ./images/contributor-conf-2019.webp
27+
altText: Participants sit around a table with their laptops and observe code on a screen.
28+
caption: "p5.js Contributors Conference 2019."
829
referenceHeaderText: Explore the p5.js library reference
930
examplesHeaderText: Learn p5.js with examples
1031
communityHeaderText: See the p5.js community in action

src/content/homepage/hi.yaml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,29 @@ heroText: >
33
p5.js कोड करना और कला बनाना सीखने के लिए एक अनुकूल उपकरण है। यह एक नि:शुल्क और ओपन-सोर्स जावास्क्रिप्ट लाइब्रेरी है जो एक समावेशी, पोषित समुदाय द्वारा बनाई गई है। p5.js कलाकारों, डिज़ाइनरों, नौसिखिया, शिक्षकों और किसी अन्य का भी स्वागत करता है!
44
heroImages:
55
- image: ./images/hero.webp
6-
altText: Lauren Lee McCarthy reading the Processing Community Catalog
7-
caption: "Lauren Lee McCarthy reading the Processing Community Catalog. Photo: Maximo Xtravaganza"
6+
altText: Lauren Lee McCarthy reading the Processing Community Catalog.
7+
caption: "Lauren Lee McCarthy reading the Processing Community Catalog. Photo: Maximo Xtravaganza."
8+
- image: ./images/p5for50plus.webp
9+
altText: Inhwa Yeom teaching p5.js to people aged 50+.
10+
caption: "Coding Club for people aged 50+ in Korea, led by Inhwa Yeom."
11+
- image: ./images/salon-2.webp
12+
altText: Qianqian Ye holding a mic next to a big t.v. screen that has a grid of p5.js contributor photos on it.
13+
caption: "Qianqian Ye introducing 600+ p5.js contributors at p5.js Community Salon."
14+
- image: ./images/ccfest2018.webp
15+
altText: p5.js workshop participants coding while showing their projects on screen.
16+
caption: "p5.js workshop at CC Fest NYC at ITP-NYU in November 2018."
17+
- image: ./images/tunapanda.webp
18+
altText: Students learning to code while checking a p5.js book.
19+
caption: "p5.js workshop at Tunapanda Institute in Nairobi"
20+
- image: ./images/contributor-conf-2019_10.webp
21+
altText: Person with a microphone speaking to fellow participants in front of text that reads p5.js will not add any new features except those that increase access.
22+
caption: "p5.js will not add any new features except those that increase access."
23+
- image: ./images/contributor-conf-2015.webp
24+
altText: Participants jump, smile and throw their hands in the air on a green lawn.
25+
caption: "p5.js Contributors Conference 2015."
26+
- image: ./images/contributor-conf-2019.webp
27+
altText: Participants sit around a table with their laptops and observe code on a screen.
28+
caption: "p5.js Contributors Conference 2019."
829
referenceHeaderText: Explore the p5.js library reference
930
examplesHeaderText: Learn p5.js with examples
1031
communityHeaderText: See the p5.js community in action
1.9 MB
Loading
132 KB
Loading
841 KB
Loading
184 KB
Loading
104 KB
Loading
216 KB
Loading

0 commit comments

Comments
 (0)