/
App.js
113 lines (101 loc) · 6.09 KB
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
import React from 'react';
import { BrowserRouter, Route, Link, Switch } from 'react-router-dom';
import Country from './components/Country';
import Home from './components/Home';
import About from './components/About';
import GitHubButton from 'react-github-btn';
function App() {
return (
<BrowserRouter>
<div>
<nav className="navbar navbar-expand-lg shadow-lg">
<div className="navbar-collapse" id="navbarsExampleDefault">
<nav className="nav nav-underline">
<span className="nav-link">
<Link to="/home"><img src={'https://image.flaticon.com/icons/svg/25/25231.svg'} alt={'go to home'} height='24'/></Link>
</span>
</nav>
</div>
</nav>
<main role="main" className="container pt-5 pb-2 mb-5">
<Switch>
<Route path="/country/:name/:from/:to" component={Country} exact/>
<Route path="/about" component={About} exact/>
<Route path="/home" component={Home} exact/>
<Route path="/" component={Home} exact/>
</Switch>
</main>
<div className="nav-scroller bg-white col-10 p-3 m-auto table-responsive">
<h5>How it works?</h5>
<h6 className="pl-2 pr-2 pt-2 pb-1">
List of most active GitHub users in the country over the past year based on public contributions of each user
</h6>
<h6 className="bg-light pl-2 pr-2 pt-1 pb-2">
To contribute, create your pull request and add changes to the project <a href={"https://github.com/gayanvoice/nodejs-graphql"}>gayanvoice/nodejs-graphql</a>
</h6>
</div>
<div className="nav-scroller bg-white col-10 p-3 m-auto">
<h5>Frameworks</h5>
<nav className="nav mb-1">
<a className="m-1" href={"https://github.com/Node.js"}>
<img alt={"Node.js"} src={"https://avatars1.githubusercontent.com/u/9950313?s=48&v=4"} className={"rounded"}/>
</a>
<a className="m-1" href={"https://github.com/expressjs"}>
<img alt={"expressjs"} src={"https://avatars1.githubusercontent.com/u/5658226?s=48&v=4"} className={"rounded"}/>
</a>
<a className="m-1" href={"https://github.com/mongodb"}>
<img alt={"mongodb"} src={"https://avatars1.githubusercontent.com/u/45120?s=48&v=4"} className={"rounded"}/>
</a>
<a className="m-1" href={"https://github.com/facebook/react"}>
<img alt={"facebook"} src={"https://avatars1.githubusercontent.com/u/69631?s=48&v=4"} className={"rounded"}/>
</a>
<a className="m-1" href={"https://github.com/graphql"}>
<img alt={"graphql"} src={"https://avatars1.githubusercontent.com/u/12972006?s=48&v=4"} className={"rounded"}/>
</a>
</nav>
</div>
<div className="nav-scroller bg-white col-10 p-3 m-auto">
<h5>Deploy</h5>
<nav className="nav mb-1">
<a className="m-1" href={"https://heroku.com/"}>
<img alt={"Node.js"} src={"https://avatars1.githubusercontent.com/u/23211?s=48&v=4"} className={"rounded"}/>
</a>
<a className="m-1" href={"https://www.mongodb.com/cloud/atlas"}>
<img alt={"expressjs"} src={"https://avatars1.githubusercontent.com/u/45120?s=48&v=4"} className={"rounded"}/>
</a>
</nav>
</div>
<div className="nav-scroller bg-white col-10 p-3 m-auto table-responsive">
<h5>Contributors</h5>
<nav className="nav mb-1">
<a className="m-1" href={"https://github.com/gayanvoice"}>
<img alt={"gayanvoice"} src={"https://avatars1.githubusercontent.com/u/30500175?s=48&v=4"} className={"rounded"}/>
</a>
<a className="m-1" href={"https://github.com/srdjanRakic"}>
<img alt={"srdjanRakic"} src={"https://avatars1.githubusercontent.com/u/16154503?s=48&v=4"} className={"rounded"}/>
</a>
<a className="m-1" href={"https://github.com/nikolalukovic"}>
<img alt={"nikolalukovic"} src={"https://avatars0.githubusercontent.com/u/6897673?s=48&v=4"} className={"rounded"}/>
</a>
<a className="m-1" href={"https://github.com/Donghoon759"}>
<img alt={"Donghoon759"} src={"https://avatars0.githubusercontent.com/u/32301380?s=48&v=4"} className={"rounded"}/>
</a>
<a className="m-1" href={"https://github.com/AWIXOR"}>
<img alt={"AWIXOR"} src={"https://avatars0.githubusercontent.com/u/43700517?s=48&v=4"} className={"rounded"}/>
</a>
</nav>
<h6><span className="small">How to contribute? <a
href={"https://github.com/gayanvoice/githubstats/blob/master/CONTRIBUTING.md"}> Add missing countries</a></span>
</h6>
</div>
<div className={'align-items-center p-3 mb-4 mt-3 text-center'}>
<span className={"ml-2"}><GitHubButton href="https://github.com/gayanvoice" data-size="large" data-show-count="true" aria-label="Follow @gayanvoice on GitHub">Follow @gayanvoice</GitHubButton></span>
<span className={"ml-2"}><GitHubButton href="https://github.com/gayanvoice/nodejs-graphql" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star gayanvoice/nodejs-graphql on GitHub">Star</GitHubButton></span>
<div><small>Like this project? Go to <a href={'https://github.com/gayanvoice/nodejs-graphql'}>gayanvoice/nodejs-graphql</a></small></div>
<div><small>This project is not affiliated with the GitHub company in any way</small></div>
</div>
</div>
</BrowserRouter>
);
}
export default App;