Repository navigation
New layout for code examples including thumbnail - #66
Conversation
Gatsby Cloud Build Reportthecodingtrain.com 🎉 Your build was successful! See the Deploy preview here. Build Details🕐 Build time: 28s PerformanceLighthouse report
|
|
oooooh, I love this!!!! |
|
I love that you love more work @shiffman :) |
Playing around with it, my instinct was to click on the thumbnail and the example titles. I wonder if we should do away with "open" and have whatever the default way to view the examples is (p5 web editor, github link) just be the example itself and then we can have extra buttons? On the existing site when I have a Processing and p5.js version they are listed as separate examples. . could we add a Processing button for the ports? If only I knew someone who had access to the logo designs. . . . |
|
This is so good, yay! My only last question is related to color. Blue is for coding challenges and pink/red for tracks? I trust your visual design sensibility much more than mine but is it too noisy/messy to keep the p5 pink and Processing blues in their logos regardless of which page they are featured on? Tell me if this is a bad idea! That was just my reaction to seeing p5 in blue! |
|
Yeah tracks are red and challenges are blue. We think leaving the original colors does give some weird noise in that section, considering how consistent is the schema in the rest of these pages, and how there is some overlap in colors (p5 is pinkish and processing uses lots of blues). But the coloring change does make the logo least recognizable. I just pushed another try using a neutral dark gray that is used in the rest of the site, and leaves logos consistent between challenge/tracks views. We reverted back to no square logo since it made a huge dark block next to very light icons. @shiffman Let us know what you think! https://build-f935984e-d0d3-41f5-a192-cbd0333dbcfa.gtsb.io/tracks/code-programming-with-p5-js/tracks/main-tracks/code/intro/random-function-p5-js-tutorial |
|
Ok, I think we have a winner! Yay, thanks for all your extra work on this! We can always fine-tune this a bit later once we see how characters and other emojis find their way into the site! Yay! 🚀 |



DRAFT PR - Do not merge
This PR improves the layout for code examples, adding the possibility of having a thumbnail and a description.
The links have been condensed to use up less space:
I did a free interpretation to define the icons. I'm very open to using a different emoji or creating a custom icon, and also to change the hierarchy.
If and when we confirm this direction I should replace the dummy images with the option of linking a thumbnail from a file in the repo.