Skip to content

Commit

Permalink
feat: add "For Me on Github" banner
Browse files Browse the repository at this point in the history
This will enable to link the deployed app with its source ccode.
  • Loading branch information
diegopamio committed Oct 29, 2020
1 parent b61c2a5 commit c423180
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"next": "9.5.5",
"prop-types": "^15.7.2",
"react": "17.0.0",
"react-dom": "17.0.0"
"react-dom": "17.0.0",
"react-github-fork-ribbon": "^0.6.0"
},
"devDependencies": {
"@commitlint/cli": "^11.0.0",
Expand Down
9 changes: 9 additions & 0 deletions pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import PropTypes from 'prop-types';
import Head from 'next/head';
import { ThemeProvider } from '@material-ui/core/styles';
import CssBaseline from '@material-ui/core/CssBaseline';
import GitHubForkRibbon from 'react-github-fork-ribbon';
import theme from '../styles/theme';

export default function MyApp(props) {
Expand All @@ -25,6 +26,14 @@ export default function MyApp(props) {
<ThemeProvider theme={theme}>
{/* CssBaseline kickstart an elegant, consistent, and simple baseline to build upon. */}
<CssBaseline />
<GitHubForkRibbon
position="right"
color="green"
href="//github.com/diegopamio/json-similarity-score"
target="_blank"
>
Fork me on GitHub
</GitHubForkRibbon>
{/* eslint-disable-next-line react/jsx-props-no-spreading */}
<Component {...pageProps} />
</ThemeProvider>
Expand Down

1 comment on commit c423180

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit c423180 is built and deployed to Vercel.

Preview: https://json-similarity-score-iklyblrgb.vercel.app

This commit has been automatically deployed with vercel-deployment

Please sign in to comment.