This is a solution to the GitHub user search app challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Note: Delete this note and update the table of contents based on what sections you keep.
Users should be able to:
- View the optimal layout for the app depending on their device's screen size
- See hover states for all interactive elements on the page
- Search for GitHub users by their username
- See relevant user information based on their search
- Switch between light and dark themes
- Bonus: Have the correct color scheme chosen for them based on their computer preferences. Hint: Research
prefers-color-scheme
in CSS.
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
- TailWindCSS - CSS utility Framework
I learned about how to create a theme toggle button using Tailwind CSS and JavaScript, and how to set the theme based on the user's preference with the CSS prefers-color-scheme media query. I also learned how to handle form submission in JavaScript, how to make API requests with fetch(), and how to manipulate the DOM to display the response data.
- Responsiveness for different screen sizes.
- Additional features (display user's contirubution graph)
- Website - seangraydev.com
- Frontend Mentor - @seangray-dev
- Twitter - @seangray_dev