Thursday March 3
Daily JS
Arrays and Objects (all ES6 like)
var x = [1, 2, 3];
var y = [1, 2, 3];
var z = [x, y];
var a = {'something': x, another: 'hello'};
var b = {x, y};
var c = {x, y};
var d = c;
console.log(x === y);
console.log(x == y);
console.log(x[0]);
console.log(y[0] === x[0]);
console.log(z[0] === x);
console.log(a.another);
console.log(a['something']); // How far does it go?
console.log(b === c);
console.log(c === d);
/* Results (Printed statements from console.logs) */
//
//
//
//
//
//
//
//
//
Topics
- House Keeping
- Importance of Assignments
- Portfolio
- Importance of Assignments
vh
andvw
Units- Flex Box
- Flex Parent vs Flex Children
display: flex
flex-direction
(Parent)- Primary Axis
flex-basis
,flex-grow
,flex-shrink
(Child)flex-wrap
(Parent)
- Flex Parent vs Flex Children
- Moving Flexbox Content
justify-content
vsalign-items
(Parent)align-content
(Parent)align-self
(Child)
Flexbox Patterns
- Sticky Footer
- Layout Techniques
Inspiration
Octocat Grid
Tumblr Splash Page
Exercise & Lesson Code
https://github.com/TIY-TN-FEE-2016-spring/lesson-01-04
Lab
Video
Content Driven Layouts with Flexbox
Exercise
Homework
https://github.com/TIY-TN-FEE-2016-spring/assignments/tree/master/04-surf-and-paddle
Resources
- Common Device Sizes
- Typographic Grid