diff --git a/README.md b/README.md
index 2e0ee82a..e4a4ed01 100644
--- a/README.md
+++ b/README.md
@@ -3,3 +3,22 @@
[](https://spectrum.chat/hyper)
The official website for the Hyper terminal
+
+## Contribution
+
+Want to submit a plugin or theme to the Hyper Store? Follow [this wiki guide](https://github.com/zeit/hyper-site/wiki/Submitting-a-new-plugin-or-theme-to-Hyper-Store).
+
+To submit a feature, bug fix, or enhancement to the Hyper website proceed as follows:
+
+1. Clone this repo
+2. Within your terminal, run `yarn` to install the dependencies
+3. Once the dependencies are installed, run `yarn dev` to start the dev server on `localhost:3000`
+
+We really appreciate any contribution
+
+## Related Repositories
+
+- [Hyper](https://github.com/zeit/hyper)
+- [Sample Plugin](https://github.com/zeit/hyperpower)
+- [Sample Theme](https://github.com/zeit/hyperyellow)
+
diff --git a/components/InstallModal.js b/components/InstallModal.js
index cc2f9369..58834f5f 100644
--- a/components/InstallModal.js
+++ b/components/InstallModal.js
@@ -1,3 +1,5 @@
+import selectText from '../lib/select-text'
+
export default class extends React.Component {
componentDidUpdate(prevProps) {
if (prevProps.isOpen === this.props.isOpen) {
@@ -8,6 +10,7 @@ export default class extends React.Component {
if (this.props.isOpen === true) {
body.classList.add('has-modal-open')
+ selectText(this.installCode)
} else {
body.classList.remove('has-modal-open')
}
@@ -26,7 +29,13 @@ export default class extends React.Component {
Use the hyper
command, bundled with your Hyper app, to
install {this.props.name} by entering the following into Hyper:
hyper i {this.props.name}+
{ + this.installCode = pre + }} + > + hyper i {this.props.name} +diff --git a/components/PluginInfo.js b/components/PluginInfo.js index 27c4b5eb..70e8623d 100644 --- a/components/PluginInfo.js +++ b/components/PluginInfo.js @@ -2,26 +2,65 @@ import Gravatar from 'react-gravatar' import Link from 'next/link' import InstallModal from './InstallModal' import GithubIcon from '../static/github-icon.svg' +import getPluginInfo from '../lib/get-plugin.js' import * as gtag from '../lib/gtag' -export default class extends React.Component { +export const PluginInfoBar = ({ children }) => ( +