Skip to content

Commit 51400a3

Browse files
committed
add contact page
1 parent 927b0dd commit 51400a3

File tree

6 files changed

+41
-1
lines changed

6 files changed

+41
-1
lines changed

Diff for: Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,4 @@ mongo:
9696

9797
domains: context
9898
gcloud beta run domain-mappings create --service osrs-loadouts-api --platform managed --domain api.osrsloadouts.app
99-
gcloud beta run domain-mappings create --service osrs-loadouts-web --platform managed --domain osrsloadouts.app
99+
gcloud beta run domain-mappings create --service osrs-loadouts-web --platform managed --domain osrsloadouts.app

Diff for: web/src/components/App/App.js

+2
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ class Header extends React.Component {
4343
 - 
4444
{loadouts}
4545
<Link to="/browse">Browse Loadouts</Link>
46+
&nbsp;-&nbsp;
47+
<Link to="/contact">Contact</Link>
4648
</div>
4749
<div style={{float: 'right'}}>
4850
{account}

Diff for: web/src/components/Contact/Contact.js

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import React from 'react';
2+
import discord from './discord.png';
3+
import github from './github.png';
4+
5+
const DISCORD_URL = 'https://discord.com/channels/@me/107680246739767296'
6+
const DISCORD_USERNAME = 'while-loop#6157'
7+
const GITHUB_URL = 'https://github.com/while-loop/osrsinvy/issues'
8+
const GITHUB_USERNAME = 'while-loop'
9+
10+
function Contact() {
11+
return (
12+
<div style={{
13+
display: "flex",
14+
flexDirection: "column",
15+
justifyContent: "space-between",
16+
}}>
17+
<h4>Contact Me</h4>
18+
19+
<div>
20+
<a href={DISCORD_URL} target='_blank'><img style={{verticalAlign: 'middle'}} src={discord} alt={"discord logo"} width={50}/></a>
21+
&nbsp;
22+
<a href={DISCORD_URL} target='_blank'>{DISCORD_USERNAME}</a>
23+
</div>
24+
<br/>
25+
<div>
26+
<a href={GITHUB_URL} target='_blank'><img style={{verticalAlign: 'middle'}} src={github} alt={"github logo"} width={50}/></a>
27+
&nbsp;
28+
<a href={GITHUB_URL} target='_blank'>{GITHUB_USERNAME}</a>
29+
</div>
30+
31+
32+
</div>
33+
);
34+
}
35+
36+
export default Contact;

Diff for: web/src/components/Contact/discord.png

29 KB
Loading

Diff for: web/src/components/Contact/github.png

5.88 KB
Loading

Diff for: web/src/config/routes.js

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import app, {refreshToken} from "../utils/base"
1010
import Login from "../components/Login/Login";
1111
import Account from "../components/Account/Account";
1212
import Profile from "../components/Account/Profile";
13+
import Contact from "../components/Contact/Contact";
1314

1415
class AppRouter extends React.Component {
1516
state = {
@@ -49,6 +50,7 @@ class AppRouter extends React.Component {
4950
<App authenticated={authenticated}>
5051
<div>
5152
<Route exact path="/" component={Home}/>
53+
<Route exact path="/contact" component={Contact}/>
5254

5355
<Route exact path="/login" component={Login}/>
5456
<PrivateRoute exact path="/account" component={Account} authenticated={authenticated}/>

0 commit comments

Comments
 (0)