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
2 changes: 1 addition & 1 deletion Week 1.1 - HTML/1. Build a Form/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ Build a form with the following specifications:
- [ ] The form submits to the a page at `/login/`
- [ ] The form uses POST to submit the form data
- [ ] Form is accessible to a screen reader
- [ ] Form is keyboard navigable
- [ ] Form is keyboard navigable

Build your form in designated area in the provided HTML file.
13 changes: 13 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,19 @@
<body>

<!-- Add your code here -->
<div id="login-form" class="form-container">
<form action="/login/" method="POST" aria-label="Login Form">

<label for="email">Email:</label>
<input type="email" id="email" name="email" required aria-required="true" aria-describedby="emailHelp">
<span id="emailHelp" class="sr-only">Please enter a valid email address.</span>

<label for="password">Password:</label>
<input type="password" id="password" name="password" required aria-required="true">

<button type="submit">Login</button>
</form>
</div>

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

<!-- Add your code here -->
<!-- Add your code here -->
<picture>
<source srcset="https://placehold.co/2000x900" media="(min-width: 1800px)">
<source srcset="https://placehold.co/1600x720" media="(min-width: 1440px)">
<source srcset="https://placehold.co/1200x540" media="(min-width: 1024px)">
<source srcset="https://placehold.co/800x360" media="(min-width: 640px)">
<img src="https://placehold.co/400x180" alt="Responsive Image">
</picture>

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

<!-- Add your code here -->
<picture>
<source srcset="https://placehold.co/1600x720" media="(min-width: 1024px)">
<source srcset="https://placehold.co/1200x900" media="(min-width: 640px)">
<img src="https://placehold.co/540x800" alt="Responsive Image">
</picture>

</body>
</html>
35 changes: 35 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,40 @@

<!-- Add your code here -->

<nav id="nav-slider">
<ul>
<li>Phase 1: Title</li>
<li>Phase 2: Title</li>
<li>Phase 3: Title</li>
<li>Phase 4: Title </li>
<li>Phase 5: Title</li>
<li>Phase 6: Title</li>
<li>Phase 7: Title</li>
<li>Phase 8: Title</li>
<li>Phase 9: Title</li>
<li>Phase 10: Title</li>
<li class="selected">Phase 11: Title</li>
<li>Phase 12: Title</li>
</ul>
</nav>

<section id="slider-11">
<h2>Phase 4:</h2>
<h1>Destination Thrive</h1>
<h3>Objective: Create omni-channel synergy</h3>
<p>This is the time to fully leverage your hard work and timing. During this phase, attention should be given to creating omni-channel synergy by syncing your messaging and channels from top to bottom. This will help reinforce channels and fully harness the demand your top of funnel awareness campaigns have been creating. Use insights gained from prior testing, learnings, and what has worked well to do purposeful retargeting that also allows for incremental growth.</p>
</hr>
<h3>KEY FOCUS:</h3>
<ul>
<li>Harvesting the demand created by your content marketing efforts</li>
<li>Scale paid media and social efforts</li>
<li>Engage your new audiences</li>
<li>Omni-channel synergy</li>
</ul>

<h3><span>TIME:</span><span class="clock-icon"></span></h3>
<p>approx. 24 months and beyond</p>
</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
31 changes: 27 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 @@ -9,13 +9,36 @@

<style>
/* Add your CSS here */

button {
padding: 12px 32px;
border: none;
border-radius: 4px;
cursor: pointer;
/*font-size: 16px;*/
color: #000;
}
.default {
background-color: #f5f5f5
;
}
.primary {
background-color: ##90CDF4;
}
.link {
background-color: transparent;
}
.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="default">Default</button>
<button class="primary">Primary</button>
<button class="link">Link</button>
<button class="danger">Danger</button>

</body>
</html>
8 changes: 8 additions & 0 deletions Week 1.2 - CSS/5. Transitions/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@
justify-content: center;
min-height: 100vh;
}
.box {
transition: transform 160ms ease;
}
.box:hover {
transform: scale(2);
transition: transform 200ms ease;
}

</style>
</head>
<body>
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
13 changes: 12 additions & 1 deletion Week 1.3 - JavaScript/1. Filter/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,22 @@
// 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;

//Old ES5
/*let endingArray = startingArray.filter(
function(number){
return number % 2 === 0;
}
);*/

//ES6
let endingArray = startingArray.filter(
number => number % 2 === 0
);
// Custom Code END

console.log(endingArray);

</script>

</body>
Expand Down
4 changes: 4 additions & 0 deletions Week 1.3 - JavaScript/2. Map/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@

// Custom Code END

endingArray = startingArray.map (
arrayName => ({ name: arrayName })
);

console.log(endingArray);
</script>

Expand Down
30 changes: 27 additions & 3 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,11 +8,12 @@
<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.
function getInformation(key) {
/*function getInformation(key) {
let rtn;

if (key === 'date') {
Expand All @@ -26,8 +27,31 @@
}

return rtn;
}*/

//Option 1
const map = {
date: 'October 6, 1986',
time: '21:13 PM',
mood:'Powerful, spirited...',
};

const getInformation = function (key) {
return map[key] || 'Error: Invalid option selected...';
}

// Option 2. Arrow Functions.
// This function should be placed on the bottom: const information = getInformation('date');
/*const getInformation = (key) => {
return map[key] || 'Error: Invalid option selected...';
};*/

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

</script>



</body>
</html>
3 changes: 3 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,9 @@ <h1 data-counter>0</h1>
}

// Add your code here to make clicking the button run the increment function
const button = document.querySelector('[data-action="increment-counter"]');
button.addEventListener('click', increment);

</script>

</body>
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
let template = document.querySelector('script[type="text/template"]');
let templateContent = template.innerHTML;
let container = document.querySelector('.container');
container.insertAdjacentHTML('beforeend', templateContent);
</script>

</body>
Expand Down
17 changes: 16 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,22 @@
<ul class="movies"></ul>

<script>
// Add your code here

// Fetch data from the Ghibli API
fetch('https://ghibliapi.vercel.app/films').then(response => response.json())
.then(films => {
const moviesList = document.querySelector('.movies');
films.forEach(film => {
const li = document.createElement('li');
li.textContent = film.title;
moviesList.appendChild(li);
console.log(film);
});
})
.catch(error => {
console.error('Error fetching films:', error);
});

</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 @@ -17,6 +17,8 @@
}

.cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 16px;
margin: 0 auto;
padding: 0 20px;
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 @@ -18,7 +18,12 @@
<body>

<style>
/* Add your code here */
.photo {
grid-template-areas: "stack";
}
.photo > * {
grid-area: stack;
}
</style>

<div class="photo">
Expand Down
Loading