aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-04-13 10:14:01 +0800
committerFabio Berger <me@fabioberger.com>2018-04-13 10:14:01 +0800
commite40bce253c961641b7eeb50b0932be530646dddc (patch)
tree6b89f15a3358daf60d08ae14fa25535e1e5f4586 /packages/website
parent74c279ea3a9c6067ff24a8a6c71ffcafe2b9636e (diff)
downloaddexon-sol-tools-e40bce253c961641b7eeb50b0932be530646dddc.tar
dexon-sol-tools-e40bce253c961641b7eeb50b0932be530646dddc.tar.gz
dexon-sol-tools-e40bce253c961641b7eeb50b0932be530646dddc.tar.bz2
dexon-sol-tools-e40bce253c961641b7eeb50b0932be530646dddc.tar.lz
dexon-sol-tools-e40bce253c961641b7eeb50b0932be530646dddc.tar.xz
dexon-sol-tools-e40bce253c961641b7eeb50b0932be530646dddc.tar.zst
dexon-sol-tools-e40bce253c961641b7eeb50b0932be530646dddc.zip
Add /jobs endpoint to website, link to it and have it re-direct to Angellist
Diffstat (limited to 'packages/website')
-rw-r--r--packages/website/ts/components/footer.tsx4
-rw-r--r--packages/website/ts/components/redirecter.tsx10
-rw-r--r--packages/website/ts/index.tsx2
-rw-r--r--packages/website/ts/pages/about/about.tsx7
-rw-r--r--packages/website/ts/types.ts1
5 files changed, 19 insertions, 5 deletions
diff --git a/packages/website/ts/components/footer.tsx b/packages/website/ts/components/footer.tsx
index 6c0186ac0..487b039b2 100644
--- a/packages/website/ts/components/footer.tsx
+++ b/packages/website/ts/components/footer.tsx
@@ -114,8 +114,8 @@ export class Footer extends React.Component<FooterProps, FooterState> {
},
{
title: this.props.translate.get(Key.Careers, Deco.Cap),
- isExternal: true,
- path: constants.URL_ANGELLIST,
+ isExternal: false,
+ path: WebsitePaths.Jobs,
},
{
title: this.props.translate.get(Key.Contact, Deco.Cap),
diff --git a/packages/website/ts/components/redirecter.tsx b/packages/website/ts/components/redirecter.tsx
new file mode 100644
index 000000000..2e705af58
--- /dev/null
+++ b/packages/website/ts/components/redirecter.tsx
@@ -0,0 +1,10 @@
+import * as React from 'react';
+import { constants } from 'ts/utils/constants';
+
+interface RedirecterProps {
+ location: string;
+}
+
+export function Redirecter(props: RedirecterProps) {
+ window.location.href = constants.URL_ANGELLIST;
+}
diff --git a/packages/website/ts/index.tsx b/packages/website/ts/index.tsx
index 77ee374ab..6b347145f 100644
--- a/packages/website/ts/index.tsx
+++ b/packages/website/ts/index.tsx
@@ -6,6 +6,7 @@ import { Provider } from 'react-redux';
import { BrowserRouter as Router, Redirect, Route, Switch } from 'react-router-dom';
import * as injectTapEventPlugin from 'react-tap-event-plugin';
import { createStore, Store as ReduxStore } from 'redux';
+import { Redirecter } from 'ts/components/redirecter';
import { About } from 'ts/containers/about';
import { FAQ } from 'ts/containers/faq';
import { Landing } from 'ts/containers/landing';
@@ -75,6 +76,7 @@ render(
<Route exact={true} path="/" component={Landing as any} />
<Redirect from="/otc" to={`${WebsitePaths.Portal}`} />
+ <Route path={WebsitePaths.Jobs} component={Redirecter as any} />
<Route path={WebsitePaths.Portal} component={LazyPortal} />
<Route path={WebsitePaths.FAQ} component={FAQ as any} />
<Route path={WebsitePaths.About} component={About as any} />
diff --git a/packages/website/ts/pages/about/about.tsx b/packages/website/ts/pages/about/about.tsx
index 293580913..97be59526 100644
--- a/packages/website/ts/pages/about/about.tsx
+++ b/packages/website/ts/pages/about/about.tsx
@@ -2,11 +2,12 @@ import { colors, Styles } from '@0xproject/react-shared';
import * as _ from 'lodash';
import * as React from 'react';
import * as DocumentTitle from 'react-document-title';
+import { Link } from 'react-router-dom';
import { Footer } from 'ts/components/footer';
import { TopBar } from 'ts/components/top_bar/top_bar';
import { Profile } from 'ts/pages/about/profile';
import { Dispatcher } from 'ts/redux/dispatcher';
-import { ProfileInfo } from 'ts/types';
+import { ProfileInfo, WebsitePaths } from 'ts/types';
import { constants } from 'ts/utils/constants';
import { Translate } from 'ts/utils/translate';
import { utils } from 'ts/utils/utils';
@@ -250,9 +251,9 @@ export class About extends React.Component<AboutProps, AboutState> {
}}
>
We are seeking outstanding candidates to{' '}
- <a href={constants.URL_ANGELLIST} target="_blank" style={{ color: 'black' }}>
+ <Link to={WebsitePaths.Jobs} style={{ color: 'black' }}>
join our team
- </a>
+ </Link>
. We value passion, diversity and unique perspectives.
</div>
</div>
diff --git a/packages/website/ts/types.ts b/packages/website/ts/types.ts
index c03e5676f..2126c5c7b 100644
--- a/packages/website/ts/types.ts
+++ b/packages/website/ts/types.ts
@@ -361,6 +361,7 @@ export enum WebsitePaths {
JSONSchemas = '/docs/json-schemas',
SolCov = '/docs/sol-cov',
Subproviders = '/docs/subproviders',
+ Jobs = '/jobs',
}
export enum DocPackages {