Skip to content

rashidshamloo/fem_029_coding-bootcamp-testimonials-slider

Repository files navigation

Front End Mentor - Project 029 - Coding Bootcamp Testimonials Slider

This is a solution to the Coding Bootcamp Testimonials Slider challenge on Frontend Mentor.

Table of contents

Overview

Screenshot + Video

  • Desktop

video-desktop.mp4
  • Mobile

video-mobile.mp4

Links

My process

Built with

  • Vite / React.js
  • TypeScript
  • Framer Motion
  • Tailwind CSS
  • Semantic HTML5 markup

What I learned

  • Using TypeScript with React.js
  • Using interfaces for component props in TypeScript
  • Implementing components that wrap around other elements and take them as a prop (children)
  • Iterating through component children and modifying/adding to their props
  • Using React.cloneElement, React.isValidElement, React.ReactNode and React.Children in TypeScript
  • Debugging (Googling) TypeScript errors (lots of them!) and learning from them
  • Using Event Listeners that change the state in React components inside the useEffect() hook
  • Detecting swipe left/right from a touch device using react-swipeable hook
  • Using bg-[length:] to set arbitrary value for background size in Tailwind CSS
  • Why margin-top moves the parent down (margin collapsing) instead of leaving an empty space and how to fix it (overflow:auto; on parent)
  • Using Framer Motion animation library with React.js
  • Using variants in Framer Motion
  • Using <AnimationPresence> in Framer Motion to keep animating components when they're removed from the DOM
  • Using useRef() hook in TypeScript
  • Adding custom breakpoints in Tailwind CSS

Useful resources

Author

About

Front End Mentor - Project 029 - Coding Bootcamp Testimonials Slider

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors