diff --git a/.eslintrc b/.eslintrc index 316d5e03..9ad7912d 100644 --- a/.eslintrc +++ b/.eslintrc @@ -19,7 +19,7 @@ "expect": true, "sinon": true }, - "parser": "babel-eslint", + "parser": "@babel/eslint-parser", "plugins": [ "react", "jsx-a11y", diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f4475713..46cb80d6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,13 +1,20 @@ -name: jest - -on: [pull_request] - +name: Build and Deploy +on: [push] +permissions: + contents: write jobs: - build: + build-and-deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2.4.2 - - name: Install modules - run: yarn - - name: Run tests - run: yarn test + - name: Checkout 🛎️ + uses: actions/checkout@v3 + + - name: Install and Build + run: | + npm ci --force + npm run build + - name: Deploy 🚀 + uses: JamesIves/github-pages-deploy-action@v4 + with: + branch: gh-pages + folder: build \ No newline at end of file diff --git a/PULL_REQUEST_TEMPLATE.md b/PULL_REQUEST_TEMPLATE.md index 67105c53..58575619 100644 --- a/PULL_REQUEST_TEMPLATE.md +++ b/PULL_REQUEST_TEMPLATE.md @@ -1,16 +1,16 @@ ## DESCRIPTION -Solución al reto: +Solución al reto: react-eth-challenge -Nombre: -Usuario Platzi: +Nombre: Rodrigo Ramos Xochiteotzin +Usuario Platzi: rdrx ## Reto: -- [ ] Primer problema -- [ ] Segundo problema -- [ ] Tercer problema -- [ ] Cuarto Problema -- [ ] Quinto Problema -- [ ] Sexto Problema -- [ ] Septimo Problema +- [x] Primer problema +- [x] Segundo problema +- [x] Tercer problema +- [x] Cuarto Problema +- [x] Quinto Problema +- [x] Sexto Problema +- [x] Septimo Problema diff --git a/README.md b/README.md index b0c56618..a533763d 100644 --- a/README.md +++ b/README.md @@ -9,12 +9,19 @@ Crear tu curriculum vitae en React, analiza la estructura propuesta e inspirate ### Retos 1. [Crear los componentes del proyecto](https://github.com/gndx/react-eth-challenge/issues/1) + Cree los componentes solicitados para cada sección del CV 2. [Añadir estilos](https://github.com/gndx/react-eth-challenge/issues/2) + Usé Style-components para estilizar cada componente sin interferir con el resto de las clases. Sólo nombre las clases solicitadas por el testing 3. [Crear función getData.js](https://github.com/gndx/react-eth-challenge/issues/3) + Usé Async/await para resolver las promesas del consumo de la API 4. [Integrar API](https://github.com/gndx/react-eth-challenge/issues/4) + Integré la API y usé desestructuración en los componentes para consumir solo la data que necesito 5. [Personalizar API](https://github.com/gndx/react-eth-challenge/issues/5) + Personalicé la API con la data personal 6. [Documentar](https://github.com/gndx/react-eth-challenge/issues/6) + Agregué en el readme la breve documentación del código 7. [Deploy](https://github.com/gndx/react-eth-challenge/issues/7) + Hice deploy en ghpages ### Instalación diff --git a/build/30642a659fec85b2f851.png b/build/30642a659fec85b2f851.png new file mode 100644 index 00000000..bd207d85 Binary files /dev/null and b/build/30642a659fec85b2f851.png differ diff --git a/build/assets/main.css b/build/assets/main.css new file mode 100644 index 00000000..070b7e56 --- /dev/null +++ b/build/assets/main.css @@ -0,0 +1 @@ +html{margin:0;font-size:62.5%;display:flex;flex-wrap:wrap;justify-content:center;align-items:center}body{background-color:#000;color:#fff;width:80%}@media (min-width:1000px){body{margin-left:5%}}@media (min-width:1200px){body{margin-left:15%}}@media (min-width:1400px){body{margin-left:30%}}@media (min-width:2200px){body{margin-left:35%;font-size:5rem}} diff --git a/build/bundle.js b/build/bundle.js new file mode 100644 index 00000000..1c83f9ee --- /dev/null +++ b/build/bundle.js @@ -0,0 +1,2 @@ +/*! For license information please see bundle.js.LICENSE.txt */ +(()=>{var e={679:(e,t,n)=>{"use strict";var r=n(864),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},l={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function u(e){return r.isMemo(e)?o:i[e.$$typeof]||a}i[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[r.Memo]=o;var s=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var a=p(n);a&&a!==h&&e(t,a,r)}var o=c(n);f&&(o=o.concat(f(n)));for(var i=u(t),m=u(n),g=0;g{"use strict";var r=n(294),a=n(142);function l(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n