@@ -2,13 +2,18 @@ import React from 'react';
22import Footer from './Footer' ;
33import Button from 'rmwc/Button' ;
44import Icon from 'rmwc/Icon' ;
5+ import { withRouter } from 'react-router-dom' ;
56
67import logo from './assets/images/hand-yellow.svg'
78import github from './assets/images/github.svg'
89import gitlab from './assets/images/gitlab.svg'
910import trello from './assets/images/trello.svg'
1011import './Home.css'
1112
13+ const base = window . location . href + 'callback'
14+ const EXTERNAL_ROUTES = {
15+ GITHUB : 'https://github.com/login/oauth/authorize?client_id=0e8a63320fba47de145c&scope=repos&redirect_uri=' + base + '/github' ,
16+ } ;
1217
1318const Home = ( ) => (
1419 < div className = "Home" >
@@ -17,49 +22,43 @@ const Home = () => (
1722 < h1 className = "text" > CODEROCKR WAY PROJECT SETUP</ h1 >
1823 </ header >
1924 < div className = "container" >
20- < section className = "description" >
21- < p >
22- This web client helps to setup a project at GitHub, GitLab or Trello to use the
23- Coderockr Way's labels, making easier to bootstrap the basic configuration at
24- your project.
25+ < section className = "description" >
26+ < p >
27+ This web client helps to setup a project at GitHub, GitLab or Trello to use the
28+ Coderockr Way's labels, making easier to bootstrap the basic configuration at
29+ your project.
30+ </ p >
31+ </ section >
32+ < section className = "project-handlers" >
33+ < h2 > Where is your project?</ h2 >
34+ < ul className = "row project-handlers-buttons justify-content-md-center" >
35+ < li className = "col-md-4" >
36+ < a class = "button" href = { EXTERNAL_ROUTES . GITHUB } >
37+ < Icon children = { github } />
38+ GitHub
39+ </ a >
40+ </ li >
41+ < li className = "col-md-4" >
42+ < Button disabled raised >
43+ < Icon children = { gitlab } />
44+ GitLab
45+ </ Button >
46+ </ li >
47+ < li className = "col-md-4" >
48+ < Button disabled raised >
49+ < Icon children = { trello } />
50+ Trello
51+ </ Button >
52+ </ li >
53+ </ ul >
54+ </ section >
55+ < section className = "more-about" >
56+ < h4 > Wanna know more about?</ h4 >
57+ < p > Look this link: < a href = "https://blog.coderockr.com/simplificando-o-setup-de-projetos-no-github-f29b76c83194" > Simplificando o Setup de Projetos no GitHub</ a >
2558 </ p >
26- </ section >
27- < section className = "project-handlers" >
28- < h2 > Where is your project?</ h2 >
29- < ul className = "row project-handlers-buttons justify-content-md-center" >
30- < li className = "col-md-4" >
31- < Button raised >
32- < Icon children = { github } />
33- GitHub
34- </ Button >
35- </ li >
36- < li className = "col-md-4" >
37- < Button raised >
38- < Icon children = { gitlab } />
39- GitLab
40- </ Button >
41- </ li >
42- < li className = "col-md-4" >
43- < Button raised >
44- < Icon children = { trello } />
45- Trello
46- </ Button >
47- </ li >
48- </ ul >
49- </ section >
50- < section className = "more-about" >
51- < h2 > Wanna know more about?</ h2 >
52- < p > Look this links:</ p >
53- < ul >
54- < li >
55- < a href = "https://blog.coderockr.com/simplificando-o-setup-de-projetos-no-github-f29b76c83194" >
56- Simplificando o Setup de Projetos no GitHub
57- </ a >
58- </ li >
59- </ ul >
60- </ section >
59+ </ section >
6160 </ div >
6261 </ div >
63- ) ;
62+ )
6463
65- export default Home ;
64+ export default withRouter ( Home ) ;
0 commit comments