Learn to build responsive designs that look good across desktop and mobile devices.
hero
- root Box for this section that includes paddinghero-content
- nested Box that has two columns of content with a set widthhero-text
- left Box containing the text and buttonhero-graphic
- right Box containing the image1
for desktop, 2
for tablet, and 3
for mobile.
If you compare the hero on desktop and mobile, you’ll notice that the layout changes to better fit the screen size by stacking hero-text
and hero-graphic
vertically.
hero-content
component. Then, hover on the line that divides the two columns (text on the left and the image on the right). Your cursor will show an arrow pointing down and to the left. Clicking there will allow you to stack the two columns vertically. To undo this, you can hover over the line separating the two rows and click the arrow pointing up and to the right.