Small project made with:
Clone this repository and run the following commands in your terminal.
npm i
npm run dev
- Data is hard coded to focus on building the UI with mobile first approach.
createContextanduseContextto open modal from child components.- Customize
react-togglebased on design provided.
- Create a light and dark theme with
styled componentsand add theme provider. - Add modern css reset by Andy Bell to global styles.
- Added definition file for
styled componentsfor theme file.
- Customize chart based on design provided.
- Add custom tooltip component to display number of followers.
- Use
themeContextto use colors from theme
- Added reusable modal component with native
<dialog>element. - Use react modal to display stats chart.
- Hide close button label with css.
Replaced green and red colors for better color contrast based on report made with Axe DevTools
- green: hsl(163, 73%, 28%)
- red: hsl(356, 69%, 49%)
- Store dark mode state in localStorage.
- Add loading skeleton.
- Add breakpoints list in styled components.