Git Product home page Git Product logo

fem-tip-calculator's Introduction

Frontend Mentor - Tip calculator app solution

This is a solution to the Tip calculator app challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Overview

The challenge

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
  • Calculate the correct tip and total cost of the bill per person

Links

Screenshot

Mobile layout Desktop layout

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • CSS Grid
  • Mobile-first workflow
  • JavaScript ES6+

What I learned

Basically I grinded my HTML & CSS & JS skills. In CSS most trouble causing for me was grid - learned it a lot. Next thing in CSS that I learned is selectors, I thought I understand it, but the truth was slightly different. In JS I had a lot of trouble about form validation I learned that if I use

someFormElement.reset();

and I have event listener, listening for 'change' it doesn't actually cause any change event so I need to do it 'manually'. I started adding a lot of comments in my JS - it improves readability a lot! I know that JavaScript side of this project is weakest, I will improve and change this project in future.

Continued development

In future I will definetly focus on JavaScript side form validation - I haven't learned a lot about it --- need to make it up. I still need to learn about JavaScripts' paradigms - I like a lot the functional paradigm.

Useful resources

  • MDN - Syntax, syntax, syntax!
  • CSS tricks - CSS tricks are just awesome, if You dont understand on MDN here u will definetly understand it!
  • StackOverflow - If you don't understand something about your code here You will have answers.

Author

fem-tip-calculator's People

Contributors

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