-
\ No newline at end of file
+
diff --git a/exercises/01-inline-styles/tests.js b/exercises/01-inline-styles/tests.js
new file mode 100644
index 00000000..a41ccc11
--- /dev/null
+++ b/exercises/01-inline-styles/tests.js
@@ -0,0 +1,23 @@
+const fs = require('fs');
+const path = require('path');
+const html = fs.readFileSync(path.resolve(__dirname, './index.html'), 'utf8');
+document.documentElement.innerHTML = html.toString();
+
+jest.dontMock('fs');
+
+// Run the tests
+test("There should be a table element", () => {
+ const table = document.querySelector("table");
+ expect(table).toBeTruthy();
+});
+
+test("The table background color should be green", () => {
+ const table = document.querySelector("table");
+ const computedStyles = window.getComputedStyle(table);
+ expect(computedStyles.backgroundColor).toBe("green");
+});
+
+test("There should be two table rows", () => {
+ const rows = document.querySelectorAll("tr");
+ expect(rows.length).toBe(2);
+});
\ No newline at end of file
diff --git a/exercises/01.1-The-Style-Tag/README.es.md b/exercises/01.1-The-Style-Tag/README.es.md
deleted file mode 100644
index cb1003a4..00000000
--- a/exercises/01.1-The-Style-Tag/README.es.md
+++ /dev/null
@@ -1,21 +0,0 @@
-
-# `01.1` Etiqueta Style
-
-Si quieres añadir estilos a tu sitio web escribiendo CSS siempre debes hacerlo dentro de una etiqueta `
-```
-
-## 📝 Instruccciones:
-
-1. Añade una etiqueta `
-```
-
-## 📝 Instructions
-
-1. Add a `
-
- Coding is a basic literacy in the digital age, and it is important for kids to understand and be able to work with and understand the technology
- around them. Having children learn coding at a young age prepares them for the future. Coding helps children with communication, creativity,
- math,writing, and confidence.
-
diff --git a/exercises/06-Practicing-Rules/solution.hide.css b/exercises/07-practicing-rules/solution.hide.css
similarity index 100%
rename from exercises/06-Practicing-Rules/solution.hide.css
rename to exercises/07-practicing-rules/solution.hide.css
diff --git a/exercises/06-Practicing-Rules/styles.css b/exercises/07-practicing-rules/styles.css
similarity index 100%
rename from exercises/06-Practicing-Rules/styles.css
rename to exercises/07-practicing-rules/styles.css
diff --git a/exercises/06-Practicing-Rules/tests.js b/exercises/07-practicing-rules/tests.js
similarity index 85%
rename from exercises/06-Practicing-Rules/tests.js
rename to exercises/07-practicing-rules/tests.js
index a348b847..5c375d55 100644
--- a/exercises/06-Practicing-Rules/tests.js
+++ b/exercises/07-practicing-rules/tests.js
@@ -11,7 +11,7 @@ describe("All the styles should be applied", () => {
let link = document.querySelector("link")
let title = document.querySelector('title')
- test("the background should match", () => {
+ test("The background should match", () => {
document.querySelector(
"head"
).innerHTML = ``;
@@ -21,7 +21,7 @@ describe("All the styles should be applied", () => {
`url(../../.learn/assets/background-vertical.jpg?raw=true) repeat-y`
);
});
- test("the font-family should be 'Times New Roman'", () => {
+ test("The font-family should be 'Times New Roman'", () => {
document.querySelector(
"head"
).innerHTML = ``;
@@ -29,7 +29,7 @@ describe("All the styles should be applied", () => {
let styles = window.getComputedStyle(body);
expect(styles["font-family"].toLowerCase()).toBe("\"times new roman\"");
});
- test("the padding-left should be '20px'", () => {
+ test("The padding-left should be '20px'", () => {
document.querySelector(
"head"
).innerHTML = ``;
@@ -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 = ``;
@@ -64,7 +64,7 @@ describe("All the styles should be applied", () => {
let h2TagStyles = window.getComputedStyle(h2Tag);
expect(h2TagStyles["text-decoration"]).toBe("underline");
});
- test("the padding in the #id1 Tag should be '5px'", () => {
+ test("The padding in the p tag should be '5px'", () => {
document.querySelector(
"head"
).innerHTML = ``;
@@ -74,7 +74,7 @@ describe("All the styles should be applied", () => {
expect(idTagStyles["padding"]).toBe("5px");
});
- test("The a hover underline should be removed", () => {
+ test("The a:hover underline should be removed", () => {
document.querySelector(
"head"
).innerHTML = ``;
@@ -88,7 +88,7 @@ describe("All the styles should be applied", () => {
expect(orangeHoverSelector).toBe("none");
});
- test("The a hover color should be green", () => {
+ test("The a:hover color should be green", () => {
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()
diff --git a/exercises/08-Rounded-Image/README.es.md b/exercises/08-Rounded-Image/README.es.md
deleted file mode 100644
index 3e7e4c25..00000000
--- a/exercises/08-Rounded-Image/README.es.md
+++ /dev/null
@@ -1,23 +0,0 @@
-# `08` Imagen Redondeada
-
-Muchos sitios web usan imágenes de perfil redondeadas ¡una técnica que realmente hace que un sitio web sea más hermoso!
-
-La forma obvia de crear una imagen de perfil redondeada es crear una etiqueta de imagen y aplicar un `border-radius: 100%`.
-
-El problema con este enfoque es que solo funciona para imágenes cuadradas... Las imágenes de perfil generalmente tienen diferente altura y ancho no se verán como un círculo, se verán como óvalos:
-
-
-
-## 📝 Instrucciones:
-
-1. Usa `border-radius`.
-
-2. Adicionalmente a `border-radius`, tenemos que también utilizar la propiedad `object-fit`, [aqui hay una explicación](https://www.loom.com/share/15186e456dfd4741887997af40325721).
-
-## 💡 Pista:
-
-+ Si la imagen es más grande que su contenedor y quieres centrarla o enfocarte en una zona en particular puedes utilizar `object-position`.
-
-+ En este articulo puedes leer más [sobre la propiedad object fit](https://css-tricks.com/on-object-fit-and-object-position/)
-
-+ Adicionalmente, puedes [leer la documentación de object-position](https://developer.mozilla.org/en-US/docs/Web/CSS/object-position) y [la documentación de object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit)
diff --git a/exercises/08-Rounded-Image/README.md b/exercises/08-Rounded-Image/README.md
deleted file mode 100644
index 7cedf6b1..00000000
--- a/exercises/08-Rounded-Image/README.md
+++ /dev/null
@@ -1,22 +0,0 @@
-# `08` Rounded Image
-
-A lot of websites use rounded profile images, a technique that really makes a website more beautiful!
-
-The obvious way create a rounded profile picture is to create an image tag and apply `border-radius:100%`. The problem with this approach, is that it only works for squared pictures... Profile pictures with different height and width will not look like a circle, they will look like ovals:
-
-
-
-## 📝 Instructions:
-
-1. Use `border-radius`.
-
-2. In this case, in addition to `border-radius`, you will have to use the `object-fit` css property, [here is an explanation](https://www.loom.com/share/15186e456dfd4741887997af40325721).
-
-
-## 💡 Hint:
-
-+ If the image ends up being bigger than its container (or with different proportions) you can adjust the `object-position` to choose what part of the image you want to display inside of the circle.
-
-+ You can also read [this great article about object fit](https://css-tricks.com/on-object-fit-and-object-position/)
-
-+ Additionally you can [read the documentation on object-position](https://developer.mozilla.org/en-US/docs/Web/CSS/object-position) and [the documentation on object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit)
\ No newline at end of file
diff --git a/exercises/08-very-specific-rules/README.es.md b/exercises/08-very-specific-rules/README.es.md
new file mode 100644
index 00000000..dd02d734
--- /dev/null
+++ b/exercises/08-very-specific-rules/README.es.md
@@ -0,0 +1,21 @@
+# `08` Very Specific Rules
+
+## 🔎 Importante:
+
+En este ejercicio, puedes agregar tu código solo arriba del **READ-ONLY BLOCK** del código, puedes agregar tantas líneas como desees, pero siempre arriba.
+
+## 📝 Instrucciones:
+
+1. Establece el color de texto `ul li` a rojo (`red`) (anula los conflictos siendo más específico).
+
+2. Establece el color de fondo (`background-color`) del segundo `li` del `ol` a verde (`green`) (no uses el selector #id ni el .class).
+
+3. Haz que las filas impares de la tabla tengan fondo amarillo usando `tr:nth-child`.
+
+
+
+> Importante: **NO** debes modificar el archivo `index.html`.
+
+## 💡 Pista:
+
+- El atributo `!important` ayuda a sobreescribir estilos.
diff --git a/exercises/07-Very-Specific-Rules/README.md b/exercises/08-very-specific-rules/README.md
similarity index 59%
rename from exercises/07-Very-Specific-Rules/README.md
rename to exercises/08-very-specific-rules/README.md
index 3cba95e9..91bcaf0c 100644
--- a/exercises/07-Very-Specific-Rules/README.md
+++ b/exercises/08-very-specific-rules/README.md
@@ -2,25 +2,24 @@
tutorial: "https://www.youtube.com/watch?v=2YkLDRZFk40"
---
-# `07` Very Specific Rules
+# `08` Very Specific Rules
-# **Important:**
+## 🔎 Important:
-In this exercise, you can add your code only above the **READ ONLY BLOCK** of the code, you can add as many lines as you want, but always above.
+In this exercise, you can add your code only above the **READ-ONLY BLOCK** of the code, you can add as many lines as you want, but always above.
## 📝 Instructions:
-
1. Set the `ul li` text color to `red` (override conflicts with specificity).
2. Set the `background-color` of the second `li` of the `ol` to `green` (don't use the #id selector or .class selector).
3. Change the odd rows of the tables to a yellow background using `tr:nth-child`.
+
-
->Important: You should **NOT** modify the index.html file
+> Important: You should **NOT** modify the `index.html` file.
-## :bulb: Hint:
+## 💡 Hint:
-1. The `!important` attribute helps to override over other attributes.
+- The `!important` attribute helps to override other attributes.
diff --git a/exercises/07-Very-Specific-Rules/index.html b/exercises/08-very-specific-rules/index.html
similarity index 65%
rename from exercises/07-Very-Specific-Rules/index.html
rename to exercises/08-very-specific-rules/index.html
index 9c691446..3909949d 100644
--- a/exercises/07-Very-Specific-Rules/index.html
+++ b/exercises/08-very-specific-rules/index.html
@@ -4,28 +4,28 @@
- 07 Very Specific Rules
+ 08 Very Specific Rules
The learning essay
3 reasons you know you are learning
- We are going to explain in this pharagraph the 3 most comon signs that you should look into yourself to recognize if you are learning.
+ We are going to explain in this paragraph the 3 most common signs that you should look into yourself to recognize if you are learning.
You are able to complete the exercises by yourself.
You understand what the teacher is talking about
-
Your are able to have conversations about the topic
+
You are able to have conversations about the topic
3 reasons you know love what you are learning
Time passes fast.
-
You are anxious to finish this excercise and start the next one.
-
Is 12am and you don't want to go to sleep.
+
You are anxious to finish this exercise and start the next one.
+
It's 12am and you don't want to go to sleep.
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 years
+
12
Male
-
22 years
+
22
Female
-
11 years
+
11
Male
-
21 years
+
21
Male
-
22 years
+
22
Female
-
10 years
+
10
Male
-
13 years
+
13
Female
-
13 years
+
13
Male
-
10 years
+
10
Male
-
11 years
+
11
Male
-
11 years
+
11
Male
diff --git a/exercises/07-Very-Specific-Rules/solution.hide.css b/exercises/08-very-specific-rules/solution.hide.css
similarity index 76%
rename from exercises/07-Very-Specific-Rules/solution.hide.css
rename to exercises/08-very-specific-rules/solution.hide.css
index 55fb5ff4..232aa480 100644
--- a/exercises/07-Very-Specific-Rules/solution.hide.css
+++ b/exercises/08-very-specific-rules/solution.hide.css
@@ -12,9 +12,9 @@ tr:nth-child(odd) {
background: yellow;
}
-/*********** READ ONLY BLOCK ******
+/*********** READ-ONLY BLOCK ******
You CANNOT UPDATE anything from here on,
-only add lines of code on top of this lines
+only add lines of code on top of these lines
**/
body {
diff --git a/exercises/07-Very-Specific-Rules/styles.css b/exercises/08-very-specific-rules/styles.css
similarity index 62%
rename from exercises/07-Very-Specific-Rules/styles.css
rename to exercises/08-very-specific-rules/styles.css
index 300d0677..164b694b 100644
--- a/exercises/07-Very-Specific-Rules/styles.css
+++ b/exercises/08-very-specific-rules/styles.css
@@ -1,8 +1,8 @@
/** Insert your code here **/
-/*********** READ ONLY BLOCK ******
+/********** READ-ONLY BLOCK ******
You CANNOT UPDATE anything from here on,
-only add lines of code on top of this lines
+only add lines of code on top of these lines
**/
body {
diff --git a/exercises/07-Very-Specific-Rules/tests.js b/exercises/08-very-specific-rules/tests.js
similarity index 82%
rename from exercises/07-Very-Specific-Rules/tests.js
rename to exercises/08-very-specific-rules/tests.js
index aae1fa1b..f141c357 100644
--- a/exercises/07-Very-Specific-Rules/tests.js
+++ b/exercises/08-very-specific-rules/tests.js
@@ -26,7 +26,7 @@ describe("All the styles should be applied", ()=>{
}
let reg = new RegExp(/color:\s*red\s*!important\s*;/gm)
- expect(reg.test(color)).toBeTruthy();
+ expect(reg.test(color.toLowerCase())).toBeTruthy();
});
test("The ol second element background should be green", ()=>{
@@ -44,7 +44,15 @@ describe("All the styles should be applied", ()=>{
}
- } expect(background === 'green' || backgroundColor === 'green').toBeTruthy();
+ if(background){
+ background = background.toLowerCase()
+ }
+
+ if(backgroundColor){
+ backgroundColor = backgroundColor.toLowerCase()
+ }
+
+ } expect((background && background === 'green') || (backgroundColor && backgroundColor === 'green')).toBeTruthy();
})
test("The odd rows of the table should have yellow background", ()=>{
@@ -56,13 +64,13 @@ describe("All the styles should be applied", ()=>{
let background = "";
let backgroundColor = "";
for (let i = 0; i < cssArray.length; i++) {
- if (cssArray[i].selectorText === "tr:nth-child(odd)") {
+ if (cssArray[i].selectorText.includes( "tr:nth-child(odd)")) {
background = cssArray[i].style['background'];
backgroundColor = cssArray[i].style['background-color'];
}
- } expect(background === "yellow" || backgroundColor === "yellow").toBeTruthy();
+ } expect((background && background.toLowerCase() === "yellow") || (backgroundColor && backgroundColor.toLowerCase() === "yellow")).toBeTruthy();
})
test("Write all your rules above the existing code", ()=>{
@@ -87,4 +95,4 @@ describe("All the styles should be applied", ()=>{
expect(title).toBeTruthy()
})
-});
\ No newline at end of file
+});
diff --git a/exercises/09-Anchor-Styles/README.es.md b/exercises/09-Anchor-Styles/README.es.md
deleted file mode 100644
index 0164b06d..00000000
--- a/exercises/09-Anchor-Styles/README.es.md
+++ /dev/null
@@ -1,21 +0,0 @@
-# `09` Estilos de enlaces (anchor) 3D
-
-A las personas les gusta sentir que están haciendo clic en algo, una manera de lograrlo es fingir un efecto 3D. Para hacerlo, los diseñadores normalmente juegan con los bordes, por ejemplo:
-
-
-
-Puedes controlar qué reglas css se aplican a cada estado de un `anchor` utilizando los selectores: `:hover` (para el mouse) o `active` (para presionar el mouse), por ejemplo:
-
-```css
-a:active {
- /* aquí puedes especificar cualquier regla de css que aplique al anchor mientras se presiona' */
-}
-```
-
-## 📝 Instrucciones:
-
-1. Cambia los colores del borde del anchor, cuando le das clic, a lo siguiente:
-
-```css
-border-color: #000 #aaa #aaa #000;
-```
diff --git a/exercises/09-rounded-image/README.es.md b/exercises/09-rounded-image/README.es.md
new file mode 100644
index 00000000..16a1bdde
--- /dev/null
+++ b/exercises/09-rounded-image/README.es.md
@@ -0,0 +1,25 @@
+# `09` Rounded Image
+
+Muchos sitios web usan imágenes de perfil redondeadas, ¡una técnica que realmente hace que un sitio web sea más hermoso!
+
+La forma obvia de crear una imagen de perfil redondeada es crear una etiqueta de imagen y aplicar un `border-radius: 100%`.
+
+El problema con este enfoque es que solo funciona para imágenes cuadradas... Las imágenes de perfil generalmente tienen diferente altura y ancho, no se verán como un círculo, se verán como óvalos:
+
+
+
+## 📝 Instrucciones:
+
+1. Usa `border-radius`.
+
+2. Usa las propiedades `width` y `height` para hacer que la imagen sea cuadrada.
+
+3. Además de `border-radius`, tenemos que utilizar también la propiedad `object-fit`, [aquí hay una explicación](https://www.loom.com/share/15186e456dfd4741887997af40325721).
+
+## 💡 Pistas:
+
++ Si la imagen es más grande que su contenedor y quieres centrarla o enfocarte en una zona en particular, puedes utilizar `object-position`.
+
++ En este artículo puedes leer más [sobre la propiedad `object-fit`](https://css-tricks.com/on-object-fit-and-object-position/).
+
++ Adicionalmente, puedes [leer la documentación de `object-position`](https://developer.mozilla.org/en-US/docs/Web/CSS/object-position) y [la documentación de `object-fit`](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit).
diff --git a/exercises/09-rounded-image/README.md b/exercises/09-rounded-image/README.md
new file mode 100644
index 00000000..f44b0c22
--- /dev/null
+++ b/exercises/09-rounded-image/README.md
@@ -0,0 +1,26 @@
+# `09` Rounded Image
+
+A lot of websites use rounded profile images, a technique that really makes a website more beautiful!
+
+The obvious way to create a rounded profile picture is to create an image tag and apply `border-radius:100%`.
+
+The problem with this approach is that it only works for squared pictures... Profile pictures with different height and width will not look like a circle, they will look like ovals:
+
+
+
+## 📝 Instructions:
+
+1. Use `border-radius`.
+
+2. Use the properties `width` and `height` to make the image a square shape.
+
+3. In this case, in addition to `border-radius`, you will have to use the `object-fit` CSS property, [here is an explanation](https://www.loom.com/share/15186e456dfd4741887997af40325721).
+
+
+## 💡 Hints:
+
++ If the image ends up being bigger than its container (or with different proportions) you can adjust the `object-position` to choose what part of the image you want to display inside of the circle.
+
++ You can also read [this great article about `object-fit`](https://css-tricks.com/on-object-fit-and-object-position/).
+
++ Additionally you can [read the documentation on `object-position`](https://developer.mozilla.org/en-US/docs/Web/CSS/object-position) and [the documentation on `object-fit`](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit).
diff --git a/exercises/08-Rounded-Image/index.html b/exercises/09-rounded-image/index.html
similarity index 91%
rename from exercises/08-Rounded-Image/index.html
rename to exercises/09-rounded-image/index.html
index 95931a07..52ff462d 100644
--- a/exercises/08-Rounded-Image/index.html
+++ b/exercises/09-rounded-image/index.html
@@ -4,7 +4,7 @@
- 08 Rounded Image
+ 09 Rounded Image
diff --git a/exercises/08-Rounded-Image/solution.hide.css b/exercises/09-rounded-image/solution.hide.css
similarity index 77%
rename from exercises/08-Rounded-Image/solution.hide.css
rename to exercises/09-rounded-image/solution.hide.css
index 31815f5c..86a38c22 100644
--- a/exercises/08-Rounded-Image/solution.hide.css
+++ b/exercises/09-rounded-image/solution.hide.css
@@ -4,7 +4,7 @@ body {
.rounded {
object-fit: cover;
object-position: top;
- width: 200px;
- height: 200px;
+ width: 250px;
+ height: 250px;
border-radius: 100%;
}
diff --git a/exercises/08-Rounded-Image/styles.css b/exercises/09-rounded-image/styles.css
similarity index 100%
rename from exercises/08-Rounded-Image/styles.css
rename to exercises/09-rounded-image/styles.css
diff --git a/exercises/08-Rounded-Image/tests.js b/exercises/09-rounded-image/tests.js
similarity index 83%
rename from exercises/08-Rounded-Image/tests.js
rename to exercises/09-rounded-image/tests.js
index 70c5b643..13cd170e 100644
--- a/exercises/08-Rounded-Image/tests.js
+++ b/exercises/09-rounded-image/tests.js
@@ -13,11 +13,11 @@ describe("All the styles should be applied", () => {
const img = document.querySelector(".rounded")
- test("the img tag should exist", () => {
+ test("The tag should exist", () => {
expect(img).toBeTruthy();
})
- test("the width in the img Tag should be equal to its height and vice versa", () => {
+ test("The width of the tag should be equal to its height and vice versa", () => {
document.querySelector(
"head"
).innerHTML = ``;
@@ -42,7 +42,7 @@ describe("All the styles should be applied", () => {
expect(height).toBe(width);
});
- test("the object-fit value of the img Tag should be 'cover'", () => {
+ test("The object-fit value of the tag should be 'cover'", () => {
document.querySelector(
"head"
).innerHTML = ``;
@@ -51,7 +51,7 @@ describe("All the styles should be applied", () => {
expect(imgStyle["object-fit"]).toBe("cover");
});
- test("the object-position value of the img Tag should be 'top'", () => {
+ test("The object-position value of the tag should be 'top'", () => {
document.querySelector(
"head"
).innerHTML = ``;
@@ -60,7 +60,7 @@ describe("All the styles should be applied", () => {
expect(imgStyle["object-position"]).toBe("top");
});
- 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()
diff --git a/exercises/10-Your-Own-Font/solution.hide.css b/exercises/10-Your-Own-Font/solution.hide.css
deleted file mode 100644
index e36ebf08..00000000
--- a/exercises/10-Your-Own-Font/solution.hide.css
+++ /dev/null
@@ -1,4 +0,0 @@
-.myTitle {
- /*your code here*/
- font-family: "Roboto"; /*Varies depending on the font you chose*/
-}
diff --git a/exercises/10-anchor-styles/README.es.md b/exercises/10-anchor-styles/README.es.md
new file mode 100644
index 00000000..b4e2d130
--- /dev/null
+++ b/exercises/10-anchor-styles/README.es.md
@@ -0,0 +1,21 @@
+# `10` 3D Anchor Styles
+
+A las personas les gusta sentir que están haciendo clic en algo, una manera de lograrlo es fingir un efecto 3D. Para hacerlo, los diseñadores normalmente juegan con los bordes, por ejemplo:
+
+
+
+Puedes controlar qué reglas CSS se aplican a cada estado de un `anchor` utilizando los selectores: `:hover` (cuando pasas por encima con el mouse) o `active` (cuando haces clic), por ejemplo:
+
+```css
+a:active {
+ /* aquí puedes especificar cualquier regla de CSS que aplique al anchor mientras se 'presiona' */
+}
+```
+
+## 📝 Instrucciones:
+
+1. Cambia los colores del borde del anchor, cuando le das clic, a lo siguiente:
+
+```css
+border-color: #000 #aaa #aaa #000;
+```
diff --git a/exercises/09-Anchor-Styles/README.md b/exercises/10-anchor-styles/README.md
similarity index 58%
rename from exercises/09-Anchor-Styles/README.md
rename to exercises/10-anchor-styles/README.md
index 3ce04f9a..28134918 100644
--- a/exercises/09-Anchor-Styles/README.md
+++ b/exercises/10-anchor-styles/README.md
@@ -1,22 +1,21 @@
-# `09` 3D Anchor Styles
+# `10` 3D Anchor Styles
People like to feel that they are clicking on something, a great approach to accomplish that is by faking a 3D effect. To do so, designers normally play with the borders, for example:
-
+
-You can control what css rules apply to each state of an anchor by using the `:hover` (for mouse hover) or `:active` (for mouse pressing) selectors, example:
+You can control what CSS rules apply to each state of an anchor by using the `:hover` (for mouse hover) or `:active` (for mouse pressing) selectors, example:
```css
a:active {
- /* here you can specify whatever css rule that applies
+ /* here you can specify whatever CSS rule that applies
to the anchor while being 'pressed' */
}
```
## 📝 Instructions:
-1. Change the border colors of the anchor,
-when being pressed, to the following:
+1. Change the border colors of the anchor, when being pressed, to the following:
```css
border-color: #000 #aaa #aaa #000;
diff --git a/exercises/09-Anchor-Styles/index.html b/exercises/10-anchor-styles/index.html
similarity index 88%
rename from exercises/09-Anchor-Styles/index.html
rename to exercises/10-anchor-styles/index.html
index 30e00691..baf7c9ba 100644
--- a/exercises/09-Anchor-Styles/index.html
+++ b/exercises/10-anchor-styles/index.html
@@ -4,7 +4,7 @@
- 09 Anchor Styles
+ 10 Anchor Styles
diff --git a/exercises/09-Anchor-Styles/solution.hide.css b/exercises/10-anchor-styles/solution.hide.css
similarity index 93%
rename from exercises/09-Anchor-Styles/solution.hide.css
rename to exercises/10-anchor-styles/solution.hide.css
index 101d281c..8c12ea5b 100644
--- a/exercises/09-Anchor-Styles/solution.hide.css
+++ b/exercises/10-anchor-styles/solution.hide.css
@@ -7,6 +7,7 @@
text-decoration: none;
text-align: center;
color: black;
+ font-size: 22px;
}
a.threeDimension:active {
diff --git a/exercises/09-Anchor-Styles/styles.css b/exercises/10-anchor-styles/styles.css
similarity index 92%
rename from exercises/09-Anchor-Styles/styles.css
rename to exercises/10-anchor-styles/styles.css
index 7eaa9bea..895dc3d6 100644
--- a/exercises/09-Anchor-Styles/styles.css
+++ b/exercises/10-anchor-styles/styles.css
@@ -8,9 +8,10 @@
text-decoration: none;
text-align: center;
color: black;
+ font-size: 22px;
}
a.threeDimension:active {
/* your code here*/
-}
\ No newline at end of file
+}
diff --git a/exercises/09-Anchor-Styles/tests.js b/exercises/10-anchor-styles/tests.js
similarity index 91%
rename from exercises/09-Anchor-Styles/tests.js
rename to exercises/10-anchor-styles/tests.js
index 73192e4f..1dea80c1 100644
--- a/exercises/09-Anchor-Styles/tests.js
+++ b/exercises/10-anchor-styles/tests.js
@@ -20,14 +20,14 @@ describe("All the styles should be applied", () => {
expect(cssArray).toBe(".threeDimension");
})
- test("the 'a' tag in the index.html should not be deleted", () => {
+ test("The tag in the index.html should not be deleted", () => {
// we can read from the source code
// console.log(html.toString());
expect(html.toString().indexOf(` -1).toBeTruthy();
});
- test("The border-color rule for the 'threeDimension active ' property should match the instruction color", () => {
+ test("The border-color rule for the 'a.threeDimension:active' selector should match the instruction color", () => {
// get computed styles of any element you like
// let cssArray=document.styleSheets[0].cssRules;
document.querySelector(
@@ -71,7 +71,7 @@ describe("All the styles should be applied", () => {
});
- 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()
diff --git a/exercises/11-Font-Awesome-Icons/README.es.md b/exercises/11-Font-Awesome-Icons/README.es.md
deleted file mode 100644
index 23c21ced..00000000
--- a/exercises/11-Font-Awesome-Icons/README.es.md
+++ /dev/null
@@ -1,22 +0,0 @@
-# `11` Iconos Font Awesome
-
-Como desarrollador, querrás utilizar ciertos iconos para que tu sitio web sea fácil de entender. Por ejemplo, sabemos que el icono de "papelera" significa "eliminar".
-
-¡Pero usar iconos puede ser frustrante y llevar mucho tiempo! porque cada icono es una imagen y trabajar con imágenes ¡es horrible!
-
-Font-awesome resuelve el problema de la "imagen" creando una nueva fuente en donde cada letra es un ícono diferente y ahora puedes importar toda la fuente desde el sitio web y usar el ícono que quieras.
-
-Después de vincular tu sitio web con font-awesome, puedes usar lo siguiente para codificar e insertar un icono específico:
-
-```html
-
-
-
-Puedes encontrar todos los nombres disponibles aquí: http://fontawesome.io/icons/
-```
-
-
-## 📝 Instrucciones:
-
-Agrega dos elementos más a tu lista(`li`) y agrega un icono diferente al comienzo de cada elemento.
-
diff --git a/exercises/10-Your-Own-Font/README.es.md b/exercises/11-your-own-font/README.es.md
similarity index 91%
rename from exercises/10-Your-Own-Font/README.es.md
rename to exercises/11-your-own-font/README.es.md
index 16e4ab9a..ef1ce4a7 100644
--- a/exercises/10-Your-Own-Font/README.es.md
+++ b/exercises/11-your-own-font/README.es.md
@@ -1,11 +1,11 @@
-# `10` Tu Propia Fuente
+# `11` Your Own Font
Aquí puedes encontrar las fuentes de Google: https://fonts.google.com
Elige la que más te guste, y úsala vinculando tu sitio web con la URL en la que se almacena la fuente. Tienes que hacer eso en la etiqueta `` del documento HTML de esta manera:
-```Plain/Text
-
+```html
+
```
Después de vincular tu fuente, debes asignar la regla CSS `font-family` a lo que quieras aplicarle la fuente, por ejemplo, un `