Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
feat: add GH fork ribbon
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Bouquillon committed Oct 10, 2019
1 parent 2acac0d commit 1fcee18
Show file tree
Hide file tree
Showing 3 changed files with 2,547 additions and 95 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"next": "^9.1.1",
"react": "^16.10.2",
"react-dom": "^16.10.2",
"react-github-fork-ribbon": "^0.6.0",
"sentry-testkit": "^3.0.2"
},
"husky": {
Expand Down
9 changes: 9 additions & 0 deletions src/pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from "react";
import App from "next/app";
import Head from "next/head";
import * as Sentry from "@sentry/node";
import GitHubForkRibbon from "react-github-fork-ribbon";

import { initMatomo } from "../matomo";

Expand All @@ -28,6 +29,14 @@ class MyApp extends App {
<Head>
<title>sample-next-app</title>
</Head>
<GitHubForkRibbon
href="//github.com/SocialGouv/sample-next-app"
target="_blank"
position="right"
color="green"
>
Clone-moi sur GitHub
</GitHubForkRibbon>
<div className="container">
<div className="jumbotron">
<h1 className="display-4">Hello, SocialGouv!</h1>
Expand Down
Loading

0 comments on commit 1fcee18

Please sign in to comment.