Skip to content

Commit 6e7561c

Browse files
committed
merged with jose mora
2 parents 2cfee81 + f3a1b99 commit 6e7561c

File tree

133 files changed

+347
-322
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+347
-322
lines changed

exercises/00-Welcome/README.es.md renamed to exercises/00-welcome/README.es.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ Como te habrás dado cuenta, HTML solo te permite crear sitios web básicos. Nad
2727

2828
Muchas gracias a estas personas maravillosas ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):
2929

30-
1. [Alejandro Sanchez (alesanchezr)](https://github.com/alesanchezr), contribución: (programador) :computer: (idea) 🤔, (run-tests) :warning:, (pull-request-review) :eyes: (run-tutorial) :white_check_mark: (documentation) :book:
31-
1. [Paolo Lucano (plucodev)](https://github.com/plucodev), contribución: (programador), (run-tests) :warning:
30+
1. [Alejandro Sanchez (alesanchezr)](https://github.com/alesanchezr), contribución: (programador) 💻, (idea) 🤔, (run-tests) ⚠️, (pull-request-review) 👀, (run-tutorial) ✅, (documentación) 📖
31+
2. [Paolo Lucano (plucodev)](https://github.com/plucodev), contribución: (programador) 💻, (run-tests) ⚠️
32+
3. [Charly Chacon (charlytoc)](https://github.com/charlytoc), contribución: (tutoriales, correcciones), 🤖
3233

33-
Este proyecto sigue las especificaciones
34-
[all-contributors](https://github.com/kentcdodds/all-contributors)
35-
¡Todas las contribuciones son bienvenidas!
34+
Este proyecto sigue las especificaciones [all-contributors](https://github.com/kentcdodds/all-contributors) ¡Todas las contribuciones son bienvenidas!

exercises/00-Welcome/README.md renamed to exercises/00-welcome/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ intro: "https://www.youtube.com/watch?v=AuXnQHKhjxw"
66

77
My name is Alejandro Sanchez [@alesanchezr](https://twitter.com/alesanchezr). I'm really excited to have you here !! 🎉 😂
88

9-
Learning to code is hard, you will probably need coaching! DM me on twitter if you have any questions.
9+
Learning to code is hard; you will probably need coaching! DM me on Twitter if you have any questions.
1010

11-
During this course you will be learning the following concepts:
11+
During this course, you will be learning the following concepts:
1212

1313
1. How to apply CSS to your website in 3 different ways: Inline, by grouping them together inside a `<style>` tag, or using an external stylesheet `<link>`,
1414

@@ -20,14 +20,14 @@ During this course you will be learning the following concepts:
2020

2121
5. Learn the most popular CSS Tricks.
2222

23-
As you may have noticed, HTML allows you to create only basic websites. Nobody wants to see a white website with some horrible text on it. So it's time to learn what CSS is all about! Learn CSS to make your website beautiful. Let's make it shine!
23+
As you may have noticed, HTML allows you to create only basic websites. Nobody wants to see a white website with some horrible text on it. So, it's time to learn what CSS is all about! Learn CSS to make your website beautiful. Let's make it shine!
2424

2525
## Contributors
2626

2727
Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):
2828

29-
1. [Alejandro Sanchez (alesanchezr)](https://github.com/alesanchezr), contribution: (coder) :computer: (idea) 🤔, (run-tests) :warning:, (pull-request-review) :eyes: (run-tutorial) :white_check_mark: (documentation) :book:
30-
2. [Paolo Lucano (plucodev)](https://github.com/plucodev), contribution: (coder), (run-tests) :warning:
29+
1. [Alejandro Sanchez (alesanchezr)](https://github.com/alesanchezr), contribution: (coder) 💻, (idea) 🤔, (run-tests) ⚠️, (pull-request-review) 👀, (run-tutorial) ✅, (documentation) 📖
30+
2. [Paolo Lucano (plucodev)](https://github.com/plucodev), contribution: (coder) 💻, (run-tests) ⚠️
3131
3. [Charly Chacon (charlytoc)](https://github.com/charlytoc), contribution: (tutorials, corrections), 🤖
3232

3333
This project follows the

exercises/00.1-Inline-Styles/README.es.md

Lines changed: 0 additions & 34 deletions
This file was deleted.

exercises/00.1-Inline-Styles/index.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

exercises/00.1-Inline-Styles/solution.hide.html

Lines changed: 0 additions & 10 deletions
This file was deleted.

exercises/01-Style-tag/index.html

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
tutorial: "https://www.youtube.com/watch?v=c5JeXOnI-Sg"
3+
---
4+
5+
# `01` Inline styles
6+
7+
El CSS se trata de agregar estilos a nuestros elementos HTML.
8+
9+
La forma más **básica** de aplicar un estilo a un elemento HTML es usar el atributo `style` dentro de la etiqueta HTML. Esto se llama "estilos en línea" (*inline style*) y funciona así:
10+
11+
```html
12+
<a href="google.com" style="color: red; font-size: 14px;">Ir a Google</a>
13+
```
14+
15+
Esto establecerá el `color` del texto del enlace anterior a rojo y el tamaño de fuente (`font-size`) en 14 píxeles.
16+
17+
En el diseño web contemporáneo, esta forma de aplicar estilos se desaconseja porque no es eficiente: tienes que aplicar estilos etiqueta por etiqueta. Pero te encontrarás con ejemplos de esto y necesitarás estar familiarizado con ello.
18+
19+
Para aplicar estilos, siempre tienes que seguir estos pasos:
20+
21+
1. Leer el HTML y seleccionar qué elemento deseas decorar para aplicarle CSS.
22+
2. Aplicar el estilo con el atributo `style` como se muestra arriba.
23+
24+
## 📝 Instrucciones:
25+
26+
1. Establece un estilo en línea para cambiar el color de fondo (`background-color`) de la tabla a verde.
27+
28+
## 💡 Pista:
29+
30+
- Cómo usar `background-color`: https://www.w3schools.com/cssref/pr_background-color.php
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
tutorial: "https://www.youtube.com/watch?v=h9WPp8gPMS8"
33
---
4-
# `00.1` Inline styles
4+
# `01` Inline styles
55

66
CSS is about adding styles to our HTML elements.
77

88
The most **basic** way to apply a style to an HTML element is to use the html `style` attribute within the tag. This is called "inline styles" and works like this:
99

1010
```HTML
11-
<a href="google.com" style="color: red; font-size: 14px;">Go to google</a>
11+
<a href="google.com" style="color: red; font-size: 14px;">Go to Google</a>
1212
```
1313

1414
This will set the text color of the link above to red, and the font size to 14 pixels.
@@ -22,12 +22,10 @@ To apply styles you always have to follow thеse steps:
2222

2323
That is it! The rest is just semantics! 😁
2424

25-
2625
## 📝 Instructions:
2726

28-
1. Set an inline style to change the background color of the table to green (green). For this exercise, DO NOT use the styles.css :(
27+
1. Set an inline style to change the `background-color` of the table to green.
2928

29+
## 💡 Hint:
3030

31-
### 💡 Hint:
32-
- How to use background-color: https://www.w3schools.com/cssref/pr_background-color.php
33-
- A convenient way to import the basic html structure of your web page is to just type an exclamation mark `!` and select the emmet option that will pop up in VSCode.
31+
- How to use `background-color`: https://www.w3schools.com/cssref/pr_background-color.php

exercises/01-inline-styles/index.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>01 Inline Styles</title>
5+
</head>
6+
7+
<body>
8+
<table>
9+
<tr>
10+
<td>Hello</td>
11+
</tr>
12+
<tr>
13+
<td>My brother</td>
14+
</tr>
15+
</table>
16+
</body>
17+
</html>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>01 Inline Styles</title>
5+
</head>
6+
7+
<body>
8+
<table style="background-color: green">
9+
<tr>
10+
<td>Hello</td>
11+
</tr>
12+
<tr>
13+
<td>My brother</td>
14+
</tr>
15+
</table>
16+
</body>
17+
</html>

exercises/01-inline-styles/tests.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
const fs = require('fs');
2+
const path = require('path');
3+
const html = fs.readFileSync(path.resolve(__dirname, './index.html'), 'utf8');
4+
document.documentElement.innerHTML = html.toString();
5+
6+
jest.dontMock('fs');
7+
8+
// Run the tests
9+
test("There should be a table element", () => {
10+
const table = document.querySelector("table");
11+
expect(table).toBeTruthy();
12+
});
13+
14+
test("The table background color should be green", () => {
15+
const table = document.querySelector("table");
16+
const computedStyles = window.getComputedStyle(table);
17+
expect(computedStyles.backgroundColor).toBe("green");
18+
});
19+
20+
test("There should be two table rows", () => {
21+
const rows = document.querySelectorAll("tr");
22+
expect(rows.length).toBe(2);
23+
});

exercises/01.1-Add-a-style-tag/index.html

Lines changed: 0 additions & 6 deletions
This file was deleted.

exercises/02-Separate-Stylesheet/solution.hide.css

Lines changed: 0 additions & 7 deletions
This file was deleted.

exercises/02-Separate-Stylesheet/styles.css

Lines changed: 0 additions & 4 deletions
This file was deleted.

exercises/01-Style-tag/README.es.md renamed to exercises/02-style-tag/README.es.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
tutorial: "https://www.youtube.com/watch?v=9WrVN0rOg_k"
33
---
4-
# `01` Style tag in CSS
4+
# `02` Style tag in CSS
55

66
Otra manera que existe de aplicar estilos es utilizar una etiqueta `<style>` en lugar de la propiedad `style`, siempre debes seguir estos pasos:
77

@@ -25,14 +25,14 @@ Mira este ejemplo:
2525
```
2626

2727
Tenemos un enlace de HTML `<a>` que lleva a las personas a google.com cuando se hace clic.
28-
Usamos CSS para seleccionar todas las etiquetas `<a>` y luego hacerlas `pink`.
28+
Usamos CSS para seleccionar todas las etiquetas `<a>` y luego hacerlas rosa (`pink`).
2929

30-
## 📝 Instrucciones
30+
## 📝 Instrucciones:
3131

3232
1. Pega este código en tu sitio web para ver los resultados.
3333

3434
## 💻 Vista previa:
3535

3636
Debería verse así:
3737

38-
![01 Hello World Exercise Preview](../../.learn/assets/01-1.png?raw=true)
38+
![Style tag resultado esperado](../../.learn/assets/01-1.png?raw=true)

exercises/01-Style-tag/README.md renamed to exercises/02-style-tag/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
22
tutorial: "https://www.youtube.com/watch?v=iDwXZoQR8EM"
33
---
4-
# `01` Style tag in CSS
4+
# `02` Style tag in CSS
55

6-
Another way to apply styles is by using a `<style>` tag, you always have to follow these steps:
6+
Another way to apply styles, is by using a `<style>` tag instead of the `style` property. You always have to follow these steps:
77

88
1. Read the HTML and pick what element (tag) you want to decorate or apply styles to.
99

1010
2. Programmatically select the element you want to style using [CSS Selectors](https://4geeks.com/lesson/what-is-css-learn-css#wait-what-is-a-selector).
1111

1212
3. Write the styling that you want by using [CSS property rules](https://4geeks.com/lesson/what-is-css-learn-css#properties).
1313

14-
But make sure your CSS code is wrapped inside a `<style>` tag instead of using the tag `style` property.
14+
But make sure your CSS code is wrapped inside a `<style>` tag.
1515

1616
Look at this example:
1717

@@ -35,4 +35,4 @@ We use CSS to select all the anchor tags and make them pink.
3535

3636
It should look like this:
3737

38-
![01 Hello World Exercise Preview](../../.learn/assets/01-1.png?raw=true)
38+
![Style tag expected result](../../.learn/assets/01-1.png?raw=true)

exercises/02-style-tag/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!-- Your code here -->
File renamed without changes.

exercises/01.1-Add-a-style-tag/README.es.md renamed to exercises/02.1-add-a-style-tag/README.es.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
---
22
tutorial: "https://www.youtube.com/watch?v=rX-0KNBCxrY"
33
---
4-
# `01.1` The Style Tag
4+
5+
# `02.1` The Style Tag
56

67
Veamos otro ejemplo pero esta vez agregando la etiqueta `<style>` nosotros mismos.
78
Puedes tener cuantas etiquetas `<style>` quieras, pero se recomienda solo tener una al principio del código de tu sitio web.
89

9-
```HTML
10+
```html
1011
<style>
1112
/* Los estilos CSS del sitio web van aquí */
1213
</style>

exercises/01.1-Add-a-style-tag/README.md renamed to exercises/02.1-add-a-style-tag/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
tutorial: "https://www.youtube.com/watch?v=K1SrZxiiM6I"
33
---
44

5-
# `01.1` The Style Tag
5+
# `02.1` The Style Tag
66

77
The previous exercise had a pre-writen `<style>` tag.
88
Let's add one style tag ourselves. It is recommended to have only one style tag, always at the beginning of your website code.
99

10-
```HTML
10+
```html
1111
<style>
1212
/* The website CSS Styles go here */
1313
</style>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<!-- add a style tag and select the <p> tag, then make it color "blue" -->
2+
<p>
3+
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
4+
around them. Having children learn to code at a young age prepares them for the future. Coding helps children with communication, creativity,
5+
math, writing, and confidence.
6+
</p>

exercises/01.1-Add-a-style-tag/solution.hide.html renamed to exercises/02.1-add-a-style-tag/solution.hide.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
</style>
88
<p>
99
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
10-
around them. Having children learn coding at a young age prepares them for the future. Coding helps children with communication, creativity,
10+
around them. Having children learn to code at a young age prepares them for the future. Coding helps children with communication, creativity,
1111
math, writing, and confidence.
1212
</p>

exercises/01.2-RGBA-colors/README.es.md renamed to exercises/02.2-rbga-colors/README.es.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
tutorial: "https://www.youtube.com/watch?v=8RntHMOAFqI"
33
---
44

5-
# `01.2` Your First Style
5+
# `02.2` Your First Style
66

77
Cuando usas CSS, la idea es aplicar `reglas css` a tus `elementos html`, siempre debes seleccionar primero el elemento y luego especificar qué reglas deseas aplicarle:
88

exercises/01.2-RGBA-colors/README.md renamed to exercises/02.2-rbga-colors/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
22
tutorial: "https://www.youtube.com/watch?v=TqmY9GLTwQ0"
33
---
4-
# `01.2` Your First Style
4+
5+
# `02.2` Your First Style
56

67
When doing CSS, the idea is to apply `css rules` to your `html elements`, you always have to select the element first, and then specify what rules you want to apply to it:
78

exercises/01.3-Your-Second-Style/README.es.md renamed to exercises/02.3-your-second-style/README.es.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
tutorial: "https://www.youtube.com/watch?v=vTS0D_QrbH8"
33
---
44

5-
# `01.3` Your Second Style
5+
# `02.3` Your Second Style
66

77
Cuando usas CSS, la idea es aplicar `reglas css` a tus `elementos html`, siempre debes seleccionar primero el elemento y luego especificar qué reglas deseas aplicarle:
88

exercises/01.3-Your-Second-Style/README.md renamed to exercises/02.3-your-second-style/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
tutorial: "https://www.youtube.com/watch?v=ituoKgAh6ds"
33
---
44

5-
# `01.3` Your Second Style
5+
# `02.3` Your Second Style
66

77
When doing CSS, the idea is to apply `css rules` to your `html elements`, you always have to select the element first, and then specify what rules you want to apply to it:
88

0 commit comments

Comments
 (0)