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
8 changes: 7 additions & 1 deletion Week 1.1 - HTML/1. Build a Form/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@
</head>
<body>

<!-- Add your code here -->
<form action="/login/" method="post">
<label>Email
<input name="emailInput" type="text"></label>
<p><label>Password
<input name="passwordInput" type="text"></label>
<p><button>Submit</button>
</form>

</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,14 @@
</head>
<body>

<!-- Add your code here -->
<img src="https://via.placeholder.com/400x180"
alt="a light gray box with dark gray dynamic text that displays the current resolution of the image"
srcset="https://via.placeholder.com/400x180 600px,
https://via.placeholder.com/800x360 900px,
https://via.placeholder.com/1200x540 1200px,
https://via.placeholder.com/1600x720 1800px,
https://via.placeholder.com/2000x900 2400px"
/>

</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@
</style>
</head>
<body>

<!-- Add your code here -->

<picture>
<source srcset="https://via.placeholder.com/540x800 540w,
https://via.placeholder.com/1200x900 1200w,
https://via.placeholder.com/1600x720 1600w" media="(min-width: 600px)" />
<img src="https://via.placeholder.com/540x800" alt="a light gray box with dark gray dynamic text that displays the current resolution of the image" width="540" height="800"/>
</picture>
</body>
</html>
22 changes: 19 additions & 3 deletions Week 1.1 - HTML/4. Mock Up a Design/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,24 @@
<title>Mock Up a Design</title>
</head>
<body>

<!-- Add your code here -->

<nav>
<!-- The circles on the left appear to be for navigation -->
</nav>
<article>
<h2>Phase 4:</h2>
<h1>Destination Thrive</h1>
<h3>Objective: Create omni-channel synergy</h3>
<p>copy goes here</p>
<hr>
<h4>KEY FOCUS:</h4>
<ul>
<li>Harvesting</li>
<li>Scale</li>
<li>Leverage</li>
<li>Omni-</li>
</ul>
<p><h4>TIME</h4></p>
approx. 24 months and beyond
</article>
</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: 26 additions & 4 deletions Week 1.2 - CSS/4. Inheritance and Systems/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,36 @@
<body>

<style>
/* Add your CSS here */
button {
border-radius: 4px;
padding: 12px 32px;
}

.primaryBtn {
background-color: #90CDF4;
}

.linkBtn {
background-color: transparent;
opacity: .33;
}

.uhohBtn {
background-color: #FEB2B2;

}

.uhohBtn:hover {
border-width: 10px;
background-color: red;
}
</style>

<!-- Add as many or as few classes as needed to accomplish the goal to the buttons below -->
<button>Default</button>
<button>Primary</button>
<button>Link</button>
<button>Danger</button>
<button class="primaryBtn">Primary</button>
<button class="linkBtn">Link</button>
<button class="uhohBtn">Danger</button>

</body>
</html>
7 changes: 7 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,14 @@
width: 100px;
height: 100px;
background-color: rebeccapurple;
transition: transform 160ms ease-in;
}

.box:hover {
transform: scale(2);
transition: transform 200ms ease-out;
}

</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) => num % 2 === 0);

// Custom Code END

Expand Down
5 changes: 4 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,10 @@
// 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;

const endingArray = startingArray.map(function(value) {
return {name: value};
})

// Custom Code END

Expand Down
48 changes: 34 additions & 14 deletions Week 1.3 - JavaScript/3. Objects as a Map/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,45 @@
<body>

<script>
const information = getInformation('date');
console.log(information);
// const information = getInformation('date');
// console.log(information);

// Rewrite this function to replace the if/else logic with a map lookup.
// // Rewrite this function to replace the if/else logic with a map lookup.
// function getInformation(key) {
// let 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...';
// }

// return rtn;
// }


const obj = {
date: 'October 6, 1986',
time: '21:13 PM',
mood: 'Powerful, spirited...',
}

const infoObject = new Map(Object.entries(obj));

function getInformation(key) {
let rtn;

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

return rtn;
}

console.log(getInformation('date'));

</script>

</body>
Expand Down
8 changes: 7 additions & 1 deletion Week 1.3 - JavaScript/4. Event Listeners/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
<body>

<h1 data-counter>0</h1>
<button data-action="increment-counter">+1</button>
<button data-action="increment-counter" id="incBtn">+1</button>

<!-- The below solution also works without needing to bring in an event listener. -->
<!-- <button data-action="increment-counter" onclick="increment()">+1</button> -->

<script>
const counterEl = document.querySelector('[data-counter]');
Expand All @@ -20,6 +23,9 @@ <h1 data-counter>0</h1>
}

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

document.getElementById('incBtn').addEventListener('click', increment)

</script>

</body>
Expand Down
6 changes: 6 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,12 @@ <h2>More Jeff Goldblum</h2>

