Session Recording#

You’ll need to be signed in to your New School account to see this recording in-page! Safari prevents Google Drive embeds—so you’ll need to go to the original! ↗

And Finally… Images?!#

Picking up from last week, let’s discuss images on the web:

Working With Images

Brief Demo Time#

And following our previous demo, we’ll show how you will structure your final projects:

  1. We’re going to use cascade layers to avoid any specificity problems!

    These are a somewhat recent addition to CSS, and will help us manage any overlapping rules.

    • Add this to your landing page <head> , replacing our previous two <link> elements:

      <style>
      	@import 'styles/reset.css' layer(reset);
      	@import 'styles/common.css' layer(common);
      </style>
    • This still “links” your stylesheets (now via @import), but enforces the exact override order declared by @layer.

    • Replace the <link> elements in your direction pages too, updating the path and the page-specific styles:

      <style>
      	@import '../styles/reset.css' layer(reset);
      	@import '../styles/common.css' layer(common);
      	@import 'style.css' layer(page);
      </style>
    • Now any styles you write in the page-specific style.css will override the common.css ⁠—no matter the how complicated the selector or specificity!

  2. Then we’ll set up for our three actual articles. Duplicate your “winning” direction’s directory, direction-1/ → article-name/ .

    • Duplicate article-name/ twice for your other texts, second-one/ and third-text/ .

    • Update the <title> and <h1> in each of these to match your different texts.

      For next week, you will be incorporating the semantic DOM for the actual texts!

    • Update the links on your landing page navigation to point to these new folders (instead of your directions).

    • And likewise update the per-page navigation, so they all link to one-another!

    • “Promote” your winning direction’s styles up to your common.css ! These are now the basis for your design system.

  3. Later (when you don’t need anything from them), you can delete your other directions to “tidy up”!

This is how you will develop the system!

Project 3 Check-Ins#

We’ll spend the bulk second half of class looking through your initial third project sketching:

Group 1

  • Jiho
  • Natay
  • Hyunjin
  • Gia
  • Simrin
  • Jasmine
  • Jon

Group 2

  • Hannah
  • Matias
  • Fan
  • Charitaa
  • Claire
  • Yen
  • Valerie

Group 3

  • Alaia
  • Andrea
  • Felix
  • Leila
  • Jun
  • Crystal

Group 1

  • Jiho
  • Natay
  • Hyunjin
  • Gia
  • Simrin
  • Jasmine
  • Jon
  • Hannah
  • Matias
  • Fan

Group 2

  • Charitaa
  • Claire
  • Yen
  • Valerie
  • Alaia
  • Andrea
  • Felix
  • Leila
  • Jun
  • Crystal

The plan:

For Next Week#