This is a Next.js app I've spun up to do the sample project as per the project brief. It is live at https://github-profile-search-ochre.vercel.app/!
- Recommended: use
nvm use
to use the same node version as me (lts/hydrogen) - Run
yarn
to install the project dependencies - Run
yarn dev
to run the project locally
- User can enter a username
- User can click on search button to retrieve information
- User can see the avatar, username, followers and repository count of searched user
- User can see the top 4 repositories of searched user
- User should get an alert if the username is not valid
- User can toggle dark/light mode
- Selected mode should persist when user comes back to the app again
- Show user results on a separate page so that the url stored the username query
- Find out how to toggle dark/light while first respecting the browser's prefers-color-theme
- Use an i18n pattern to keep concern of copy separate
- Indicate loading state
- Find a way to remove flicker when using persisted theme