Session Recording#
You’ll need to be signed in to your New School account to see this recording in-page!
Safari prevents Google Drive
Flexbox!#
For our first topic today, we’ll get into some more modern CSS layout:
Grid!#
And for our second, we’ll take a look its spiritual continuation in grid:
Working in Pairs#
In our back half, we’ll demonstrate how you’ll work in code together—so please sit with your partner!
Our agenda:
-
Head over to our new template repository in your browser:
-
Click the green
Use this template to create a new repo from it—keeping the name, set tospreadPublic ! -
Add your partner as another user (collaborator), which will let you both edit the repo’s code
-
Clone the repo locally, create an
with some basic HTML structure, commit it, and push (as we did before)index.html -
Back up on GitHub, enable Pages and the handy link in the repo’s
About⚙ section and check the page is liveSwitch drivers!
-
Now on the other computer, clone the repo down from GitHub
-
Let’s make it responsive by adding our viewport meta tag
-
Take a look at it in our friendly neighborhood DevTools Device Mode, at
~ 375px -
Start with some mobile-first styles! Use base CSS variables for colors, type size, spacing and a media query to make them responsive
-
Commit this and push it up—same as before!
Switch drivers!
-
Back on the first computer, pull down the changes
-
Try a bit of our new layout here—a flex
that switches to acolumn at larger breaks, variables forrow etc.gap, -
Add a query and this special@media print rule:@page -
Check this out in the Rendering tab, with the viewport set to ×816px (8.5 × 11" @1056px /inch)96pxWe’ll look at print stuff next week!
-
…repeat until the project is done!
For Next Week#
-
Again review our two topics from today! There is a lot of minutia (and many links) there we will have to move quickly through, but would like you to reference.
-
You’ll be moving into the next phase of your Spread projects. Narrow your design directions based off our coming Figma feedback, and then move into code with your partner:
-
As a reminder, we want this work to be done together, as we demonstrated in class. Focus on roughing in your design, mobile-first, and then progressively enhancing it for desktop.
For next week, we’d like to see your completed, semantic DOM and a first pass on your mobile and desktop styles.
-
When these are in a good spot, submit your URLs as usual: