michodgs25 / Somerset-Trails

Find local and national parks in the Somerset Area
1 stars 1 forks source link
html-css javascript

Somerset Trails

Explore the west country's best trails, one step at a time.

Somerset is world famous for it's beautiful countryside and spectacular hill-top views with thousands of tourists flocking to visit the area every year. Somerset boasts trails such as the Cheddar Gorge, the Exmoor national park, Somerset Coastal path and many more.

Trails image

Live website here: https://michodgs25.github.io/Somerset-Trails/ - Refresh page if having loading issues

Contents

UX

Somerset Trails site was born from observing that current sites such as: https://www.somersetlive.co.uk/news/somerset-news/11-stunning-walking-routes-around-2431780, had far too many ads clogging up each page which made the experience visiting the site unappealing. The trails are such beautiful places to explore, the website should reflect this and is discouraging to see advertisements for various companies plastered everywhere. Somerset Trails purpose is to present the best of the Somerset countryside.

Somerset Trails website offers a user (see user stories below) a visually impactful experience through its application of a responsive slideshow on each trail and a Google maps feature enabling the user to toggle between satelite, terrain type and even go street view to explore each trail virtually.

Main Fonts used in this project

Fonts

User Stories


"As a local businessman whom lives in the area, websites that display Somerset trails are hard to look at with far too many adverts. I'd like the website to be beautiful to view like the trails, with little to no advertising."


"My name is Grant, I don't like websites that are too text heavy and I lose interest quickly because of this I would like the site to have lots of images and only have text where it is necessary as I feel images tell a greater story."


"Hey, my name is Jeremy a product owner for this site. I do not like when a site looks great on desktop but looks crowded& cluttered on a mobile device as I view alot of websites via my mobile so I would like the site to be pleasurable to view on mobile devices."


"Good afternoon, my name is Helen a code editor. I would like the website to be easy to navigate, as it's a pain having to scroll back to the top of each page every time I want to access a different part of a website."

Strategy

Scope

The next problem to solve was that there was already a great website called: https://www.nationaltrail.co.uk/en_GB/ - so what could I offer that is different? Users that come to this site aren't looking for trails in Wales or the north of England, this sites scope is specifically aimed towards users who either are local or who are visiting the Somerset area for a period of time.

So the next step was figuring out how to maximise the user experience and present the best of Somerset trails using imagery as primary source of information for the user. The solution came in the form of two major features - a slideshow& a Google map on each page, this provides images sourced from Google images and applies Google's powerful maps application which is known worldwide for its quality user experience.

Wire-Frames

Homepage

Home page header wireframe
Home page body wireframe
Home page footer wireframe

Results page

Results page header
Results page body
Results page footer

Features

Navigation bar feature

Navigation& Navigation dropdown

Slideshow feature

Slideshow

Slideshow Summary:

Google maps API feature

Somerset Maps

Google Maps feature Summary:

Explore tab feature

Scroll back to top of page button feature

Scroll tab

Scroll Summary:

Footer feature

Updated footer

Footer section

Features left to implement

Technologies

Testing

Testing site on different browsers - i.

Shared the link on google, internet explorer and yahoo to ensure the site looks and works as it should on different browers.

Testing device on various screen sizes - ii.

Opened Google developer tools and toggled the site between various devices, that include:

Also opened site on Samsung S10 mobile device and explored all the features.

Summary:

Device looked& worked as intended on every device and screen size that was available, the primary mobile testing screen was the iphone X as this had the ratio of 375 x 812 (width x height), with it being such a narrow width ensuring features such as the drop-up navigation box had to be carefully monitored to ensure no overlap thus causing x-scroll.

Site performance testing

Testing mobile friendliness - iii.

Applied three different verified automated online testing tools to ensure website is ready for mobile:

1.

Google developer tool lighthouse:

Lighthouse Results

Update:

Through testing scroll via mobile(Samsung Galaxy S10), scroll wasn't as smooth as could be, so removed the event-listener to see whether this was the issue. Scroll turned out to be alot more smoother without the event-listener; so the decision was to made to remove it permanently and future iterations to investigate this further.

Lighthouse results discussed here: https://github.com/michodgs24/Somerset-Trails/issues/10#issue-634894703


2.

Google mobile friendly test:

https://search.google.com/test/mobile-friendly?id=VI5xc_oZOk01oyRxKnw2GQ

Google mobile test

mobiReady results discussed here - https://github.com/michodgs24/Somerset-Trails/issues/15#issue-639850820

