Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calebe liberio #22

Open
wants to merge 37 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
f888cb4
initial application
calebe208 Nov 20, 2021
e288fe6
Create table
calebe208 Nov 20, 2021
ab1cae3
Create base api connection
calebe208 Nov 20, 2021
cb11425
Create repository with route people
calebe208 Nov 20, 2021
918a761
Create object People
calebe208 Nov 20, 2021
8eab954
Create service get people
calebe208 Nov 20, 2021
3908daf
Create component title
calebe208 Nov 20, 2021
06e64ee
Change include component title
calebe208 Nov 20, 2021
7f131e7
Change add api data to the table
calebe208 Nov 20, 2021
3614c26
Create style title
calebe208 Nov 20, 2021
8ddf440
Include dependencies
calebe208 Nov 20, 2021
9823fa5
Table change taking data from the api
calebe208 Nov 20, 2021
b10ba25
Create repository species
calebe208 Nov 21, 2021
08529eb
Create object species
calebe208 Nov 21, 2021
8f0081e
Change include attributes people
calebe208 Nov 21, 2021
ee7eb5f
Change include attributes service people
calebe208 Nov 21, 2021
6d0a3ed
Create services species
calebe208 Nov 21, 2021
45e4592
Change estilization table
calebe208 Nov 21, 2021
f6a6c1c
Change configure table and species retrieval
calebe208 Nov 21, 2021
eccc751
Change estilization title and background
calebe208 Nov 21, 2021
3a4f516
Change import style
calebe208 Nov 21, 2021
85e0c25
Create assets image
calebe208 Nov 21, 2021
3c6ef4b
Change text title
calebe208 Nov 21, 2021
8aeee65
Change remove estilization
calebe208 Nov 21, 2021
3e7944e
Include dependencies
calebe208 Nov 21, 2021
f4ea134
Create planets services
calebe208 Nov 23, 2021
d88bd77
Change people services
calebe208 Nov 23, 2021
8dce45b
Create films services
calebe208 Nov 23, 2021
7a5830d
Create planets Repository
calebe208 Nov 23, 2021
45280bc
Create films Repository
calebe208 Nov 23, 2021
e1f3954
Create planets object
calebe208 Nov 23, 2021
58f4c94
Change people object
calebe208 Nov 23, 2021
21b4f78
Create films object
calebe208 Nov 23, 2021
cfda9f2
Change estilization select
calebe208 Nov 23, 2021
99b85d6
Change people attributes
calebe208 Nov 23, 2021
43dc353
Change size background
calebe208 Nov 23, 2021
7f99f7f
Config readme
calebe208 Nov 23, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
25 changes: 25 additions & 0 deletions app/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<p >
<a href="#objetivo">Teste técnico</a> •
<a href="#tecnologias">Tecnologias: JavaScript, React</a> •
<a href="#autor">Autor: Calebe Libério</a>
</p>

### Pré-requisitos

Antes de começar, você vai precisar ter instalado em sua máquina as seguintes ferramentas:
[Git](https://git-scm.com)
Além disto é bom ter um editor para trabalhar com o código como [VSCode](https://code.visualstudio.com/)

# Instale as dependências

$ yarn install

# Execute a aplicação em modo de desenvolvimento

$ yarn start

# A aplicação inciará na porta:3000 - acesse <http://localhost:3000/>

```

```
46 changes: 46 additions & 0 deletions app/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"name": "app",
"version": "0.1.0",
"private": true,
"dependencies": {
"@emotion/react": "^11.6.0",
"@emotion/styled": "^11.6.0",
"@material-table/core": "^4.3.11",
"@material-ui/core": "^4.12.3",
"@material-ui/icons": "^4.11.2",
"@material-ui/styles": "^4.11.4",
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"axios": "^0.24.0",
"material-ui-search-bar": "^1.0.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-scripts": "4.0.3",
"web-vitals": "^1.0.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
Binary file added app/public/favicon.ico
Binary file not shown.
43 changes: 43 additions & 0 deletions app/public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
Binary file added app/public/logo192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/public/logo512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions app/public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
3 changes: 3 additions & 0 deletions app/public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
3 changes: 3 additions & 0 deletions app/src/App.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.App {
text-align: center;
}
14 changes: 14 additions & 0 deletions app/src/App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import "./App.css";
import CollapsibleTable from "./components/table";
import Title from "./components/h1";

function App() {
return (
<div className="App">
<Title msg="Star Wars | Characters" />
<CollapsibleTable />
</div>
);
}

export default App;
Binary file added app/src/assets/star-wars-backgrounds-08.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions app/src/components/h1/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import React from "react";
import "./style.css";

const Title = ({ msg }) => <h1 className="config-title">{msg}</h1>;
export default Title;
24 changes: 24 additions & 0 deletions app/src/components/h1/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.config-title {
font-family: Baskerville, Times, "Times New Roman", serif;
color: rgb(192, 186, 186);
font-variant: small-caps;
text-align: center;
font-weight: bold;
padding: 15px 0px 15px 0px;
margin: 0px;
background-image: url("../../assets/star-wars-backgrounds-08.jpg");
background-size: 50%;
}

@media screen and (max-width: 600px) {
.config-title {
font-size: 30px;
background-size: 95%;
}
}

@media screen and (min-width: 601px) {
.config-title {
font-size: 80px;
}
}
Loading