diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..18991c69 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,35 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node +{ + "name": "Node.js", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/javascript-node:0-16", + "customizations": { + "vscode": { + "settings": { + "editor.defaultFormatter": "esbenp.prettier-vscode", + "workbench.editorAssociations": { + "*.md": "vscode.markdown.preview.editor" + } + }, + "extensions": ["learn-pack.learnpack-vscode"] + } + }, + + // Features to add to the dev container. More info: https://containers.dev/features. + // "features": {}, + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + "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", + + // Configure tool-specific properties. + // "customizations": {}, + + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" +} diff --git a/.github/workflows/learnpack-audit.yml b/.github/workflows/learnpack-audit.yml new file mode 100644 index 00000000..95814c2a --- /dev/null +++ b/.github/workflows/learnpack-audit.yml @@ -0,0 +1,29 @@ +# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Learnpack audit + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [20.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - run: npm install @learnpack/learnpack@latest -g + - run: learnpack audit \ No newline at end of file diff --git a/.gitignore b/.gitignore index 5a0dd571..b54a1f9f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,21 @@ -_app/ -dist/ \ No newline at end of file +# Ignore everything +/* + +!.gitignore +!.gitpod.yml +!.gitpod.Dockerfile +!bc.json +!learn.json +!README.md +!README.es.md +!.vscode + +!/exercises +!/exercises/* + +!/.learn +/.learn/** +!/.learn/resets +!/.learn/resets/** +!/.learn/assets +!/.learn/assets/** diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile index 30b03d5d..6e137a77 100644 --- a/.gitpod.Dockerfile +++ b/.gitpod.Dockerfile @@ -3,4 +3,4 @@ FROM gitpod/workspace-full:latest USER gitpod -RUN npm i jest@24.8.0 -g && npm i breathecode-cli@latest -g +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/.gitpod.yml b/.gitpod.yml index 1f25c2a8..fbb44ce0 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -3,11 +3,14 @@ image: file: .gitpod.Dockerfile ports: - - port: 8080 - onOpen: open-browser -tasks: - - command: > - bc run:exercises; + - port: 3000 + onOpen: ignore + +vscode: + extensions: + - learn-pack.learnpack-vscode + + github: prebuilds: # enable for the master/default branch (defaults to true) @@ -15,4 +18,4 @@ github: # enable for pull requests coming from this repo (defaults to true) pullRequests: false # add a "Review in Gitpod" button as a comment to pull requests (defaults to true) - addComment: false \ No newline at end of file + addComment: false diff --git a/.learn/assets/.gitkeep b/.learn/assets/.gitkeep new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/.learn/assets/.gitkeep @@ -0,0 +1 @@ + diff --git a/.learn/assets/01-1.png b/.learn/assets/01-1.png new file mode 100644 index 00000000..178a8f27 Binary files /dev/null and b/.learn/assets/01-1.png differ diff --git a/.learn/assets/01.1-1.png b/.learn/assets/01.1-1.png new file mode 100644 index 00000000..b388b43d Binary files /dev/null and b/.learn/assets/01.1-1.png differ diff --git a/.learn/assets/04.2-1.png b/.learn/assets/04.2-1.png new file mode 100644 index 00000000..9ca0b795 Binary files /dev/null and b/.learn/assets/04.2-1.png differ diff --git a/.learn/assets/06-1.png b/.learn/assets/06-1.png new file mode 100644 index 00000000..0a1f92f0 Binary files /dev/null and b/.learn/assets/06-1.png differ diff --git a/.learn/assets/07-1.png b/.learn/assets/07-1.png new file mode 100644 index 00000000..807096b4 Binary files /dev/null and b/.learn/assets/07-1.png differ diff --git a/.learn/assets/08-1.png b/.learn/assets/08-1.png new file mode 100644 index 00000000..ef0e0e3d Binary files /dev/null and b/.learn/assets/08-1.png differ diff --git a/.learn/assets/09-1.png b/.learn/assets/09-1.png new file mode 100644 index 00000000..0ef19181 Binary files /dev/null and b/.learn/assets/09-1.png differ diff --git a/.learn/assets/12-1.png b/.learn/assets/12-1.png new file mode 100644 index 00000000..d576f3cf Binary files /dev/null and b/.learn/assets/12-1.png differ diff --git a/.learn/assets/12-2.png b/.learn/assets/12-2.png new file mode 100644 index 00000000..d576f3cf Binary files /dev/null and b/.learn/assets/12-2.png differ diff --git a/.learn/assets/13-1.gif b/.learn/assets/13-1.gif new file mode 100644 index 00000000..aae9b7fa Binary files /dev/null and b/.learn/assets/13-1.gif differ diff --git a/.learn/assets/4geeks-icon-blue.png b/.learn/assets/4geeks-icon-blue.png new file mode 100644 index 00000000..6dbdabee Binary files /dev/null and b/.learn/assets/4geeks-icon-blue.png differ diff --git a/.learn/assets/baby.jpg b/.learn/assets/baby.jpg new file mode 100644 index 00000000..4f95e378 Binary files /dev/null and b/.learn/assets/baby.jpg differ diff --git a/.learn/assets/background-vertical.jpg b/.learn/assets/background-vertical.jpg new file mode 100644 index 00000000..c84f79d3 Binary files /dev/null and b/.learn/assets/background-vertical.jpg differ diff --git a/.learn/assets/einstein.png b/.learn/assets/einstein.png new file mode 100644 index 00000000..e0681fd0 Binary files /dev/null and b/.learn/assets/einstein.png differ diff --git a/.learn/assets/logo.ico b/.learn/assets/logo.ico new file mode 100644 index 00000000..3583e2a9 Binary files /dev/null and b/.learn/assets/logo.ico differ diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..2f5ad94d --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,8 @@ +{ + "files.autoSave": "afterDelay", + "files.autoSaveDelay": 700, + "editor.minimap.enabled": false, + "workbench.editorAssociations": { + "*.md": "vscode.markdown.preview.editor" + } +} \ No newline at end of file diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 00000000..c99614be --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,14 @@ +## TERMS & CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +By accessing Breathe Code we assume you accept these terms and conditions. Do not continue to use Breathe Code's content, applications or tutorials if you do not agree to take all of the terms and conditions stated on this page. + +Unless otherwise stated, Breathe Code and/or its licensors own the intellectual property rights for all material on Breathe Code. All intellectual property rights are reserved. You may access this from Breathe Code for your own personal use subjected to restrictions set in these terms and conditions. + +You must not: + +* Republish material from Breathe Code +* Sell, rent or sub-license material from Breathe Code +* Reproduce, duplicate or copy material from Breathe Code +* Redistribute content from Breathe Code + +You can read the full version of Breathe Code's terms and conditions here: [Terms and Conditions](http://breatheco.de/terms-and-conditions) diff --git a/README.es.md b/README.es.md new file mode 100644 index 00000000..23cb7b39 --- /dev/null +++ b/README.es.md @@ -0,0 +1,100 @@ +# Tutorial de Ejercicios de CSS de 4Geeks Academy + +
![]() |
+
+ |
+