Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update structure of home #186

Merged
merged 1 commit into from
Mar 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
5 changes: 5 additions & 0 deletions src/loadables/home/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Loadable from '@loadable/component'

export const OurTerms = Loadable(() => import('../../pages/home/our-terms'))
export const TechStack = Loadable(() => import('../../pages/home/tech-stack'))
export const JoinUs = Loadable(() => import('../../components/layout/join-us'))
2 changes: 1 addition & 1 deletion src/pages/careers/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import PerksBenefits from './perks-benefits'
import OpenPositions from './open-positions'
import HiringProcess from './hiring-process'
import Layout from 'components/layout/layout'
import { JoinUs } from 'pages/home'
import { JoinUs } from '../../loadables/home'

const Careers = () => {
return (
Expand Down
5 changes: 0 additions & 5 deletions src/pages/home/index.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import { Helmet } from 'react-helmet'
import Carousel from './home/carousel'
import Welcome from './home/welcome'
import { JoinUs, OurTerms, TechStack } from './home'
import { JoinUs, OurTerms, TechStack } from '../loadables/home'
import Layout from 'components/layout/layout'

const Home = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/job-description/description.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import styled from 'styled-components'
import { StaticImage } from 'gatsby-plugin-image'
import { JobTitleProps } from './data'
import { JobTitleProps } from 'data/job-description-data'
import { Card } from 'components/containers/flex'
import { ContainerWrapper, Header } from 'components/containers'
import { BlueBackground } from 'images/common/jd'
Expand Down
2 changes: 1 addition & 1 deletion src/pages/job-description/job-title.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import styled from 'styled-components'
import { StaticImage } from 'gatsby-plugin-image'
import { JobTitleProps } from './data'
import { JobTitleProps } from 'data/job-description-data'
import { ContainerWrapper, ImageContainer } from 'components/containers'
import Background from 'images/common/background.png'
import device from 'themes/device'
Expand Down
2 changes: 1 addition & 1 deletion src/pages/open-positions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Helmet } from 'react-helmet'
import Hero from './hero'
import OpenPositions from './open-positions'
import Layout from 'components/layout/layout'
import { JoinUs } from 'pages/home'
import { JoinUs } from '../../loadables/home'

const Positions = () => {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/pages/open-positions/open-positions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Text } from 'components/containers/main'
import { ContainerWrapper } from 'components/containers/common/style'
import Flex, { Card, CardButton, LinkContainer } from 'components/containers/flex'
import device from 'themes/device'
import { positions } from 'pages/job-description/data'
import { positions } from 'data/job-description-data'
import { BlueBackground } from 'images/common/jd'

type StyledProps = {
Expand Down
2 changes: 1 addition & 1 deletion src/templates/position.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import JobTitle from '../pages/job-description/job-title'
import BenefitsList from '../pages/job-description/benefits'
import Positions from 'data/positions.json'
import Layout from 'components/layout/layout'
import { JoinUs } from 'pages/home'
import { JoinUs } from '../loadables/home'

const JobDescription = (props: PageProps) => {
const position = Positions?.find(({ id }) => id === props.pageContext.slug)
Expand Down
Loading