3 |
4 |
5 | Document
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/.learn/exercises/04-build-the-website/README.md:
--------------------------------------------------------------------------------
1 | # `04` Build the website
2 |
3 | Now it's time to see how your changes look like on your website!
4 |
5 | ## 📝 Instructions:
6 |
7 | 1. Click the `Run`, to see your website live.
8 |
9 | ## 🔎 Important:
10 |
11 | + You can build as many times as you want, we recommend you to do it every time you make changes, that way you can check your progress as you go.
12 |
--------------------------------------------------------------------------------
/.learn/exercises/04-build-the-website/README.es.md:
--------------------------------------------------------------------------------
1 | # `04` Build the website
2 |
3 | ¡Es hora de revisar cómo se ven los cambios en tu sitio web!
4 |
5 | ## 📝 Instrucciones:
6 |
7 | 1. Haz clic en botón `Ejecutar`, para ver tu website en vivo.
8 |
9 | ## 🔎 Importante:
10 |
11 | + Puedes hacerlo cuantas veces quieras. Te recomendamos hacerlo cada vez que hagas cambios, de esa forma puedes verificar tu progreso.
12 |
--------------------------------------------------------------------------------
/.learn/exercises/01-design/README.md:
--------------------------------------------------------------------------------
1 |
2 | # `01` Design
3 |
4 | We are going to be building this postcard in HTML/CSS:
5 |
6 | 
7 |
8 | [Click here to open a bigger picture](https://raw.githubusercontent.com/breatheco-de/exercise-postcard/86dcbe572cfad6a40b1909025a2fdaa63d76919c/.learn/assets/preview.png?raw=true)
9 |
10 | Click on the `next ➡` button on the upper right corner of the screen to go to the next instructions.
11 |
--------------------------------------------------------------------------------
/.learn/exercises/14-goodbye/README.md:
--------------------------------------------------------------------------------
1 | # `14` Goodbye
2 |
3 | ## You did it, your postcard is ready! 👏
4 |
5 | The HTML is at 100%, maybe you can add a few more styles to make it look even better. You can keep playing with them to make your postcard look even more similar to the given example ;)
6 |
7 | > If you have questions remember to ask using [4Geeks Academy's Slack channel](https://4geeksacademy.slack.com/), and here is my twitter [alesanchezr](https://twitter.com/alesanchezr).
8 |
--------------------------------------------------------------------------------
/.learn/exercises/02-create-index/README.es.md:
--------------------------------------------------------------------------------
1 | # `02` Create Index
2 |
3 | Todos los sitios web en el mundo deben comenzarse con un archivo llamado `index.html`, al crearlo manualmente el computador lo reconocerá como el `entry point` (punto de entrada) de tu aplicación.
4 |
5 | ## 📝 Instrucciones:
6 |
7 | 1. Por favor, crea un archivo llamado `index.html` en la raíz del proyecto.
8 |
9 | ## 💡 Pista:
10 |
11 | + Debes ser cuidadoso porque el nombre del archivo debe ser exactamente ese.
12 |
--------------------------------------------------------------------------------
/.learn/exercises/01-design/README.es.md:
--------------------------------------------------------------------------------
1 |
2 | # `01` Design
3 |
4 | Vamos a construir este postcard (postal) con HTML/CSS:
5 |
6 | 
7 |
8 | [Haz clic aquí para ver la imagen más grande](https://raw.githubusercontent.com/breatheco-de/exercise-postcard/86dcbe572cfad6a40b1909025a2fdaa63d76919c/.learn/assets/preview.png?raw=true)
9 |
10 | Haz clic en el botón `next ➡` en la esquina superior derecha de la pantalla para ir a las siguientes instrucciones.
11 |
--------------------------------------------------------------------------------
/.learn/exercises/03-add-first-html/README.md:
--------------------------------------------------------------------------------
1 | # `03` Add first HTML
2 |
3 | Our file is currently empty; `.html` files must be filled with HTML ``.
4 |
5 | An HTML `` is just a sentence that starts and ends with the same word.
6 |
7 | ### Example:
8 |
9 | ```html
10 | Anything
11 | ```
12 |
13 | > `` is an HTML tag used to make the text bold (more thick).
14 |
15 | ## 📝 Instructions:
16 |
17 | 1. Add into your `index.html` file the HTML code of the example.
18 |
--------------------------------------------------------------------------------
/.learn/exercises/14-goodbye/README.es.md:
--------------------------------------------------------------------------------
1 | # `14` Goodbye
2 |
3 | ## ¡Lo lograste, tu postcard está lista! 👏
4 |
5 | El HTML está al 100%, tal vez puedas añadir algunos estilos más para que se vea aún mejor. Puedes seguir jugando con ellos para que tu postcard se vea incluso más similar al ejemplo dado ;)
6 |
7 | > Si tienes alguna pregunta, puedes hacerlas a través de Slack [4Geeks Academy's Slack channel](https://4geeksacademy.slack.com/), y aquí tienes mi twitter [alesanchezr](https://twitter.com/alesanchezr).
8 |
--------------------------------------------------------------------------------
/.learn/exercises/02-create-index/README.md:
--------------------------------------------------------------------------------
1 | ---
2 | tutorial: https://www.youtube.com/watch?v=-ewDD9VJE80
3 | ---
4 |
5 | # `02` Create Index
6 |
7 | All websites in the world must start with a file called `index.html`, when you manually create it, the computer will recognize it as the `entry point` of your application.
8 |
9 | ## 📝 Instructions:
10 |
11 | 1. Please create a file called `index.html` on the root of the project.
12 |
13 | ## 💡 Hint:
14 |
15 | + Be very careful because the name of the file has to be exact.
16 |
17 |
--------------------------------------------------------------------------------
/.learn/exercises/03-add-first-html/README.es.md:
--------------------------------------------------------------------------------
1 | # `03` Add first HTML
2 |
3 | Nuestro archivo está vacío; los archivos `.html` deben tener `` (etiquetas) HTML.
4 |
5 | Un `` HTML es simplemente una oración que comienza y termina con la misma palabra.
6 |
7 | ### Ejemplo:
8 |
9 | ```html
10 | Cualquier cosa
11 | ```
12 |
13 | > `` es un tag HTML utilizado para que el texto esté en negrita (más grueso).
14 |
15 | ## 📝 Instrucciones:
16 |
17 | 1. Añade dentro de tu archivo `index.html` el código HTML que aparece en el ejemplo.
18 |
--------------------------------------------------------------------------------
/.learn/exercises/08-adding-styles/README.es.md:
--------------------------------------------------------------------------------
1 | # `08` Adding styles
2 |
3 | Si le das clic a `build` ahora, verás que solo dice "Hello". Eso es porque el `
` que acabamos de añadir no tiene estilos; cambiemos eso.
4 |
5 | Para comenzar a darle vida a tu sitio web, debes empezar por añadir un archivo `styles.css`. Este contendrá todo el código de estilos de tu sitio web.
6 |
7 | ## 📝 Instrucciones
8 |
9 | 1. Crea un archivo `styles.css` en la raíz del proyecto y añade el siguiente contenido:
10 |
11 | ```css
12 | body{
13 | background: black;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/.learn/exercises/08-adding-styles/README.md:
--------------------------------------------------------------------------------
1 | ---
2 | tutorial: https://www.youtube.com/watch?v=EbkgFTqpRxc
3 | ---
4 |
5 | # `08` Adding styles
6 |
7 | If you `build` your website right now, you will see that it only says "Hello". That is because the `
` we just added is invisible; let's change that.
8 |
9 | To start bringing your website to life, we must begin by adding a `styles.css` file. This will contain all our website styling code.
10 |
11 | ## 📝 Instructions:
12 |
13 | 1. Create a `styles.css` file on the root of your project and add the following content to it:
14 |
15 | ```css
16 | body{
17 | background: black;
18 | }
19 | ```
--------------------------------------------------------------------------------
/.gitpod.yml:
--------------------------------------------------------------------------------
1 | image:
2 | file: .gitpod.Dockerfile
3 |
4 | # List the ports you want to expose and what to do when they are served. See https://www.gitpod.io/docs/config-ports/
5 | ports:
6 | - port: 3000
7 | onOpen: ignore
8 |
9 | vscode:
10 | extensions:
11 | - learn-pack.learnpack-vscode
12 |
13 | github:
14 | prebuilds:
15 | # enable for the master/default branch (defaults to true)
16 | master: true
17 | # enable for pull requests coming from this repo (defaults to true)
18 | pullRequests: false
19 | # add a "Review in Gitpod" button as a comment to pull requests (defaults to true)
20 | addComment: false
21 |
--------------------------------------------------------------------------------
/.learn/exercises/11.2-header-styles/test.js:
--------------------------------------------------------------------------------
1 | const fs = require("fs");
2 | const path = require("path");
3 | const { fromFile, fromHTML } = require("../../utils/dom");
4 | let dom = fromFile();
5 |
6 | test("In your CSS create a .postcard-header class that will apply styles to the .postcard-header
must have a display:flex to allow its childs to display horizontally", function(){
13 | dom = dom.withStylesheet();
14 | dom.selector('.postcard-header').hasStyles({
15 | display: "flex",
16 | })
17 | })
18 |
--------------------------------------------------------------------------------
/.learn/exercises/08.1-red-borders/README.md:
--------------------------------------------------------------------------------
1 | # `08.1` Red Borders
2 |
3 | To be able to debug better the application, we strongly recommend to include certain styles inside your `styles.css`.
4 |
5 | ## 📝 Instructions:
6 |
7 | 1. Copy and paste into your `styles.css` file, the following code:
8 |
9 | ```css
10 | * {
11 | border: 1px dashed red;
12 | min-height: 10px;
13 | }
14 | ```
15 |
16 | ## 💡 Hint:
17 |
18 | + This code is going to add a red dashed border to every element in the website, making them easier to see and debug.
19 |
20 | 
21 |
22 | ## 🔎 Important:
23 |
24 | + This code will be removed once you finish your postcard.
25 |
--------------------------------------------------------------------------------
/.learn/exercises/08.1-red-borders/README.es.md:
--------------------------------------------------------------------------------
1 | # `08.1` Red Borders
2 |
3 | Para poder depurar mejor la aplicación, te recomendamos incluir ciertos estilos dentro de tu `styles.css`.
4 |
5 | ## 📝 Instrucciones:
6 |
7 | 1. Copia y pega dentro de tu archivo `styles.css`, el siguiente código.
8 |
9 | ```css
10 | * {
11 | border: 1px dashed red;
12 | min-height: 10px;
13 | }
14 | ```
15 |
16 | ## 💡 Pista:
17 |
18 | + Este código añadirá un borde rojo con una línea punteada a cada elemento del sitio web, así podrás visualizar y depurar todo más fácilmente.
19 |
20 | 
21 |
22 | ## 🔎 Importante:
23 |
24 | + Este código se eliminará luego de que termines tu postcard.
25 |
--------------------------------------------------------------------------------
/.learn/exercises/06-lets-start-building/test.js:
--------------------------------------------------------------------------------
1 | const fs = require("fs");
2 | const path = require("path");
3 | const { fromFile, fromHTML } = require("../../utils/dom");
4 | const dom = fromFile();
5 |
6 | test("Make sure you have your index.html", function(){
7 | const indexExists = fs.existsSync(`./index.html`);
8 | expect(indexExists).toBe(true);
9 | })
10 |
11 | test("The tag must exist and it must be properly formatted", function(){
12 | const found = dom.tagExists('html')
13 | expect(found).toBe(true);
14 | })
15 |
16 | test("Make sure there is a tag inside the tag", function(){
17 | const found = dom.insideTags('head').insideTags('title')
18 | expect(found).not.toBe(null);
19 | })
--------------------------------------------------------------------------------
/.learn/exercises/11.1-header-content/solution.hide.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Document
8 |
9 |
10 |
11 |
12 |
My Postcard
13 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/.learn/exercises/09-connecting-stylesheet/README.es.md:
--------------------------------------------------------------------------------
1 | # `09` Connecting Stylesheet
2 |
3 | En tu archivo `styles.css` hemos especificado que queremos que el `body` del sitio web sea de color negro. Para que esto funcione, debemos conectar ese archivo con el de `index.html`, por medio del tag ``.
4 |
5 | > El tag `` es la única manera de conectar stylesheets (hoja de estilos) **CSS** con archivos **HMTL**.
6 |
7 | ## 📝 Instrucciones:
8 |
9 | 1. Añade el siguiente código dentro de los tags de apertura y cierre ``.
10 |
11 | ```html
12 |
13 | ```
14 |
15 | ## 💡 Pista:
16 |
17 | + Si la conexión entre CSS y HTML fue exitosa, tu sitio web debería tener un fondo **negro** luego de hacer clic en `build`.
18 |
--------------------------------------------------------------------------------
/.learn/exercises/08.1-red-borders/test.js:
--------------------------------------------------------------------------------
1 | const fs = require("fs");
2 | const path = require("path");
3 |
4 | test("Make sure you have your index.html", function(){
5 | const indexExists = fs.existsSync(`./index.html`);
6 | expect(indexExists).toBe(true);
7 | })
8 |
9 | test("Make sure you created the styles.css file", function(){
10 | const indexExists = fs.existsSync(`./styles.css`);
11 | expect(indexExists).toBe(true);
12 | })
13 |
14 | test("Make sure your styles.css contains the expected style", function(){
15 | const content = fs.readFileSync("./styles.css", 'utf8')
16 |
17 | const expected = /\*\s*{\s*border\s*:\s*1px\s*dashed\s*red\s*;\s*min-height\s*:\s*10px\s*;\s*}/;
18 | expect(content).toEqual(expect.stringMatching(expected));
19 | })
--------------------------------------------------------------------------------
/.learn/exercises/09-connecting-stylesheet/README.md:
--------------------------------------------------------------------------------
1 | ---
2 | tutorial: https://www.youtube.com/watch?v=rzDFkhUgZks
3 | ---
4 |
5 | # `09` Connecting Stylesheet
6 |
7 | In your `styles.css` file we have specified that we want the `body` of the website to be black. If we want it to work, we must connect that file to the `index.html` file, using the `` tag.
8 |
9 | > `` tags are the only way to connect **CSS** Stylesheets with **HTML** files.
10 |
11 | ## 📝 Instructions:
12 |
13 | 1. Add the following code inside the opening and closing `` tags:
14 |
15 | ```html
16 |
17 | ```
18 | ## 💡 Hint:
19 |
20 | + If the connection between CSS and HTML was successful, your website should be **black** after you build.
21 |
--------------------------------------------------------------------------------
/.learn/exercises/13-check-your-code/README.es.md:
--------------------------------------------------------------------------------
1 | # `13` Check Your Postcard
2 |
3 | La última parte será el pie del postcard. ¿Cuál es el único elemento presente allí?
4 |
5 | 
6 |
7 | ## 📝 Instrucciones:
8 |
9 | 1. Crea un botón `