Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Nick Pettit
STAFF
Nick Pettit
Treehouse Teacher

Forum Contest: Photo Gallery

EDIT: This contest has ended! Congratulations to Charlie Hield for his winning entry! Our next contest is all about CSS animation.

Hi everybody,

It's time for a new Treehouse Forum contest! First, watch this video to learn more:

After you've watched the video, please read the details below carefully. I'm looking forward to your entries!

How to Enter: Create your photo gallery entry as a "pen" on Codepen.io and then post the link to your pen as an answer to this post.

Due Date: All entries must be submitted by February 2nd at 11:45pm ET. Here's a timezone chart so you can see what time that is for your locale.

Prize: The entries will be judged by Treehouse teachers based on both design and code. One winner will receive a free month of Treehouse Gold on us! :) We'll announce the winner on February 3rd and reveal the next contest.

30 Answers

Awesome, let's get this party started! Good luck to all :)

Party Time!

I'm pretty solid behind the camera, not so much with the code. One day I'll join these contests in confidence; until then I'm interested to see everyone's entries! Good Luck!

The same applies for me. Gotta love a bit photography!

Hello Zachery Campbell and @Brade B,

I am going to code something up for this contest, could I use you're photography? :)

YEA! How many pictures do you need?

i will also like to use your photos, if you do not mind! i will need about 6(medium-large).. :)

James and Roberto,

Check out:

http://500px.com/Zachery_Campbell

Give me the names of (6) you'd like me to send you; email me at zb.campbell@yahoo.com.

Hey Zachery Campbell,

Had a peek through, you're photography is fantastic. What DSLR are you using? If you have those images in a single file, could you zip them up and send them to jamesnelson117@gmail.com.

Cheers

Wow! Your photos are great :)

Thanks Carla and James, I only have a Nikon D5200 right now :( but one day I'll get a full frame, probably a D4. Anyway...I'm still excited to see everyone's galleries!

Good now to fry up some code elements for Super. I am in!

I did a picture gallery in ruby, can I enter the contest with that?

Nick Pettit
Nick Pettit
Treehouse Teacher

Sure! Any backend language (like Ruby) should output HTML, CSS, and JavaScript. We will be judging the contest based on both design and code.

Great thanks, I'm going to readjust my readme file and then I link the code here :)

Hey Nick Pettit,

Mind if i enter the contest via a live link or a Github submission?

I'm sure a github submission is fine, right? :)

Nick Pettit
Nick Pettit
Treehouse Teacher

Please submit a live link. Unfortunately it's not really feasible for us to install tons of applications locally and judge them that way.

Here is my ruby project of the Picture Gallery.

This application works perfect if you have a album that you want live on a website! Choose a folder with pictures (png,gif,jpg are allowed) and then my program will upload them on a HTML page as a nice looking album.

https://github.com/itgsod-marcus-tisater/Picture-Gallery

Nick Pettit
Nick Pettit
Treehouse Teacher

Hi Marcus,

Please submit a live link if you can. We don't really have the resources to install and run applications locally. Thanks!

Does the entire code have to include Javascript, or can it be HTML and CSS only?

It shouldn't have to include Javascript Nick, only if you want to use it.

Nick Pettit
Nick Pettit
Treehouse Teacher

It can be any combination of HTML, CSS, and JavaScript.

Hey Everybody!

Here is my entry:

code: http://jsfiddle.net/kylenoble/8Wf8r/ result: http://jsfiddle.net/kylenoble/8Wf8r/embedded/result/

This was tough but a lot of fun! Any feedback, criticism, advice, etc. is more than welcome.

Thanks,

Kyle

Hi Kyle,

Really nice work. Just a quick question. When I enlarged a photo there were two option to "X" close it and "i" for information (I'm guessing); however, when I click the "i" the enlargement closes. Is that because no information was included? Thanks.

P.S. A couple pics made me really miss Washington state! Good luck with the contest.

Kyle Noble - Remember the contest rules state that each entry should be on codepen.io

Thank you so much Lawrence Cousino! There was a bug in Firefox but I updated it so it should work now. Thanks for pointing that out. Washington state is beautiful. Those pictures are of my two favorite places in Seattle.

James Barnett- Is it ok if I leave it in jsfiddle? Codepen.io doesn't seem to allow the window.open() method while jsfiddle does.

Here's my entry -- Result & Code

Some features:

  • pulls in Dribbble popular shots
  • CSS3 transitions on hover
  • simple lightbox for larger view

Here goes :) pen

Features - pseudo ::after ::before transitions.

That is a cool idea.. Like how each one opens and closes..

Thanks, didn't spend any time on design just wanted to show the animation idea :)

Ok here it is! (http://cdpn.io/CAyiL) [http://cdpn.io/CAyiL]

html5 - css3 - jquery

A special thanks to Zachery Campbell for sharing such amazing photos!

Nice Roberto!

Awesome Job! I like the photos and the transition effects.

Here is mine; only with HTML and CSS.. I hope everyone enjoys! Full page: [http://cdpn.io/cBjbu] On codepen: [http://codepen.io/technickal1/pen/cBjbu]

Here's my attempt, hopefully I've linked it right: http://codepen.io/Nhorn/full/Fjwpv

Was fun to make anyhow:)

Amazing entries so far, guys! :) Some serious talent in here.

Had a go and came up with this: http://codepen.io/jamesanwyl/full/wxpFL . Built with h5bp / initializr and flexslider . Really struggled with this challenge and its still got plenty of bugs but learnt so much so thanks! Wish I had another week to start over again lol.

Any feedback is much appreciated :)

