-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cac0d44
commit 5741641
Showing
14 changed files
with
421 additions
and
167 deletions.
There are no files selected for viewing
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 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,7 +1,12 @@ | ||
import React from "react" | ||
import Joblist from "./joblist/Joblist" | ||
|
||
function JobPage() { | ||
return <div>JobPage</div> | ||
return ( | ||
<> | ||
<Joblist /> | ||
</> | ||
) | ||
} | ||
|
||
export default JobPage |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import React from "react" | ||
|
||
type Props = {} | ||
|
||
const CompanyOverview = (props: Props) => { | ||
return ( | ||
<> | ||
<h1 className="my-14 text-center text-4xl font-bold">Company Overview</h1> | ||
<div className="rounded border border-gray-100/50 dark:border-neutral-600"> | ||
<div className="text-center"> | ||
<div className="mx-auto h-20 w-20 rounded-full"> Image </div> | ||
<h3 className="mt-4 mb-0 text-3xl text-gray-900 dark:text-gray-50"> | ||
Job Title | ||
</h3> | ||
<p className="mb-4 text-gray-500 dark:text-gray-300">Company name</p> | ||
<h3 className="mt-4 mb-0 text-3xl text-gray-900 dark:text-gray-50"> | ||
Website | ||
</h3> | ||
<p className="mb-4 text-gray-500 dark:text-gray-300">URL</p> | ||
<h3 className="mt-4 mb-0 text-3xl text-gray-900 dark:text-gray-50"> | ||
Description | ||
</h3> | ||
<p className="mb-4 text-gray-500 dark:text-gray-300">Description</p> | ||
</div> | ||
</div> | ||
</> | ||
) | ||
} | ||
|
||
export default CompanyOverview |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import React from "react" | ||
import { useParams } from "react-router-dom" | ||
import jobData from "@app/constants/dummy.json" | ||
|
||
type Props = {} | ||
|
||
const JobOverview = (props: Props) => { | ||
let { jobId } = useParams() | ||
|
||
console.log(jobId) | ||
|
||
// Find the job that matches the jobID from the URL | ||
const job = jobData.find((j) => j.jobID === jobId) | ||
|
||
// If job doesn't exist, you can handle the null case by rendering something else | ||
if (!job) { | ||
return <div>No job found</div> | ||
} | ||
return ( | ||
<> | ||
<div className="my-14 rounded border border-gray-100/50 p-6 dark:border-neutral-600"> | ||
<h1 className="m-2 text-2xl font-bold">Job Overview</h1> | ||
<h2 className="text-2xl font-bold">{job.title}</h2> | ||
<div className="font-bold">{job.location}</div> | ||
<div className="font-bold">Posted: {job.datePosted}</div> | ||
</div> | ||
</> | ||
) | ||
} | ||
|
||
export default JobOverview |
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 |
---|---|---|
@@ -0,0 +1,68 @@ | ||
import React from "react" | ||
import CompanyOverview from "./CompanyOverview" | ||
import JobOverview from "./JobOverview" | ||
|
||
type Props = {} | ||
|
||
const jobdetail = (props: Props) => { | ||
return ( | ||
<div className="grid grid-cols-12 gap-y-10 lg:gap-10"> | ||
<div className="col-span-10 lg:col-span-3"> | ||
<CompanyOverview /> | ||
<JobOverview /> | ||
</div> | ||
<div className="col-span-12 lg:col-span-9"> | ||
<div className="mt-14 rounded-md border border-gray-100/30 dark:border-neutral-600/80"> | ||
<div className="relative"> | ||
<img | ||
className="img-fluid mb-7 h-[300px] w-[800px] rounded-md" | ||
alt="Image" | ||
src="" | ||
/> | ||
<div className="absolute -bottom-7 left-7 z-20"> | ||
<img className="img-fluid mb-7 rounded-md" alt="Image" src="" /> | ||
</div> | ||
</div> | ||
</div> | ||
<div className="p-6"> | ||
<div className="grid grid-cols-12"> | ||
<div className="col-span-12 lg:col-span-8"> | ||
<div className="relative"> | ||
<h5 className="mb-1 text-gray-900 dark:text-gray-50"> TEST </h5> | ||
</div> | ||
</div> | ||
</div> | ||
<div className="mt-8 grid grid-cols-12 gap-y-3 lg:gap-3"> | ||
<div className="col-span-12 lg:col-span-4"></div> | ||
</div> | ||
<div className="mt-5"> | ||
<h3 className="mb-3 text-gray-900 dark:text-gray-50"> | ||
Job Description | ||
</h3> | ||
<p className="mb-0 text-gray-500 dark:text-gray-300"> | ||
Descriptions | ||
</p> | ||
</div> | ||
<div className="mt-5"> | ||
<h3 className="mb-3 text-gray-900 dark:text-gray-50"> | ||
Responsibilities | ||
</h3> | ||
<p className="mb-0 text-gray-500 dark:text-gray-300"> | ||
Descriptions | ||
</p> | ||
</div> | ||
<div className="mt-5"> | ||
<h3 className="mb-3 text-gray-900 dark:text-gray-50"> | ||
Qualification | ||
</h3> | ||
<p className="mb-0 text-gray-500 dark:text-gray-300"> | ||
Descriptions | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default jobdetail |
Oops, something went wrong.