@@ -2,13 +2,18 @@ import React from 'react';
2
2
import Footer from './Footer' ;
3
3
import Button from 'rmwc/Button' ;
4
4
import Icon from 'rmwc/Icon' ;
5
+ import { withRouter } from 'react-router-dom' ;
5
6
6
7
import logo from './assets/images/hand-yellow.svg'
7
8
import github from './assets/images/github.svg'
8
9
import gitlab from './assets/images/gitlab.svg'
9
10
import trello from './assets/images/trello.svg'
10
11
import './Home.css'
11
12
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
+ } ;
12
17
13
18
const Home = ( ) => (
14
19
< div className = "Home" >
@@ -17,49 +22,43 @@ const Home = () => (
17
22
< h1 className = "text" > CODEROCKR WAY PROJECT SETUP</ h1 >
18
23
</ header >
19
24
< 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 >
25
58
</ 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 >
61
60
</ div >
62
61
</ div >
63
- ) ;
62
+ )
64
63
65
- export default Home ;
64
+ export default withRouter ( Home ) ;
0 commit comments