Really nice animation/transitions:)

But the buttons are kinda hard to see and I was surprised you couldn't just click on the blue books to open the images instead, if that's helpful at all. Nice stuff though:)

Really impressive, nice work.

Here is my entry: http://cdpn.io/qIHJw

Its a fully responsive design, and it takes up the full width to really showcase the photo's. Hope you guys enjoy!

Here is my entry - http://www.jnelson.co.uk/Jnelson/image_gal/index.html

Zachery Campbell designed it as if someone was looking at you're account on a photography app ;) Thanks again for the images

So I built this photo gallery to be most functional for users that actually have a numeric keypad on their keyboards, but I tried to make it as usable as possible for mobile devices and regular computers also:

http://cdpn.io/JuAlL

(Quick sidenote: you may need to click once in the window area in order to use the keyboard to highlight photos; not sure if there's a way to circumvent that, but any feedback is appreciated!)

Wow! That is awesome :D

Really cool. It's very creative.

Below is a link to my entry. All feedback and critique is welcome and appreciated.

http://cdpn.io/AjCiz

Submission: code \ (http://codepen.io/demetriusPop/pen/nIimC) full page \ (http://codepen.io/demetriusPop/full/nIimC)

Built with bootstrap and a bit of jQuery. Pen doesn't seem to accept svg, so my design suffered slightly (SOBB..)

I'm calling it a night too ;0)

Here is my entry link As always feedback is welcome.

Nice!

haha thanks. nice feedback is especially welcome ;0)

Whens the due date? Oh well... heres what I came up with just now.

Nick Pettit
STAFF
Nick Pettit
Treehouse Teacher

Wow, you all made some fantastic entries! This was the toughest decision yet. I really do mean that, too. I went back and forth a few times and had to scrutinize a lot of code.

In the end, Charlie Hield won overall. His Dribbble gallery has some really wonderful code and a simple, beautiful layout. Here's why Charlie had the best entry:

  • The HTML is well structured and semantic.
  • The SCSS is pretty clean and uses some fairly advanced properties, including nth-child selectors, transitions, zoom-in cursors, and more.
  • The border-box sizing on all elements is a newer idea that's been gaining a lot of traction. Cool to see it used in the wild.
  • The fixed position vertical and horizontal centering for the lightbox is a very smart choice.
  • The use of the Dribbble API to pull in shots is great, and the jQuery overall is well done.

Congratulations, Charlie! This is a really great entry. :)

Grats Charlie Hield!!

Woot! Thanks Nick, it was a fun one to work on.

Nick Pettit
Nick Pettit
Treehouse Teacher

Great work! I just sent you an email with prize details. :)

Congrats, Charlie Hield! Great work, and awesome job to everyone who participated :)

Nick Pettit
STAFF
Nick Pettit
Treehouse Teacher

One more thing! This week's new contest is now available and it's all about CSS animation.