From d89f8b0bc0243fd4b5793c5b076144c9f174ef9c Mon Sep 17 00:00:00 2001 From: yashmandi Date: Sat, 1 Jun 2024 10:15:06 +0530 Subject: [PATCH] FIXES #167 --- .../components/About/Home/SectionFourth.jsx | 16 +++- .../components/About/Home/SectionThird.jsx | 3 +- client/src/components/Home/SectionFourth.jsx | 16 +++- client/src/components/Home/SectionSixth.jsx | 73 +++++++++++-------- client/src/components/Home/SectionThird.jsx | 14 +++- client/src/pages/Companies.jsx | 23 ++++-- client/src/pages/FindJobs.jsx | 19 ++++- 7 files changed, 115 insertions(+), 49 deletions(-) diff --git a/client/src/components/About/Home/SectionFourth.jsx b/client/src/components/About/Home/SectionFourth.jsx index 919e424..5c1d987 100644 --- a/client/src/components/About/Home/SectionFourth.jsx +++ b/client/src/components/About/Home/SectionFourth.jsx @@ -29,9 +29,18 @@ const SectionFourth = () => { return ( - - + Find Best Companies @@ -41,7 +50,7 @@ const SectionFourth = () => { {companies.map(company => ( - + { - ); }; diff --git a/client/src/components/About/Home/SectionThird.jsx b/client/src/components/About/Home/SectionThird.jsx index c2522e6..49e1533 100644 --- a/client/src/components/About/Home/SectionThird.jsx +++ b/client/src/components/About/Home/SectionThird.jsx @@ -1,6 +1,7 @@ import React from 'react'; import { Box, Grid, Typography, Card, CardContent, CardMedia, Container } from '@mui/material'; import { jobs } from '../../utils/data'; // Import jobs data from your utils/data file +import './styles.css'; // Import the CSS file const SectionThird = () => { return ( @@ -15,7 +16,7 @@ const SectionThird = () => { {jobs.map(job => ( - + { return ( - - + Find Best Companies @@ -41,7 +50,7 @@ const SectionFourth = () => { {companies.map(company => ( - + { - ); }; diff --git a/client/src/components/Home/SectionSixth.jsx b/client/src/components/Home/SectionSixth.jsx index 267dc10..d306c93 100644 --- a/client/src/components/Home/SectionSixth.jsx +++ b/client/src/components/Home/SectionSixth.jsx @@ -32,37 +32,48 @@ const SectionFifth = () => { return ( - - - Featured Cities - - - Start your next career in a beautiful city - - - {cities.map(city => ( - - - - - - {city.name} - - - {city.openPositions} open positions - - - - - ))} - - + + + + Featured Cities + + + Start your next career in a beautiful city + + + {cities.map(city => ( + + + + + + {city.name} + + + {city.openPositions} open positions + + + + + ))} + + ); }; diff --git a/client/src/components/Home/SectionThird.jsx b/client/src/components/Home/SectionThird.jsx index c2522e6..574b5c8 100644 --- a/client/src/components/Home/SectionThird.jsx +++ b/client/src/components/Home/SectionThird.jsx @@ -6,6 +6,18 @@ const SectionThird = () => { return ( + Featured Job Offers @@ -15,7 +27,7 @@ const SectionThird = () => { {jobs.map(job => ( - + { const location = useLocation(); const navigate = useNavigate(); - const handleSearchSubmit = () => {}; - const handleShowMore = () => {}; + const handleSearchSubmit = () => { }; + const handleShowMore = () => { }; return (
+
{

- Shwoing: 1,902 Companies + Showing: 1,902 Companies Available

@@ -47,7 +58,9 @@ const Companies = () => {
{data?.map((cmp, index) => ( - +
+ +
))} {isFetching && ( @@ -72,7 +85,7 @@ const Companies = () => { )}
{/* Top Scroll Btn */} - {window.scrollTo({ top: 0, left: 0, behavior: "smooth"});}}/> + { window.scrollTo({ top: 0, left: 0, behavior: "smooth" }); }} />
); }; diff --git a/client/src/pages/FindJobs.jsx b/client/src/pages/FindJobs.jsx index 1c15bb1..cf1d4d0 100644 --- a/client/src/pages/FindJobs.jsx +++ b/client/src/pages/FindJobs.jsx @@ -39,10 +39,21 @@ const FindJobs = () => { return (
+
{}} + handleClick={() => { }} searchQuery={searchQuery} setSearchQuery={setSearchQuery} location={jobLocation} @@ -124,7 +135,9 @@ const FindJobs = () => {
{jobs.map((job, index) => ( - +
+ +
))}
@@ -139,7 +152,7 @@ const FindJobs = () => {
{/* Top Scroll Btn */} - {window.scrollTo({ top: 0, left: 0, behavior: "smooth"});}}/> + { window.scrollTo({ top: 0, left: 0, behavior: "smooth" }); }} />
); };