-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
187 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,72 @@ | ||
# Rocketseat-Omnistack-10 | ||
<h1 align="center"> | ||
<img alt="DevRadar" title="#delicinha" src=".github/devradar.svg" width="250px" /> | ||
</h1> | ||
|
||
<h4 align="center"> | ||
🚀 OmniStack Week 10.0 | ||
</h4> | ||
<p align="center"> | ||
<img alt="GitHub language count" src="https://img.shields.io/github/languages/count/Rocketseat/semana-omnistack-10"> | ||
|
||
<img alt="Repository size" src="https://img.shields.io/github/repo-size/Rocketseat/semana-omnistack-10"> | ||
|
||
<a href="https://github.com/Rocketseat/semana-omnistack-10/commits/master"> | ||
<img alt="GitHub last commit" src="https://img.shields.io/github/last-commit/Rocketseat/semana-omnistack-10"> | ||
</a> | ||
|
||
<a href="https://github.com/Rocketseat/semana-omnistack-10/issues"> | ||
<img alt="Repository issues" src="https://img.shields.io/github/issues/Rocketseat/semana-omnistack-10"> | ||
</a> | ||
|
||
<img alt="License" src="https://img.shields.io/badge/license-MIT-brightgreen"> | ||
</p> | ||
|
||
<p align="center"> | ||
<a href="#rocket-tecnologias">Technologies</a> | | ||
<a href="#-projeto">Project</a> | | ||
<a href="#-layout">Layout</a> | | ||
<a href="#-como-contribuir">How to contribute</a> | | ||
<a href="#memo-licença">License</a> | ||
</p> | ||
|
||
<br> | ||
|
||
<p align="center"> | ||
<img alt="Frontend" src=".github/devradar.png" width="100%"> | ||
</p> | ||
|
||
## :rocket: Technologies | ||
|
||
This project was developed with the following technologies: | ||
|
||
- [Node.js](https://nodejs.org/en/) | ||
- [React](https://reactjs.org) | ||
- [React Native](https://facebook.github.io/react-native/) | ||
- [Expo](https://expo.io/) | ||
|
||
## 💻 Project | ||
|
||
DevRadar is a project that aims to connect developers close to you who work with the same technologies. | ||
|
||
## 🔖 Layout | ||
|
||
You can download the project layout in `.sketch` format through [this link](https://rocketseat-cdn.s3-sa-east-1.amazonaws.com/semana-omnistack/aircnc.sketch). | ||
|
||
In order to open the file in `.sketch` format in any operating system you can use this tool: [Zeplin](https://zeplin.io). | ||
|
||
## 🤔 How to contribute | ||
|
||
- Make a fork of this repository; | ||
- Make branch with your feature's name: git checkout -b my-feature; | ||
- Make a commit on your changes: git commit -m 'feat: My new feature'; | ||
- Make a push for your branch: git push origin my-feature. | ||
|
||
After the merge of your pull request is done, you can delete your branch. | ||
|
||
## :memo: License | ||
|
||
This project is under MIT license. Check the file [LICENSE](LICENSE.md) for more details. | ||
|
||
--- | ||
|
||
Made with ♥ by Rocketseat :wave: [Join us!](https://discordapp.com/invite/gCRAFhc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,58 @@ | ||
import React from 'react'; | ||
import React, { useState, useEffect } from 'react'; | ||
|
||
import Routes from './components/routes'; | ||
import './App.css'; | ||
import './global.css'; | ||
import './Sidebar.css'; | ||
import './Main.css'; | ||
|
||
import api from './services/api'; | ||
|
||
import DevItem from './components/DevItem'; | ||
import DevForm from './components/DevForm'; | ||
import UpdateTechs from './components/UpdateTechs'; | ||
|
||
function App() { | ||
|
||
const [ devs, setDevs ] = useState([]); | ||
|
||
useEffect(() => { | ||
async function loadDevs(){ | ||
const response = await api.get('/devs') | ||
setDevs(response.data); | ||
} | ||
loadDevs(); | ||
}, []); | ||
|
||
async function handleAddDev(data){ | ||
|
||
const response = await api.post('/devs', data); | ||
|
||
setDevs([...devs, response.data]); | ||
} | ||
|
||
|
||
return ( | ||
<div id="app"> | ||
<aside> | ||
<strong>Cadastrar</strong> | ||
<DevForm onSubmit={handleAddDev}/> | ||
</aside> | ||
|
||
<main> | ||
|
||
<ul> | ||
{ | ||
devs.map(dev => ( | ||
<DevItem key={dev._id} dev={dev} /> | ||
)) | ||
} | ||
</ul> | ||
|
||
</main> | ||
|
||
</div> | ||
); | ||
|
||
function App(){ | ||
return ( | ||
<Routes /> | ||
) | ||
} | ||
|
||
export default App; | ||
export default App; |