diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index fa719874..18991c69 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -22,7 +22,7 @@ // Use 'forwardPorts' to make a list of ports inside the container available locally. // "forwardPorts": [], - "onCreateCommand": "npm i jest@24.8.0 -g && npm i @learnpack/learnpack@2.1.26 -g && learnpack plugins:install learnpack-html@0.0.20" + "onCreateCommand": "npm i jest@29.7.0 jest-environment-jsdom@29.7.0 -g && npm i @learnpack/learnpack@5.0.13 -g && learnpack plugins:install @learnpack/html@1.1.7" // Use 'postCreateCommand' to run commands after the container is created. // "postCreateCommand": "yarn install", diff --git a/.github/workflows/learnpack-audit.yml b/.github/workflows/learnpack-audit.yml index 52644d89..95814c2a 100644 --- a/.github/workflows/learnpack-audit.yml +++ b/.github/workflows/learnpack-audit.yml @@ -5,9 +5,9 @@ name: Learnpack audit on: push: - branches: [ master ] + branches: [ main ] pull_request: - branches: [ master ] + branches: [ main ] jobs: build: @@ -16,7 +16,7 @@ jobs: strategy: matrix: - node-version: [14.x] + node-version: [20.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile index c303edbf..6e137a77 100644 --- a/.gitpod.Dockerfile +++ b/.gitpod.Dockerfile @@ -3,5 +3,4 @@ FROM gitpod/workspace-full:latest USER gitpod -RUN npm i jest@24.8.0 -g -RUN npm i @learnpack/learnpack@2.1.26 -g && learnpack plugins:install learnpack-html@0.0.20 +RUN npm i jest@29.7.0 jest-environment-jsdom@29.7.0 -g && npm i @learnpack/learnpack@2.1.47 -g && learnpack plugins:install @learnpack/html@1.1.7 diff --git a/README.es.md b/README.es.md index 77217f4a..23cb7b39 100644 --- a/README.es.md +++ b/README.es.md @@ -88,11 +88,11 @@ Cada ejercicio es una pequeña aplicación de React que contiene los siguientes Gracias a estas personas maravillosas ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)): -1. [Alejandro Sanchez (alesanchezr)](https://github.com/alesanchezr), contribución: (codificador) 💻 (idea) 🤔, (build-tests) ⚠️ , (pull-request-review) 🤓 (tutorial de compilación) ✅ (documentación) 📖 +1. [Alejandro Sanchez (alesanchezr)](https://github.com/alesanchezr), contribución: (codificador) 💻 (idea) 🤔, (run-tests) ⚠️ , (pull-request-review) 🤓 (tutorial de compilación) ✅ (documentación) 📖 2. [David Hay (haydavid23)](https://github.com/haydavid23), contribución: (tests) ⚠️ -3. [Daniel Machota (@d4rkm0nst3r)](https://github.com/d4rkm0nst3r), contribución: (build-tutorial) ✅, Traducción 🌍 +3. [Daniel Machota (@d4rkm0nst3r)](https://github.com/d4rkm0nst3r), contribución: (run-tutorial) ✅, Traducción 🌍 Este proyecto sigue la especificación [all-contributors](https://github.com/kentcdodds/all-contributors). ¡Todas las contribuciones son bienvenidas! diff --git a/README.md b/README.md index 3f84ce08..5e663733 100644 --- a/README.md +++ b/README.md @@ -12,14 +12,14 @@ -Hi! I'm [Alejandro Sanchez @alesanchezr](https://github.com/alesanchezr), really excited to have you here! 🎉 😂 Learning to code is hard, you need coaching! [DM me on twitter](https://twitter.com/alesanchezr) if you have any questions. +Hi! I'm [Alejandro Sanchez @alesanchezr](https://github.com/alesanchezr), really excited to have you here! 🎉 😂 Learning to code is hard; you need coaching! [DM me on twitter](https://twitter.com/alesanchezr) if you have any questions. *Estas instrucciones [están disponibles en 🇪🇸 español](https://github.com/4GeeksAcademy/css-tutorial-exercises-course/blob/master/README.es.md) :es:* ## You'll be learning the following concepts: -1. How to apply CSS to your website in 3 different ways: Inline, by grouping them together inside a ` -Click me to open google.com -``` - -We have an HTML anchor `` that takes people to google.com when clicked. -We use CSS to select all the anchor tags and make them pink. - -## 📝 Instructions: - -1. Paste this code on your website to see the results. - -## 💻 Preview: - -It should look like this: - - diff --git a/exercises/01-Hello-World/index.html b/exercises/01-Hello-World/index.html deleted file mode 100644 index 93d4ce1c..00000000 --- a/exercises/01-Hello-World/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/exercises/01-inline-styles/README.es.md b/exercises/01-inline-styles/README.es.md new file mode 100644 index 00000000..3efe9408 --- /dev/null +++ b/exercises/01-inline-styles/README.es.md @@ -0,0 +1,30 @@ +--- +tutorial: "https://www.youtube.com/watch?v=c5JeXOnI-Sg" +--- + +# `01` Inline styles + +El CSS se trata de agregar estilos a nuestros elementos HTML. + +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í: + +```html +Ir a Google +``` + +Esto establecerá el `color` del texto del enlace anterior a rojo y el tamaño de fuente (`font-size`) en 14 píxeles. + +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. + +Para aplicar estilos, siempre tienes que seguir estos pasos: + +1. Leer el HTML y seleccionar qué elemento deseas decorar para aplicarle CSS. +2. Aplicar el estilo con el atributo `style` como se muestra arriba. + +## 📝 Instrucciones: + +1. Establece un estilo en línea para cambiar el color de fondo (`background-color`) de la tabla a verde. + +## 💡 Pista: + +- Cómo usar `background-color`: https://www.w3schools.com/cssref/pr_background-color.php diff --git a/exercises/01-inline-styles/README.md b/exercises/01-inline-styles/README.md new file mode 100644 index 00000000..f37c0949 --- /dev/null +++ b/exercises/01-inline-styles/README.md @@ -0,0 +1,31 @@ +--- +tutorial: "https://www.youtube.com/watch?v=h9WPp8gPMS8" +--- +# `01` Inline styles + +CSS is about adding styles to our HTML elements. + +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: + +```HTML +Go to Google +``` + +This will set the text color of the link above to red, and the font size to 14 pixels. + +In contemporary web design this way of applying styles is **discouraged**, because it is not efficient - you have to apply styles tag by tag. But you will run into examples of it and need to be familiar with it. + +To apply styles you always have to follow thеse steps: + +1. Read the HTML and pick what element you want to decorate to apply CSS to it. +2. Apply the style with the `style` attribute as above. + +That is it! The rest is just semantics! 😁 + +## 📝 Instructions: + +1. Set an inline style to change the `background-color` of the table to green. + +## 💡 Hint: + +- How to use `background-color`: https://www.w3schools.com/cssref/pr_background-color.php diff --git a/exercises/03-Inline-Styles/index.html b/exercises/01-inline-styles/index.html similarity index 82% rename from exercises/03-Inline-Styles/index.html rename to exercises/01-inline-styles/index.html index ab36cc54..75056c8e 100644 --- a/exercises/03-Inline-Styles/index.html +++ b/exercises/01-inline-styles/index.html @@ -1,7 +1,7 @@
-