Skip to content

Commit 9456f31

Browse files
authored
Merge branch 'master' into html-forms-tutorial-exercises
2 parents 9f6338c + 15eeef7 commit 9456f31

File tree

31 files changed

+202
-170
lines changed

31 files changed

+202
-170
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
// Use 'forwardPorts' to make a list of ports inside the container available locally.
2323
// "forwardPorts": [],
2424

25-
"onCreateCommand": "npm i [email protected] -g && npm i @learnpack/[email protected].20 -g && learnpack plugins:install [email protected]"
25+
"onCreateCommand": "npm i [email protected] -g && npm i @learnpack/[email protected].26 -g && learnpack plugins:install [email protected]"
2626

2727
// Use 'postCreateCommand' to run commands after the container is created.
2828
// "postCreateCommand": "yarn install",

.gitpod.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ FROM gitpod/workspace-full:latest
44
USER gitpod
55

66
RUN npm i [email protected] -g
7-
RUN npm i @learnpack/[email protected].20 -g && learnpack plugins:install [email protected]
7+
RUN npm i @learnpack/[email protected].26 -g && learnpack plugins:install [email protected]

README.es.md

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,29 +13,28 @@
1313
<a href="https://gitpod.io#https://github.com/4GeeksAcademy/html-forms-tutorial-exercises.git"><img src="https://gitpod.io/button/open-in-gitpod.svg" /></a>
1414
<!-- endhide -->
1515

16-
Los formularios son tan importantes en el mundo de HTML, CSS y Javascript que decidí dedicarles un tutorial especial para enfocarme en todas las entradas/inputs, botones y elementos que HTML trae por defecto para centrarme en la interacción. En estos ejercicios aprenderás:
16+
Los formularios son tan importantes en el mundo de HTML, CSS y JavaScript que decidí dedicarles un tutorial especial para enfocarme en todas las entradas/inputs, botones y elementos que HTML trae por defecto para centrarme en la interacción. En estos ejercicios aprenderás:
1717

1818
1. Uso de entradas/inputs de texto, text areas, entradas/inputs de fecha y entradas/inputs numéricas.
1919

2020
2. Uso de dropdowns.
2121

22-
3. Formar validaciones preventivas.
22+
3. Validaciones de formulario.
2323

2424
4. GET vs POST.
2525

26-
5. Diseñar un formulario.
26+
5. Dar estilos a un formulario.
2727

2828
<!-- hide -->
2929
#### Antes de empezar... hay otros tutoriales
30+
3031
<ol>
3132
<li><a href="https://github.com/4GeeksAcademy/html-tutorial-exercises-course">Aprende HTML</a></li>
32-
<li><a href="https://github.com/4GeeksAcademy/html-forms-tutorial-exercises">Aprende Formularios HTML5 </a>← estás aquí</li>
33-
<li><a href="https://github.com/4GeeksAcademy/css-tutorial-exercises-course">Aprende CSS</a>
33+
<li><a href="https://github.com/4GeeksAcademy/html-forms-tutorial-exercises">Aprende Formularios HTML5</a>← 🔥 Estás aquí</li>
34+
<li><a href="https://github.com/4GeeksAcademy/css-tutorial-exercises-course">Aprende CSS</a></li>
35+
<li><a href="https://github.com/4GeeksAcademy/css-layouts-tutorial-exercises">Aprende CSS Layouts</a></li>
3436
<li><a href="https://github.com/4GeeksAcademy/bootstrap-exercises-tutorial">Aprende Bootstrap</a></li>
3537
</ol>
36-
<p align="center">
37-
<img src="https://github.com/4GeeksAcademy/html-forms-tutorial-exercises/blob/master/.learn/assets/animation.gif?raw=true">
38-
</p>
3938

4039
## Instalación en un clic (recomendado)
4140

