├── .gitignore ├── README.md ├── package-lock.json ├── package.json ├── public ├── favicon.ico ├── index.html ├── logo192.png ├── logo512.png ├── manifest.json └── robots.txt └── src ├── App.css ├── App.js ├── componentes └── Testimonio.js ├── hojas-de-estilo └── Testimonio.css ├── imagenes ├── testimonio-emma.png ├── testimonio-sarah.png └── testimonio-shawn.png ├── index.css ├── index.js └── logo.svg /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | # 📌 Testimonios freeCodeCamp 3 | 4 | ¡Hola! Esta es una aplicación desarrollada con React que representa un clon de la sección de Testimonios de estudiantes de [freeCodeCamp](https://www.freecodecamp.org/espanol/). 5 | 6 | Esta aplicación fue creada por [Estefania Cassingena Navone](https://twitter.com/EstefaniaCassN) para el curso Aprende React Desde Cero publicado en el canal de YouTube [freeCodeCamp Español](https://www.youtube.com/freecodecampespanol). Su estructura inicial fue creada con el comando `npx create-react-app`. 7 | 8 | ## Ejecutar la Aplicación 9 | Para iniciar la aplicación, debes ejecutar el comando `npm start` en el terminal. Si trabajas con Visual Studio Code, puedes abrir el terminal con el atajo de teclado `ctrl + ñ` si tu teclado está en español y con ```ctrl + ` ``` si tu teclado está en inglés. 10 | 11 | La aplicación se abrirá automáticamente en el navegador configurado por defecto en tu dispositivo y se ejecutará en `localhost:3000`. 12 | 13 | ## Instalar Módulos 14 | Para instalar los módulos necesarios para la aplicación, debes ejecutar el comando `npm install` en el terminal. 15 | 16 | ## Aprende React 17 | Si deseas aprender React, te invitamos a tomar nuestro [curso gratuito de React (8 horas)](https://www.youtube.com/watch?v=6Jfk8ic3KVk) en el canal de YouTube de freeCodeCamp en Español. 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "testimonios-freecodecamp", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "@testing-library/jest-dom": "^5.16.2", 7 | "@testing-library/react": "^12.1.2", 8 | "@testing-library/user-event": "^13.5.0", 9 | "react": "^17.0.2", 10 | "react-dom": "^17.0.2", 11 | "react-scripts": "5.0.0", 12 | "web-vitals": "^2.1.4" 13 | }, 14 | "scripts": { 15 | "start": "react-scripts start", 16 | "build": "react-scripts build", 17 | "test": "react-scripts test", 18 | "eject": "react-scripts eject" 19 | }, 20 | "eslintConfig": { 21 | "extends": [ 22 | "react-app", 23 | "react-app/jest" 24 | ] 25 | }, 26 | "browserslist": { 27 | "production": [ 28 | ">0.2%", 29 | "not dead", 30 | "not op_mini all" 31 | ], 32 | "development": [ 33 | "last 1 chrome version", 34 | "last 1 firefox version", 35 | "last 1 safari version" 36 | ] 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/estefaniacn/testimonios-freecodecamp/5db1411bf8877259a8f1df8a5f25ef911f8f072f/public/favicon.ico -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 13 | 17 | 18 | 27 | React App 28 | 29 | 30 | 31 |
32 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/estefaniacn/testimonios-freecodecamp/5db1411bf8877259a8f1df8a5f25ef911f8f072f/public/logo192.png -------------------------------------------------------------------------------- /public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/estefaniacn/testimonios-freecodecamp/5db1411bf8877259a8f1df8a5f25ef911f8f072f/public/logo512.png -------------------------------------------------------------------------------- /public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | }, 10 | { 11 | "src": "logo192.png", 12 | "type": "image/png", 13 | "sizes": "192x192" 14 | }, 15 | { 16 | "src": "logo512.png", 17 | "type": "image/png", 18 | "sizes": "512x512" 19 | } 20 | ], 21 | "start_url": ".", 22 | "display": "standalone", 23 | "theme_color": "#000000", 24 | "background_color": "#ffffff" 25 | } 26 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /src/App.css: -------------------------------------------------------------------------------- 1 | * { 2 | margin: 0; 3 | padding: 0; 4 | } 5 | 6 | html, 7 | body { 8 | font-size: 18px; 9 | background-color: #f5f6f7; 10 | } 11 | 12 | h1 { 13 | max-width: 940px; 14 | font-size: 2.5em; 15 | font-family: Lato, sans-serif; 16 | font-weight: 700; 17 | line-height: 1.1; 18 | margin: 40px 0; 19 | } 20 | 21 | .App { 22 | min-height: 100vh; 23 | display: flex; 24 | flex-wrap: wrap; 25 | align-items: center; 26 | justify-content: center; 27 | text-align: center; 28 | } 29 | 30 | .contenedor-principal { 31 | min-height: 600px; 32 | display: flex; 33 | flex-wrap: wrap; 34 | align-items: center; 35 | justify-content: center; 36 | } 37 | 38 | -------------------------------------------------------------------------------- /src/App.js: -------------------------------------------------------------------------------- 1 | import './App.css'; 2 | import Testimonio from './componentes/Testimonio'; 3 | 4 | function App() { 5 | return ( 6 |
7 |
8 |

Esto es lo que dicen nuestros alumnos sobre freeCodeCamp:

9 | 16 | 23 | 30 |
31 |
32 | ); 33 | } 34 | 35 | export default App; 36 | -------------------------------------------------------------------------------- /src/componentes/Testimonio.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import '../hojas-de-estilo/Testimonio.css'; 3 | 4 | function Testimonio(props) { 5 | return ( 6 |
7 | Foto de Emma 11 |
12 |

13 | {props.nombre} en {props.pais} 14 |

15 |

16 | {props.cargo} en {props.empresa} 17 |

18 |

"{props.testimonio}"

19 |
20 |
21 | ); 22 | } 23 | 24 | export default Testimonio; -------------------------------------------------------------------------------- /src/hojas-de-estilo/Testimonio.css: -------------------------------------------------------------------------------- 1 | .contenedor-testimonio { 2 | width: 1170px; 3 | height: 368px; 4 | margin: 10px 10px 50px; 5 | display: flex; 6 | align-items: center; 7 | justify-content: center; 8 | background-color: #ffffff; 9 | box-shadow: 0 3px 13px 1px rgb(0 0 0 / 9%); 10 | } 11 | 12 | .imagen-testimonio { 13 | height: 100%; 14 | width: auto; 15 | } 16 | 17 | .contenedor-texto-testimonio { 18 | text-align: center; 19 | padding: 40px; 20 | font-family: Lato, sans-serif; 21 | font-weight: 400; 22 | line-height: 1.5rem; 23 | } 24 | 25 | .nombre-testimonio { 26 | font-size: 1.3rem; 27 | } 28 | 29 | .cargo-testimonio { 30 | font-size: 1.3rem; 31 | margin-top: 15px; 32 | padding-bottom: 30px; 33 | } 34 | 35 | .texto-testimonio { 36 | font-size: 1.1rem; 37 | text-align: justify; 38 | } 39 | 40 | 41 | -------------------------------------------------------------------------------- /src/imagenes/testimonio-emma.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/estefaniacn/testimonios-freecodecamp/5db1411bf8877259a8f1df8a5f25ef911f8f072f/src/imagenes/testimonio-emma.png -------------------------------------------------------------------------------- /src/imagenes/testimonio-sarah.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/estefaniacn/testimonios-freecodecamp/5db1411bf8877259a8f1df8a5f25ef911f8f072f/src/imagenes/testimonio-sarah.png -------------------------------------------------------------------------------- /src/imagenes/testimonio-shawn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/estefaniacn/testimonios-freecodecamp/5db1411bf8877259a8f1df8a5f25ef911f8f072f/src/imagenes/testimonio-shawn.png -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 5 | sans-serif; 6 | -webkit-font-smoothing: antialiased; 7 | -moz-osx-font-smoothing: grayscale; 8 | } 9 | 10 | code { 11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', 12 | monospace; 13 | } 14 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import './index.css'; 4 | import App from './App'; 5 | 6 | ReactDOM.render( 7 | 8 | 9 | , 10 | document.getElementById('root') 11 | ); 12 | -------------------------------------------------------------------------------- /src/logo.svg: -------------------------------------------------------------------------------- 1 | --------------------------------------------------------------------------------