Skip to content

Commit 554edba

Browse files
Merge pull request #46 from UmiKami/03-Bootstrap-Grid
03 bootstrap grid
2 parents ebcc0c5 + c4db72a commit 554edba

File tree

4 files changed

+35
-4
lines changed

4 files changed

+35
-4
lines changed

exercises/03-Bootstrap-Grid/README.es.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ https://getbootstrap.com/docs/5.0/layout/grid/
3434

3535
3. Cambia el color de fondo(`background-color`) del `col-12` a rojo(`red`), y agrega tu nombre adentro del `<div>`.
3636

37-
4. Cambia el principal `container` a `container-fluid`
37+
4. Cambia el div principal `container` a `container-fluid`
3838

3939
### Resultado esperado:
4040

exercises/03-Bootstrap-Grid/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ https://getbootstrap.com/docs/5.0/layout/grid/
3333

3434
3. Change the `background-color` of the `col-12` to `red`, and add your name inside of the `<div>`.
3535

36-
4. Change the main `container` to `container-fluid`
36+
4. Change the main div `container` to `container-fluid`
3737

3838

3939
### Expected result:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width" />
6+
<link
7+
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
8+
rel="stylesheet"
9+
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC"
10+
crossorigin="anonymous"
11+
/>
12+
<title>03 Bootstrap Grid</title>
13+
</head>
14+
<body>
15+
<div class="container-fluid">
16+
<h1>Let's test the grid baby!</h1>
17+
<div class="row">
18+
<div class="col-6">First col</div>
19+
<div class="col-6">Second col</div>
20+
</div>
21+
<div class="row">
22+
<div class="col-4">Third col</div>
23+
<div class="col-4">Fourth col</div>
24+
<div class="col-4">Fifth col</div>
25+
</div>
26+
<div class="row">
27+
<div class="col-12 bg-danger">Sixth col</div>
28+
</div>
29+
</div>
30+
</body>
31+
</html>

exercises/03-Bootstrap-Grid/tests.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ describe("All the tests should pass", function () {
5959

6060
let div = thirdRow.querySelector("div");
6161
expect(div).toBeTruthy();
62-
expect(div.classList.contains("col-12") || div.classList.contains("col"));
63-
expect(div.classList.contains("bg-danger"));
62+
expect(div.classList.contains("col-12") || div.classList.contains("col")).toBeTruthy();
63+
expect(div.classList.contains("bg-danger")).toBeTruthy();
6464
expect(div.innerHTML.toString()).toBeTruthy();
6565
});
6666

0 commit comments

Comments
 (0)