Code Monkey home page Code Monkey logo

githubsearch's Introduction

The challenge 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

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.

        </section>
        <section>
            <header>
                <div></div>
                <div></div>
            </header>
            <p></p>
            <div>
                <div>
                    <span></span>
                    <h1></h1>
                </div>
                <div>
                    <span></span>
                    <h1></h1>
                </div>
                <div>
                    <span></span>
                    <h1></h1>
                </div>
            </div>
            <div>
                <div>
                    <img src="" alt="" />
                    <h2></h2>
                </div>
                <div>
                    <img src="" alt="" />
                    <h2></h2>
                </div>
                <div>
                    <img src="" alt="" />
                    <h2></h2>
                </div>
                <div>
                    <img src="" alt="" />
                    <h2></h2>
                </div>
            </div>
        </section>

githubsearch's People

Contributors

okondev2021 avatar

Watchers

 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.