Implement an Image Carousel component using React that displays a series of slides, some of which will be locked based on user XP points. The carousel should include a nav-bar for navigation.
Tech stack-> Next.js, TypeScript, React Testing Library with Jest, Redux, Tailwind CSS.
Data -> Chapters API, User XP API.
https://drive.google.com/file/d/1uiibyZ7tibck7m17KirQ0GxJwFe1_bZe/view?usp=sharing
https://image-carousel-zeta-five.vercel.app/
https://mocki.io/v1/306e1e4d-22c0-4645-90cc-5cb048238f56
https://mocki.io/v1/711ee638-acc4-47aa-b0d1-c63fe3c2b85c
- Use Embla Carousel or any other service/library for the carousel functionality.
- Allow users to scroll through the carousel using mouse wheel input.
- Clicking a navbar option should slide the user's UI to the start of the respective chapter.
- If the user's XP is below the unlockXp value of a slide, it should be locked. Display a lock icon over locked slides. When a locked slide is clicked, the card should shake briefly to indicate it is locked.
- Implement lazy loading for images.
- Unit tests and integration tests for key components and functions.
-
git clone https://github.com/Dikshant441/ChainScore-Round-3.git
-
npm install or npm i
-
npm run dev
-
http://localhost:3000
For any queries related to the project, contact at singhdikshant200@gmail.com
ed6c05a4bd19a47e5aded20d26751e8754ad176a


