Skip to content

Commit 53f2c94

Browse files
committed
github buttons added
1 parent c0617c8 commit 53f2c94

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"react": "^17.0.2",
1414
"react-bootstrap": "^1.5.2",
1515
"react-dom": "^17.0.2",
16+
"react-github-btn": "^1.2.0",
1617
"react-github-corner": "^2.5.0",
1718
"react-leaflet": "^3.1.0",
1819
"react-scripts": "4.0.3",

src/components/jumbotron.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from 'react';
22
import { Jumbotron, Button } from 'reactstrap';
3+
import GitHubButton from 'react-github-btn'
34

45
const jumbotron = (props) => {
56
return (
@@ -12,9 +13,14 @@ const jumbotron = (props) => {
1213
<p className="lead">
1314
<Button color="primary" onClick={(e) => { e.preventDefault(); window.location.href='https://developers.google.com/community/dsc/leads'}}>Learn More!</Button>
1415
</p>
16+
<iframe src="https://ghbtns.com/github-btn.html?user=abhinavsri360&repo=GDSC-Lead-Map&type=star&count=true&size=large" frameborder="0" scrolling="0" width="170" height="30" title="GitHub"></iframe>
17+
<iframe src="https://ghbtns.com/github-btn.html?user=abhinavsri360&repo=GDSC-Lead-Map&type=watch&count=true&size=large&v=2" frameborder="0" scrolling="0" width="170" height="30" title="GitHub"></iframe>
18+
<iframe src="https://ghbtns.com/github-btn.html?user=abhinavsri360&repo=GDSC-Lead-Map&type=fork&count=true&size=large" frameborder="0" scrolling="0" width="170" height="30" title="GitHub"></iframe>
19+
<br />
20+
<GitHubButton href="https://github.com/abhinavsri360" data-color-scheme="no-preference: light; light: light; dark: dark;" data-size="large" data-show-count="true" aria-label="Follow @abhinavsri360 on GitHub">Follow @abhinavsri360</GitHubButton>
1521
</Jumbotron>
1622
</div>
1723
);
1824
};
1925

20-
export default jumbotron;
26+
export default jumbotron;

yarn.lock

+12
Original file line numberDiff line numberDiff line change
@@ -5371,6 +5371,11 @@ getpass@^0.1.1:
53715371
dependencies:
53725372
assert-plus "^1.0.0"
53735373

5374+
github-buttons@^2.8.0:
5375+
version "2.15.0"
5376+
resolved "https://registry.yarnpkg.com/github-buttons/-/github-buttons-2.15.0.tgz#5fda66a3e6445825c9abbfb1eef4729542ea733d"
5377+
integrity sha512-TqnLqrwYkYbbFmWcRa2LPyh6IRp0krnGkNrY/5LetxVnPYOHQzxmOZC25GtsHN7ay9Q5ZWY3zLWCKti+xz7w3Q==
5378+
53745379
glob-parent@^3.1.0:
53755380
version "3.1.0"
53765381
resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-3.1.0.tgz#9e6af6299d8d3bd2bd40430832bd113df906c5ae"
@@ -9306,6 +9311,13 @@ react-error-overlay@^6.0.9:
93069311
resolved "https://registry.yarnpkg.com/react-error-overlay/-/react-error-overlay-6.0.9.tgz#3c743010c9359608c375ecd6bc76f35d93995b0a"
93079312
integrity sha512-nQTTcUu+ATDbrSD1BZHr5kgSD4oF8OFjxun8uAaL8RwPBacGBNPf/yAuVVdx17N8XNzRDMrZ9XcKZHCjPW+9ew==
93089313

9314+
react-github-btn@^1.2.0:
9315+
version "1.2.0"
9316+
resolved "https://registry.yarnpkg.com/react-github-btn/-/react-github-btn-1.2.0.tgz#464066f999a77c0eed27980260601b51cbe15614"
9317+
integrity sha512-/b2TGTeek5Ky+KtuP5BxOaXgb1FGhbwgZNI6rkwkGk7+xtCtsNMkdchOcCnC3qU1JGTWPKzYZWpPBIouVhXAoQ==
9318+
dependencies:
9319+
github-buttons "^2.8.0"
9320+
93099321
react-github-corner@^2.5.0:
93109322
version "2.5.0"
93119323
resolved "https://registry.yarnpkg.com/react-github-corner/-/react-github-corner-2.5.0.tgz#e350d0c69f69c075bc0f1d2a6f1df6ee91da31f2"

0 commit comments

Comments
 (0)