Skip to content

Commit 4974716

Browse files
committed
UI improvements
1 parent 3210221 commit 4974716

File tree

16 files changed

+108
-24
lines changed

16 files changed

+108
-24
lines changed

web/src/app/app.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.cards.cards {
2+
gap: 2rem;
3+
}
4+
5+
.card span {
6+
display: flex;
7+
justify-content: center;
8+
}
9+
10+
.dark .card {
11+
border-color: rgb(150, 150, 150);
12+
}
13+
14+
.dark .card:hover {
15+
border-color: white;
16+
}

web/src/app/challenges/async/page.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
export const metadata = {
2+
title: "Async | Challenges",
3+
}
4+
15
### 1. Print "Hello, world" with a delay of 3 seconds
26

37
- setTimeout takes a function as the 1st argument and optional timeout delay & list of values as the function parameters

web/src/app/challenges/collections/page.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
export const metadata = {
2+
title: "Collections | Challenges",
3+
}
4+
15
### 1. Write a function which can concatenate 2 arrays. If only one array is passed it will duplicate it
26

37
- Function can take 2 arguments which concatenates arrays

web/src/app/challenges/dom/page.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
export const metadata = {
2+
title: "DOM | Challenges",
3+
}
4+
15
### 1. Show the different ways of selecting an element from DOM
26

37
- The element can be selected using its tagname, id, attribute, value etc

web/src/app/challenges/event/page.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
export const metadata = {
2+
title: "Event | Challenges",
3+
}
4+
15
### 1. Handling a Click Event to Change Text Content
26

37
- In JavaScript, you can add event listeners to elements to respond to various events like mouse clicks, keyboard input, etc.

web/src/app/challenges/functions/page.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
export const metadata = {
2+
title: "Functions | Challenges",
3+
}
4+
15
### 1. Design a Calculator interface for 2 number inputs which can perform sum, difference, product and dividend whenever invoked on the same interface
26

37
```js copy

web/src/app/challenges/objects/page.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
export const metadata = {
2+
title: "Objects | Challenges",
3+
}
4+
15
### 1. Display all the keys and values of a nested object
26

37
- `typeof` operator on value gives the type of value

web/src/app/challenges/primitives/page.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
export const metadata = {
2+
title: "Primitives | Challenges",
3+
}
4+
15
### 1. Swap two integers present in variables num1 and num2 without using temporary variable
26

37
- The swapping of 2 variables is possible with simple Destructuring assignment using array

web/src/app/concepts/async/page.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
export const metadata = {
2+
title: "Async | Concepts",
3+
}
4+
15
### 1. Show the execution of 3 asynchronous block of code, one after the other in sequence
26

37
- The asynchronous block of code can be a function which executes asynchronously

web/src/app/concepts/collections/page.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
export const metadata = {
2+
title: "Collections | Concepts"
3+
}
4+
15
### 1. Show the different ways of creating an array
26

37
- Arrays are the collection of values in javascript. Array is a special type of object in JavaScript

0 commit comments

Comments
 (0)