This is the first project towards the Responsive Web Design Certificate on freeCodeCamp. The objective is to build a responsive tribute page using basic HTML, plain CSS and JavaScript, fulfilling the user stories below. The tests are ran using the tool in the upper left corner of the page by selecting the test suite Tribute Page.
Emilia Dunfelt, 2019 👩💻
The responsive collage is built using CSS Grid, with one layout for smaller devices (less than 600px), and one for larger devices. Inspiration was taken from an excellent article on freeCodeCamp on how to create an image gallery. I made the necessary changes to make the images take up all available space and responsively rezise. I also added hover CSS animations and text to make the grid more interesting.
Originally I planned to have animations from the left and right as well, and not just from the top and bottom of the images, but the text inside the overlay resized to fit responsively during the animation, distracting the viewer. If you know a solution to this problem, please let me know.
Suggestions on ways to improve the look and feel of the project are welcome!
- My tribute page should have an element with a corresponding
id="main"
, which contains all other elements. - I should see an element with a corresponding
id="title"
, which contains a string (i.e. text) that describes the subject of the tribute page (e.g. "Dr. Norman Borlaug"). - I should see a
div
element with a correspondingid="img-div"
. - Within the
img-div element
, I should see animg
element with a correspondingid="image"
. - Within the
img-div element
, I should see an element with a correspondingid="img-caption"
that contains textual content describing the image shown inimg-div
. - I should see an element with a corresponding
id="tribute-info"
, which contains textual content describing the subject of the tribute page. - I should see an a element with a corresponding
id="tribute-link"
, which links to an outside site that contains additional information about the subject of the tribute page. - The
img
element should responsively resize, relative to the width of its parent element, without exceeding its original size. - The
img
element should be centered within its parent element.