Code Monkey home page Code Monkey logo

spend-jeff-bezos-money's People

Contributors

arelyskywalker avatar germmand avatar noeggfriedrice avatar ocarlic avatar therealaltoid avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

spend-jeff-bezos-money's Issues

Shopping section displays a weird grid

Current Behavior:
Right now if you buy two or more items, you'll notice that the shopping section start displaying items in a weird way. Products are gonna overlap, or they're not gonna be displayed in a consistent way.

Expected Behavior:
The grid should displayed 4 items in a medium (or large) screen and only two in a small screen. (i.e. md=3, xs=6). And they should be displayed evenly.

Keep buying after you ran out of money

Current Behavior:
You can keep pressing the buy button after you ran out of money. Or you can keep modifying the input of a item to a quantity you're not allowed because you don't have enough money.

Expected Behavior:
Block the buy buttons of the products you can't keep buying because you don't have enough money left.

  • Case 1:
    Let's say an item costs $100,000, and you only have $50,000 money left, the buy button of that item should be disabled.

  • Case 2:
    If you're modifying the input directly, and you type a quantity that multiplied by the price outranges the money left, the quantity should be reduced to an amount that's allowed for the money left.

    Let's say an item costs $100,000 and you have $1,000,000 money left. If you type directly 20, the quantity should be reduced to 10. Because that's what you can actually buy.

Add more products to the page

So far there's only a few varieties of products. We need more! Contribute to this project by adding more products.

You can add as many as you want, just paste the image inside:
public/images/items

And add it to:
src/Products/index.js.

The object needs to be shaped as such:

{
    id,    // number - an integer representing the identifier for this product
    name,  // string - the name displayed in the card
    price, // number - the price displayed in the card and to work with
    image, // string - a path to the image
}

The page has a max width on mobile

Current behavior:
If you see the page on a mobile device, you'll see that the elements aren't displayed in a full-width way.

Screenshot from 2019-09-30 14-18-55

Expected behavior:
In a mobile device, the components should be displayed in full-width. Whilst in large screen, they should have a max-width.

Entering negative numbers in the inputs

Current behavior:
When there's a number (different from zero) in any of the input components, you can turn it negative by adding a minus (-) at the beginning. You can't do it if the input has a value of zero.

Expected behavior:
You shouldn't be able to add negatives to the input components.

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.