front ends for backend developers
play

FRONT-ENDS FOR BACKEND DEVELOPERS. @MANDY_KERR Frictionless - PowerPoint PPT Presentation

Frictionless FRONT-ENDS FOR BACKEND DEVELOPERS. @MANDY_KERR Frictionless FRONT-ENDS FOR BACKEND DEVELOPERS. @MANDY_KERR MANDY MICHAEL @MANDY_KERR HTML & CSS JS. @MANDY_KERR & HTML CSS @MANDY_KERR @MANDY_KERR Choosing


  1. Frictionless FRONT-ENDS FOR BACKEND DEVELOPERS. @MANDY_KERR

  2. Frictionless FRONT-ENDS FOR BACKEND DEVELOPERS. @MANDY_KERR

  3. MANDY MICHAEL @MANDY_KERR

  4. HTML & CSS JS. @MANDY_KERR

  5. & HTML CSS @MANDY_KERR

  6. @MANDY_KERR

  7. Choosing THE RIGHT TYPE. @MANDY_KERR

  8. interface dog { name: string age: number isFluffy: boolean } @MANDY_KERR

  9. Be explicit ABOUT THE SHAPE OF THE CONTENT. @MANDY_KERR

  10. <html> <body> <header> <h1>Jello</h1> </header> <main> <h2>Is he a fluffy fellow?</h2> <p>Jello is indeed a fluffy fellow.</p> <figure> <img href =“jello.png" alt ="A golden retriever" /> <figcaption>Jello eating a marshmallow.</figcaption> </figure> </main> </body> </html> @MANDY_KERR

  11. interface dog { name: any age: any isFluffy: any } @MANDY_KERR

  12. <html> <body> <div> <div>Jello</div> </div> <div> <div>Is he a fluffy fellow?</div> <div>Jello is indeed a fluffy fellow.</div> <div> <img href =“jello.png" alt ="A golden retriever" /> <div>Jello eating a marshmallow.</div> </div> </div> </body> </html> @MANDY_KERR

  13. SECTIONING ELEMENTS. <section> <article> <nav> <aside> @MANDY_KERR

  14. CLEAR STRUCTURE AND HEIRARCHY. <header> <footer> <h1> <h2> <h3> @MANDY_KERR

  15. MAKE THE MOST OF HTML’S BUILT IN FUNCTIONALITY. @MANDY_KERR

  16. DIVS. SPECIFIC HTML. @MANDY_KERR @MANDY_KERR

  17. LIGHTHOUSE @MANDY_KERR

  18. @MANDY_KERR

  19. Understanding CSS, SCSS, CSS in JS @MANDY_KERR

  20. Tricks for CHOOSING FONTS @MANDY_KERR

  21. fontpair.co/fonts fonts.google.com @MANDY_KERR

  22. @MANDY_KERR

  23. Simple tricks for LAYOUTS WITH CSS @MANDY_KERR

  24. Header Navigation Sidebar Main Content Footer @MANDY_KERR

  25. 3 COLUMNS Header Navigation Main Content Sidebar Footer FIXED FLUID FIXED @MANDY_KERR

  26. FIXED AT 200PX FIXED AT 250PX . page { display: grid; grid-template-columns: 200px 1fr 250px; } @MANDY_KERR

  27. . page { display: grid; grid-template-columns: 200px 1fr 250px; } FLUID FRACTION UNIT @MANDY_KERR

  28. HEADER SPANS TWO COLUMNS Header Navigation Main Content Sidebar Footer @MANDY_KERR

  29. SPAN FOR 2 header { grid-column: 2 / span 2; } START AT 2 (THE INDEX STARTS AT 1 NOT 0) @MANDY_KERR

  30. FIREFOX: 
 CSS GRID 
 INSPECTOR grid-column: 2 / span 2; @MANDY_KERR

  31. 3 ROWS FIXED Header Navigation Main Content Sidebar FLUID Footer FIXED @MANDY_KERR

  32. . page { display: grid; grid-template-columns: 200px 1fr 250px; grid-template-rows: 60px 1fr 60px; } @MANDY_KERR

  33. 3 ROWS Header SPANS 
 ALL 
 ROWS SPANS 
 Navigation Main Content Sidebar TWO 
 ROWS Footer @MANDY_KERR

  34. .navigation { grid-row: 1 / span 3; } aside { grid-row: span 2; } @MANDY_KERR

  35. @MANDY_KERR

  36. @MANDY_KERR

  37. MARSHMALLOW @MANDY_KERR

  38. . block-group { display: grid; grid-gap: 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); } @MANDY_KERR

  39. grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); @MANDY_KERR

  40. @MANDY_KERR

  41. . block-group : first-child { grid-column: 1 / -1; } @MANDY_KERR

  42. .full-width { grid-column: 1 / -1; } @MANDY_KERR

  43. @MANDY_KERR

  44. @MANDY_KERR

  45. YOU CAN USE CSS GRID FOR ALL SORTS OF LAYOUTS LIKE FORMS OR CARDS. @MANDY_KERR

  46. EVERY-LAYOUT.DEV GRIDBYEXAMPLE.COM 
 @rachelandrew @MANDY_KERR

  47. @MANDY_KERR

  48. Making the page FULL HEIGHT @MANDY_KERR

  49. A percentage of the full viewport height or width 10vh 10vw VIEWPORT HEIGHT VIEWPORT WIDTH @MANDY_KERR

  50. .page { height: 100vh; 
 } @MANDY_KERR

  51. @MANDY_KERR

  52. Some ways to ALIGN THINGS @MANDY_KERR

  53. @MANDY_KERR

  54. <div> 
 <p>Jello is a fluffy fellow</p> 
 </div> div { display: flex; align-items: center; text-align: center; } @MANDY_KERR

  55. <div> 
 <p>Jello is a fluffy fellow</p> 
 </div> div { display: flex; align-items: center; justify-content: center; } @MANDY_KERR

  56. <div> 
 <p>Jello</p> 
 <p>Marshmallow</p> 
 </div> @MANDY_KERR

  57. <div> <p>Jello is a fluffy fellow</p> 
 </div> A ROW!! div { display: flex; flex-direction: row; align-items: center; justify-content: center; } @MANDY_KERR

  58. <div> 
 <p>Jello</p> 
 <p>Marshmallow</p> 
 </div> A COLUMN!! div { display: flex; 
 flex-direction: column; align-items: center; justify-content: center; } @MANDY_KERR

  59. <div> 
 <p>Jello</p> 
 <p>Marshmallow</p> 
 </div> @MANDY_KERR

  60. ROW COLUMN JUSTIFY ALIGN ALIGN JUSTIFY @MANDY_KERR

  61. . section-header { display: flex; justify-content: space-between; align-items: center; } @MANDY_KERR

  62. WITHOUT FLEXBOX WITH FLEXBOX @MANDY_KERR

  63. @MANDY_KERR

  64. Working with VARIABLES IN CSS @MANDY_KERR

  65. // CSS color: var(--primaryColor); --primaryColor: #6c4bdf; // scss $primaryColor: #6c4bdf; color: $primaryColor; // JavaScript color: primaryColor; const primaryColor : '#6c4bdf'; @MANDY_KERR

  66. Margins & Padding Colours Fonts @MANDY_KERR

  67. Setting up CONSISTENT MARGINS @MANDY_KERR

  68. spacing-1: 9px; spacing-2: 18px; spacing-3: 27px; spacing-4: 36px; @MANDY_KERR

  69. @MANDY_KERR

  70. @MANDY_KERR

  71. 36px 9px 18px 27px spacing-1: 9px; spacing-2: 18px; spacing-3: 27px; spacing-4: 36px; @MANDY_KERR

  72. TIPS Have a consistent set of spacing values Use a larger value between sections 
 Use a medium value between boxes Use smaller values for content in tight spaces @MANDY_KERR

  73. Adding in COLOURS & FONT SIZE @MANDY_KERR

  74. @MANDY_KERR

  75. TIPS Draw attention with a large font size Use a smaller font size for supplementary information 
 Link colours should generally be consistent 
 Have a colour palette @MANDY_KERR

  76. coolors.co @MANDY_KERR

  77. Styling THE MAIN NAVIGATION @MANDY_KERR

  78. NAVIGATION @MANDY_KERR

  79. nav a { BLOCK ELEMENT display: block; color: white; text-decoration: none; padding: 18px; } nav a: hover , nav a: focus { background: pink; color: white; } @MANDY_KERR

  80. DISPLAY: INLINE Only take as much space as they need Displayed side by side 
 You cannot set width, height or top & bottom margin Cannot contain block elements @MANDY_KERR

  81. DISPLAY: BLOCK Take full-width by default (100% width of space) Displayed on a new line 
 You can set a width and height Can contain other block elements @MANDY_KERR

  82. INLINE BLOCK @MANDY_KERR

  83. FIREFOX: CONTEXTUAL INFORMATION @MANDY_KERR

  84. .navigation a { display: block; color: white; SET THE COLOUR padding: 18px; INCREASE CLICK AREA } @MANDY_KERR

  85. MARGIN PADDING @MANDY_KERR

  86. .navigation a: hover { background: pink; color: white; } MAKE REACT TO INTERACTION .navigation a: focus { background: blue; color: white; } @MANDY_KERR

  87. @MANDY_KERR

  88. .navigation a { display: block; color: white; text-decoration: none; padding: 18px; 
 transition: background 250ms ease; } ANIMATE BETWEEN THE COLOURS @MANDY_KERR

  89. @MANDY_KERR

  90. Making PERFORMANT IMAGES @MANDY_KERR

  91. @MANDY_KERR

  92. <img src ="jello.png" width ="476" height =“479” /> img { width: 300px; height: 300px; } @MANDY_KERR

  93. @MANDY_KERR

  94. <img src ="jello.png" width ="476" height =“479” /> img { width: 100%; height: auto; } @MANDY_KERR

  95. @MANDY_KERR

  96. @MANDY_KERR

  97. Aside.. STICKING THINGS @MANDY_KERR

  98. nav { position: sticky; top: 0; } @MANDY_KERR

  99. @MANDY_KERR

  100. @MANDY_KERR

Recommend


More recommend