Skip to content

Commit 637467f

Browse files
committed
Merge branch 'showcase' of github.com:processing/p5.js-website into showcase
2 parents 2a083cc + c9b5df2 commit 637467f

File tree

12 files changed

+290
-248
lines changed

12 files changed

+290
-248
lines changed

i18n-tracking.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ es:
169169
line 550: ' project-moon-xin'
170170
line 551: ' credit-moon-xin'
171171
line 552: ' description-moon-xin'
172+
line 669: ' credit-moon-xin'
172173
zh-Hans:
173174
src/data/en.yml:
174175
line 44: ' description-roni'
@@ -267,3 +268,4 @@ zh-Hans:
267268
line 550: ' project-moon-xin'
268269
line 551: ' credit-moon-xin'
269270
line 552: ' description-moon-xin'
271+
line 669: ' credit-moon-xin'

src/assets/css/main.css

Lines changed: 45 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,6 @@ img.gallery-img {
10911091
#showcase-page .project-page h2{
10921092
font: italic 900 2rem "Montserrat", sans-serif;
10931093
color: #ED225D;
1094-
text-align: center;
10951094
letter-spacing: 0.05rem;
10961095
}
10971096

@@ -1120,11 +1119,11 @@ img.gallery-img {
11201119

11211120
#showcase-page .showcase-featured p.description {
11221121
font-size: 1em;
1122+
margin-bottom: 3rem;
11231123
}
11241124

11251125
#showcase-page .nominate {
11261126
margin-top: 1.5em;
1127-
text-align: center;
11281127
display: inline-block;
11291128
}
11301129

@@ -1150,18 +1149,20 @@ img.gallery-img {
11501149
content: " →";
11511150
}
11521151

1153-
.glitch-embed-wrap {
1152+
.project-info {
11541153
margin-top: 1em;
11551154
}
11561155

11571156
#showcase-page ul.project-tags {
1158-
display: -webkit-box;
1157+
/*display: -webkit-box;
11591158
display: -webkit-flex;
11601159
display: flex;
11611160
-webkit-flex-wrap: wrap;
11621161
flex-wrap: wrap;
11631162
margin-top: -0.2em;
11641163
margin-bottom: 2em;
1164+
*/
1165+
display: none;
11651166
}
11661167

11671168
#showcase-page ul.project-tags li {
@@ -1199,64 +1200,74 @@ img.gallery-img {
11991200
*/
12001201

12011202
#showcase-page .project-page h2 {
1202-
text-align: center;
12031203
line-height: 1.4;
12041204
}
12051205

1206-
#showcase-page .project-info,
1207-
#showcase-page .project-resources,
1208-
#showcase-page .project-credit {
1209-
text-align: center;
1206+
@media (min-width: 720px) {
1207+
1208+
/* for desktop/tablet:
1209+
* - two columns, one each for resources & authors
1210+
* - indent answer paragraphs in q & a
1211+
*/
1212+
1213+
#showcase-page .project-metadata {
1214+
display: flex;
1215+
}
1216+
1217+
#showcase-page .project-resources {
1218+
margin-left: 3.0rem;
1219+
}
1220+
1221+
#showcase-page .project-a {
1222+
width: 90%;
1223+
float: right;
1224+
display: inline-block;
1225+
clear: both;
1226+
}
1227+
12101228
}
12111229

1212-
#showcase-page .project-resources {
1213-
display: flex;
1230+
#showcase-page .project-metadata {
12141231
margin-top: 3%;
12151232
}
12161233

1217-
#showcase-page .project-resources ul.links {
1218-
display: inline-grid;
1219-
grid-auto-flow: row;
1220-
grid-gap: 3vw;
1221-
justify-items: center;
1222-
margin: auto;
1234+
#showcase-page .project-metadata section h3 {
1235+
color: #ED225D;
1236+
font: bold italic 1.0rem "Montserrat", sans-serif;
1237+
}
12231238

1239+
#showcase-page .project-resources ul.links {
12241240
font: 500 .7rem "Montserrat", sans-serif;
12251241
letter-spacing: 0.01rem;
12261242
line-height: 1.5;
1243+
margin: 0.5rem 0;
12271244
}
12281245

1229-
@media (min-width: 480px){
1230-
#showcase-page .project-resources ul.links {
1231-
grid-auto-flow: column;
1232-
}
1233-
}
1234-
1235-
#showcase ul.links li {
1236-
grid-column: 1 / 2;
1237-
grid-row: 1 / 2;
1246+
#showcase-page .project-credit {
1247+
font: italic bold 1.25rem "Montserrat", sans-serif;
12381248
}
12391249

1240-
#showcase-page .project-credit {
1241-
font: italic bold 1.7rem "Montserrat", sans-serif;
1250+
#showcase-page .project-credit p {
1251+
margin: 0.5rem 0;
12421252
}
12431253

12441254
#showcase-page .note {
12451255
font-size: 0.7rem;
12461256
}
12471257

