From 70d5390f75f72f8fdbd88d5e24b28072c63752a7 Mon Sep 17 00:00:00 2001 From: Maria Tenorio Morales Date: Wed, 17 Jul 2024 22:09:17 +0900 Subject: [PATCH] Job Board (100%) Fix for responsive UI --- src/components/JobCard/JobCard.tsx | 47 +++++++++++++++++++++++------- 1 file changed, 37 insertions(+), 10 deletions(-) diff --git a/src/components/JobCard/JobCard.tsx b/src/components/JobCard/JobCard.tsx index 8db3d82..3a0421e 100644 --- a/src/components/JobCard/JobCard.tsx +++ b/src/components/JobCard/JobCard.tsx @@ -1,5 +1,5 @@ import { FC } from 'react' -import { Grid, Avatar, Typography, Link, Chip, Card, CardContent, Stack } from '@mui/material' +import { Grid, Avatar, Typography, Button, Chip, Card, CardContent, Stack } from '@mui/material' import BusinessIcon from '@mui/icons-material/Business' import LocationOnIcon from '@mui/icons-material/LocationOn' import AccountBalanceWalletIcon from '@mui/icons-material/AccountBalanceWallet' @@ -17,23 +17,29 @@ interface JobCardProps { } const JobCard: FC = ({ title, company, logoUrl, jobPostingUrl, location, salary, tags }) => { + const handleReadMoreClick = () => { + if (jobPostingUrl) { + window.open(jobPostingUrl, '_blank') + } else { + console.error('No URL provided') + } + } + return ( - + - + - + - - {title} - + {title} @@ -49,7 +55,7 @@ const JobCard: FC = ({ title, company, logoUrl, jobPostingUrl, loc {salary} - + {tags.map((tag, index) => ( @@ -57,8 +63,8 @@ const JobCard: FC = ({ title, company, logoUrl, jobPostingUrl, loc ))} - - + + @@ -73,6 +79,27 @@ const JobCard: FC = ({ title, company, logoUrl, jobPostingUrl, loc + + + + +