@@ -47,39 +46,39 @@ Puedes empezar estos ejercicios en pocos segundos haciendo clic en: [Abrir en Co
4746

4847
Clona el repositorio en tu ambiente local y sigue los siguientes pasos:
4948

50-
1. Instala learnpack, el package manager para tutoriales de aprendizaje y el html compiler plugin para learnpack, asegúrate también de tener node.js 14+:
49+
1. Instala LearnPack, el package manager para tutoriales de aprendizaje y el HTML compiler plugin para LearnPack, asegúrate también de tener node.js 14+:
5150

52-
```
51+
```bash
5352
$ npm i learnpack -g
5453
$ learnpack plugins:install learnpack-html
5554
```
5655

57-
2. Descarga estos ejercicios en particular usando learnpack y luego `cd` para entrar en la carpeta:
56+
2. Descarga estos ejercicios en particular usando LearnPack y luego `cd` para entrar en la carpeta:
5857

59-
```
58+
```bash
6059
$ learnpack download html-forms-tutorial-exercises
6160
$ cd html-forms-tutorial-exercises
6261
```
6362

6463
> Nota: Una vez que termines de descargar, encontrarás una carpeta "exercises" que contiene todos los ejercicios.
6564
66-
3. Inicializa el tutorial/ejercicios ejecutando el siguiente comando en el mismo nivel donde se encuentra tu archivo bc.json:
65+
3. Inicializa el tutorial/ejercicios ejecutando el siguiente comando en el mismo nivel donde se encuentra tu archivo learn.json:
6766

68-
```sh
67+
```bash
6968
7069
$ learnpack start
7170
```
7271
<!-- endhide -->
7372

7473
## ¿Cómo están organizados los ejercicios?
7574

76-
Cada ejercicio es una pequeña aplicación de react que contiene los siguientes archivos:
75+
Cada ejercicio es una pequeña aplicación de React que contiene los siguientes archivos:
7776

7877
1. **index.js:** representa el archivo de entrada para toda la aplicación.
7978
2. **README.md:** contiene las instrucciones de los ejercicios.
8079
3. **test.js:** no tienes que abrir este archivo, contiene el script del test para el ejercicio.
8180

82-
> Nota: Estos ejercicios son autograduados. Los tests son muy rígidos y estrictos, mi recomendación es que ignores los tests y usarlos solo como una recomendación o puedes frustrarte.
81+
> Nota: Los ejercicios son autograduados, pero los tests son muy rígidos y estrictos, mi recomendación es que no prestes demasiada atención a los tests y los uses solo como una sugerencia o podrías frustrarte.
8382
8483
## Colaboradores
8584

@@ -89,4 +88,4 @@ Gracias a estas personas maravillosas ([emoji key](https://github.com/kentcdodds
8988

9089
Este proyecto sigue la especificación [all-contributors](https://github.com/kentcdodds/all-contributors). ¡Todas las contribuciones son bienvenidas!
9190

92-
Este y otros ejercicios son usados para [aprender a programar](https://4geeksacademy.com/es/aprender-a-programar/aprender-a-programar-desde-cero) por parte de los alumnos de 4Geeks Academy [Coding Bootcamp](https://4geeksacademy.com/us/coding-bootcamp) realizado por [Alejandro Sánchez](https://twitter.com/alesanchezr) y muchos otros contribuyentes. Conoce más sobre nuestros [Curso de Programación](https://4geeksacademy.com/es/curso-de-programacion-desde-cero?lang=es) para convertirte en [Full Stack Developer](https://4geeksacademy.com/es/coding-bootcamps/desarrollador-full-stack/?lang=es), o nuestro [Data Science Bootcamp](https://4geeksacademy.com/es/coding-bootcamps/curso-datascience-machine-learning).
91+
Este y otros ejercicios son usados para [aprender a programar](https://4geeksacademy.com/es/aprender-a-programar/aprender-a-programar-desde-cero) por parte de los alumnos de 4Geeks Academy [Coding Bootcamp](https://4geeksacademy.com/us/coding-bootcamp) realizado por [Alejandro Sánchez](https://twitter.com/alesanchezr) y muchos otros contribuyentes. Conoce más sobre nuestros [Cursos de Programación](https://4geeksacademy.com/es/curso-de-programacion-desde-cero?lang=es) para convertirte en [Full Stack Developer](https://4geeksacademy.com/es/coding-bootcamps/desarrollador-full-stack/?lang=es), o nuestro [Data Science Bootcamp](https://4geeksacademy.com/es/coding-bootcamps/curso-datascience-machine-learning).

README.md

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010

1111
<h3>Start now: </h3>
1212
<a href="https://gitpod.io#https://github.com/4GeeksAcademy/html-forms-tutorial-exercises.git"><img src="https://gitpod.io/button/open-in-gitpod.svg" /></a>
13-
<!-- endhide -->
1413

1514
*Estas instrucciones [están disponibles en 🇪🇸 español](https://github.com/4GeeksAcademy/html-forms-tutorial-exercises/blob/master/README.es.md) :es:*
15+
<!-- endhide -->
1616

17-
Forms are so important in the world of HTML, CSS and Javascript that I decided to give them a special course to focus in all the inputs, buttons and elements that HTML brings by default to focus on interaction. During these exercises you will learn:
17+
Forms are so important in the world of HTML, CSS and JavaScript that I decided to give them a special course to focus in all the inputs, buttons and elements that HTML brings by default to focus on interaction. During these exercises you will learn:
1818

1919
1. Using text inputs, text areas, date inputs and numeric inputs.
2020

@@ -24,19 +24,18 @@ Forms are so important in the world of HTML, CSS and Javascript that I decided t
2424

2525
4. GET vs POST.
2626

27-
5. Styling a form
27+
5. Styling a form.
2828

2929
<!-- hide -->
3030
#### Before we start... other related tutorials
31+
3132
<ol>
3233
<li><a href="https://github.com/4GeeksAcademy/html-tutorial-exercises-course">Learn HTML</a></li>
33-
<li><a href="https://github.com/4GeeksAcademy/html-forms-tutorial-exercises">Learn HTML5 Forms</a>← your are here now</li>
34+
<li><a href="https://github.com/4GeeksAcademy/html-forms-tutorial-exercises">Learn HTML5 Forms</a>← 🔥 You are here now</li>
3435
<li><a href="https://github.com/4GeeksAcademy/css-tutorial-exercises-course">Learn CSS</a></li>
36+
<li><a href="https://github.com/4GeeksAcademy/css-layouts-tutorial-exercises">Learn CSS Layouts</a></li>
3537
<li><a href="https://github.com/4GeeksAcademy/bootstrap-exercises-tutorial">Learn Bootstrap</a></li>
3638
</ol>
37-
<p align="center">
38-
<img src="https://github.com/4GeeksAcademy/html-forms-tutorial-exercises/blob/master/.learn/assets/animation.gif?raw=true">
39-
</p>
4039

4140
## One click installation (recommended):
4241

@@ -48,39 +47,39 @@ You can open these exercises in just a few seconds by clicking: [Open in Codespa
4847

4948
Clone the repository in your local environment and follow the steps below:
5049

51-
1. Install learnpack, the package manager for learning tutorials and the html compiler plugin for learnpack, make sure you also have node.js 14+:
50+
1. Install LearnPack, the package manager for learning tutorials and the HTML compiler plugin for LearnPack, make sure you also have node.js 14+:
5251

53-
```
52+
```bash
5453
$ npm i learnpack -g
5554
$ learnpack plugins:install learnpack-html
5655
```
5756

58-
2. Download this particular exercises using learnpack and `cd` into the folder:
57+
2. Download these particular exercises using LearnPack and `cd` into the folder:
5958

60-
```
59+
```bash
6160
$ learnpack download html-forms-tutorial-exercises
6261
$ cd html-forms-tutorial-exercises
6362
```
6463

65-
> Note: Once you finish downloading, you will find a "exercises" folder that contains all the exercises within.
64+
> Note: Once you finish downloading, you will find an "exercises" folder that contains all the exercises within.
6665
67-
3. Start the tutorial/exercises by running the following command at the same level were your bc.json file is:
66+
3. Start the tutorial/exercises by running the following command at the same level where your learn.json file is:
6867

69-
```sh
68+
```bash
7069
7170
$ learnpack start
7271
```
7372
<!-- endhide -->
7473

75-
## How are the React Tutorial Exercises organized?
74+
## How are the exercises organized?
7675

77-
Each exercise is a small react application containing the following files:
76+
Each exercise is a small React application containing the following files:
7877

7978
1. **index.js:** represents the entry file for the entire exercise.
8079
2. **README.md:** contains exercise instructions.
8180
3. **test.js:** you don't have to open this file, it contains the testing script for the exercise.
8281

83-
> Note: The exercises have automatic grading, but it's very rigid and string, my recommendation is to ignore the tests and use them only as a recommendation, or you can get frustrated :(
82+
> Note: The exercises have automatic grading, but it's very rigid and strict, my recommendation is to not take the tests too serious and use them only as a suggestion, or you may get frustrated.
8483
8584
## Contributors
8685

@@ -91,4 +90,4 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds
9190

9291
This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind are welcome!
9392

94-
This and many other exercises are built by students as part of the 4Geeks Academy [Coding Bootcamp](https://4geeksacademy.com/us/coding-bootcamp) by [Alejandro Sánchez](https://twitter.com/alesanchezr) and many other contributors. Find out more about our [Full Stack Developer Course](https://4geeksacademy.com/us/coding-bootcamps/part-time-full-stack-developer), and [Data Science Bootcamp](https://4geeksacademy.com/us/coding-bootcamps/datascience-machine-learning).
93+
This and many other exercises are built by students as part of the 4Geeks Academy [Coding Bootcamp](https://4geeksacademy.com/us/coding-bootcamp) by [Alejandro Sánchez](https://twitter.com/alesanchezr) and many other contributors. Find out more about our [Full Stack Developer Course](https://4geeksacademy.com/us/coding-bootcamps/part-time-full-stack-developer), and [Data Science Bootcamp](https://4geeksacademy.com/us/coding-bootcamps/datascience-machine-learning).

exercises/01-welcome/README.es.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11

22
# `01` Welcome to the world of HTML 😆 !!
33

4-
Hola, mi nombre es [Alejandro Sánchez](http://alesanchezr.com) y soy uno de los fundadores de @4GeeksAcademy (bootcamp de programación). Estos ejercicios y muchos otros tutoriales interactivos se han liberado al público gratuitamente a través del [Sitio web de BreatheCode](www.BreatheCo.de).
4+
Hola, mi nombre es [Alejandro Sánchez](http://alesanchezr.com) y soy uno de los fundadores de @4GeeksAcademy (bootcamp de programación). Estos ejercicios y muchos otros tutoriales interactivos se han liberado al público gratuitamente a través del [Sitio web de 4Geeks](www.4geeks.com).
55

66
Estos ejercicios son para cualquier persona interesada en dominar los formularios HTML. Vamos a abordar los siguientes conceptos:
77

8-
1. Uso de entradas de formulario
8+
1. Uso de entradas/inputs de texto, text areas, entradas/inputs de fecha y entradas/inputs numéricas
99

10-
2. Validaciones de formulario
10+
2. Uso de dropdowns
1111

12-
3. GET vs POST
12+
3. Validaciones de formulario
1313

14-
4. Dar estilos a un formulario
14+
4. GET vs POST
1515

16-
## ➡️ Incremental y ✔️ autoevaluado
16+
5. Dar estilos a un formulario
17+
18+
## ➡️ Incremental & ✔️ Autoevaluado
1719

1820
- He construido los ejercicios de forma gradual, deberías sentir el progreso poco a poco, y con suerte, el incremento de dificultad entre cada ejercicio nunca será demasiado grande para frustrarte.
1921

20-
- Todos los ejercicios han sido calificados automáticamente gracias a [@username](https://github.com/haydavid23)
22+
- Todos los ejercicios han sido calificados automáticamente gracias a [@haydavid23](https://github.com/haydavid23)
2123

22-
Presiona `Next ->` en la parte superior de estas instrucciones para comenzar con el primer ejecicio.
24+
Presiona `Next ->` en la parte superior de estas instrucciones para comenzar con el primer ejercicio.

exercises/01-welcome/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11

22
# `01` Welcome to the world of HTML 😆 !!
33

4-
Hello, my name is [Alejandro Sanchez](http://alesanchezr.com) and I'm one of the founders of @4GeeksAcademy (coding bootcamp).
4+
Hello, my name is [Alejandro Sánchez](http://alesanchezr.com), and I'm one of the founders of @4GeeksAcademy. These exercises and many other interactive tutorials have been open sourced and released to the public for free through the [4Geeks Website](www.4geeks.com).
55

6-
These exercises and many other interactive tutorials have been open sourced and released to the public for free thru the [BreatheCode Website](www.BreatheCo.de).
6+
These exercises are for anyone interested in mastering HTML Forms, we will go over the following concepts:
77

8-
This exercises are for anyone interested in mastering HTML Forms, we will go over the following concepts:
8+
1. Using text inputs, text areas, date inputs and numeric inputs
99

10-
1. Using inputs
10+
2. Using dropdowns
1111

12-
2. Form preventive validations
12+
3. Form preventive validations
1313

14-
3. GET vs POST
14+
4. GET vs POST
1515

16-
4. Styling a form
16+
5. Styling a form
1717

18-
## ➡️ Incremental & Autograded
18+
## ➡️ Incremental & ✔️ Autograded
1919

2020
- I've built the exercises incrementally, you should feel the progress little by little, and hopefully, the difficulty raising between exercises will never be too big to get you frustrated.
2121

22-
- All exercises have been automatically graded thanks to [@username](https://github.com/haydavid23)
22+
- All exercises have been automatically graded thanks to [@haydavid23](https://github.com/haydavid23)
2323

2424
Click the `Next ->` button on the top of these instructions to begin with the first exercise.

exercises/02-hello-world/README.es.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# `02` Hola, mundo
1+
# `02` Hello World
22

33
## 📝 Instrucciones:
44

@@ -10,9 +10,8 @@
1010

1111
+ Puedes leer sobre la estructura típica de un sitio web aquí:
1212

13-
https://content.breatheco.de/lesson/what-is-html-learn-html#page-structure
14-
13+
https://4geeks.com/es/lesson/what-is-html-learn-html-es#estructura-de-pgina
1514

1615
## 📎 Nota:
1716

18-
El título aparecerá en el contenido de la página web, se mostrará en la pestaña del navegador.
17+
+ El título aparecerá en el contenido de la página web, se mostrará en la pestaña del navegador.

exercises/02-hello-world/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55
1. Add the basic HTML structure for any website (doctype, html, head and body)
66

7-
2. Add "Hello World" inside the title tag of the website.
7+
2. Add "Hello World" inside the `<title>` tag of the website.
88

99
## 💡 Hint:
1010

1111
+ You can read about a typical website structure here:
1212

13-
https://content.breatheco.de/lesson/what-is-html-learn-html#page-structure
13+
https://4geeks.com/lesson/what-is-html-learn-html#page-structure
1414

15-
### 📎 Note:
15+
## 📎 Note:
1616

17-
The title is not going to show on the content of the website, it will show on the browser tab.
17+
+ The title is not going to show on the content of the website, it will show on the browser tab.

exercises/02-hello-world/tests.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe('basic HTML structure', function () {
88
beforeEach(() => { document.documentElement.innerHTML = html.toString(); });
99
afterEach(() => { jest.resetModules(); });
1010

11-
it('order of HTML tags', function () {
11+
it('Correct order of HTML tags', function () {
1212
let a = document.documentElement.innerHTML = html.toString()
1313
let b = a.indexOf("<!DOCTYPE html>")
1414
let c = a.indexOf("<html")
@@ -28,15 +28,15 @@ describe('basic HTML structure', function () {
2828
let a = document.documentElement.innerHTML = html.toString()
2929
expect(a.indexOf("<!DOCTYPE html>")).not.toBe(-1)
3030
})
31-
it('<html> tag should exists', function () {
31+
it('<html> tag should exist', function () {
3232
let a = document.documentElement.innerHTML = html.toString()
3333
expect(a.indexOf("<html")).not.toBe(-1)
3434
})
35-
it('<head> tag should exists', function () {
35+
it('<head> tag should exist', function () {
3636
let a = document.documentElement.innerHTML = html.toString()
3737
expect(a.indexOf("<head>")).not.toBe(-1)
3838
})
39-
it('<title> tag exists and the innerHTML needs to be "Hello World"', function () {
39+
it('<title> tag exists and the innerHTML should be "Hello World"', function () {
4040
let a = document.documentElement.innerHTML = html.toString()
4141
expect(a.indexOf("<title>")).not.toBe(-1)
4242
expect(document.querySelector("title").innerHTML).toBe("Hello World")

exercises/03-Type-Radio/README.es.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Para agrupar varios radios en un mismo grupo de opciones debes asignarles el mis
1010

1111
2. Crea otros 2 input `type=radio` para elegir las orientaciones sexuales: Heterosexual o LGTBI.
1212

13-
### 📎 Nota:
13+
## 💡 Pistas:
1414

15-
Prueba tu formulario, sólo se debe poder elegir un género y una orientación sexual.
15+
+ Investiga sobre las etiquetas `<input>` y `<label>`.
16+
17+
+ Prueba tu formulario, solo se debe poder elegir un género y una orientación sexual.

exercises/03-Type-Radio/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
# `03` Type Radio
22

3-
The input type=radio is used when the user is not allowed to pick more than one option.
3+
The `input type=radio` is used when the user is not allowed to pick more than one option.
44

5-
To group bind to different radios into the same group of options you need to assign them the same name.
5+
To bind different radios into the same group of options you need to assign them the same name.
66

77
## 📝 Instructions:
88

99
1. Create 2 input `type=radio` to pick the gender values: Male or Female.
1010

1111
2. Create another 2 input `type=radio` to pick sexual orientation: Heterosexual or LGBTI.
1212

13-
### 📎 Note:
13+
## 💡 Hints:
1414

15-
Test your form, only one gender and one sexual orientation should be allowed to pick.
15+
+ Search about `<input>` and `<label>` tags.
16+
17+
+ Test your form, only one gender and one sexual orientation should be allowed to pick.

0 commit comments

Comments
 (0)