ah teaches web design & development (Devices and their Fickle Owners lecture)
Devices and their Fickle Owners
Lecture outline
Thinking about how users use websites, and more options for laying out your site. Lecture slides will be made available on the day of the lecture (June 7).
Critique prep
Please come and sign-up for a timeslot for critique. I will briefly cover alternative activities you can partake in during critique time at 9:45, after which we will reconvene for lecture at 11:30.
Please make sure to have materials ready for critique when your timeslot comes up.
![An Apple smartwatch being used to view a website](apple_watch_browser.jpg)
Devices and their Fickle Owners
![An animated gif illustrating the differences between responsive and adaptive web design](01-Responsive_vs_Adaptive.gif)
Points on breakpoints
How to aim for optimal breakpoints?
- Let your content decide
- Use relative units (always)
- Avoid an absolute process
![A 'smart' refrigerator displaying a series of applications it can run from web browsing, to music player, to video games](smart-fridge.jpg)
"You can play Doom Eternal on a Fridge" (ExtremeTech)
Progressive enhancement
Build up from the basics
The layering of progressive enhancement:
- Content: Ensuring that the basic content works (clean, semantic, HTML).
- Styling: Applying styling and testing across devices (caniuse.com).
- Scripting: Enhancing the experience as much as possible.
Advanced progressive enhancement
(aka. Responsive Web Design)
We are taking a device-agnostic approach, as the screen isn't our only variable:
- Problematic browsers
- Slow connections
- Small screens
- Touch first
- Content structure
- ... etc.
Degredation vs. enhancement
Wait, so what's different?
Graceful degredation: Build for the biggest and bestest, making sure that the site is still usable for 'lower-class' browsers.
Progressive enhancement: Build a common standard for all browsers (upper and lower class), then offer additional functionality for browsers which can use it.
What should my site look like?
Consider the patterns.
Remember, your site should:
- Clearly indicate interactivity (like a link)
- Help your user achieve their goals
- Provide them with the content and tools to achieve their goals
![The Starbucks website landing page from 2005](starbucks-2005.jpg)
![The Starbucks website landing page from today](starbucks-today.jpg)
![The TikTok homepage](tiktok.jpg)
Consistency
Internal vs. external
Internal consistency is consistency between the elements within your own site, while external consistency is consistency between the elements of your site with other websites.
Responsive images
Thinking about when and how to use responsive images includes a variety of factors:
- User's resolution or screen sizes
- Dimensions of the image
- Breakpoints
Sizing images
When sizing images, consider the maximum pixel dimension the image would be displayed at and the possible pixel density of the device.
Positioning
One way to move things on the web
Some options:
- static — the default, things occur as ordered in the HTML
- relative — similar to static, but allows for further instructions through 'left', 'right', 'top', 'bottom' to move relative to its original position
- absolute — positions relative to the viewport through 'left', 'right', 'top', 'bottom'
- fixed — similar to absolute, but will not scroll (stays in view)
- sticky — fixed within container, relative otherwise
Today's code tutorial
Please download:
- The positioning starter kit from 339.ah.link/t04
- The responsive images starter kit from 339.ah.link/t05