Udacity Front-End Web Developer Nanodegree Project : Animal Trading Cards
Are you starting to feel like a web developer yet? You should!
Before you move on, I have one more challenge. I want you to use what you've learned up to this point to complete the following project. Simply titled, "Animal Trading Cards", this project combines the skills you mastered in the problem set and asks you to re-create a webpage from a design prototype.
This is a common workflow for front-end web developers. Typically, you'll be provided with a design prototype that needs to be translated to an actual, functional website. In most cases, designers only provide you with the design prototype. However, for this project, I've provided you with the design prototype and the HTML. The design prototype used in this project is inspired by trading cards and features a fish you might recognize from a popular animated film. You’ll be creating the card and swapping out the fish with an animal of your choice.
Review the Animal Trading Cards project rubric.
- Download and unzip fend-animal-trading-cards-master.zip. Inside, you'll find
card.html
,styles.css
,placeholder.png
, and thedesign-prototype.png
. - Next, open
card.html
and replace the placeholder image and information with your favorite animal's image and information. For the image, you will want to use an image with awidth
of 300 pixels. If your image is larger, you can set the image's width to 300 pixels in your CSS, but be aware that your image might end up squished or distorted. Later, we’ll talk about how you can fix this problem using responsive images. Also, don't forget to change the image'salt
attribute to the name of your animal. So,alt="name-of-your-animal"
should be replaced with the actual name of your animal. - Once you've added your favorite animal's image and information, add the proper CSS to
styles.css
to recreate thedesign-prototype.png
by applying the style rules in step 4. You’ll need to modifycard.html
to includeattributes
and useselectors
to specify the elements you want to style. Also, make sure to link to your stylesheet incard.html
or else your CSS will not be applied to your webpage. - The CSS should apply these styles to match the design prototype:
- italicized text for the animal's interesting fact
- bolded labels for the animal's list items (e.g. 'Habitat')
- no dots for the animal's list items
- border around the animal's name, image, and information
- border around the animal's information
- spacing between the animal's name, image, and information (you will need to use the property padding)
Use what you've learned about CSS to convert a design prototype into a functional webpage!
- Once you're satisfied with your result, check your project against the Project Rubric to make sure you've satisfied all requirements.
- Create a zip file containing
card.html
,styles.css
, and your new animal image (unless you linked to an image hosted online). - Submit your project to be reviewed.
Have fun and be creative 🐠 🐍 🐅 🐼 🐫 ! Writing CSS isn't an exact science, so feel free to experiment. For example, you might want to add rounded corners or a background color to your card. Your submission should resemble the design prototype, but it's okay if it doesn't match exactly, so long as you satisfy all the requirements.