Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic New Items Feature #557

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

worldofwandag
Copy link

Task:

  1. to make "New Items" dynamically fetch from given API.
  2. Create Skeleton Loading state (with animated shimmer effect)
  3. Implement Slick Slider Carousel.
  4. Display Countdown timer taking data from API.

Why (optional but should be done on the job)

To demonstrate Frontend skills for internship.

How

  1. Used axios.get to fetch from API coupled with a useState to print it in return / html.
  2. implemented useEffect for skeleton loading state with setTimeout along with a useState hook for loading and mounting.
  3. created custom arrows and implemented slider by setting specific parameters.
  4. created a new UI component called "UseCountdown.jsx" that converted Expiry date into a time in milliseconds, then calculated it to help display it in hours, minutes, seconds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant