├── .gitignore ├── README.md ├── package-lock.json ├── package.json ├── public ├── favicon.ico ├── imagens │ ├── banner.png │ ├── btn-icone.png │ ├── facebook.png │ ├── fundo.png │ ├── instagram.png │ ├── logo.png │ └── twitter.png ├── index.html ├── logo192.png ├── logo512.png ├── manifest.json └── robots.txt └── src ├── App.js ├── componentes ├── Banner │ ├── banner.css │ └── index.js ├── Botao │ ├── botao.css │ └── index.js ├── CampoTexto │ ├── campo-texto.css │ └── index.js ├── Colaborador │ ├── colaborador.css │ └── index.js ├── Formulario │ ├── formulario.css │ └── index.js ├── ListaSuspensa │ ├── index.js │ └── lista-suspensa.css ├── Rodape │ ├── index.js │ └── rodape.css └── Time │ ├── index.js │ └── time.css ├── index.css ├── index.js └── setupTests.js /.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 | # Getting Started with Create React App 2 | 3 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). 4 | 5 | ## Available Scripts 6 | 7 | In the project directory, you can run: 8 | 9 | ### `npm start` 10 | 11 | Runs the app in the development mode.\ 12 | Open [http://localhost:3000](http://localhost:3000) to view it in your browser. 13 | 14 | The page will reload when you make changes.\ 15 | You may also see any lint errors in the console. 16 | 17 | ### `npm test` 18 | 19 | Launches the test runner in the interactive watch mode.\ 20 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. 21 | 22 | ### `npm run build` 23 | 24 | Builds the app for production to the `build` folder.\ 25 | It correctly bundles React in production mode and optimizes the build for the best performance. 26 | 27 | The build is minified and the filenames include the hashes.\ 28 | Your app is ready to be deployed! 29 | 30 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. 31 | 32 | ### `npm run eject` 33 | 34 | **Note: this is a one-way operation. Once you `eject`, you can't go back!** 35 | 36 | If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. 37 | 38 | Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own. 39 | 40 | You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it. 41 | 42 | ## Learn More 43 | 44 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). 45 | 46 | To learn React, check out the [React documentation](https://reactjs.org/). 47 | 48 | ### Code Splitting 49 | 50 | This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting) 51 | 52 | ### Analyzing the Bundle Size 53 | 54 | This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size) 55 | 56 | ### Making a Progressive Web App 57 | 58 | This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app) 59 | 60 | ### Advanced Configuration 61 | 62 | This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration) 63 | 64 | ### Deployment 65 | 66 | This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment) 67 | 68 | ### `npm run build` fails to minify 69 | 70 | This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify) 71 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "organo", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "@testing-library/jest-dom": "^5.16.4", 7 | "@testing-library/react": "^13.2.0", 8 | "@testing-library/user-event": "^13.5.0", 9 | "react": "^18.1.0", 10 | "react-dom": "^18.1.0", 11 | "react-scripts": "5.0.1", 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/alura-cursos/react-componentes-funcionam/54b1440e7b83a00cf29263e213e3932117549f6d/public/favicon.ico -------------------------------------------------------------------------------- /public/imagens/banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alura-cursos/react-componentes-funcionam/54b1440e7b83a00cf29263e213e3932117549f6d/public/imagens/banner.png -------------------------------------------------------------------------------- /public/imagens/btn-icone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alura-cursos/react-componentes-funcionam/54b1440e7b83a00cf29263e213e3932117549f6d/public/imagens/btn-icone.png -------------------------------------------------------------------------------- /public/imagens/facebook.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alura-cursos/react-componentes-funcionam/54b1440e7b83a00cf29263e213e3932117549f6d/public/imagens/facebook.png -------------------------------------------------------------------------------- /public/imagens/fundo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alura-cursos/react-componentes-funcionam/54b1440e7b83a00cf29263e213e3932117549f6d/public/imagens/fundo.png -------------------------------------------------------------------------------- /public/imagens/instagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alura-cursos/react-componentes-funcionam/54b1440e7b83a00cf29263e213e3932117549f6d/public/imagens/instagram.png -------------------------------------------------------------------------------- /public/imagens/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alura-cursos/react-componentes-funcionam/54b1440e7b83a00cf29263e213e3932117549f6d/public/imagens/logo.png -------------------------------------------------------------------------------- /public/imagens/twitter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alura-cursos/react-componentes-funcionam/54b1440e7b83a00cf29263e213e3932117549f6d/public/imagens/twitter.png -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | Organo 19 | 20 | 21 | 22 |
23 | 24 | 25 | -------------------------------------------------------------------------------- /public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alura-cursos/react-componentes-funcionam/54b1440e7b83a00cf29263e213e3932117549f6d/public/logo192.png -------------------------------------------------------------------------------- /public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alura-cursos/react-componentes-funcionam/54b1440e7b83a00cf29263e213e3932117549f6d/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.js: -------------------------------------------------------------------------------- 1 | import { useState } from "react"; 2 | import Banner from "./componentes/Banner"; 3 | import Formulario from "./componentes/Formulario"; 4 | import Rodape from "./componentes/Rodape"; 5 | import Time from "./componentes/Time"; 6 | 7 | function App() { 8 | 9 | const times = [ 10 | { 11 | nome: 'Programação', 12 | corPrimaria: '#D9F7E9', 13 | corSecundaria: '#57C278' 14 | }, 15 | { 16 | nome: 'Front-End', 17 | corPrimaria: '#E8F8FF', 18 | corSecundaria: '#82CFFA' 19 | }, 20 | { 21 | nome: 'Data Science', 22 | corPrimaria: '#F0F8E2', 23 | corSecundaria: '#A6D157' 24 | }, 25 | { 26 | nome: 'Devops', 27 | corPrimaria: '#FDE7E8', 28 | corSecundaria: '#E06B69' 29 | }, 30 | { 31 | nome: 'UX e Design', 32 | corPrimaria: '#FAE9F5', 33 | corSecundaria: '#DB6EBF' 34 | }, 35 | { 36 | nome: 'Mobile', 37 | corPrimaria: '#FFF5D9', 38 | corSecundaria: '#FFBA05' 39 | }, 40 | { 41 | nome: 'Inovação e Gestão', 42 | corPrimaria: '#FFEEDF', 43 | corSecundaria: '#FF8A29' 44 | }, 45 | ] 46 | 47 | const inicial = [ 48 | { 49 | nome: 'JULIANA AMOASEI', 50 | cargo: 'Desenvolvedora de software e instrutora', 51 | imagem: 'https://www.alura.com.br/assets/img/lideres/juliana-amoasei.1647533644.jpeg', 52 | time: times[0].nome 53 | }, 54 | { 55 | nome: 'DANIEL ARTINE', 56 | cargo: 'Engenheiro de Software na Stone Age', 57 | imagem: 'https://www.alura.com.br/assets/img/lideres/daniel-artine.1647533644.jpeg', 58 | time: times[0].nome 59 | }, 60 | { 61 | nome: 'GUILHERME LIMA', 62 | cargo: 'Desenvolvedor Python e JavaScript na Alura', 63 | imagem: ' https://www.alura.com.br/assets/img/lideres/guilherme-lima.1647533644.jpeg', 64 | time: times[0].nome 65 | }, 66 | { 67 | nome: 'PAULO SILVEIRA', 68 | cargo: 'Hipster e CEO da Alura', 69 | imagem: 'https://www.alura.com.br/assets/img/lideres/paulo-silveira.1647533644.jpeg', 70 | time: times[0].nome 71 | }, 72 | { 73 | nome: 'JULIANA AMOASEI', 74 | cargo: 'Desenvolvedora de software e instrutora', 75 | imagem: 'https://www.alura.com.br/assets/img/lideres/juliana-amoasei.1647533644.jpeg', 76 | time: times[1].nome 77 | }, 78 | { 79 | nome: 'DANIEL ARTINE', 80 | cargo: 'Engenheiro de Software na Stone Age', 81 | imagem: 'https://www.alura.com.br/assets/img/lideres/daniel-artine.1647533644.jpeg', 82 | time: times[1].nome 83 | }, 84 | { 85 | nome: 'GUILHERME LIMA', 86 | cargo: 'Desenvolvedor Python e JavaScript na Alura', 87 | imagem: ' https://www.alura.com.br/assets/img/lideres/guilherme-lima.1647533644.jpeg', 88 | time: times[1].nome 89 | }, 90 | { 91 | nome: 'PAULO SILVEIRA', 92 | cargo: 'Hipster e CEO da Alura', 93 | imagem: 'https://www.alura.com.br/assets/img/lideres/paulo-silveira.1647533644.jpeg', 94 | time: times[1].nome 95 | }, 96 | { 97 | nome: 'JULIANA AMOASEI', 98 | cargo: 'Desenvolvedora de software e instrutora', 99 | imagem: 'https://www.alura.com.br/assets/img/lideres/juliana-amoasei.1647533644.jpeg', 100 | time: times[2].nome 101 | }, 102 | { 103 | nome: 'DANIEL ARTINE', 104 | cargo: 'Engenheiro de Software na Stone Age', 105 | imagem: 'https://www.alura.com.br/assets/img/lideres/daniel-artine.1647533644.jpeg', 106 | time: times[2].nome 107 | }, 108 | { 109 | nome: 'GUILHERME LIMA', 110 | cargo: 'Desenvolvedor Python e JavaScript na Alura', 111 | imagem: ' https://www.alura.com.br/assets/img/lideres/guilherme-lima.1647533644.jpeg', 112 | time: times[2].nome 113 | }, 114 | { 115 | nome: 'PAULO SILVEIRA', 116 | cargo: 'Hipster e CEO da Alura', 117 | imagem: 'https://www.alura.com.br/assets/img/lideres/paulo-silveira.1647533644.jpeg', 118 | time: times[2].nome 119 | }, 120 | { 121 | nome: 'JULIANA AMOASEI', 122 | cargo: 'Desenvolvedora de software e instrutora', 123 | imagem: 'https://www.alura.com.br/assets/img/lideres/juliana-amoasei.1647533644.jpeg', 124 | time: times[3].nome 125 | }, 126 | { 127 | nome: 'DANIEL ARTINE', 128 | cargo: 'Engenheiro de Software na Stone Age', 129 | imagem: 'https://www.alura.com.br/assets/img/lideres/daniel-artine.1647533644.jpeg', 130 | time: times[3].nome 131 | }, 132 | { 133 | nome: 'GUILHERME LIMA', 134 | cargo: 'Desenvolvedor Python e JavaScript na Alura', 135 | imagem: ' https://www.alura.com.br/assets/img/lideres/guilherme-lima.1647533644.jpeg', 136 | time: times[3].nome 137 | }, 138 | { 139 | nome: 'PAULO SILVEIRA', 140 | cargo: 'Hipster e CEO da Alura', 141 | imagem: 'https://www.alura.com.br/assets/img/lideres/paulo-silveira.1647533644.jpeg', 142 | time: times[3].nome 143 | }, 144 | { 145 | nome: 'JULIANA AMOASEI', 146 | cargo: 'Desenvolvedora de software e instrutora', 147 | imagem: 'https://www.alura.com.br/assets/img/lideres/juliana-amoasei.1647533644.jpeg', 148 | time: times[4].nome 149 | }, 150 | { 151 | nome: 'DANIEL ARTINE', 152 | cargo: 'Engenheiro de Software na Stone Age', 153 | imagem: 'https://www.alura.com.br/assets/img/lideres/daniel-artine.1647533644.jpeg', 154 | time: times[4].nome 155 | }, 156 | { 157 | nome: 'GUILHERME LIMA', 158 | cargo: 'Desenvolvedor Python e JavaScript na Alura', 159 | imagem: ' https://www.alura.com.br/assets/img/lideres/guilherme-lima.1647533644.jpeg', 160 | time: times[4].nome 161 | }, 162 | { 163 | nome: 'PAULO SILVEIRA', 164 | cargo: 'Hipster e CEO da Alura', 165 | imagem: 'https://www.alura.com.br/assets/img/lideres/paulo-silveira.1647533644.jpeg', 166 | time: times[4].nome 167 | }, 168 | { 169 | nome: 'JULIANA AMOASEI', 170 | cargo: 'Desenvolvedora de software e instrutora', 171 | imagem: 'https://www.alura.com.br/assets/img/lideres/juliana-amoasei.1647533644.jpeg', 172 | time: times[5].nome 173 | }, 174 | { 175 | nome: 'DANIEL ARTINE', 176 | cargo: 'Engenheiro de Software na Stone Age', 177 | imagem: 'https://www.alura.com.br/assets/img/lideres/daniel-artine.1647533644.jpeg', 178 | time: times[5].nome 179 | }, 180 | { 181 | nome: 'GUILHERME LIMA', 182 | cargo: 'Desenvolvedor Python e JavaScript na Alura', 183 | imagem: ' https://www.alura.com.br/assets/img/lideres/guilherme-lima.1647533644.jpeg', 184 | time: times[5].nome 185 | }, 186 | { 187 | nome: 'PAULO SILVEIRA', 188 | cargo: 'Hipster e CEO da Alura', 189 | imagem: 'https://www.alura.com.br/assets/img/lideres/paulo-silveira.1647533644.jpeg', 190 | time: times[5].nome 191 | }, 192 | ] 193 | 194 | const [colaboradores, setColaboradores] = useState(inicial) 195 | 196 | 197 | return ( 198 |
199 | 200 | time.nome)} aoCadastrar={colaborador => setColaboradores([...colaboradores, colaborador])} /> 201 |
202 |