1248-
#showcase-page .project-a {
1249-
width: 90%;
1250-
float: right;
1251-
display: inline-block;
1252-
clear: both;
1258+
#showcase-page .creator-from {
1259+
font-size: 0.7rem;
12531260
}
12541261

12551262
#showcase-page .project-q {
12561263
margin-left: 0%;
12571264
display: inline-block;
12581265
clear: both;
1259-
font: 500 1rem "Montserrat", sans-serif;
1266+
/*
1267+
font-size: 1.2rem;
1268+
font-weight: 900;
1269+
*/
1270+
font: 900 1.2rem 'Montserrat', sans-serif;
12601271
line-height: 1.5;
12611272
}
12621273

src/data/en.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,5 +665,5 @@ showcase:
665665
credit-casey-louise: "Casey Conchinha, Louise Lessél"
666666
description-casey-louise: "A resource for learning the what, why, and how of using shaders in p5.js."
667667
project-moon-xin: "Moving Responsive Posters"
668-
credit-moon-xin: "Moon Jang, Xin Xin"
668+
credit-moon-xin: "Moon Jang, Xin Xin, and students"
669669
description-moon-xin: "Browser-based moving posters that use graphical systems, transformation methods, and p5.js to address the connotations of a word less than 8 letters. Designed by students for a graphic design course (Visual Narrative Systems) at the University of Georgia."

src/data/es.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,5 +667,5 @@ showcase:
667667
credit-casey-louise: "Casey Conchinha, Louise Lessél"
668668
description-casey-louise: "A resource for learning the what, why, and how of using shaders in p5.js."
669669
project-moon-xin: "Moving Responsive Posters"
670-
credit-moon-xin: "Moon Jang, Xin Xin"
670+
credit-moon-xin: "Moon Jang, Xin Xin, and students"
671671
description-moon-xin: "Browser-based moving posters that use graphical systems, transformation methods, and p5.js to address the connotations of a word less than 8 letters. Designed by students for a graphic design course (Visual Narrative Systems) at the University of Georgia."

src/data/zh-Hans.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,5 +665,5 @@ showcase:
665665
credit-casey-louise: "Casey Conchinha, Louise Lessél"
666666
description-casey-louise: "A resource for learning the what, why, and how of using shaders in p5.js."
667667
project-moon-xin: "Moving Responsive Posters"
668-
credit-moon-xin: "Moon Jang, Xin Xin"
668+
credit-moon-xin: "Moon Jang, Xin Xin, and students"
669669
description-moon-xin: "Browser-based moving posters that use graphical systems, transformation methods, and p5.js to address the connotations of a word less than 8 letters. Designed by students for a graphic design course (Visual Narrative Systems) at the University of Georgia."

src/templates/pages/showcase/featuring/casey-louise.hbs

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -20,50 +20,50 @@ slug: showcase/featuring/
2020
</iframe>
2121
</div>
2222
</section>
23+
<section class="project-metadata">
24+
<h2 class='sr-only'>Project Authors and Links</h2>
25+
<section class="project-credit">
26+
<h3>Created By</h3>
27+
<p>Casey Conchinha <span class="note">(he/him)</span></p>
28+
<p>Louise Lessél <span class="note">(she/her)</span></p>
29+
<p class="creator-from">From New York, New York</p>
30+
</section>
2331

24-
<section class="project-resources">
25-
<h2 id="resources" class='sr-only'>Project Resources</h2>
26-
<ul class='links' aria-labelledby="resources">
27-
<li><a href="https://bit.ly/p5shaders" target="_blank">p5.js Shaders guide</a></li>
28-
<li><a href="https://bit.ly/p5shadersexamples" target="_blank">Glitch collection of examples</a></li>
29-
</ul>
30-
</section>
31-
32-
<section class="project-credit">
33-
<h2 class='sr-only'>Project Credits</h2>
34-
<p>
35-
Casey Conchinha <span class="note">(he/him)</span>
36-
<br>Louise Lessél <span class="note">(she/her)</span>
37-
<br><span class="note">From New York, New York</span>
38-
</p>
32+
<section class="project-resources">
33+
<h3 id="resources">Project Links</h3>
34+
<ul class='links' aria-labelledby="resources">
35+
<li><a href="https://bit.ly/p5shaders" target="_blank">p5.js Shaders guide</a></li>
36+
<li><a href="https://bit.ly/p5shadersexamples" target="_blank">Glitch collection of p5.js shader examples</a></li>
37+
</ul>
38+
</section>
3939
</section>
4040

4141
<section>
4242
<h2 id="qa">Q&amp;A</h2>
4343

44-
<p class='project-q'>What are you up to?</p>
44+
<h3 class='project-q'>What are you up to?</h3>
4545
<p class='project-a'>Casey: I'm a student at NYU ITP who's interested in computer graphics and interactive spaces, physical and digital.</p>
4646
<p class='project-a'>Louise: I'm a student at NYU ITP who's interested in computer graphics and interactive spaces based on sensor technologies.</p>
4747

