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
12 changes: 6 additions & 6 deletions Week 1.1 - HTML/1. Build a Form/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Build a Form

Build a form with the following specifications:
- [ ] An input field to accept and validate emails
- [ ] An input field to accept a password
- [ ] A button to submit the form
- [ ] The form submits to the a page at `/login/`
- [ ] The form uses POST to submit the form data
- [x ] An input field to accept and validate emails
- [x ] An input field to accept a password
- [x ] A button to submit the form
- [x ] The form submits to the a page at `/login/`
- [x ] The form uses POST to submit the form data
- [ ] Form is accessible to a screen reader
- [ ] Form is keyboard navigable
- [x ] Form is keyboard navigable

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

<!-- Add your code here -->
<form action="/login/" method="POST">
<label for="email">Email: </label>
<input name="email" id="email" type="email"><br>
<label for="password">Password: </label>
<input name="password" id="password" type="password"><br>
<button>Sign In</button>
</form>

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

<!-- Add your code here -->

<picture>
<source media="(min-width:1800px)" srcset="https://via.placeholder.com/2000x900">
<source media="(min-width:1440px)" srcset="https://via.placeholder.com/1600x720">
<source media="(min-width:1024px)" srcset="https://via.placeholder.com/1200x540">
<source media="(min-width:640px)" srcset="https://via.placeholder.com/800x360">
<img src="https://via.placeholder.com/400x180" alt="" style="width:100%">
</picture>

</body>
</html>
</html>

<!-- style="width:auto;" -->
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
<body>

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

</body>
</html>
26 changes: 26 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 @@ -8,6 +8,32 @@
<body>

<!-- Add your code here -->
<!-- Insert an <img> for the background-->
<!-- Insert an <aside> to house the carousel buttons-->
<div class="carousel-item">
<article>
<h3>Phase 4:</h3>
<h1>Destination Thrive</h1>
<h2>Objective: Create omni-channel synergy</h2>
<p>This is the time to fully leverage your heard work and thrive. During this
phase, attention should be given to create omni-channel synergy, syncing your
messagin and channels from top to bottom. Scale hi performing channels and fully
harvest the demand your top of funnel awareness campaigns have been creating. Use
insights gained from your contact lists, data, and web analytics to do prospecting
and build look-a-like audiences for incremental growth.
</p>
<hr>
<h4>Key focus:</h4>
<ul>
<li>Harvesting the demand created by your content marketing effords</li>
<li>Scale paid media and social efforts</li>
<li>Leverage your new audiences</li>
<li>Omni-channel synergy</li>
</ul>
<h4>Time clock</h4> <!-- insert svg of clock instead of word clock-->
<p>approx. 24 months and beyond</p>
</article>
</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
33 changes: 29 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,38 @@

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

.btn-default {
background: #f5f5f5;
}

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

.btn-link {
background: none;
border: none;
}

.btn-danger {
background: #FEB2B2;
color: red;
font-weight: bold;
border: red solid;
}
</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">Default</button>
<button class="btn-primary">Primary</button>
<button class="btn-link">Link</button>
<button class="btn-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 @@ -22,7 +22,15 @@
width: 100px;
height: 100px;
background-color: rebeccapurple;
transition-duration: 160ms;
}

.box:hover {
width: 200px;
height: 200px;
transition-duration: 200ms;
}

</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 @@ -22,6 +22,7 @@
<style>
/* Add 1 line to the CSS below to make the link clickable without changing the design */
.overlay {
pointer-events: none;
position: absolute;
z-index: 1;
top: 0;
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(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;
let endingArray = startingArray.map(item => ({name: item}));

// Custom Code END

Expand Down
18 changes: 7 additions & 11 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,15 @@

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

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...';
}
data.set('date', 'October 6, 1986');
data.set('time', '21:13 PM');
data.set('mood', 'Powerful, spirited...');
console.log(data);

return rtn;
let rtn = data.has(key) ? data.get(key) : 'Error: Invalid option selected...'
return rtn
}
</script>

Expand Down
2 changes: 2 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,8 @@ <h1 data-counter>0</h1>
}

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

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

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

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

<script>
// Add your code here
// Endpoint 'https://ghibliapi.herokuapp.com/films'
const moviesEl = document.querySelector('.movies');
const endpoint = 'https://ghibliapi.herokuapp.com/films'

fetch(endpoint)
.then(response => response.json())
.then(data => {
data.forEach(element => {
const newLi =
`<li>
<h2 style="margin-bottom:0">${element.title}</h2><br>
<img src=${element.image} width="250" alt=""/>
</li>`; // I added more than just a simple li cause I wanted it to be more than a list
moviesEl.insertAdjacentHTML('beforeend', newLi)
});
})
.catch(err => {
console.log("Error: could not fetch.");
console.log(err);
});

</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, minmax(280px, 1fr));
}
</style>

Expand Down
8 changes: 8 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,14 @@

<style>
/* Add your code here */
.channel-cyan,
.channel-magenta,
.channel-yellow,
.channel-black {
grid-column: 1 / 2;
grid-row: 1 / 2;
}

</style>

<div class="photo">
Expand Down
Loading