Skip to content

brunocs90/github-user-search-app

Repository files navigation

Github User Search

Project   |    Technologies   |    Setup   |    License



layout


🚀 Project

Your challenge is to build out this GitHub user search app using the GitHub users API and get it looking as close to the design as possible.

You can use any tools you like to help you complete the challenge. So if you've got something you'd like to practice, feel free to give it a go.

Your 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.

The GitHub users API endpoint is https://api.github.com/users/:username. So, if you wanted to search for the Octocat profile, you'd be able to make a request to https://api.github.com/users/octocat.

Expected behaviour

  • On first load, show the profile information for Octocat.
  • Display an error message (as shown in the design) if no user is found when a new search is made.
  • If a GitHub user hasn't added their name, show their username where the name would be without the @ symbol and again below with the @ symbol.
  • If a GitHub user's bio is empty, show the text "This profile has no bio" with transparency added (as shown in the design). The lorem ipsum text in the designs shows how the bio should look when it is present.
  • If any of the location, website, twitter, or company properties are empty, show the text "Not Available" with transparency added (as shown in the design).
  • Website, twitter, and company information should all be links to those resaources. For the company link, it should remove the @ symbol and link to the company page on GitHub. For Octocat, with @github being returned for the company, this would lead to a URL of https://github.com/github.

💻 Technologies

This project was developed using the following technologies:

📥 Setup

Clone this repository and navigate to the directory. Then, install all dependencies with the following command:

npm i

Next, run the command:

npm run dev

📝 License

This project is licensed under the MIT license. See the LICENSE file for more details.


Developed by Bruno César.

About

The GitHub User Search App project is an application that allows users to search for GitHub users and display relevant information about them. The application is developed using React, TypeScript, and the GitHub API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors