Giter Site home page Giter Site logo

github-profile-search's Introduction

GitHub Profile Search

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/!

Running the project

  1. Recommended: use nvm use to use the same node version as me (lts/hydrogen)
  2. Run yarn to install the project dependencies
  3. Run yarn dev to run the project locally

User Stories

  • 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

Bonus features

  • User can toggle dark/light mode
  • Selected mode should persist when user comes back to the app again

What I would improve next

  • 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

github-profile-search's People

Contributors

kevbot-git avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.