Giter Site home page Giter Site logo

iqrivas / nonnatus-coffee Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 92 KB

Coffee Machine built with HTML, CSS, and Javascript. Power up with the best coffee in town.

Home Page: https://nonnatus-coffee.vercel.app/

License: MIT License

HTML 24.24% CSS 35.49% JavaScript 40.27%
html css vanilla-js coffee-machine platzimaster platzi-master javascript

nonnatus-coffee's Introduction

Nonnatus Coffee

You can order a coffee from this machine, select size and sugar level. Just wait a few seconds and enjoy! Power up with the best coffee in town.

Technologies used

Built with Vanilla JS and CSS

How to use

  • Start your order
  • Select a size
  • Select the sugar level you desire
  • Click on Start Preparation (Once the preparation starts the order cannot be canceled)
  • Wait for your beverage to be ready
  • Enjoy!

Demo

This application is deployed at https://nonnatus-coffee.vercel.app/

Screenshots

New Order

Select Size

Sugar Level


Serving Coffee

Order Finished

Run Locally

You can clone the project and run it on your own computer. Make the changes you want.

  git clone https://github.com/iqrivas/nonnatus-coffee.git

Go to the project directory

  cd nonnatus-coffee

*No need to install dependencies. Just open the index.html file in your browser.

Project Developed as part of Platzi Master:

  • Created by Denisse Rivas Github | LinkedIn
  • Frontend Focus | Slack: DenisseRivas
  • Assigned by: Platzi Master Coach - Ana Belisa Martinez

nonnatus-coffee's People

Contributors

iqrivas avatar

Watchers

 avatar  avatar

nonnatus-coffee's Issues

Excelente Trabajo!

Hemos realizado la revisión de tu repositorio y hemos encontrado los siguientes puntos de mejora :)

Si tienes alguna inquietud o deseas solicitar una nueva revisión puedes comunicarte con Ana Belisa por Slack y enviar por el formulario nuevamente tu repositorio.

El proyecto tiene un gran rendimiento, así como una interfaz amigable, al punto que (confieso), sin leer la documentación, pude entender de qué iba el proyecto, lo cual es excelente. En cuanto al código, se puede observar ciertas áreas de mejora:

  • La función cancelOrder (así como otras), podría reducirse usando funciones auxiliares, en la que se pasa la lista de objetos a las que se les aplicará el remove o el add. En pseudocódigo:
Por objeto en lista:
    objeto.remove(“hidden”)
  • De igual forma, el string que tiene el prepPanel (líneas 36 – 41) es casi idéntico como en la función startPrep (líneas 105 – 110). Podría volverse un string formateado, en el que solo se pasa el texto del

    . Ya sea “Preparing” o “Serving”.

  • Para el caso de los setTimeout (líneas 93-100), se ve que quieres que ocurra algo después de otra cosa, considero que podrías hacer uso de async await para el mejor manejo de encadenamientos, y así garantizar que se ejecutan en orden, sin tener que calcular los tiempos.

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.