From e40bce253c961641b7eeb50b0932be530646dddc Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Fri, 13 Apr 2018 11:14:01 +0900 Subject: Add /jobs endpoint to website, link to it and have it re-direct to Angellist --- packages/website/ts/components/footer.tsx | 4 ++-- packages/website/ts/components/redirecter.tsx | 10 ++++++++++ packages/website/ts/index.tsx | 2 ++ packages/website/ts/pages/about/about.tsx | 7 ++++--- packages/website/ts/types.ts | 1 + 5 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 packages/website/ts/components/redirecter.tsx (limited to 'packages/website') 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 { }, { 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( + 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 { }} > We are seeking outstanding candidates to{' '} - + join our team - + . We value passion, diversity and unique perspectives. 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 { -- cgit