Skip to content
16 changes: 15 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,21 @@
</head>
<body>

<!-- Add your code here -->
<form method="post" action="/login/">
<div>
<label for="email">Email</label>
<input name="email" aria-label="user email" id="email" type="email">
</div>

<div>
<label for="password">Password</label>
<input name="password" aria-label="user password" id="password" type="password">
</div>

<div>
<button aria-label="submit form" type="submit">Submit</button>
</div>
</form>

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

<!-- Add your code here -->
<picture>
<source media="(min-width: 1800px)" srcset="https://placehold.co/2000x900">
<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">

<img src="https://placehold.co/400x180" alt="Responsive image">
</picture>
</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 media="(min-width: 1024px)" srcset="https://placehold.co/1600x720">
<source media="(min-width: 640px)" srcset="https://placehold.co/1200x900">

<img src="https://placehold.co/540x800" alt="Responsive image">
</picture>
</body>
</html>
45 changes: 43 additions & 2 deletions Week 1.1 - HTML/4. Mock Up a Design/index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,54 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mock Up a Design</title>
</head>

<body>

<!-- Add your code here -->

<div class="main-content full-width">
<div class="titles-setion">
<span class="title">Phase 4:</h3>
<h1>Destination Thrive</h1>
<h3>Objective: Create onmi-channel synergy</h3>
</div>

<div class="main-section gap-25">
<div class="description">
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Necessitatibus vero ad commodi corrupti
enim
aperiam ratione voluptates, veritatis, ullam earum totam doloribus cum a nobis tenetur reprehenderit
dolorum itaque amet.
</p>
</div>
<br>
<div class="focus">
<h3 class="strong">
Key Focus:
</h3>
<ul>
<li>Harvesting the demand created.....</li>
<li>Scale paid media and social efforts</li>
<li>Leverage your new audiences</li>
<li>Omni-Channel synergy</li>
</ul>
</div>
<div class="Time">
<h3 class="strong">
<!--not sure about the icon itself-->
Time <i class="fa fa-watch"></i>
</h3>
<div>
<p>approx. 24 months and beyond</p>
</div>
</div>
</div>
</div>

</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: 25 additions & 5 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,34 @@
<body>

<style>
/* Add your CSS here */
.btn {
border-radius: 4px;
padding: 12px 32px;
color: black;
background-color: #f5f5f5;
cursor: pointer;
}

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

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

.btn-danger {
background-color: #FEB2B2;
}
</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="btn">Default</button>
<button class="btn btn-primary">Primary</button>
<button class="btn btn-link">Link</button>
<button class="btn btn-danger">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,6 +22,13 @@
width: 100px;
height: 100px;
background-color: rebeccapurple;
transform: scale(1);
transition: all 160ms ease-in-out;

}
.box:hover {
transition: all 200ms ease-in-out;
transform: scale(2);
}
</style>

Expand Down
3 changes: 2 additions & 1 deletion Week 1.2 - CSS/6. Tricks - Click Passthrough/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@
width: 100%;
height: 100%;
background-image: linear-gradient(to bottom, transparent, black);
pointer-events: none;
}
</style>

<div class="container">
<a href="https://simpleviewinc.com" target="_blank" rel="noopener">
<img src="https://via.placeholder.com/800x360" alt="A placeholder image" />
<img src="https://placehold.co/800x360" alt="A placeholder image" />
</a>
<div class="overlay"></div>
</div>
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;
const endingArray = startingArray.filter(item => item % 2 === 0);

// Custom Code END

Expand Down
2 changes: 1 addition & 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,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;
const endingArray = startingArray.map(name => ({ name }));

// Custom Code END

Expand Down
31 changes: 14 additions & 17 deletions Week 1.3 - JavaScript/3. Objects as a Map/index.html
Original file line number Diff line number Diff line change
@@ -1,33 +1,30 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Objects as a Map</title>
</head>

<body>

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

<script>
// Rewrite this function to replace the if/else logic with a map lookup.
function getInformation(key) {
let rtn;
const info = {
date: 'October 6, 1986',
time: '21:13 PM',
mood: 'Powerful, spirited...'
}

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...';
}
const getInformation = (key) => info[key] ?? 'Error: Invalid option selected...';

return rtn;
}
console.log(getInformation('date'));
console.log(getInformation('time'));
console.log(getInformation('mood'));
console.log(getInformation('custom'));
</script>

</body>

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

<script>
const counterEl = document.querySelector('[data-counter]');
const btn = document.querySelector('button[data-action="increment-counter"]')
btn.addEventListener('click', (e) => {
e.stopPropagation();
e.preventDefault();

increment();
})
let counter = 0;

function increment() {
Expand Down
5 changes: 4 additions & 1 deletion Week 1.3 - JavaScript/5. DOM Manipulation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ <h2>More Jeff Goldblum</h2>
</main>

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

container.insertAdjacentHTML('afterend', template.innerHTML);
</script>

</body>
Expand Down
10 changes: 9 additions & 1 deletion Week 1.3 - JavaScript/Data Fetching/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,15 @@
<ul class="movies"></ul>

<script>
// Add your code here
// since provided api is not longer available, i'll be using pokeapi
async function fetchData() {
const movies = await fetch('https://pokeapi.co/api/v2/pokemon/');
const {results} = await movies.json();
const container = document.querySelector('.movies');
const listItems = results.reduce((acc, pokemon) => acc += `<li>${pokemon.name}</li>`, '');
container.innerHTML = listItems;
}
fetchData();
</script>

</body>
Expand Down
20 changes: 11 additions & 9 deletions Week 2.1 - CSS Grid/1. Responsive Grids/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,55 +28,57 @@

<style>
.cards {
/* Add your code here */
/* missing display grid? */
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
</style>

<section class="cards">
<article class="card">
<img src="https://via.placeholder.com/300x240" alt="placeholder" />
<img src="https://placehold.co/300x240" alt="placeholder" />
<h2>Lorem Ipsum Dolor</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" />
<img src="https://placehold.co/300x240" alt="placeholder" />
<h2>Lorem Ipsum Dolor</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" />
<img src="https://placehold.co/300x240" alt="placeholder" />
<h2>Lorem Ipsum Dolor</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" />
<img src="https://placehold.co/300x240" alt="placeholder" />
<h2>Lorem Ipsum Dolor</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" />
<img src="https://placehold.co/300x240" alt="placeholder" />
<h2>Lorem Ipsum Dolor</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" />
<img src="https://placehold.co/300x240" alt="placeholder" />
<h2>Lorem Ipsum Dolor</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" />
<img src="https://placehold.co/300x240" alt="placeholder" />
<h2>Lorem Ipsum Dolor</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" />
<img src="https://placehold.co/300x240" alt="placeholder" />
<h2>Lorem Ipsum Dolor</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>
Expand Down
5 changes: 4 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 @@ -18,7 +18,10 @@
<body>

<style>
/* Add your code here */
.channel {
grid-row: 1;
grid-column: 1;
}
</style>

<div class="photo">
Expand Down
Loading