Staying fit and healthy make you better at life. You sleep better your mood is improved, you are more productive at work and the list goes on. Getting started with workout routines can be very intimidating and working out what to do can sometimes make you feel lost.
We created The Sweat Factory to help with exercise routines. Mixing things up and and keeping it simple. From the diehard Crossfit Athletes to total beginners and everyone that wants to get fit and healthy. We supply the routines you supply the sweat.
Starting a exercise routine can be daunting. What do you start with, how long must I do it etc, etc. We created The Sweat Factory to take care of all you routines. We have a lot of decisions to make every day and The Sweat Factory is here to help.
- The site caters for Crossfit Athletes that want a good workout.
- Beginners who don't know where to start.
- Anyone who want to get into functional fitness this a good place to start.
The website is easy to navigate and to understand. It features one page with a header and a short introduction. There are three slides with links to the various levels and also a random link if you cant decide.
It has a stopwatch for you exercise below the list. There are also links to our various social media platforms if you want demo's of the various movements or if you want to connect to the community.
The header has the websites name in a bos clearly displayed and below it is a short introduction of why you would use the site.
The slides contain three links. this helps with navigating on the page and displays a list of exercises. The Beginner button will display a list of beginner exercises.
Advanced will display an advanced list.
If you cannot choose from the list, there is a random link. It will ask you what level you are at(Beginner or Advanced), and when you click on the level it will assign you an exercise at your chosen level.
Once you have chosen or been assigned at random the exercise list will appear. It is displayed in a list where the first exercise appears at the top. Some of the routines have a time limit and others are for time(how fast can you perform the routine) We provided a stopwatch to keep time. It was placed under the list so you can keep track of the time and what exercise to perform next
The footer contains links to our social media pages for people to connect and for demo's of our exercises.
- HTML
- CSS
- Javascript
- HTML - The HTML was passed through HTML Validator and no errors were found.
- CSS - The CSS was passed through Jigsaw no errors were found but displayed warnings.
- Javascript - was passed through JSLint warnings were displayed lins of code in the lists are longer than 80 characters
- When first testing the website the stopwatch had a bug. When the start button was pressed the stopwatch started and when pressed again it would start again . I changed the code to add a "pass" if the values of the minutes or seconds were greater than zero.
- The website was tested on and Iphone SE , 8 ,with Google Chrome , Microsoft Edge, Firefox, Safari and on an Ipad. The website worked as expected.
- The links was tested on every button and the stopwatch was run to make sure it displays the correct time. The exercises work on "For time ", how fast the exercise can be performed or a time limit eg. 20 min , so there was no need for hour on the stopwatch.
- When testing the hover effect on the slide links the text would not change unless you hovered over the text. I added a anchor element inside a button. It was fixed by removing the button element in the HTML.
The website was tested with Lighthouse for accessibility, performance, best practice and search engine optimization and high scores were achieved in all catagories.
There are no unfixed bugs
Regular commits was made to save progress. When changes was made we typed in the following in bash the terminal
- git add . (adds all the changes)
- git commit -m "commit message" (commits the changes with a message)
- git push (pushes the changes to Github)
Github pages was used to deploy page.
- Log onto Github and go to repository.
- Clicked the "Settings" button in the menu above the Repository.
- In Settings scroll down to the Github pages section.
- Select the main branch from the dropdown menu and select the root directory and save
- Log into your GitHub then find the gitpod repository
- Under the repository name there is a button that says "Clone or download". Click on this button.
- If cloning with HTTPS "Clone with HTTPS", copy this link.
- Open Gitbash
- Change the current working directory to the location where you want the cloned directory to be.
- Type git clone, and then paste the URL you copied earlier.
- Stopwatch code was developed with the help of a youtube video by Gowtham Tirri.
- Photos were taken from Pexels.com