Alfredo teaches web design & development (The Utility Belt lecture)

The Utility Belt

Lecture outline

Approaches for debugging code and an introduction to git. Lecture slides will be made available on the day of the lecture (June 3).

In preparation for lecture...

Please close up any laptops, cellphones, Pippin's, Whoops and other 'beep-boop' devices.

Submission URLs

When submitting a web address to an assignment it should not start with https://github.sfu.ca/....

It should start with https://pages.github.sfu.ca/.

Notice the "pages" at the beginning! (Unless we explicitely request you to upload a different URL)

:focus and images

You cannot use the keyboard to navigate to an <img> element as they are not interactive elements. You will have to wrap it in an interactive element to style it upon interaction:

 a:focus img {
	/* this selects an img inside of a anchor that has focus */
}

Code questions

Are pixel units used for font sizing?

p { font-size: 16px; /* << not responsive */ }
p { font-size: 1rem; /* << responsive */ }

Are pixel units used for element sizing?

p { width: 320px; /* << not responsive */ }

p {
max-width: 30rem;
width: 50%; /* << responsive */
}

div { border: 1px solid black; /* << ok! */}

Code questions

Are there any spaces in the filenames?

/my project/AWSOME PROJECT FILE.HTML

https://pages.github.sfu.ca/my%20project/AWSOME%20PROJECT%20FILE.HTML
A toy Batman utility belt

Meet your toolkit

Dev Environment

Adding to the toolkit

File Structure

Keep things clear

Things to ensure:

Dev Environment

Adding to the toolkit

Dev Environment

Adding to the toolkit

Save for Web

Images should be sized and compressed appropriately for web distribution. We will talk more about resolutions in the coming weeks, but some suggested tools for compression:

P2: Company

P2 Expectations

While working on a team, please note:

Working as a Team

The horror, the HORROR!

Come to an agreement on:

Dev Environment

Adding to the toolkit

An illustration of the purpose and use of git for code versioning

This drawing is explained in detail during lecture

git ready

In preparation for our tutorial today, please follow the instructions at ah.link/git

Code exercise #4
1/1