Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
7053CEM/front-end/src/pages/JobItem.js
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
67 lines (63 sloc)
1.92 KB
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
import * as React from "react"; | |
import Box from "@mui/material/Box"; | |
import Card from "@mui/material/Card"; | |
import CardActions from "@mui/material/CardActions"; | |
import CardContent from "@mui/material/CardContent"; | |
import Button from "@mui/material/Button"; | |
import Typography from "@mui/material/Typography"; | |
import { Divider } from "@mui/material"; | |
const JobItem = (props) => { | |
const { jobDetails } = props; | |
const card = ( | |
<Box sx={{ display: "flex", flexDirection: "row" }}> | |
<Card sx={{ minWidth: 300 }}> | |
<CardContent> | |
<Typography gutterBottom variant="h5" component="div"> | |
{jobDetails?.jobTitle} | |
</Typography> | |
<Typography variant="body2" color="text.secondary"> | |
{jobDetails?.jobCompany} | |
</Typography> | |
</CardContent> | |
<Divider /> | |
<CardContent> | |
<Typography variant="body2" color="text.secondary"> | |
Prerequisites: {jobDetails?.preRequisites} | |
</Typography> | |
<Typography variant="body2" color="text.secondary"> | |
Salary Range: {jobDetails?.salaryRange} | |
</Typography> | |
<Box | |
sx={{ display: "flex", justifyContent: "flex-end", marginTop: 1 }} | |
> | |
<Button | |
variant="contained" | |
href={jobDetails?.applyLink} | |
target="_blank" | |
> | |
Apply | |
</Button> | |
</Box> | |
</CardContent> | |
</Card> | |
<Card sx={{ minWidth: 500 }}> | |
<CardContent> | |
<Typography variant="body2" color="text.secondary"> | |
{jobDetails?.jobDescription} | |
</Typography> | |
</CardContent> | |
</Card> | |
</Box> | |
); | |
return ( | |
<Box sx={{ minWidth: 350, margin: "15px" }}> | |
<Card | |
variant="outlined" | |
sx={{ flex: 1, boxShadow: "0px 4px 20px rgba(0, 0, 0, 0.1)" }} | |
> | |
{card} | |
</Card> | |
</Box> | |
); | |
}; | |
export default JobItem; |