From e0593db2e30a319655c184e8a615b047ca17e6bb Mon Sep 17 00:00:00 2001 From: Jose Mora <109150320+josemoracard@users.noreply.github.com> Date: Tue, 11 Apr 2023 16:16:15 +0200 Subject: [PATCH 01/10] Update test.js --- exercises/04.2-Apply-several-classes/test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/04.2-Apply-several-classes/test.js b/exercises/04.2-Apply-several-classes/test.js index 6d1d608e..cb04bc16 100644 --- a/exercises/04.2-Apply-several-classes/test.js +++ b/exercises/04.2-Apply-several-classes/test.js @@ -8,11 +8,11 @@ jest.dontMock("fs"); describe("You should change the class on the div tag", () => { const div = document.querySelector("div"); - test("The div class should NOT have the spades class", () => { + test('The
should NOT have the "spades" class', () => { expect(div.classList.contains("spade")).toBe(false); }); - test("The div class should have the heart class", () => { + test('The
should have the "heart" class', () => { expect(div.classList.contains("heart")).toBe(true); }); }); From d5786e734f026a947da2e011f1830b5367c3eccd Mon Sep 17 00:00:00 2001 From: Jose Mora <109150320+josemoracard@users.noreply.github.com> Date: Tue, 11 Apr 2023 16:28:15 +0200 Subject: [PATCH 02/10] Update styles.css --- exercises/04.2-Apply-several-classes/styles.css | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/exercises/04.2-Apply-several-classes/styles.css b/exercises/04.2-Apply-several-classes/styles.css index efacee56..9995d367 100644 --- a/exercises/04.2-Apply-several-classes/styles.css +++ b/exercises/04.2-Apply-several-classes/styles.css @@ -1,15 +1,14 @@ .card { - display: inline-block; - width: 50px; - height: 80px; - position: relative; + width: 150px; + height: 240px; border: 1px solid black; text-align: center; - line-height: 80px; + line-height: 240px; border-radius: 5px; + font-size: 1.5rem; } .card:after { - font-size: 70%; + font-size: 80%; font-weight: bold; } From 7c45a4306870065dcb798e150079444047e8bca7 Mon Sep 17 00:00:00 2001 From: Jose Mora <109150320+josemoracard@users.noreply.github.com> Date: Tue, 11 Apr 2023 16:35:54 +0200 Subject: [PATCH 03/10] Update styles.css --- exercises/04.3-id-Selector/styles.css | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/exercises/04.3-id-Selector/styles.css b/exercises/04.3-id-Selector/styles.css index e020d28b..c6058338 100644 --- a/exercises/04.3-id-Selector/styles.css +++ b/exercises/04.3-id-Selector/styles.css @@ -1,5 +1,8 @@ #button1 { - background: #BDBDBD; - border: #5E5E5E; - border-radius: 5px; + background-color: #4caf50; /* Green */ + color: white; + padding: 15px 32px; + text-align: center; + display: inline-block; + border-radius: 5px; } From f254559cec6a33e15aecece1150673f09684ccd7 Mon Sep 17 00:00:00 2001 From: Jose Mora <109150320+josemoracard@users.noreply.github.com> Date: Tue, 11 Apr 2023 17:01:44 +0200 Subject: [PATCH 04/10] Update tests.js --- exercises/05-Specificity/tests.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/05-Specificity/tests.js b/exercises/05-Specificity/tests.js index b43a2a6a..f3f8b814 100644 --- a/exercises/05-Specificity/tests.js +++ b/exercises/05-Specificity/tests.js @@ -35,7 +35,7 @@ describe("All the styles should be applied", function () { expect(cssArray).toBe("ul li"); expect(cssArrayBackground).toBe("blue"); }) - test("You should use a more specific rule using the !important annotation ", function () { + test("You should use a more specific rule using the !important annotation", function () { document.querySelector( "head" @@ -51,4 +51,4 @@ describe("All the styles should be applied", function () { expect(orangeHoverSelector).toBe("green"); }); -}); \ No newline at end of file +}); From d1eba3f52343bebc479fb24291b3163d536b5de1 Mon Sep 17 00:00:00 2001 From: Jose Mora <109150320+josemoracard@users.noreply.github.com> Date: Tue, 11 Apr 2023 17:16:03 +0200 Subject: [PATCH 05/10] Update index.html --- exercises/06-Practicing-Rules/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/06-Practicing-Rules/index.html b/exercises/06-Practicing-Rules/index.html index c9135f89..4ad9a572 100644 --- a/exercises/06-Practicing-Rules/index.html +++ b/exercises/06-Practicing-Rules/index.html @@ -27,7 +27,7 @@

3 reasons you love what you are learning

If you can't sleep, what better than watching videos of cats? - click here + click here

From 0928cecb58fdab3d9a527138df71e134c6ceb15e Mon Sep 17 00:00:00 2001 From: Jose Mora <109150320+josemoracard@users.noreply.github.com> Date: Tue, 11 Apr 2023 17:17:49 +0200 Subject: [PATCH 06/10] Update index.html --- exercises/06-Practicing-Rules/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/06-Practicing-Rules/index.html b/exercises/06-Practicing-Rules/index.html index 4ad9a572..acb133f5 100644 --- a/exercises/06-Practicing-Rules/index.html +++ b/exercises/06-Practicing-Rules/index.html @@ -27,7 +27,7 @@

3 reasons you love what you are learning

If you can't sleep, what better than watching videos of cats? - click here + click here

From 0fc9574112a0704185528d3706f456d165312fac Mon Sep 17 00:00:00 2001 From: Jose Mora <109150320+josemoracard@users.noreply.github.com> Date: Tue, 11 Apr 2023 17:24:44 +0200 Subject: [PATCH 07/10] Update index.html --- exercises/07-Very-Specific-Rules/index.html | 24 ++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/exercises/07-Very-Specific-Rules/index.html b/exercises/07-Very-Specific-Rules/index.html index 301d8f1d..09fef243 100644 --- a/exercises/07-Very-Specific-Rules/index.html +++ b/exercises/07-Very-Specific-Rules/index.html @@ -25,7 +25,7 @@

3 reasons you know love what you are learning

If you can't sleep, what better than watching videos of cats? - click here + click here

@@ -34,47 +34,47 @@

3 reasons you know love what you are learning

- + - + - + - + - + - + - + - + - + - + - +
Gender
12 years12 Male
22 years22 Female
11 years11 Male
21 years21 Male
22 years22 Female
10 years10 Male
13 years13 Female
13 years13 Male
10 years10 Male
11 years11 Male
11 years11 Male
From 4a39434ee6fe5d421aef6ad10cc95bb3e9c6e7a2 Mon Sep 17 00:00:00 2001 From: Jose Mora <109150320+josemoracard@users.noreply.github.com> Date: Tue, 11 Apr 2023 18:02:49 +0200 Subject: [PATCH 08/10] Update test.js --- exercises/04.3-id-Selector/test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/exercises/04.3-id-Selector/test.js b/exercises/04.3-id-Selector/test.js index adc3f260..ed2b823e 100644 --- a/exercises/04.3-id-Selector/test.js +++ b/exercises/04.3-id-Selector/test.js @@ -8,24 +8,24 @@ jest.dontMock('fs'); const span = document.querySelector("span"); const link = document.querySelector("link"); -test("There should be a span tag", () => { +test("There should be a tag", () => { expect(span).toBeTruthy() }); -test("The span tag should have the id 'button1'", () => { +test("The tag should have the id 'button1'", () => { expect(span).toBeTruthy(); let id = span.id expect(id).toBeTruthy(); expect(id).toBe('button1'); }); -test("The span tag should not contain any inline style", () => { +test("The tag should not contain any inline style", () => { let emptyBodyInlineStyle = {}; expect(span).toBeTruthy() expect(span.style._values).toEqual(emptyBodyInlineStyle); }); -test("You should not change the existing head tag elements", () => { +test("You should not change the existing tag elements", () => { let head = document.querySelector('head'); expect(head).toBeTruthy(); From 7810dfeab3cccd458eccdfb087947e4a169a63ef Mon Sep 17 00:00:00 2001 From: Jose Mora <109150320+josemoracard@users.noreply.github.com> Date: Tue, 11 Apr 2023 18:03:53 +0200 Subject: [PATCH 09/10] Update tests.js --- exercises/05-Specificity/tests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/05-Specificity/tests.js b/exercises/05-Specificity/tests.js index f3f8b814..a09aa84a 100644 --- a/exercises/05-Specificity/tests.js +++ b/exercises/05-Specificity/tests.js @@ -8,7 +8,7 @@ jest.dontMock('fs'); describe("All the styles should be applied", function () { - test("You should not change the existing head tag elements", function () { + test("You should not change the existing tag elements", function () { let head = document.querySelector('head') expect(head).toBeTruthy() From c8c602e1f84aafa675c5b34660233ed132b94d32 Mon Sep 17 00:00:00 2001 From: Jose Mora <109150320+josemoracard@users.noreply.github.com> Date: Tue, 11 Apr 2023 18:06:21 +0200 Subject: [PATCH 10/10] Update tests.js --- exercises/06-Practicing-Rules/tests.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/exercises/06-Practicing-Rules/tests.js b/exercises/06-Practicing-Rules/tests.js index d9fd4156..e691255c 100644 --- a/exercises/06-Practicing-Rules/tests.js +++ b/exercises/06-Practicing-Rules/tests.js @@ -37,7 +37,7 @@ describe("All the styles should be applied", () => { let styles = window.getComputedStyle(body); expect(styles["padding-left"]).toBe("20px"); }); - test("The font-family in the h1 tag should be 'Courier'", () => { + test("The font-family in the

tag should be 'Courier'", () => { document.querySelector( "head" ).innerHTML = ``; @@ -46,7 +46,7 @@ describe("All the styles should be applied", () => { // get computed styles of any element you like expect(h1TagStyles["font-family"].toLowerCase()).toBe("\"courier\""); }); - test("The color in the h1 tag should be 'red'", () => { + test("The color in the

tag should be 'red'", () => { document.querySelector( "head" ).innerHTML = ``; @@ -55,7 +55,7 @@ describe("All the styles should be applied", () => { // get computed styles of any element you like expect(h1TagStyles["color"]).toBe("red"); }); - test("the text-decoration in the h2 tag should be 'underline'", () => { + test("the text-decoration in the

tag should be 'underline'", () => { document.querySelector( "head" ).innerHTML = ``; @@ -102,7 +102,7 @@ describe("All the styles should be applied", () => { } expect(orangeHoverSelector).toBe('green'); }); - test("You should not change the existing head tag elements", () => { + test("You should not change the existing tag elements", () => { let head = document.querySelector('head') expect(head).toBeTruthy()