Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions Week 1.1 - HTML/1. Build a Form/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,26 @@
<body>

<!-- Add your code here -->
<div class="container">
<form method="POST" action="/login/">

<div class="form">
<label> Enter an email address:
<input type="email" id="emailInput" value="" required />
</label>
</div>

<div class="form">
<label for="pass">Enter an password:
<input type="password" id="pass" name="password" required />
</label>
</div>

<input type="submit" value="Submit" />

</form>
</div>


</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@
<body>

<!-- Add your code here -->
<picture>
<source media ="(min-width:1800px)" srcset="https://placehold.co/800x360" />
<source media ="(min-width:1440px)" srcset="https://placehold.co/1600x720" />
<source media ="(min-width:1024px)" srcset="https://placehold.co/1200x540" />
<source media ="(min-width:640px)" srcset="https://placehold.co/800x360" />

<!-- Default Image -->
<img class="responsive-img" src="https://placehold.co/400x180" />

</picture>



</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,19 @@
<body>

<!-- Add your code here -->
<picture>
<!-- Desktop ratio 20:9 -->
<source media ="(min-width:1024px)" srcset="https://placehold.co/1600x720" />

<!-- Tablet ratio 4:3 -->
<source media ="(min-width:640px)" srcset="https://placehold.co/1200x900" />


<!-- Default Mobile ratio 1:1 -->
<img class="responsive-img" src="https://placehold.co/540x800" />

</picture>


</body>
</html>
37 changes: 37 additions & 0 deletions Week 1.1 - HTML/4. Mock Up a Design/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,42 @@

<!-- Add your code here -->

<section id="content-slider">
<div class="slides">
<div class="slide">
<div class="slide-content">
<h4>Top Heading</h4>
<h1>Title</h1>
<h4>Sub Heading</h4>
<p> paragraph </p>

<hr />

<h4>list title:</h4>
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>

<div class="icon-box">
<div class="icon-box-content">
<h4> Icon box title <span class="icon">icon</span></h4>
<p> description </p>
</div>
</div>

</div>
</div>
</div>


<div class="dots-vertical" role="tablist" aria-label="slide navigation" id="dots"></div>


</section>


</body>
</html>
2 changes: 1 addition & 1 deletion Week 1.2 - CSS/1. Selectors - Attributes/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<style>
/* Update the following line of CSS to only style the inputs of type `text` */
* { border: 2px solid rebeccapurple; }
input[type="text"] { border: 2px solid rebeccapurple; }
</style>

<input type="text" />
Expand Down
2 changes: 1 addition & 1 deletion Week 1.2 - CSS/2. Selectors - Children/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<style>
/* Update the following line of CSS to only style the immediate `.item` children of `.container` */
.container .item { border: 2px solid rebeccapurple; }
.container > .item { border: 2px solid rebeccapurple; }
</style>

<ul class="container">
Expand Down
2 changes: 1 addition & 1 deletion Week 1.2 - CSS/3. Selectors - Siblings/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<style>
/* Update the following line of CSS to only style `<p>` that follow an `<h2>` */
p {
h2 + p {
font-size: 22px;
line-height: 1.5;
color: rebeccapurple;
Expand Down
30 changes: 30 additions & 0 deletions Week 1.2 - CSS/4. Inheritance and Systems/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,36 @@

<style>
/* Add your CSS here */

.btn{

color:#000;
border-radius:4px;
padding: 12px 32px;
cursor: pointer;
border: 1px solid transparent;
transition: all 0.3s ease;

}

.btn.default{
background: #f5f5f5;
}

.btn.primary{
background: #90CDF4;
}

.btn.link{
background: transparent;
text-decoration:underline;
}

.btn.danger{
background: #FEB2B2;

}

</style>

<!-- Add as many or as few classes as needed to accomplish the goal to the buttons below -->
Expand Down
9 changes: 9 additions & 0 deletions Week 1.2 - CSS/5. Transitions/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,16 @@
width: 100px;
height: 100px;
background-color: rebeccapurple;
transition: transform 160ms ease;
transform: scale(1);
}

.box:hover {

transition: transform 200ms ease;
transform: scale(2);
}

</style>

<div class="box"></div>
Expand Down
1 change: 1 addition & 0 deletions Week 1.2 - CSS/6. Tricks - Click Passthrough/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
width: 100%;
height: 100%;
background-image: linear-gradient(to bottom, transparent, black);
pointer-events:none;
}
</style>