Minha organização

203 | {times.map((time, indice) =>
205 | 206 |
207 | ); 208 | } 209 | 210 | export default App; 211 | -------------------------------------------------------------------------------- /src/componentes/Banner/banner.css: -------------------------------------------------------------------------------- 1 | .cabecalho { 2 | background-color: #6278F7; 3 | text-align: center; 4 | } 5 | .cabecalho img { 6 | max-width: 100%; 7 | } -------------------------------------------------------------------------------- /src/componentes/Banner/index.js: -------------------------------------------------------------------------------- 1 | import './banner.css' 2 | 3 | const Banner = () => { 4 | return (
5 | Logo do Organo 6 |
) 7 | } 8 | 9 | export default Banner -------------------------------------------------------------------------------- /src/componentes/Botao/botao.css: -------------------------------------------------------------------------------- 1 | .botao { 2 | background: #6278F7; 3 | border-radius: 10px; 4 | font-weight: 700; 5 | font-size: 18px; 6 | padding: 32px; 7 | color: #FFF; 8 | cursor: pointer; 9 | font-weight: bold; 10 | border: none; 11 | } 12 | 13 | .botao:hover { 14 | color: #95FFD4; 15 | } -------------------------------------------------------------------------------- /src/componentes/Botao/index.js: -------------------------------------------------------------------------------- 1 | import './botao.css' 2 | 3 | const Botao = ({texto}) => { 4 | return 7 | } 8 | 9 | export default Botao -------------------------------------------------------------------------------- /src/componentes/CampoTexto/campo-texto.css: -------------------------------------------------------------------------------- 1 | .campo-texto { 2 | margin: 24px 0; 3 | } 4 | 5 | .campo-texto label { 6 | display: block; 7 | margin-bottom: 8px; 8 | font-size: 24px; 9 | } 10 | 11 | .campo-texto input { 12 | background: #FFFFFF; 13 | box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.06); 14 | border-radius: 0px; 15 | width: 100%; 16 | border: none; 17 | font-size: 24px; 18 | padding: 24px; 19 | box-sizing: border-box; 20 | } -------------------------------------------------------------------------------- /src/componentes/CampoTexto/index.js: -------------------------------------------------------------------------------- 1 | import './campo-texto.css' 2 | 3 | const CampoTexto = ({ label, placeholder, valor, aoAlterado, obrigatorio = false }) => { 4 | return (
5 | 6 | aoAlterado(evento.target.value)} required={obrigatorio} placeholder={placeholder}/> 7 |
) 8 | } 9 | 10 | export default CampoTexto -------------------------------------------------------------------------------- /src/componentes/Colaborador/colaborador.css: -------------------------------------------------------------------------------- 1 | .colaborador { 2 | width: 280px; 3 | } 4 | 5 | .colaborador .cabecalho { 6 | background-color: #F0F0F0; 7 | border-radius: 10px 10px 0px 0px; 8 | } 9 | .colaborador img { 10 | width: 100px; 11 | border-radius: 50%; 12 | position: relative; 13 | bottom: -50px; 14 | } 15 | 16 | .colaborador .rodape { 17 | background: #FFFFFF; 18 | box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.08); 19 | border-radius: 0px 0px 10px 10px; 20 | padding-top: 90px; 21 | padding-bottom: 40px; 22 | } 23 | 24 | .colaborador .rodape h4 { 25 | color: #6278F7; 26 | font-size: 18px; 27 | line-height: 22px; 28 | font-weight: bold; 29 | margin-bottom: 8px; 30 | } 31 | 32 | .colaborador .rodape h5 { 33 | font-size: 18px; 34 | line-height: 22px; 35 | color: #212121; 36 | padding: 0 16px; 37 | } -------------------------------------------------------------------------------- /src/componentes/Colaborador/index.js: -------------------------------------------------------------------------------- 1 | import './colaborador.css' 2 | 3 | const Colaborador = ({ colaborador, corDeFundo }) => { 4 | return (
5 |
6 | {colaborador.nome} 7 |
8 |
9 |

{colaborador.nome}

10 |
{colaborador.cargo}
11 |
12 |
) 13 | } 14 | 15 | export default Colaborador -------------------------------------------------------------------------------- /src/componentes/Formulario/formulario.css: -------------------------------------------------------------------------------- 1 | .formulario-container { 2 | display: flex; 3 | justify-content: center; 4 | margin: 80px 0; 5 | 6 | } 7 | .formulario-container .formulario { 8 | max-width: 80%; 9 | background: #F7F7F7; 10 | box-shadow: 7px 7px 15px rgba(0, 0, 0, 0.08); 11 | border-radius: 20px; 12 | padding: 36px 64px; 13 | } 14 | .formulario-container .formulario h2 { 15 | font-weight: 400; 16 | font-size: 32px; 17 | } -------------------------------------------------------------------------------- /src/componentes/Formulario/index.js: -------------------------------------------------------------------------------- 1 | import { useState } from 'react' 2 | import Botao from '../Botao' 3 | import CampoTexto from '../CampoTexto' 4 | import ListaSuspensa from '../ListaSuspensa' 5 | import './formulario.css' 6 | 7 | const Formulario = ({aoCadastrar, times}) => { 8 | 9 | const [nome, setNome] = useState('') 10 | const [cargo, setCargo] = useState('') 11 | const [imagem, setImagem] = useState('') 12 | const [time, setTime] = useState('') 13 | 14 | const aoSubmeter = (evento) => { 15 | evento.preventDefault() 16 | console.log('form enviado', nome, cargo, imagem, time ) 17 | aoCadastrar({ 18 | nome, 19 | cargo, 20 | imagem, 21 | time 22 | }) 23 | } 24 | 25 | return ( 26 |
27 |
28 |

Preencha os dados para criar o card do colaborador.

29 | setNome(valor)}/> 35 | setCargo(valor)}/> 41 | setImagem(valor)}/> 45 | setTime(valor)}/> 51 | 52 | 53 |
54 | ) 55 | } 56 | 57 | export default Formulario -------------------------------------------------------------------------------- /src/componentes/ListaSuspensa/index.js: -------------------------------------------------------------------------------- 1 | import './lista-suspensa.css' 2 | 3 | const ListaSuspensa = ({label, items, valor, aoAlterado, obrigatorio = false}) => { 4 | return (
5 | 6 | 10 |
) 11 | } 12 | 13 | export default ListaSuspensa -------------------------------------------------------------------------------- /src/componentes/ListaSuspensa/lista-suspensa.css: -------------------------------------------------------------------------------- 1 | .lista-suspensa { 2 | margin: 24px 0; 3 | } 4 | 5 | .lista-suspensa label { 6 | display: block; 7 | margin-bottom: 8px; 8 | font-size: 24px; 9 | } 10 | .lista-suspensa select { 11 | background: #FFFFFF; 12 | box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.06); 13 | border-radius: 0px; 14 | width: 100%; 15 | border: none; 16 | font-size: 24px; 17 | padding: 24px; 18 | box-sizing: border-box; 19 | } -------------------------------------------------------------------------------- /src/componentes/Rodape/index.js: -------------------------------------------------------------------------------- 1 | 2 | import './rodape.css' 3 | 4 | const Rodape = () => { 5 | return () 34 | } 35 | 36 | export default Rodape -------------------------------------------------------------------------------- /src/componentes/Rodape/rodape.css: -------------------------------------------------------------------------------- 1 | .footer { 2 | background: #6278F7; 3 | color: #FFF; 4 | padding: 80px; 5 | display: flex; 6 | justify-content: space-between; 7 | align-items: center; 8 | } 9 | 10 | .footer ul li { 11 | display: inline-block; 12 | margin-right: 32px; 13 | } 14 | 15 | .footer ul li:last-child { 16 | margin-right: 0; 17 | } -------------------------------------------------------------------------------- /src/componentes/Time/index.js: -------------------------------------------------------------------------------- 1 | import Colaborador from '../Colaborador' 2 | import './time.css' 3 | 4 | const Time = ({ time, colaboradores }) => { 5 | return ( 6 | 7 | colaboradores.length > 0 &&
8 |

{time.nome}

9 |
10 | {colaboradores.map((colaborador, indice) => )} 11 |
12 |
13 | 14 | ) 15 | } 16 | 17 | export default Time -------------------------------------------------------------------------------- /src/componentes/Time/time.css: -------------------------------------------------------------------------------- 1 | .time { 2 | text-align: center; 3 | padding: 32px; 4 | background-blend-mode: multiply; 5 | } 6 | 7 | .time h3 { 8 | font-size: 32px; 9 | font-family: 'Prata'; 10 | border-bottom: 4px solid; 11 | display: inline-block; 12 | padding-bottom: 8px; 13 | } 14 | 15 | .time .colaboradores { 16 | display: flex; 17 | justify-content: space-around; 18 | margin-top: 32px; 19 | flex-wrap: wrap; 20 | } -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 3 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 4 | sans-serif; 5 | -webkit-font-smoothing: antialiased; 6 | -moz-osx-font-smoothing: grayscale; 7 | } 8 | 9 | .times { 10 | text-align: center; 11 | } 12 | 13 | h1 { 14 | font-size: 40px; 15 | color: #6278F7; 16 | border-bottom: 4px solid #6278F7; 17 | display: inline-block; 18 | padding-bottom: 24px; 19 | margin: 32px 0; 20 | } 21 | 22 | h1, h2 { 23 | font-family: 'Prata', serif; 24 | } -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom/client'; 3 | import './index.css'; 4 | import App from './App'; 5 | 6 | const root = ReactDOM.createRoot(document.getElementById('root')); 7 | root.render( 8 | 9 | 10 | 11 | ); 12 | -------------------------------------------------------------------------------- /src/setupTests.js: -------------------------------------------------------------------------------- 1 | // jest-dom adds custom jest matchers for asserting on DOM nodes. 2 | // allows you to do things like: 3 | // expect(element).toHaveTextContent(/react/i) 4 | // learn more: https://github.com/testing-library/jest-dom 5 | import '@testing-library/jest-dom'; 6 | --------------------------------------------------------------------------------