From 3d76d83a39ca61641f3efd7ed5cc6f7a214835ca Mon Sep 17 00:00:00 2001 From: Brandon Millman Date: Tue, 1 May 2018 10:17:27 -0700 Subject: Skeleton for jobs page and initial implementation --- packages/website/ts/pages/jobs/jobs.tsx | 44 +++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 packages/website/ts/pages/jobs/jobs.tsx (limited to 'packages/website/ts/pages/jobs/jobs.tsx') diff --git a/packages/website/ts/pages/jobs/jobs.tsx b/packages/website/ts/pages/jobs/jobs.tsx new file mode 100644 index 000000000..e49b40a2f --- /dev/null +++ b/packages/website/ts/pages/jobs/jobs.tsx @@ -0,0 +1,44 @@ +import { colors } from '@0xproject/react-shared'; +import * as React from 'react'; +import * as DocumentTitle from 'react-document-title'; + +import { Footer } from 'ts/components/footer'; +import { TopBar } from 'ts/components/top_bar/top_bar'; +import { Benefits } from 'ts/pages/jobs/benefits'; +import { Join0x } from 'ts/pages/jobs/join_0x'; +import { Mission } from 'ts/pages/jobs/mission'; +import { OpenPositions } from 'ts/pages/jobs/open_positions'; +import { PhotoRail } from 'ts/pages/jobs/photo_rail'; +import { Teams } from 'ts/pages/jobs/teams'; +import { Values } from 'ts/pages/jobs/values'; +import { Dispatcher } from 'ts/redux/dispatcher'; +import { constants } from 'ts/utils/constants'; +import { Translate } from 'ts/utils/translate'; + +export interface JobsProps { + location: Location; + translate: Translate; + dispatcher: Dispatcher; +} + +export const Jobs: React.StatelessComponent = props => { + return ( +
+ + + + + + + + + +
+
+ ); +}; -- cgit v1.2.3 From 0c2f002a7d854026f1710ab92255f73e17597e2d Mon Sep 17 00:00:00 2001 From: Brandon Millman Date: Fri, 8 Jun 2018 11:29:56 -0700 Subject: Add scroll to top for jobs page --- packages/website/ts/pages/jobs/jobs.tsx | 49 +++++++++++++++++++-------------- 1 file changed, 28 insertions(+), 21 deletions(-) (limited to 'packages/website/ts/pages/jobs/jobs.tsx') diff --git a/packages/website/ts/pages/jobs/jobs.tsx b/packages/website/ts/pages/jobs/jobs.tsx index e49b40a2f..c7c667da1 100644 --- a/packages/website/ts/pages/jobs/jobs.tsx +++ b/packages/website/ts/pages/jobs/jobs.tsx @@ -21,24 +21,31 @@ export interface JobsProps { dispatcher: Dispatcher; } -export const Jobs: React.StatelessComponent = props => { - return ( -
- - - - - - - - - -
-
- ); -}; +export interface JobsState {} + +export class Jobs extends React.Component { + public componentDidMount(): void { + window.scrollTo(0, 0); + } + public render(): React.ReactNode { + return ( +
+ + + + + + + + + +
+
+ ); + } +} -- cgit v1.2.3 From 474b93a22f9545fe9bcabe5a80e6a057e66ab286 Mon Sep 17 00:00:00 2001 From: Brandon Millman Date: Fri, 8 Jun 2018 13:27:41 -0700 Subject: Add link to open positions section --- packages/website/ts/pages/jobs/jobs.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'packages/website/ts/pages/jobs/jobs.tsx') diff --git a/packages/website/ts/pages/jobs/jobs.tsx b/packages/website/ts/pages/jobs/jobs.tsx index c7c667da1..466926af0 100644 --- a/packages/website/ts/pages/jobs/jobs.tsx +++ b/packages/website/ts/pages/jobs/jobs.tsx @@ -1,4 +1,4 @@ -import { colors } from '@0xproject/react-shared'; +import { colors, utils as sharedUtils } from '@0xproject/react-shared'; import * as React from 'react'; import * as DocumentTitle from 'react-document-title'; @@ -23,6 +23,8 @@ export interface JobsProps { export interface JobsState {} +const OPEN_POSITIONS_HASH = 'positions'; + export class Jobs extends React.Component { public componentDidMount(): void { window.scrollTo(0, 0); @@ -37,15 +39,18 @@ export class Jobs extends React.Component { style={{ backgroundColor: colors.white, position: 'relative' }} translate={this.props.translate} /> - + - +