Chapter practice task
Task: Make your page responsive and turn the navbar, footer and card into components
- Check every section at tablet, landscape phone and portrait phone breakpoints and fix layouts.
- Adjust typography and spacing for smaller screens.
- Turn the navbar and footer into components and use them on every page.
- Create a card component with properties for image, title, text and link.
By the end of this chapter
- Your site looks right from large desktops to small phones
- You understand how styles cascade between breakpoints
- Repeated parts are components you edit in one place
Quick answers for this chapter
Which breakpoint do I design first?
The base (desktop) breakpoint. Styles flow down to smaller breakpoints, and up to larger ones if you add them.
Can I hide elements on mobile?
Yes, set display to none at that breakpoint. Hide decorations, not important content.
What happened to Symbols?
They’re now called components, with properties for content that changes per instance.