48-
<p class='project-q'>How did you get started with p5.js?</p>
48+
<h3 class='project-q'>How did you get started with p5.js?</h3>
4949
<p class='project-a'>Casey: I started learning p5.js in 2018 in my first semester at ITP, though I had been dabbling in <a href="https://processing.org/" target="_blank">Processing</a> since 2012. I was introduced to Processing by my friend Pedro while I was studying graphic design, and it blew my mind. The idea of making my own tools for creating graphics and interactive art piqued my interest, but once I actually tried it, I was hooked. The first project I can remember was an eye that followed you around the screen, and it was sad when you left it alone.</p>
5050
<p class='project-a'>Louise: I initially learned p5.js to make a website I was creating more playful. I’m a C# programmer, so this was a good segway into JavaScript for me.</p>
5151

52-
<p class='project-q'>How did you use p5.js in this project?</p>
52+
<h3 class='project-q'>How did you use p5.js in this project?</h3>
5353
<p class='project-a'>Casey: I was putting off learning shaders for a long time, and I was also curious if I could use them in p5.js. Then I heard about a grant for open source, storytelling, and learning resource projects at ITP called <a href="https://www.itpxstory.com/" target="_blank">xStory</a>. Since I wasn't finding much in the way of p5.js + shader documentation, I decided to figure out how they're implemented in p5.js and create a resource for others to learn. When I told Louise about the project, she was immediately excited about learning and teaching shaders in p5.js. She's been great about making sure the project is a learning resource and not just a collection of examples.</p>
5454

55-
<p class='project-q'>What's your favorite p5.js feature?</p>
55+
<h3 class='project-q'>What's your favorite p5.js feature?</h3>
5656
<p class='project-a'>Casey: Does <a href="https://thecodingtrain.com/" target="_blank">Shiffman</a> count as a feature? I also love having the ability to share my programs on the web so that people don't have to install special software or come to NYC to see my work.</p>
5757
<p class='project-a'>Louise: My favorite feature is <code><a href="https://p5js.org/reference/#/p5/push" target="_blank">push()</a></code> and <code><a href="https://p5js.org/reference/#/p5/pop" target="_blank">pop()</a></code> for transformation of the coordinate system to make generative visuals.</p>
5858

59-
<p class='project-q'>Did you face any challenges working on this project? If so, how did you overcome them?</p>
59+
<h3 class='project-q'>Did you face any challenges working on this project? If so, how did you overcome them?</h3>
6060
<p class='project-a'>Casey: The beginning of the project (figuring out how things work) was us reaching out to amazing people, asking questions, and asking for permission to use their examples in our project. <a href="https://github.com/aferriss/p5jsShaderExamples" target="_blank">Adam Ferriss' GitHub repo</a> really laid the groundwork for us in understanding how shaders work in p5.js and provided a framework of approachable examples for us to build on. For some specific p5.js-related issues we were having, we reached out to <a href="http://www.katehollenbach.com/" target="_blank">Kate Hollenbach</a> and <a href="https://stalgiagrigg.name/" target="_blank">Stalgia Grigg</a> (who worked on the <a href="https://github.com/processing/p5.js/issues?q=is%3Aissue+is%3Aopen+webgl+label%3Aarea%3Awebgl" target="_blank">WebGL implementation in p5.js</a>), and they were super helpful.</p>
6161
<p class='project-a'>Louise: The learning curve was pretty steep for getting shaders into p5. Luckily, there were some very well-documented examples on GitHub by Adam Ferriss. Our aim was to do so in a way that a complete beginner can understand how to implement it, so it was as much a technical challenge as it was a challenge in teaching code to strangers and beginners. Here we drew inspiration from the way the <a href="https://openframeworks.cc/ofBook/chapters/foreword.html" target="_blank">openFrameworks book</a> is written. A fun “hey, it’s not hard and you can do it too” approach is what we believe in.</p>
6262

63-
<p class='project-q'>What's a cool thing we should check out?</p>
63+
<h3 class='project-q'>What's a cool thing we should check out?</h3>
6464
<p class='project-a'>Check out the <a href="https://github.com/ITP-xStory" target="_blank">xStory GitHub</a> to see our peers' amazing grant projects!</p>
6565

66-
<p class='project-q'>Where can people learn more about you?</p>
66+
<h3 class='project-q'>Where can people learn more about you?</h3>
6767
<p class='project-a'>Casey: <a href="https://cargocollective.com/kcconch" target="_blank">cargocollective.com/kcconch</a>, <a href="https://github.com/kcconch" target="_blank">@kcconch</a> (GitHub)</p>
6868
<p class='project-a'>Louise: <a href="http://www.louiselessel.com/" target="_blank">louiselessel.com</a>, <a href="https://github.com/louiselessel" target="_blank">@louiselessel</a> (GitHub)</p>
6969
</section>

0 commit comments

Comments
 (0)