Add /careers route and fix hr styling
This commit is contained in:
@@ -115,7 +115,7 @@ export class Footer extends React.Component<FooterProps, FooterState> {
|
||||
{
|
||||
title: this.props.translate.get(Key.Careers, Deco.Cap),
|
||||
isExternal: false,
|
||||
path: WebsitePaths.Jobs,
|
||||
path: WebsitePaths.Careers,
|
||||
},
|
||||
{
|
||||
title: this.props.translate.get(Key.Contact, Deco.Cap),
|
||||
|
||||
@@ -77,10 +77,8 @@ render(
|
||||
<Route exact={true} path="/" component={Landing as any} />
|
||||
<Redirect from="/otc" to={`${WebsitePaths.Portal}`} />
|
||||
{/* TODO: Remove this once we ship the jobs page*/}
|
||||
{utils.shouldShowJobsPage() ? (
|
||||
<Route path={WebsitePaths.Jobs} component={Jobs as any} />
|
||||
) : (
|
||||
<Route path={WebsitePaths.Jobs} component={Redirector as any} />
|
||||
{utils.shouldShowJobsPage() && (
|
||||
<Route path={WebsitePaths.Careers} component={Jobs as any} />
|
||||
)}
|
||||
<Route path={WebsitePaths.Portal} component={LazyPortal} />
|
||||
<Route path={WebsitePaths.FAQ} component={FAQ as any} />
|
||||
@@ -131,6 +129,12 @@ render(
|
||||
path={`${WebsiteLegacyPaths.Deployer}/:version?`}
|
||||
component={LazySolCompilerDocumentation}
|
||||
/>
|
||||
{/* TODO: Remove this once we ship the jobs page*/}
|
||||
{utils.shouldShowJobsPage() ? (
|
||||
<Route path={WebsiteLegacyPaths.Jobs} component={Jobs as any} />
|
||||
) : (
|
||||
<Route path={WebsiteLegacyPaths.Jobs} component={Redirector as any} />
|
||||
)}
|
||||
|
||||
<Route path={`${WebsitePaths.Docs}`} component={LazyZeroExJSDocumentation} />
|
||||
<Route component={NotFound as any} />
|
||||
|
||||
@@ -314,7 +314,7 @@ export class About extends React.Component<AboutProps, AboutState> {
|
||||
}}
|
||||
>
|
||||
We are seeking outstanding candidates to{' '}
|
||||
<Link to={WebsitePaths.Jobs} style={{ color: 'black' }}>
|
||||
<Link to={WebsitePaths.Careers} style={{ color: 'black' }}>
|
||||
join our team
|
||||
</Link>
|
||||
. We value passion, diversity and unique perspectives.
|
||||
|
||||
@@ -43,7 +43,7 @@ export class Jobs extends React.Component<JobsProps, JobsState> {
|
||||
public render(): React.ReactNode {
|
||||
return (
|
||||
<div>
|
||||
<DocumentTitle title="Jobs" />
|
||||
<DocumentTitle title="Careers at 0x" />
|
||||
<TopBar
|
||||
blockchainIsLoaded={false}
|
||||
location={this.props.location}
|
||||
|
||||
@@ -47,7 +47,11 @@ export class OpenPositions extends React.Component<OpenPositionsProps, OpenPosit
|
||||
const isSmallScreen = this.props.screenWidth === ScreenWidths.Sm;
|
||||
return (
|
||||
<Container id={this.props.hash} className="mx-auto pb4 px3" maxWidth="1200px">
|
||||
{!isSmallScreen && <hr />}
|
||||
{!isSmallScreen && (
|
||||
<hr
|
||||
style={{ border: 0, borderTop: 1, borderStyle: 'solid', borderColor: colors.jobsPageDivider }}
|
||||
/>
|
||||
)}
|
||||
<Container marginTop="64px" marginBottom="50px">
|
||||
<Text fontFamily="Roboto Mono" fontSize="24px" fontColor={colors.black}>
|
||||
Open Positions
|
||||
|
||||
@@ -10,6 +10,7 @@ const appColors = {
|
||||
drawerMenuBackground: '#4a4a4a',
|
||||
menuItemDefaultSelectedBackground: '#424242',
|
||||
jobsPageBackground: sharedColors.grey50,
|
||||
jobsPageDivider: '#cccccc',
|
||||
jobsPageOpenPositionRow: sharedColors.grey100,
|
||||
metaMaskOrange: '#f68c24',
|
||||
metaMaskTransparentOrange: 'rgba(255, 248, 242, 0.8)',
|
||||
|
||||
@@ -356,6 +356,7 @@ export enum WebsiteLegacyPaths {
|
||||
ZeroExJs = '/docs/0xjs',
|
||||
Web3Wrapper = '/docs/web3_wrapper',
|
||||
Deployer = '/docs/deployer',
|
||||
Jobs = '/jobs',
|
||||
}
|
||||
|
||||
export enum WebsitePaths {
|
||||
@@ -376,7 +377,7 @@ export enum WebsitePaths {
|
||||
Subproviders = '/docs/subproviders',
|
||||
OrderUtils = '/docs/order-utils',
|
||||
EthereumTypes = '/docs/ethereum-types',
|
||||
Jobs = '/jobs',
|
||||
Careers = '/careers',
|
||||
}
|
||||
|
||||
export enum DocPackages {
|
||||
|
||||
Reference in New Issue
Block a user