Giter Site home page Giter Site logo

advice-generator's Introduction

Newsletter Sign Up

This is an advice generator app. Pulling over 200 pieces of incredible advice from an API, when you click on the die, it will give you some random but much needed advice. Live demo here.

Table of Contents

General Information

  • This site generates random advice from an API with over 200 items.
  • The site is responsive for mobile and desktop screens.
  • This project uses API calls, json() and the Math.random() method.

Technologies Used

  • HTML
  • CSS
  • JavaScript

Features

List the ready features here:

  • The page is responsive for mobile and desktop screens.
  • The Math.random() method is used to generate a random number to select a piece of advice from the API.
  • Used an advice API to extract pieces of advice and displayed them on the screen using innerText.

Screenshots

Example screenshot

Mobile screenshot Desktop screenshot Desktop screenshot

Setup

No dependencies Open the app in any web browser

Usage

When the app is open, it randomly selects a piece of advice from the API and displays the id number and the advice on the page. To generate a different piece of advice, the user should click on the die at the bottom of the app. It will display a new piece of advice and its id number.

Project Status

Project is: complete

Room for Improvement

Room for improvement:

  • Could use a tablet size media query
  • Could recreate the project in React

To do:

Acknowledgements

Give credit here.

Contact

Created by @jayadeyina - feel free to contact me!

advice-generator's People

Contributors

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