-
Notifications
You must be signed in to change notification settings - Fork 8
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
Showing
31 changed files
with
30,016 additions
and
3,816 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
import React, { useState } from 'react'; | ||
import img1 from '../../assets/CareersPage/1.png' | ||
import img2 from '../../assets/CareersPage/2.png' | ||
import img3 from '../../assets/CareersPage/3.png' | ||
import img4 from '../../assets/CareersPage/4.png' | ||
import img5 from '../../assets/CareersPage/5.png' | ||
import { FaArrowCircleLeft, FaArrowCircleRight } from 'react-icons/fa'; | ||
const Carousel = () => { | ||
const [currentIndex, setCurrentIndex] = useState(0); | ||
const images = [ | ||
{ src: img1,label:'Health & Wellness' }, | ||
{ src:img2 , label: 'Work Life Balance' }, | ||
{ src:img3 , label: 'Financial Benefits' }, | ||
{ src:img4, label: 'Office Environment' }, | ||
{ src:img5 , label: 'Remote Opportunities' }, | ||
{ src: img1, label: 'Health & Wellness' }, | ||
{ src:img2, label: 'Work Life Balance' }, | ||
{ src:img3, label: 'Financial Benefits' }, | ||
{ src:img4 , label: 'Office Environment' }, | ||
{ src:img5, label: 'Remote Opportunities' }, | ||
]; | ||
|
||
const prevSlide = () => { | ||
const index = currentIndex === 0 ? images.length - 1 : currentIndex - 1; | ||
setCurrentIndex(old=>{ | ||
return old === 0 ? images.length - 1 : old - 1; | ||
}); | ||
|
||
}; | ||
|
||
const nextSlide = () => { | ||
// const index = currentIndex === images.length - 1 ? 0 : currentIndex + 1; | ||
setCurrentIndex(old=>{ | ||
return old === images.length - 1 ? 0 : old + 1; | ||
}); | ||
}; | ||
|
||
return ( | ||
<div className="flex flex-col gap-2 w-10/12 my-4 mx-auto"> | ||
<div className="flex gap-8 overflow-hidden relative"> | ||
{ | ||
images.slice(currentIndex,currentIndex + 3).map((image, index) => ( | ||
<div className="flex-none md:w-1/3 p-4 bg-white transition-all rounded-lg shadow-md border" key={index}> | ||
<img className="w-full h-32 object-cover mb-4 rounded-lg" src={image.src} alt="image" /> | ||
<h3 className="text-lg w-full text-center font-bold">{image.label}</h3> | ||
</div> | ||
)) | ||
} | ||
</div> | ||
<div className="flex place-self-end mt-8"> | ||
{[{ | ||
onClick:prevSlide, | ||
text:'Prev', | ||
icon:<FaArrowCircleLeft /> | ||
}, | ||
{ | ||
onClick:nextSlide, | ||
text:'Next', | ||
icon:<FaArrowCircleRight /> | ||
}].map(btn=>{ | ||
return ( | ||
<button | ||
onClick={btn.onClick} | ||
className="top-1/2 shadow-xl rounded-full p-2" | ||
> | ||
{btn.icon} | ||
</button> | ||
) | ||
})} | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Carousel; |
Oops, something went wrong.