From bc90610d1af4fa5e90bb4e8765fe4c20a3e1573f Mon Sep 17 00:00:00 2001 From: maxichrome Date: Mon, 18 Jul 2022 06:46:32 -0500 Subject: [PATCH] refactor careers for when no positions open --- apps/landing/src/pages/careers.page.tsx | 90 +++++++++++-------------- 1 file changed, 41 insertions(+), 49 deletions(-) diff --git a/apps/landing/src/pages/careers.page.tsx b/apps/landing/src/pages/careers.page.tsx index 7c3a5ae60..28e1a569c 100644 --- a/apps/landing/src/pages/careers.page.tsx +++ b/apps/landing/src/pages/careers.page.tsx @@ -15,26 +15,14 @@ import React from 'react'; import { Helmet } from 'react-helmet'; import { ReactComponent as Content } from '~/docs/changelog/index.md'; -export const positions = [ - { - name: 'TypeScript React UI/UX Engineer', - type: 'Full-time', - salary: '$80k - $120k', - description: `You'll build the primary desktop interface for Spacedrive in React, with TypeScript and Tailwind. You'll need an eye for design as well as a solid understanding of the React ecosystem.` - }, - { - name: 'Rust Backend Engineer', - type: 'Full-time', - salary: '$80k - $120k', - description: `You'll build out our Rust core, the decentralized backend that powers our app. From the virtual filesystem to encryption and search. You'll need to live and breathe Rust, not be afraid to get low-level.` - }, - { - name: 'TypeScript React Native Engineer', - type: 'Full-time', - salary: '$80k - $120k', - description: `You'll build out the majority of our mobile app in TypeScript and React Native. Developing a mobile first component library based on the design of our desktop application. You'll need to be passionate for building React Native apps that look and feel native.` - } -]; +interface PositionPosting { + name: string; + type: string; + salary: string; + description: string; +} + +export const positions: PositionPosting[] = []; const values = [ { title: 'Async', @@ -129,21 +117,21 @@ function Page() { See Open Positions
-

Our Values

+

Our Values

What drives us daily.

{values.map((value) => (
-

{value.title}

+

{value.title}

{value.desc}

))}

-

+

Perks and Benefits -

+

We're behind you 100%.

{perks.map((value) => ( @@ -158,37 +146,41 @@ function Page() { ))}

-

+

Open Positions -

-

Any of these suit you? Apply now!

+ +

If any open positions suit you, apply now!

- {positions.map((value) => ( -
-
-

{value.name}

-
- - - {value.salary} - - - - {value.type} - + {positions.length === 0 ? ( +

+ There are no positions open at this time. Please check back later! +

+ ) : ( + positions.map((value) => ( +
+
+

{value.name}

+
+ + + {value.salary} + + + + {value.type} + +
+

{value.description}

-

{value.description}

-
- ))} + )) + )}

-

- How to apply? -

-

- Send your cover letter and resume to careers at spacedrive dot com and we'll get - back to you shortly! +

How to apply?

+

+ Send your cover letter and resume to careers at spacedrive dot com and + we'll get back to you shortly!