Housekeeping
- Assignment 2: Single Card
- Weight: 10%
- Due Wednesday, January 24 @ 11:59pm
- Assignment 1 due tonight
- Homework posted for Monday
1. Colour models and you
Materials
- Read color hex codes by David DeSandro
- 60-30-10 Color Rule by Jesse Showalter
2. Clickable Links
Materials
- MDN: Creating hyperlinks
- Styling links: https://developer.mozilla.org/en-US/docs/Learn/CSS/Styling_text/Styling_links
3. Inspecting the CSS Cascade
Activity: Styling a links as buttons
- Starter code
- MDN: Creating hyperlinks
- Styling links: https://developer.mozilla.org/en-US/docs/Learn/CSS/Styling_text/Styling_links
- Define a colour palette;
- Try the 60-30-10 rule;
- Convert your colours to
hsl()
;
- Create a simple Call-to-Action with a paragraph and link;
- Remove the underline with
text-decoration
; - Make the link more “buttony” with
padding
;- optional: add a
border
and/or round the corners withborder-radius
;
- optional: add a
- Double-check your colour contrast;
- Define a complimentary colour for the link
:hover
and:visited
states; - Choose a contrasting colour for the link
:active
state.
Today's Achievement
Call-to-Action
Submit links to the work you completed in today’s activity:
- GitHub repo
- GH Pages live link
Lesson Prep
Reading list
Watch List
- Why is CSS so Weird? by Miriam Suzanne
- Inspecting the CSS Cascade using Firefox DevTools