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: 2 additions & 6 deletions week-1/problems/0-horizontal-align/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@
.container {
width: 1200px;
/* margin: 0px auto; */
margin: 0px auto;
background-color: red;
}

.content {
height: 500px;
}
</style>
Expand All @@ -22,9 +20,7 @@
<body>
<div style="display: flex; justify-content: center;">
<div class="container">
<div class="content">
<h1>Hello World</h1>
</div>
<h1>Hello World</h1>
</div>
</div>

Expand Down
18 changes: 2 additions & 16 deletions week-1/problems/1-vertical-align/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,17 @@
width: 1200px;
margin: 0 auto;
background-color: red;
}
.content {
height: 500px;
}
.vertical-center {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
flex-direction: column;
}
.horizontal-center {
margin: 0 auto;
}
</style>
</head>

<body>
<div class="container">
<div class="content">
<div class="vertical-center" style="background-color: yellow;">
<div class="horizontal-center">
<h1>Hello World</h1>
</div>
</div>
</div>
<h1>Hello World</h1>
</div>
</body>

Expand Down
26 changes: 15 additions & 11 deletions week-1/problems/2-flex-layout/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,34 @@
<style>
.container {
width: 1200px;
margin: 0 auto;
margin: 50px auto;
height: 200px;
display: flex;
justify-content: center;
align-items: center;
}

.left {
display: flex;
flex: 1;
background-color: red;
flex-grow: 1;
display: flex;
justify-content: center;
align-items: center;
}

.right {
flex: 2;
background-color: blue;
flex-grow: 2;
display: flex;
justify-content: center;
align-items: center;
}
</style>
</head>

<body>
<div class="container">
<div class="left">
<h1>Left</h1>
</div>
<div class="right">
<h1>Right</h1>
</div>
<h1 class="left">Left</h1>
<h1 class="right">Right</h1>
</div>
</body>

Expand Down
5 changes: 4 additions & 1 deletion week-1/problems/3-grid-layout/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,18 @@
margin: 0 auto;
display: grid;
grid-template-columns: 1fr 2fr;
gap: 10px;
}

.left {
background-color: red;
align-items: center;
justify-content: center;
}

.right {
background-color: blue;
align-items: center;
justify-content: center;
}
</style>
</head>
Expand Down
41 changes: 31 additions & 10 deletions week-1/problems/4-more-complicated-grid/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,54 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Grid Layout</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
background-color: #f5f5f5;
padding: 20px;
}

.container {
width: 1200px;
max-width: 1200px;
width: 100%;
margin: 0 auto;
display: grid;
grid-template-columns: 1fr 2fr;
gap: 10px;
min-height: 400px;
}

.left {
background-color: red;
padding: 30px;
display: flex;
flex-direction: column;
justify-content: flex-start;
}

.right {
background-color: blue;
.left h1 {
margin-bottom: 20px;
text-align: center;
}
.vertical-center {
display: flex;
justify-content: center;
align-items: center;
height: 100%;

.left p {
line-height: 1.8;
margin-bottom: 15px;
}
.horizontal-center {
margin: 0 auto;

.right {
background-color: blue;
padding: 30px;
}

.grid1 {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 15px;
}
</style>
</head>
Expand Down
10 changes: 9 additions & 1 deletion week-1/problems/5-vscode-bottombar/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,20 @@
<style>
body {
font-family: Arial, sans-serif;
background-color: black;
background-color: #fff;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.container {
background-color: black;
width: 1200px;
margin: 0 auto;
display: grid;
align-items: center;
justify-content: center;
color: white;
}

Expand Down
1 change: 1 addition & 0 deletions week-1/problems/6-vs-code-landing-page/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ a {

.heroContainer {
display: flex;
flex-direction: column;
justify-content: space-between;
}

Expand Down
1 change: 1 addition & 0 deletions week-1/problems/6-vs-code-landing-page/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ <h2 style="text-align: left;">Code Editing. Redefined.</h2>
<div>
<img src="https://code.visualstudio.com/assets/home/home-screenshot-mac-2x-v2.png" width="800px" />
</div>

</div>
</div>
</section>
Expand Down
12 changes: 12 additions & 0 deletions week-2/week-2-async-js/easy/1-counter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*## Create a counter in JavaScript
We have already covered this in the second lesson, but as an easy recap try to code a counter in Javascript
It should go up as time goes by in intervals of 1 second*/

let counter = 0;

function updateCounter() {
counter++
console.log(counter);
}

setInterval(updateCounter,1000)
4 changes: 0 additions & 4 deletions week-2/week-2-async-js/easy/1-counter.md

This file was deleted.

84 changes: 84 additions & 0 deletions week-2/week-2-async-js/easy/2-counter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
// ## Counter without setInterval
//Without using setInterval, try to code a counter in Javascript. There is a hint at the bottom of the file if you get stuck.


let counter = 0;

function updateCounter() {
counter++;
console.log(counter);

setTimeout(updateCounter,1000);
}

updateCounter();





































































//(Hint: setTimeout)
Loading