-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removed careers page code and redirect to join.com
- Loading branch information
1 parent
2561983
commit 266acd6
Showing
11 changed files
with
21 additions
and
314 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,12 @@ | ||
import React from 'react' | ||
import CareersHero from '@/components/Careers/CareersHero' | ||
import { CareersHeader } from '@/components/SEO/Static' | ||
import { AllCareers } from '@/data/CareersData' | ||
import NoCareersPage from '@/components/Careers/NoCareersHero' | ||
import { SimpleGrid } from '@chakra-ui/react' | ||
import CareerCard from '@/components/Careers/CareersCard' | ||
import { GetServerSideProps } from 'next' | ||
import { serverSideTranslations } from 'next-i18next/serverSideTranslations' | ||
import { useTranslation } from 'next-i18next' | ||
|
||
const OurCareers = () => { | ||
const { t } = useTranslation('careers') | ||
return ( | ||
<main> | ||
<CareersHero title={t('heroTitle')} description={t('heroDescription')} /> | ||
<SimpleGrid | ||
maxW={{ base: '100%', md: '95%', '2xl': '1280px' }} | ||
py={{ base: 8, lg: 16 }} | ||
mx="auto" | ||
px={{ base: '5', md: 0 }} | ||
gap={{ base: 10, md: '15' }} | ||
> | ||
{AllCareers.map((career, i) => ( | ||
<CareerCard | ||
key={i} | ||
title={career.title} | ||
location={career.location} | ||
description={career.description} | ||
link={career.link} | ||
/> | ||
))} | ||
</SimpleGrid> | ||
</main> | ||
) | ||
} | ||
|
||
const Careers = () => { | ||
return ( | ||
<> | ||
<CareersHeader /> | ||
{AllCareers.length !== 0 ? <OurCareers /> : <NoCareersPage />} | ||
</> | ||
) | ||
} | ||
|
||
export const getServerSideProps: GetServerSideProps = async ({ locale }) => { | ||
return { | ||
props: { | ||
...(await serverSideTranslations(locale ?? 'en', ['careers', 'common'])), | ||
}, | ||
} | ||
import { useRouter } from 'next/router' | ||
import { useEffect } from 'react' | ||
|
||
function index() { | ||
const router = useRouter() | ||
useEffect(() => { | ||
router.push('https://join.com/companies/iq') | ||
}, []) | ||
return null | ||
} | ||
|
||
export default Careers | ||
export default index |
This file was deleted.
Oops, something went wrong.