diff --git a/01 - JavaScript Drum Kit/index-START.html b/01 - JavaScript Drum Kit/index-START.html index 4070d32767..f089c771a5 100644 --- a/01 - JavaScript Drum Kit/index-START.html +++ b/01 - JavaScript Drum Kit/index-START.html @@ -58,6 +58,27 @@ diff --git a/02 - JS and CSS Clock/index-START.html b/02 - JS and CSS Clock/index-START.html index ee7eaefb1f..a249ce2ed9 100644 --- a/02 - JS and CSS Clock/index-START.html +++ b/02 - JS and CSS Clock/index-START.html @@ -62,12 +62,31 @@ background:black; position: absolute; top:50%; + transform: rotate(90deg); + transform-origin: 100%; + transition: all 0.07s; + transition-timing-function: cubic-bezier(0.1, 1.55, 1, 1); } - + diff --git a/03 - CSS Variables/index-START.html b/03 - CSS Variables/index-START.html index 8a4f0d556e..ad9ac9ee19 100644 --- a/03 - CSS Variables/index-START.html +++ b/03 - CSS Variables/index-START.html @@ -26,6 +26,13 @@

Update CSS Variables with JS

misc styles, nothing to do with CSS variables */ + :root { + --base: yellow; + --blur: 10px; + --spacing: 10px; + + } + body { text-align: center; background: #193549; @@ -35,6 +42,16 @@

Update CSS Variables with JS

font-size: 50px; } + img { + padding: var(--spacing); + background: var(--base); + filter: blur(var(--blur)); + } + + .hl { + color: var(--base); + } + .controls { margin-bottom: 50px; } @@ -45,6 +62,14 @@

Update CSS Variables with JS

diff --git a/04 - Array Cardio Day 1/index-START.html b/04 - Array Cardio Day 1/index-START.html index eec0ffc31d..7791445a65 100644 --- a/04 - Array Cardio Day 1/index-START.html +++ b/04 - Array Cardio Day 1/index-START.html @@ -31,17 +31,24 @@ // Array.prototype.filter() // 1. Filter the list of inventors for those who were born in the 1500's - + const inventors1500 = inventors.filter(inventor => 1500 < inventor.year && inventor.year < 1600 ); + console.log(inventors1500); // Array.prototype.map() // 2. Give us an array of the inventors' first and last names - + const firstNameLastName = inventors.map((inventor) => ({first: inventor.first, last: inventor.last})); + console.log(firstNameLastName); // Array.prototype.sort() // 3. Sort the inventors by birthdate, oldest to youngest + inventors.sort((inventor1, inventor2) => inventor1.year - inventor2.year); + console.log(inventors); // Array.prototype.reduce() // 4. How many years did all the inventors live? + const years = inventors.reduce((acc, inventor) => acc + inventor.passed - inventor.year, 0); + console.log(years); // 5. Sort the inventors by years lived + // 6. create a list of Boulevards in Paris that contain 'de' anywhere in the name // https://en.wikipedia.org/wiki/Category:Boulevards_in_Paris diff --git a/05 - Flex Panel Gallery/index-START.html b/05 - Flex Panel Gallery/index-START.html index c6509bed02..cc4274d43a 100644 --- a/05 - Flex Panel Gallery/index-START.html +++ b/05 - Flex Panel Gallery/index-START.html @@ -24,6 +24,7 @@ .panels { min-height:100vh; overflow: hidden; + display: flex; } .panel { @@ -41,6 +42,10 @@ font-size: 20px; background-size:cover; background-position:center; + flex: 1; + display: flex; + flex-direction: column; + justify-content: center; } @@ -54,6 +59,10 @@ margin:0; width: 100%; transition:transform 0.5s; + display:flex; + justify-content: center; + align-items: center; + flex: 1 0 auto; } .panel p { @@ -67,9 +76,15 @@ } .panel.open { + flex: 5; font-size:40px; } + .panel > *:first-child { transform: translateY(-100%); } + .panel.open-active > *:first-child { transform: translateY(0); } + .panel > *:last-child { transform: translateY(100%); } + .panel.open-active > *:last-child { transform: translateY(0); } + @@ -102,6 +117,18 @@ diff --git a/06 - Type Ahead/index-START.html b/06 - Type Ahead/index-START.html index 1436886918..f661ba5bbf 100644 --- a/06 - Type Ahead/index-START.html +++ b/06 - Type Ahead/index-START.html @@ -16,7 +16,36 @@