Skip to content

Commit

Permalink
Merge pull request #1933 from EveripediaNetwork/new-careers-page
Browse files Browse the repository at this point in the history
Removes careers page code and redirect to join.com
  • Loading branch information
kesar committed Jul 11, 2024
2 parents 2561983 + 71c0d41 commit 6440f51
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 306 deletions.
55 changes: 0 additions & 55 deletions src/components/Careers/CareersCard.tsx

This file was deleted.

49 changes: 0 additions & 49 deletions src/components/Careers/CareersHero.tsx

This file was deleted.

36 changes: 0 additions & 36 deletions src/components/Careers/NoCareersHero.tsx

This file was deleted.

35 changes: 0 additions & 35 deletions src/components/Careers/NoOpeningsCard.tsx

This file was deleted.

28 changes: 11 additions & 17 deletions src/components/Layout/Footer/MenuFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
Heading,
SimpleGrid,
Stack,
Tag,
Text,
} from '@chakra-ui/react'
import { Logo, Link } from '@/components/Elements'
Expand Down Expand Up @@ -116,27 +117,20 @@ const MenuFooter = () => {
<Link
textAlign={{ base: 'center', md: 'left' }}
prefetch={false}
href="/careers"
href="https://join.com/companies/iq"
>
{`${t('careers')}`}
</Link>
{/* {AllCareers.length !== 0 && (
<Tag
ml="2"
size="sm"
variant="solid"
bgColor="brandLinkColor"
fontSize="10px"
>
We&apos;re hiring
</Tag>
)} */}
<Tag
ml="2"
size="sm"
variant="solid"
bgColor="brandLinkColor"
fontSize="10px"
>
We&apos;re hiring
</Tag>
</Box>
{/* <Link
textAlign={{ base: 'center', md: 'left' }}
prefetch={false}
href="/us-careers"
>{`${t('usCareers')}`}</Link> */}
<Link
textAlign={{ base: 'center', md: 'left' }}
prefetch={false}
Expand Down
19 changes: 0 additions & 19 deletions src/components/SEO/Static.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,25 +64,6 @@ export const PrivacyPolicySEO = () => (
/>
)

export const CareersHeader = () => (
<NextSeo
title="Jobs"
description="Join us to spread the knowledge of blockchain | Search Job Openings across IQ.wiki Network"
titleTemplate="%s | IQ.wiki"
canonical="https://iq.wiki/careers"
openGraph={{
title: 'Jobs',
description:
'Join us to spread the knowledge of blockchain | Search Job Openings across IQ.wiki Network',
}}
twitter={{
cardType: 'summary_large_image',
handle: '@IQWiki',
site: 'IQWiki',
}}
/>
)

export const CaPrivacyRightsHeader = () => (
<NextSeo
title="CA Privacy Rights"
Expand Down
63 changes: 10 additions & 53 deletions src/pages/careers/index.tsx
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
42 changes: 0 additions & 42 deletions src/pages/us-careers_deprecated.tsx

This file was deleted.

0 comments on commit 6440f51

Please sign in to comment.