there s a great big beautiful tomorrow
play

Theres a great, big, beautiful tomorrow with intrinsic Web layouts - PowerPoint PPT Presentation

Theres a great, big, beautiful tomorrow with intrinsic Web layouts @joshtumath Josh Tumath Front-End Web Developer Presentation Layer, Core Services @joshtumath The world of TODAY The principals of The world of


  1. There’s a great, big, beautiful tomorrow with intrinsic Web layouts @joshtumath

  2. Josh Tumath Front-End Web Developer 
 Presentation Layer, Core Services @joshtumath

  3. The world of TODAY ✨ The principals of The world of ✨ ✨ TOMORROW TOMORROW ✨ ✨ @joshtumath

  4. The world of TODAY @joshtumath Source: Disneyland Resort

  5. Flow layout The default layout method @joshtumath Source: https://oneterabyteo fl ilobyteage.tumblr.com/

  6. Table layout Abusing the table element for layouts @joshtumath Source: BBC

  7. Mobile and m.bbc.co.uk for mobiles desktop bbc.co.uk for desktops websites @joshtumath

  8. Fluid and fi xed layouts Cleverly misusing CSS property float: left and percentages or fi xed width boxes @joshtumath Source: BBC

  9. @joshtumath

  10. Responsive layouts The full power of CSS Media Queries @joshtumath Source: BBC

  11. The limitations of Responsive Web Design @joshtumath

  12. Where’s the fold? We can’t easily size things so that they don’t get cut o ff at the fold @joshtumath Source: BBC

  13. Can’t mix fl uid and fi xed All grid columns must be either fi xed or percentage widths @joshtumath

  14. Stick to the breakpoints @joshtumath Source: BBC

  15. The world of TOMORROW @joshtumath Source: ProgressCityUSA

  16. It’s all about design systems @joshtumath

  17. Subgrids minmax( n, m ) Flex fr units Multi-column @supports min( n, m ) max( n, m ) New in CSS aspect-ratio min-content Grids max-content Shapes Regions clamp( min, value, max ) @joshtumath

  18. @joshtumath

  19. “The more I understood what CSS Grid wants to do, I realised we’re in a new era of Web design. This is not responsive layout. This is something di ff erent. ” Jen Simmons @joshtumath Source: Jen Simmons, ‘Everything You Know About Web Design Just Changed’ (2018)

  20. Intrinsic Web Design @joshtumath

  21. Intrinsic Web Design @joshtumath

  22. Intrinsic Web Design @joshtumath

  23. Intrinsic Web Design @joshtumath

  24. Intrinsic? • The content knows how to fi ll its space • It’s about setting constraints instead of setting breakpoints • Capable of mixing fi xed and fl uid columns in the same layout • No need for Media Queries (usually)! @joshtumath

  25. @joshtumath Check it out: https://codepen.io/joshtumath/pen/LYVOdbR

  26. This changes everything And as designers and developers, we need to understand what we can do. @joshtumath

  27. @joshtumath Check it out: https://every-layout.dev

  28. Intrinsic Design = ❤ Web Design + Systems @joshtumath

  29. So how are we using it at the BBC? @joshtumath

  30. We’re not *but we’re thinking about it @joshtumath

  31. @joshtumath

  32. The principals of TOMORROW How to put intrinsic layouts in your design system @joshtumath Source: TheOriginalEpcot

  33. .grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); } @joshtumath

  34. Avoid Media Queries @joshtumath

  35. Split layouts from components You can avoid re-implementing layouts in each component @joshtumath

  36. .card { 👏 margin: 1rem 0; } Don’t set margins on the edges of components Let the parent components .stack > * + * { margin-top: 1rem; do that instead } 👎 .grid { display: grid; gap: 1rem; } @joshtumath

  37. Encapsulate the styles of <Card> <div class=“card-image”> <Image /> each component </div> <div class=“card-content”> <p>Lorem ipsum</p> Don't let parent <div> </Card> components change the style of a component .Card .Image { 👏 width: 50%; } @joshtumath

  38. Be careful mixing intrinsic layouts with media queries @joshtumath

  39. So what do we need to do? • Spread the word to everyone you know! • Play around with CSS Grid and Flexbox • Subscribe to Rachel Andrew, Jen Simmons and Adam Argyle • See what you can do today @joshtumath

  40. Thank you @joshtumath https://joshtumath.uk @joshtumath Source: Walt Disney Imagineering

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend