refactor: use tsx for jobs page

This commit is contained in:
jinhojang6 2023-11-01 21:08:50 +09:00
parent ba6a67d38b
commit 9119df3c0d
2 changed files with 35 additions and 21 deletions

View File

@ -1,21 +0,0 @@
import { SEO } from '@/components/SEO'
import { Navbar } from '@/components/Navbar'
import { Home } from '@/containers/Home'
import { Mission } from '@/components/Mission'
import { Footer } from '@/components/Footer'
import { JobList } from '@/components/JobList'
import { Box } from '@/components/Box'
<SEO />
<Navbar />
<Box>
<JobList unit={'codex'} />
<JobList unit={'status'} />
<JobList unit={'waku'} />
<JobList unit={'nimbus'} />
<JobList unit={'nomos'} />
</Box>
<Footer />

35
src/pages/jobs.tsx Normal file
View File

@ -0,0 +1,35 @@
import { Box } from '@/components/Box'
import { JobList } from '@/components/JobList'
import { Navbar } from '@/components/Navbar'
import { SEO } from '@/components/SEO'
import { DefaultLayout } from '../layouts/DefaultLayout'
const Page = () => {
return (
<>
<SEO />
<div>
<Navbar />
<Box>
<JobList unit={'codex'} />
<JobList unit={'status'} />
<JobList unit={'waku'} />
<JobList unit={'nimbus'} />
<JobList unit={'nomos'} />
</Box>
</div>
</>
)
}
Page.getLayout = function getLayout(page: React.ReactNode) {
return <DefaultLayout>{page}</DefaultLayout>
}
export async function getStaticProps() {
return { props: {} }
}
export default Page