Skip to content

Commit

Permalink
Link to project URL
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremywrnr committed Jul 22, 2023
1 parent 9df3446 commit fddfbd1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/src/components/NavigationBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import MatchDetail from "./MatchDetail.js";
import VSTHelp from "./VSTHelp.js";
import VSTExamples from "./VSTExamples.js";

const projectURL = "https://jeremywrnr.com/vst";

class NavigationBar extends Component {
componentDidMount = () => {
document.addEventListener("keydown", this.handleShortcutKeys);
Expand Down Expand Up @@ -297,7 +299,9 @@ class NavigationBar extends Component {
const { title } = this.props;
return (
<nav className="navbar navbar-dark sticky-top">
<span className="navbar-brand">{title}</span>
<a href={projectURL} target="_blank" className="navbar-brand">
<span className="navbar-brand">{title}</span>
</a>
<ul className="navbar-nav mr-auto"></ul>

<Button handleClick={this.handleExamplesModal}>Open</Button>
Expand Down
7 changes: 7 additions & 0 deletions app/src/components/VSTHelp.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import React, { Component } from "react";

const projectURL = "https://jeremywrnr.com/vst";

const shortcuts = [
{ key: "h", description: "Help: Open/close this help menu." },
{ key: "o", description: "Open: Open an example graphics pair." },
Expand All @@ -24,6 +26,11 @@ class Help extends Component {
Crtl—<kbd>{sc.key}</kbd> : <span>{sc.description}</span>
</p>
))}

<hr></hr>
<a href={projectURL}>
See more details about VST at the project homepage.
</a>
</div>
);
}
Expand Down

0 comments on commit fddfbd1

Please sign in to comment.