diff --git a/data/index.js b/data/index.js
new file mode 100644
index 0000000..1a0d8fd
--- /dev/null
+++ b/data/index.js
@@ -0,0 +1,11 @@
+import { pluck, flatten, uniqWith, eqProps } from 'ramda';
+import projects from './repositories.json';
+
+const getMentors = () => {
+ const mentors = flatten(pluck('mentors', projects.repositories));
+ const uniqueMentors = uniqWith(eqProps('name'))(mentors);
+
+ return uniqueMentors;
+};
+
+export default getMentors;
diff --git a/data/repositories.json b/data/repositories.json
index beeb334..30f2a4f 100644
--- a/data/repositories.json
+++ b/data/repositories.json
@@ -3,43 +3,111 @@
"repositories": [
{
"name": "calluswhatyouwant/spotify-web-sdk",
- "difficulty": "avancado"
+ "difficulty": "avancado",
+ "mentors": [
+ {
+ "name": "JRobsonJr",
+ "imgUrl": "https://github.com/jrobsonjr.png"
+ },
+ {
+ "name": "JoseRenan",
+ "imgUrl": "https://github.com/joserenan.png"
+ }
+ ]
},
{
"name": "calluswhatyouwant/musicritic",
- "difficulty": "avancado"
+ "difficulty": "avancado",
+ "mentors": [
+ {
+ "name": "JRobsonJr",
+ "imgUrl": "https://github.com/jrobsonjr.png"
+ },
+ {
+ "name": "JoseRenan",
+ "imgUrl": "https://github.com/joserenan.png"
+ }
+ ]
},
{
"name": "paulojbleitao/pokedex",
- "difficulty": "intermediario"
+ "difficulty": "intermediario",
+ "mentors": [
+ {
+ "name": "PauloJBLeitao",
+ "imgUrl": "https://github.com/paulojbleitao.png"
+ }
+ ]
},
{
"name": "SubmiBot/SubmiBot",
- "difficulty": "intermediario"
+ "difficulty": "intermediario",
+ "mentors": [
+ {
+ "name": "HericlesMe",
+ "imgUrl": "https://github.com/hericlesme.png"
+ }
+ ]
},
{
"name": "marianabianca/pomodoro",
- "difficulty": "iniciante"
+ "difficulty": "iniciante",
+ "mentors": [
+ {
+ "name": "MarianaBianca",
+ "imgUrl": "https://github.com/marianabianca.png"
+ }
+ ]
},
{
"name": "P-Sync/P-Sync",
- "difficulty": "intermediario"
+ "difficulty": "intermediario",
+ "mentors": [
+ {
+ "name": "HericlesMe",
+ "imgUrl": "https://github.com/hericlesme.png"
+ }
+ ]
},
{
"name": "FelipeMarinho97/iskra-webkit-greeter",
- "difficulty": "intermediario"
+ "difficulty": "intermediario",
+ "mentors": [
+ {
+ "name": "FelipeMarinho97",
+ "imgUrl": "https://github.com/FelipeMarinho97.png"
+ }
+ ]
},
{
"name": "Rickecr/PyGraph",
- "difficulty": "intermediario"
+ "difficulty": "intermediario",
+ "mentors": [
+ {
+ "name": "Rickecr",
+ "imgUrl": "https://github.com/Rickecr.png"
+ }
+ ]
},
{
"name": "Rickecr/CamaraDosDeputados",
- "difficulty": "iniciante"
+ "difficulty": "iniciante",
+ "mentors": [
+ {
+ "name": "Rickecr",
+ "imgUrl": "https://github.com/Rickecr.png"
+ }
+ ]
},
{
"name": "matheusps/clssx",
- "difficulty": "iniciante"
+ "difficulty": "iniciante",
+ "mentors": [
+ {
+ "name": "Matheusps",
+ "imgUrl": "https://github.com/matheusps.png"
+ }
+ ]
}
]
}
diff --git a/package.json b/package.json
index 692f1c1..5e78363 100644
--- a/package.json
+++ b/package.json
@@ -41,6 +41,7 @@
"mini-css-extract-plugin": "^0.4.4",
"prettier": "^1.14.3",
"pretty-quick": "^1.8.0",
+ "ramda": "^0.26.1",
"react-dev-utils": "^6.1.1",
"style-loader": "^0.23.1",
"url-loader": "^2.2.0",
diff --git a/src/components/app/App.js b/src/components/app/App.js
index 2525728..8004dc7 100644
--- a/src/components/app/App.js
+++ b/src/components/app/App.js
@@ -19,6 +19,7 @@ const AppHeader = () => (