The goal of this assignment is to get started working with styles. You should be applying styles to your work and solving problems along the way.
CSS is how the web is styled! Everything you see on the web and much of what you see on mobile is styled with CSS. Better looking projects are adopted by more users and it's more satisfying as a developer to make something beautiful.
Your goal is to style your portfolio page. You will do this by adding a style sheet and writing CSS.
Keep in mind that CSS is applied to elements on the page through selectors. Selectors target elements on the page either by an identifier:
- tag name
- class name
- id name
Or by the DOM structure using selectors: descendent (section h1
) or child (section > h1
). Review your selectors here: CSS Diner. You don't have to know all of these now, if you can master the first 9 you're doing great! Look for opportunities to use selectors shown in the CSS diner game in your work.
Use the CSS covered in class to style your portfolio page. Create a styles.css
file to put your styles in. For now, you only need to worry about things covered in class, feel free to look up and explore new styles.
Make use of at least these style properties:
- Typography
- font-family
- font-size
- font-weight
- line-height
- color
- layout
- flex
- margin
- padding
- background
- background-color
- border-color
- border-width
- border-style
If you're not sure how to apply these refer to the challenges in class and borrow ideas.
If you've styled your work following the guide above take it further by trying these challenges:
- Validate your code with the HTML Validator: https://validator.w3.org
- Validate your CSS with https://jigsaw.w3.org/css-validator/
- Format and comment your code.
- Adding comments is profesional best practice and will help you better understand the code you wrote.
- Formatting your code improves your code craft and quality, and makes it easier to read.
- Add some images (if you haven't already)
- Show your work to someone else for feedback. Make changes based on what they suggest.
- Publish your portfolio to GitHub Pages. https://pages.github.com
- Be sure to rename your portfolio html file:
index.html
- Be sure to rename your portfolio html file:
- If you haven't add some navigation to your portfolio.
- Give each section an id with a name, for example:
<section id="about-me">
- Create a link like this:
<a href="#about-me">About</a>
- Give each section an id with a name, for example:
- Try implementing a custom font: https://fonts.google.com
- Follow this guide: https://developers.google.com/fonts/docs/getting_started
- If you haven't, try using two different fonts. One for headings and the other for everything else.
- Apply the main font to the body:
body { font-family: Arial; }
- Apply another font to the headings:
h1, h2, h3 { font-family: Gerogia; }
- Combine this idea with Googles and explore some font pairs here: https://www.pagecloud.com/blog/best-google-fonts-pairings
- Apply the main font to the body:
Create a repo for your portfolio
Submit your new portfolio site through Gradescope index.html
and styles.css
files and submit the zip file in the appropriate assignment
Tue, Sept 8
Portfolio
Aspect | Does not meet | Meets | Exceeds |
---|---|---|---|
Completion | Your web site doesn't look complete | Your web site looks complete | Your web site explores ideas and concepts outside of the project description |
Styles | Your site is not styled | Everything appears to be styled | Your design inspires others. People comment on how great it looks! |
Code Quality | Your code is sloppy and lacks organization | Your code uses consistent indentation, spacing, and consistent coding style | Your code passes validation |