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.
createContext
anduseContext
to open modal from child components.- Customize
react-toggle
based on design provided.
- Create a light and dark theme with
styled components
and add theme provider. - Add modern css reset by Andy Bell to global styles.
- Added definition file for
styled components
for theme file.
- Customize chart based on design provided.
- Add custom tooltip component to display number of followers.
- Use
themeContext
to 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.