GithubHelp home page GithubHelp logo

portfolio2's Introduction

Fitness Calculator

Portfolio Project 2: Interactive Front-End Development

This is a fitness calculator for calculating a persons Basal Metabolic Rate (BMR) and Body Mass Index (BMI). The page has been designed for users age 20 or older who are looking for an easy way to calculate both values at the same time.

Mockup picture of Fitness Calculator

Demo

GitHub

https://github.com/michaelhochlan/portfolio2

GitHub Pages

https://michaelhochlan.github.io/portfolio2/

Table of Contents

User Experience

User Stories

  • The user should right away recognize the input fields and enter his/her/it values.
  • The user should receive the results by pressing the calculate button.
  • The user should be able to clear all fields by pressing the reset button.
  • The user should be able to get more information by navigating to BMR and BMI in the navigation bar.
  • The user should be able to contact us.
  • The user should get a success message when sending the contact form.
  • The user should have the option to reset the contact form at any time.
  • By using this calculator the user get's an all in one solution.

Design

The goal of this project is to build a simple and effective tool to calculate both BMI and BMR at the same time and to provide basic informations on the subjects of BMI and BMR.

Colour Scheme

The colour scheme was chosen to clearly stick out of the outer space theme and support the intuitiv navigation.


Typography

The font-family chosen was Nunito which I found on Google Fonts. I chose it for the smooth edges and easy readibility.


Wireframes

Wireframes were sketched on a napkin.

Features

Current Features

Page Layout

The page layout has been kept simple, using just a centered design to make it easy to adopt it on smaller screen sizes.

Picture of a page



The background image was chosen to give it a neutral and appealing appearance.



The background picture



Calculator Information

As soon as the inputs are done and the user hits enter, the BMI and BMR will be displayed in a bright red color in an clearly marked field. In case the user entered something wrong he can press reset to clear all the fields. The Reset as well as the Calculate button are bright red and clearly visible.



Picture of the Fitness Calculator



### Navigation

For the navigation bar was the color black chosen to enhance the contrast and make it easily detectable. The active color is green, which fits nicely in the overall appearance.



Picture of the Navigation Bar



Responsive Design

There are countless free apps for phones and tablets available to calculate the BMR and BMI. So this page will be most likely be viewed on computers. I used for many values in the css percentages and fine tuned it with the Google Developer Tools.

mobile

Picture of a page

tablet

Picture of a page

tablet - landscape view

Picture of a page

Future Features

  • I would like to add more in depth informations.
  • I would like to add a calculation for targeted heart rate while exercising based on the calculated BMR and BMI.
  • I would like to change the color of the symbols to green, when chosen. So the female graphic would turn green when chosen and wise versa the male graphic
  • I would like to come up with a solution to make the page more attractive to transgender and gender neutral users, because you can only choose between male and female, which might turn these users off.

Technologies Used

Languages Used

  1. HTML - To create the content of the page.
  2. CSS - To style the page.
  3. JavaScript - For the interactivity of the page.

Frameworks Libraries and Programmes Used

Testing

Validator Testing

I used throughout the development process the following validators:

HTML Validator

Picture of HTML validator
Picture of HTML validator
Picture of HTML validator
Picture of HTML validator

CSS Validator

Picture of CSS validator

JavaScript Validator

Picture of JavaScript validator

Lighthouse Testing

I used Chromes Lighthouse tools to test the site's performance.

Responsiveness

Chrome DevTools was used to test the responsivesness of the pages.

Problems Encountered

  • According to w3c school there is a float: center but the validator doesn't aknowledge it
  • I started out with a large javascript page and cut it more and more down by defining more functions with less code. The code checks out now, but when I run the fitness calculator now for the first time, it sometimes resets on it's own. Only the first time! After that it runs fine. I can't figure it out and it is too late for me to discuss it with my menthor. It started happening this morning.

Deployment

Deployment through GitHub Pages

This site was deployed through GitHub Pages using the following steps:

  • On GitHub open the Repositories
  • Choose the Repository you want to publish
  • Choose Settings in the top menu
  • In the side menu select Pages
  • Under Source select Deploy from branch
  • Under Branch select main and 7(root)
  • click save and wait a moment and then refresh the page
  • You will find the link to your page on the top under GitHub Pages
  • Click Visit site
  • The page is online

Credits

Many Thanks to fwstudio for the free backgroundimage on de.freepik.com (Bild von fwstudio auf Freepik)

Resources I used

portfolio2's People

Contributors

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