Expand Down
2 changes: 1 addition & 1 deletion Week 1.3 - JavaScript/1. Filter/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// Custom Code BEGIN
// Modify the code in this block however you need to get the desired ending array.
// You must store your new array in the `endingArray` variable for it to log out properly.
let endingArray;
let endingArray = startingArray.filter((num, index) => index % 2 == 1);

// Custom Code END

Expand Down
4 changes: 3 additions & 1 deletion Week 1.3 - JavaScript/2. Map/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
// Custom Code BEGIN
// Modify the code in this block however you need to get the desired ending array.
// You must store your new array in the `endingArray` variable for it to log out properly.
let endingArray;
let endingArray = startingArray.map((element) => {
return {name : element};
});

// Custom Code END

Expand Down
15 changes: 5 additions & 10 deletions Week 1.3 - JavaScript/3. Objects as a Map/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,14 @@

// Rewrite this function to replace the if/else logic with a map lookup.
function getInformation(key) {
let rtn;
const rtn = {

if (key === 'date') {
rtn = 'October 6, 1986';
} else if (key === 'time') {
rtn = '21:13 PM';
} else if (key === 'mood') {
rtn = 'Powerful, spirited...';
} else {
rtn = 'Error: Invalid option selected...';
date: 'October 6, 1986',
time: '21:13 PM',
mood: 'Powerful, spirited...',
}

return rtn;
return rtn[key];
}
</script>

Expand Down
4 changes: 4 additions & 0 deletions Week 1.3 - JavaScript/4. Event Listeners/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ <h1 data-counter>0</h1>
}

// Add your code here to make clicking the button run the increment function

const button = document.querySelector('[data-action]');
button.addEventListener("click", increment);

</script>

</body>
Expand Down
5 changes: 5 additions & 0 deletions Week 1.3 - JavaScript/5. DOM Manipulation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ <h2>More Jeff Goldblum</h2>

<script>
// Add you code here
const container = document.querySelector(".container");
const newSection = document.querySelector("script[type='text/template']").innerHTML;

container.insertAdjacentHTML("beforeend", newSection);

</script>

</body>
Expand Down
27 changes: 27 additions & 0 deletions Week 1.3 - JavaScript/Data Fetching/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,33 @@

<script>
// Add your code here

async function moviesList(){

try{

const response = await fetch("https://ghibliapi.vercel.app/films");

const movies = await response.json();

const list = document.querySelector(".movies");

movies.forEach(element => {
const li = document.createElement("li");
li.textContent = element.title;
list.appendChild(li);
});

}
catch (err){

console.error("Error:", err);

}
}

moviesList();

</script>

</body>
Expand Down
2 changes: 2 additions & 0 deletions Week 2.1 - CSS Grid/1. Responsive Grids/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
<style>
.cards {
/* Add your code here */
display: grid;
grid-template-columns: repeat(auto-fit, min-content(280px, 1fr));
}
</style>

Expand Down
6 changes: 6 additions & 0 deletions Week 2.1 - CSS Grid/2. Placing Items/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@

<style>
/* Add your code here */
.channel{
grid-area: stack;
width: 100%;
height: 100%;
object-fit: cover;
}
</style>

<div class="photo">
Expand Down
16 changes: 12 additions & 4 deletions Week 2.1 - CSS Grid/3. Placing Items - Advanced/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,24 @@
background-color: lightcoral;
}

.placeholder {
border-color: mediumslateblue;
background-color: lightcyan;
}

</style>
</head>
<body>

<style>
/* Add your code here */
.letter:nth-child(1) { grid-column: 1; grid-row:2; }
.letter:nth-child(2) { grid-column: 2; grid-row:3; }
.letter:nth-child(3) { grid-column: 3; grid-row:4; }
.letter:nth-child(4) { grid-column: 4; grid-row:5; }
.letter:nth-child(5) { grid-column: 5; grid-row:6; }
.letter:nth-child(6) { grid-column: 6; grid-row:7; }

.letter{
position: sticky;
top:0;
}
</style>

<div class="grid">
Expand Down
3 changes: 3 additions & 0 deletions Week 2.2 - Flexbox/1. Centering/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
background-color: whitesmoke;

/* Add to your code here to center the box within the container */
display:flex;
justify-content:center;
align-items:center;
}
</style>

Expand Down
6 changes: 5 additions & 1 deletion Week 2.2 - Flexbox/2. Placing Items/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,13 @@
/*
Add to your code here to place the `.logo` and `.links` on either
side end of the `.navbar`.

The `.logo` and `.links` should also be center aligned with each other.
*/
display: flex;
justify-content: space-between;
align-items: center;

}
</style>

Expand Down
Loading