<script>
// Add you code here
const insertText = document.querySelector('script').innerHTML;

const mainText = document.querySelector('.container');

mainText.insertAdjacentHTML('beforeend',insertText)

</script>

</body>
Expand Down
20 changes: 20 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,26 @@

<script>
// Add your code here
function handleError(err) {
console.log('Whoops-a-daisy');
console.log(err);
}

const baseEndpoint = 'https://swapi.dev/api/films/';

// Basic working format
const viewFilms = fetch(baseEndpoint);

viewFilms.then(res =>
res.json()
).then(data => {
const dataArr = data.results;
dataArr.forEach(elem => {
const filmItem = `<li>${elem.title}</li>`;
document.querySelector('.movies').innerHTML += filmItem;
})
}).catch(handleError);

</script>

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

<section class="cards">
<article class="card">
<img src="https://via.placeholder.com/300x240" alt="placeholder" />
<h2>Lorem Ipsum Dolor</h2>
<h2>Lorem Ipsum Dolor1</h2>
<p>Forget the fat lady! You're obsessed with the fat lady! Drive us out of here! Is this my espresso machine? Wh-what is-h-how did you get my espresso machine? I was part of something special. Eventually, you do plan to have dinosaurs on your dinosaur tour, right?</p>
<a class="more" href="#">Read More</a>
</article>
<article class="card">
<img src="https://via.placeholder.com/300x240" alt="placeholder" />
<h2>Lorem Ipsum Dolor</h2>
<h2>Lorem Ipsum Dolor2</h2>
<p>Forget the fat lady! You're obsessed with the fat lady! Drive us out of here! Is this my espresso machine? Wh-what is-h-how did you get my espresso machine? I was part of something special.</p>
<a class="more" href="#">Read More</a>
</article>
<article class="card">
<img src="https://via.placeholder.com/300x240" alt="placeholder" />
<h2>Lorem Ipsum Dolor</h2>
<h2>Lorem Ipsum Dolor3</h2>
<p>Forget the fat lady! You're obsessed with the fat lady! Drive us out of here! Is this my espresso machine? Wh-what is-h-how did you get my espresso machine?</p>
<a class="more" href="#">Read More</a>
</article>
<article class="card">
<img src="https://via.placeholder.com/300x240" alt="placeholder" />
<h2>Lorem Ipsum Dolor</h2>
<h2>Lorem Ipsum Dolor4</h2>
<p>Forget the fat lady! You're obsessed with the fat lady! Drive us out of here! Is this my espresso machine?</p>
<a class="more" href="#">Read More</a>
</article>
<article class="card">
<img src="https://via.placeholder.com/300x240" alt="placeholder" />
<h2>Lorem Ipsum Dolor</h2>
<h2>Lorem Ipsum Dolor5</h2>
<p>Forget the fat lady! You're obsessed with the fat lady! Drive us out of here! Is this my espresso machine?</p>
<a class="more" href="#">Read More</a>
</article>
<article class="card">
<img src="https://via.placeholder.com/300x240" alt="placeholder" />
<h2>Lorem Ipsum Dolor</h2>
<h2>Lorem Ipsum Dolor6</h2>
<p>Forget the fat lady! You're obsessed with the fat lady! Drive us out of here! Is this my espresso machine? Wh-what is-h-how did you get my espresso machine?</p>
<a class="more" href="#">Read More</a>
</article>
<article class="card">
<img src="https://via.placeholder.com/300x240" alt="placeholder" />
<h2>Lorem Ipsum Dolor</h2>
<h2>Lorem Ipsum Dolor7</h2>
<p>Forget the fat lady! You're obsessed with the fat lady! Drive us out of here! Is this my espresso machine? Wh-what is-h-how did you get my espresso machine? I was part of something special.</p>
<a class="more" href="#">Read More</a>
</article>
<article class="card">
<img src="https://via.placeholder.com/300x240" alt="placeholder" />
<h2>Lorem Ipsum Dolor</h2>
<h2>Lorem Ipsum Dolor8</h2>
<p>Forget the fat lady! You're obsessed with the fat lady! Drive us out of here! Is this my espresso machine? Wh-what is-h-how did you get my espresso machine? I was part of something special. Eventually, you do plan to have dinosaurs on your dinosaur tour, right?</p>
<a class="more" href="#">Read More</a>
</article>
Expand Down
7 changes: 6 additions & 1 deletion Week 2.1 - CSS Grid/2. Placing Items/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,18 @@
max-width: 800px;
}

.photo > * { mix-blend-mode: multiply; }
.photo > * {
mix-blend-mode: multiply;
}
</style>
</head>
<body>

<style>
/* Add your code here */
.photo > * {
grid-area: 1/1;
}
</style>

<div class="photo">
Expand Down
Loading