Skip to content
This repository was archived by the owner on Apr 19, 2021. It is now read-only.

Commit 8a512bf

Browse files
authored
Add GH buttons (#884)
1 parent 73ad0e5 commit 8a512bf

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"dependencies": {
2525
"@emotion/core": "^10.0.28",
2626
"@emotion/styled": "^10.0.27",
27+
"@sendgrid/mail": "^7.2.6",
2728
"babel-plugin-styled-components": "^1.10.7",
2829
"bowser": "^2.9.0",
2930
"classnames": "^2.2.6",
@@ -59,11 +60,11 @@
5960
"react": "^16.13.1",
6061
"react-cookie-consent": "^5.0.1",
6162
"react-dom": "^16.13.1",
63+
"react-github-btn": "^1.2.0",
6264
"react-helmet": "^6.0.0",
6365
"react-modal-video": "^1.2.3",
6466
"react-tweet-embed": "^1.2.2",
65-
"typescript": "^3.9.3",
66-
"@sendgrid/mail": "^7.2.6"
67+
"typescript": "^3.9.3"
6768
},
6869
"devDependencies": {
6970
"@types/aws-lambda": "^8.10.63",

src/components/index/Banner.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import GitLab from '../../resources/gitlab.svg'
66
import GitHub from '../../resources/octicons-mark-github.svg'
77
import Bitbucket from '../../resources/bitbucket.svg'
88
import { sizes, colors } from '../../styles/variables'
9+
import GitHubButton from 'react-github-btn'
910

1011
const Styled = styled.div`
1112
.pattern {
@@ -84,6 +85,10 @@ const Banner = () => (
8485
<img src={Bitbucket} alt="Bitbucket" />
8586
</p>
8687
</div>
88+
<div className="header__repository-details">
89+
<GitHubButton href="https://github.com/gitpod-io/gitpod" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star gitpod-io/gitpod on GitHub">Star</GitHubButton>&nbsp;
90+
<GitHubButton href="https://github.com/gitpod-io/gitpod/fork" data-icon="octicon-repo-forked" data-size="large" data-show-count="true" aria-label="Fork gitpod-io/gitpod on GitHub">Fork</GitHubButton>
91+
</div>
8792
<div className="banner__screenshot-container">
8893
<img alt="Gitpod Screenshot" src={Screenshot} className="banner__screenshot" />
8994
</div>

yarn.lock

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8533,6 +8533,11 @@ gitconfiglocal@^2.1.0:
85338533
dependencies:
85348534
ini "^1.3.2"
85358535

8536+
github-buttons@^2.8.0:
8537+
version "2.14.1"
8538+
resolved "https://registry.yarnpkg.com/github-buttons/-/github-buttons-2.14.1.tgz#56177245e328892949dd59af58c6a7b6c530ad14"
8539+
integrity sha512-ODvmvylJZPn2Rg/OYRwQcGhIi1gWJ3ZpfkaFUMiBYAZtQQUNTPM7ka5iP+mn5J+DBicvgR24M2GV6QqB0M4zPQ==
8540+
85368541
85378542
version "0.0.0"
85388543
resolved "https://registry.yarnpkg.com/github-from-package/-/github-from-package-0.0.0.tgz#97fb5d96bfde8973313f20e8288ef9a167fa64ce"
@@ -14157,6 +14162,13 @@ react-focus-lock@^2.3.1:
1415714162
use-callback-ref "^1.2.1"
1415814163
use-sidecar "^1.0.1"
1415914164

14165+
react-github-btn@^1.2.0:
14166+
version "1.2.0"
14167+
resolved "https://registry.yarnpkg.com/react-github-btn/-/react-github-btn-1.2.0.tgz#464066f999a77c0eed27980260601b51cbe15614"
14168+
integrity sha512-/b2TGTeek5Ky+KtuP5BxOaXgb1FGhbwgZNI6rkwkGk7+xtCtsNMkdchOcCnC3qU1JGTWPKzYZWpPBIouVhXAoQ==
14169+
dependencies:
14170+
github-buttons "^2.8.0"
14171+
1416014172
react-helmet@^6.0.0:
1416114173
version "6.1.0"
1416214174
resolved "https://registry.yarnpkg.com/react-helmet/-/react-helmet-6.1.0.tgz#a750d5165cb13cf213e44747502652e794468726"

0 commit comments

Comments
 (0)