Skip to content
This repository was archived by the owner on Feb 17, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
755 changes: 14 additions & 741 deletions .gitignore

Large diffs are not rendered by default.

11 changes: 0 additions & 11 deletions CHANGELOG.md

This file was deleted.

674 changes: 0 additions & 674 deletions LICENSE

This file was deleted.

22 changes: 3 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,4 @@
# Teste para Analistas Front-end - Ide@l
Rodar Projeto

Este repositório tem como objetivo avaliar habilidades de desenvolvimento front-end para possíveis colaboradores da Ide@l. Ao final do desenvolvimento, por favor, faça um pull request para a gente.

---

A Guepardo é uma empresa de transporte. Para o presente teste, Você tem a missão de escrever a seguinte tela para o seu novo site:

![Modelo de tela](./proposta/assets/modelo.png)

Para fazer o desafio:
- Fork o projeto;
- Crie uma pasta com seu nome, em lowercase, copie todo conteúdo da pasta proposta para dentro da nova pasta com seu nome.
- Crie a tela no arquivo index.html
- Caso deseje, utilize as bibliotecas de sua preferência
- Utilize as fontes: Nova Square e Oxygen para os conteúdos
- Crie os arquivos que achar necessários
- Consuma a API para os clientes enviarem contato pelo site. Para isso, faça uma requisição POST utilizando JSON para a API: http://mockbin.org
- Ao final faça um pull request, se possível squash seus commits em 1 commit, antes de enviar.
- Esperamos que você se divirta e aprenda algo fazendo esse desafio. Se não conseguir algum detalhe, pode nos mandar mesmo assim, que avaliaremos com todo o prazer (e talvez possamos te auxiliar no que faltou).
Npm Install
Npm Start
15,656 changes: 15,656 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "my-app",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-scripts": "4.0.2",
"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"
]
}
}
2 changes: 0 additions & 2 deletions proposta/app.js

This file was deleted.

16 changes: 0 additions & 16 deletions proposta/index.html

This file was deleted.

13 changes: 0 additions & 13 deletions proposta/style.css

This file was deleted.

Binary file added public/favicon.ico
Binary file not shown.
43 changes: 43 additions & 0 deletions 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 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 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 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 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:
38 changes: 38 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
.App {
text-align: center;
}

.App-logo {
height: 40vmin;
pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
}

.App-header {
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
}

.App-link {
color: #61dafb;
}

@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
25 changes: 25 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import logo from './logo.svg';
import './App.css';

function App() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
</div>
);
}

export default App;
9 changes: 9 additions & 0 deletions src/App.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react';
import { render } from '@testing-library/react';
import App from './App';

test('renders learn react link', () => {
const { getByText } = render(<App />);
const linkElement = getByText(/learn react/i);
expect(linkElement).toBeInTheDocument();
});
29 changes: 29 additions & 0 deletions src/Page/Home.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import React from "react";

import Cardd from "../components/Card";
import "./index.css";
import Containerr from "../components/Container";
import logo from "../assets/logo@3x.png";

export default function Home() {
return (
<div>
<nav className='corlogo'>
<div>
<img src={logo} alt='logo' className='logo' />

<button className='botao'>Inicio</button>
<button>Sobre</button>
<button>Serviços</button>
<button>Contato</button>
</div>
</nav>
<Cardd />

<Containerr />
<footer>
<div className='footer'>© 2021 Guepardo Transportes</div>
</footer>
</div>
);
}
51 changes: 51 additions & 0 deletions src/Page/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
@import url("https://fonts.googleapis.com/css2?family=Nova+Square&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Oxygen:wght@300&display=swap");
.body {
font-family: "Nova Square", cursive;
}
.corlogo {
background-color: #ffdf5d;
}
.logo {
width: 20rem;
margin-left: 90px;
padding: 20px;
}
.banner {
width: 100%;
height: 550px;
filter: brightness(30%);
object-fit: cover;
}
.texto {
margin: 50px;
margin-top: 190px;
color: #fff;
}
.row {
margin-top: 130px;
}
.form {
margin-top: 60px;
}
.botao {
margin-left: 800px;
}
button {
border: none;
background-color: #ffdf5d;
cursor: pointer;
padding: 0 25px;
}
.footer {
display: flex;
align-items: center;
justify-content: center;
}
h1,
h2,
h3,
h4,
h5 {
font-family: "Oxygen", sans-serif;
}
15 changes: 15 additions & 0 deletions src/Routes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import React from "react";

import { BrowserRouter as Router, Route } from "react-router-dom";
import Teste from "./Page/Home";
function App() {
return (
<>
<Router>
<Route component={Teste} path='/' exact />
</Router>
</>
);
}

export default App;
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
22 changes: 22 additions & 0 deletions src/components/Card/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import React from "react";
import Card from "react-bootstrap/Card";
import banner from "../../assets/banner.jpg";

export default function Cardd() {
return (
<div>
<Card>
<Card.Img src={banner} alt='Card image' className='banner' />
<Card.ImgOverlay>
<div className='texto'>
<h1>Entregando cargas e sonhos</h1>
<p>
Desde 1980 entregando cargas e fazemos pessoas negocios sorriem e
se realizarem
</p>
</div>
</Card.ImgOverlay>
</Card>
</div>
);
}
Loading