*Automated testing provided great value to shedding light on issues within the site as human error is very prevalent in the development process.


Functional testing

To ensure each feature works as intended, I manually tested each section from navigation bar to the footer icon links.

Code validity

Testing Code validity - iiii.

Tested html and css code formatting with https://validator.w3.org/ - done by copying& pasting the code via direct input into the site text box.

Tested the JavaScript code with https://jshint.com/ - done by copying& pasting the code via direct imput into the site text-area.

- Summary:

No errors were found in either tests, ensuring code is error free.


Testing website on mobile - iiiii

Copied site link: https://michodgs24.github.io/Somerset-Trails/ and explored the site testing each feature and the testing was done on a Samsung Galaxy S10 mobile device. Also tested the smoothness of the scroll.

- Summary:

All features work as intended, scroll is reasonably smooth and the only issue found was to do with the bottom navigation box which has been resolved.(see project barriers& solutions - https://github.com/michodgs24/Somerset-Trails/issues/16#issue-646458556 for in depth discussion on bottom navigation)

See mobile test footage here:

Exploring features: https://youtu.be/HtJoxYOrtiY Mobile scroll: https://www.youtube.com/watch?v=50wVodbREuI


Slack feedback

Summary: "Slack feedback is very valuable, as it aided the development process of increasing site responsiveness. Some of the feedback is noted such as the navigation& texts but minimal changes made, as they are specific design choices as stated above."

Read full article here: https://github.com/michodgs24/Somerset-Trails/issues/18#issue-650534228

Version Control

This sites version control is through github and using gitpod IDE, once completed a piece of work, I would type into the terminal:

git add index.html

git commit -m "Update index.html code formatting"

git push index.html

Deployment

Project barriers and the solutions

This section looks into the barriers that occurred during the process of this building this project and what solutions were chosen to hurdle those barriers:


Navigation bar barriers& solutions -

Although attempts to add a responsive breakpoint to mobile devices with a width of 411/420 did not seem to have any effect. I did increase the width of the navigation dropdown box in mobile ensuring it filled the length of the navigation expansion but again devices with widths of 411/420 did not respond whereas smaller devices(300-400) did respond.

Future iterations of the site will aim to resolve the navigation width for 411& over mobiles and add the site logo to the navigation bar, as will make this feature more personalised to this website and address issues stated above."

Read full article here - https://github.com/michodgs24/Somerset-Trails/issues/11#issue-635441825


Slideshow barriers& solutions -

Read full article here - https://github.com/michodgs24/Somerset-Trails/issues/12#issue-635778916


Google Maps barriers& solutions -

Update -

Moving Google maps documentation from HTML documents and into an external .JS file was discussed with my mentor, code institute and also learning people. The consensus reached across the board was that due to calling multiple different maps with varying markers across the site, it will not be possible to place all the maps in one file. If for example I were just calling the one single map, it would not be an issue as this is shown in the code institute tutorial - Adding The Map Element (Bootstrap 4) or using google developers tutorial https://developers.google.com/maps/faq to append to the script tag of the HTML document.

With further testing& investigations, I was able to append the home maps code via app.js, to the homepage(index.html script), however the rest of the maps code was still inline within each HTML document. Later on a solution was concocted to create a .js file for each map and append the map to the specific HTML script calling class="map-custom"to each script tag.

An unfortunate side effect implementing this solution is having to add an additional script to the footer of each page, the site was having loading issues prior to this and now the main banner sometimes does not appear at all. The page has to be refreshed for this to happen, this occurs more often on desktop screens where the banner is at its largest.

Please visit https://github.com/michodgs24/Somerset-Trails/issues/8#issue-629929008 for in-depth discussion on the overall banner process.

Despite this minor seback the positives outweigh the negatives, as the HTML documents footer are not bloated anymore& the code is cleaner and browsers can load maps with greater efficiency.

See https://github.com/michodgs24/Somerset-Trails/issues/13#issue-637367865 for an in-depth discussion on the Google maps process.


Bottom navigation barriers& solutions -

issues and bugs

This section looks into what existing issues that are still present in the project& what future iterations could do to resolve these issues:

Read full article here - Slideshow https://github.com/michodgs24/Somerset-Trails/issues/9#issue-634880128


Read full article here - https://github.com/michodgs24/Somerset-Trails/issues/8#issue-629929008


Read full article here - https://github.com/michodgs24/Somerset-Trails/issues/20#issue-652252798


Acknowledgements

External Media

All images were take from Google images advanced search with filter - "free to use or share"