Assignments > Homework 1. CSS & Visual Design
Due on Fri, 04/24 @ 11:59PM. 10 Points.
In this exercise, you will be using CSS to instantiate some important visual design principles. Please complete the following activities:
Step 1: Get oriented with the files
- Open the the hw01 folder and take a look at the
christina.html
file in your web browser. This example is taken from Christina Truong’s CSS Course (from LinkedIn learning), and reflects her own style choices. Note that thecss/christina.css
file controls the styling for this page. - Next, open
index.html
in your web browser. This is the file that you will be editing. It’s a basic portfolio site. Feel free to edit the content to reflect your own story…or not. Up to you. The more you customize, the more you learn, so feel free to play around with it. Note that thecss/style.css
file controls the styling for this page.
Step 2: Complete the following tasks
- Select 3 values from the values list to guide your visual design choices.
- Update the fonts: select (and apply) a header and a body copy font from Google Fonts. Here is some sample code of how to use Google Fonts. Ensure that your fonts are complementary and that they match the values / theme of the website.
- Instantiate the principles of proximity and alignment to visually group the different sections of the portfolio. Cluster similar things, apply spacing to things that are different. Be very intentional about aligning and organizing your content.
- Use the principle of contrast to (a) make some of the most important content stand out, and (b) de-emphasize some of the finer-grained details (so that the content is easier to skim and discern key takeaways). Recall that there are many ways to produce contrast (color, size, asymmetry, and so forth).
- When you’re done, commit your files to GitHub.
Tips & Notes
- Feel free to play around with this “style tile” template to try out ideas.
- Feel free to edit any of the HTML or CSS to achieve the goals of the assignment.
- Feel free to refer to christina.html / christina.css to get implementation ideas, but you need to write your own code for the
styles.css
stylesheet. In other words, copyingchristina.css
and changing some of the fonts and colors is not sufficient. But, borrowing a few lines of code to replicate a particular spacing / margin technique is totally fine. - Use a grid. Note: this doesn’t mean that you have to use “CSS Grid.” It just means that there should be implicit vertical and horizontal lines that guide your layout.
- Use whitespace liberally.
- Play around with different font weights (and choose a font that supports many weights).
- Try not to use any borders (or only a few). Let the whitespace shape the sections.
- Decide what is foreground and what is background and design accordingly.
- See lessons 5 & 6 for more details.
Suggested resources
What to turn in
To submit this week’s homework assignment:
- Save all of your files in a folder called
hw01
- Add your
hw01
folder to your git repository, commit them, and push them to github. Your commands should look something like this:
$ git add hw01
$ git commit -am "Checking in my hw01 folder"
$ git push
When you’re done, paste a link to your hw01 GitHub pages on Canvas under the Homework 1 assignment.