Skip to content

KC-7/life-hacks-v2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Life Hax Logo

Life Hax Website

Link to the home page here or click on the header above.

Design & User Experience


Design

This website is for an online life hacks company called Life Hax. Life Hax are currently offering free sign up to new members. Membership gives you access to their mailing list and mobile app. All users will receive access to content designed to save them time and money. This site is mainly targeted at male and female users between the ages of 18 and 65 years old. Once the website has built up a user base, they will add advertisements to generate site revenue. Existing members will remain ad free however new members who do not wish to see ads will need to sign up for a paid membership. The site will aim to provide tailored content for users in future based on their interests as the site grows.

View of Home Page

The site is intending to attract B2C customers and has been designed in a simple and unique manner that encourages the user to sign up. The website is easy to navigate by using a nav bar and floating top of screen button alongside the links and buttons within the website. The colours and styling were applied in a consistent manner to the site so that is visually appealing and uniform. Potential customers in our target audience where interviewed during the planning stages to find out information on what would make a good experience and encourage them to sign up. Competing sites were reviewed to find out what works and what can be improved on.

Features to implement on the site were reviewed by ranking their importance against their feasibility to implement, this allowed me to focus on what would be most important for the end user and the success of the site. I also made some preliminary site mockup drawings in advance of developing. I got inspiration on colours by checking out sites such as Canva.

User Stories

With increased inflation globally and long working hours, its only normal that adults will seek out ways to save time and money and the best way to do this is by signing up to the Life Hax website. The site aims to provide high quality, custom content that is tailored for the user based on their interests. The site meets the following requirements for visiting users:

  • Easy to navigate, simple yet attractive in design and easy to follow to create a pleasant user experience.
  • Provides a sign up form with as little clicks as possible for the user to direct to and complete.
  • Shows examples of Life Hacks with images.
  • Provides rational for why you should sign up in easy to follow text format.
  • Provides details of what you will get when you sign up to become a member and videos to promote same.
  • Provides links to navigate to Life Hax's social channels and app download links.
  • Website works on a large range of devices with different screen dimensions, the site responds appropriately to each size.

Features


Navigation

  • The nav bar is located at the top of the screen and shows the site logo on the left hand side and the nav menu on the right hand side.

Nav Bar Wide Design

  • The nav menu includes 4 links which navigate to different sections of the main page. The links in the nav bar on the home page send the user directly to the section id to avoid reloading the page. The links on the confirmation page send you back to the main page.

  • The nav bar menu has responsive styling to work on devices with screen widths as low as 280px. Media queries have been added so that the menu appears aesthetically pleasing on a variety of different screen sizes. On larger screens, it shows all 4 items on 1 row. On smaller devices, such as mobile phones, the menu is displayed in 2 rows with 2 links on each row.

Nav Bar Narrow Design

  • The home page has a link button at the bottom of the screen to send you back to the top of the page, this feature was not required on the confirmation page.

Top of Page Button

  • The nav bar has a decorative border around the items when the user hovers over it. The styling is in line with the rest of the website.

Hero Image Section

  • The Hero Cover Image is displayed at the top of the page. An image with a transparent background was chosen and a visual zoom animation effect was also added to this.

  • Cover text is displayed in front of the image. The cover text includes the company slogan "Life Changing, Life Hax". The first line is a heading and then the company name "Life Hax" is displayed below it as an image. There is a button that links the user to go straight to the sign up section to encourage them to join straight away with as little time spent scrolling to the section as possible.

  • The CSS Validation logo has been added to the bottom left of this section with an active link for anyone who is interested in verifying the site's code is working. The opacity has been reduced as this is not intended to be the focal point of the section.

Hero Image Responsive Design

Life Hack Examples Section

  • The Life Hack Examples section includes 3 divs to highlight different life hacks, three topics where chosen with examples listed below each heading.

  • A picture is included in each div. It is styled to be displayed in a circular border.

  • The sections are divided into 3 divs which are displayed on a single row on larger screen widths and 1 div per row on smaller screen widths.

  • The divs are styled with a decorative border, background colour etc. that is in line with the styling used in the rest of the website.

Life Hack Examples Section Responsive Design

Why Join Section

  • The why join section is divided into 4 divs and includes content on why the user should join. It also includes another semi-subtle link to send the user to the sign up section. The site objective is to sign up as many users as possible.

  • All 4 divs are displayed in one row on large screens, 2 divs per row on medium screens and 1 div per row on small screens.

  • The divs are styled with a decorative border, background colour etc. that is in line with the styling used in the rest of the website.

Why Sign Up Section Responsive Design

Membership Section

  • The membership section includes 2 headings and 2 videos. The sections are displayed on 1 row on larger devices and 1 section per row on smaller devices.

  • The divs are styled with a decorative border, background colour etc. that is in line with the styling used in the rest of the website.

Videos Responsive Design

Sign Up Section

  • The sign up section includes a form with text input areas for first name, last name, email address and password with each type set correctly. There is a question with 7 radio options, first 6 are individual options while the last option is for all so it is displayed on the row below regardless of the device's screen width. The last part of the form is the submit button which is styled to entice the user to click the big red button when it is hovered over. The form will not allow the user to submit their data unless the required information has been provided.

  • The form is styled to be in line with the site styling however all 4 corners are rounded which is intentionally different than the above sections. This is similar to the hero cover text and the confirmation text.

  • The text input area is styled to adjust in size on smaller devices.

  • The radio answers are designed to be distributed evenly onto multiple rows on smaller devices.

Sign Up Form Responsive Design

Confirmation Page

  • When the form is submitted correctly, it will take the user to the sign up confirmation page. This page is not accessible via the nav links. This page is included so that the user knows that their data has been submitted correctly.

  • The confirmation page is styled similarly to the main page so the experience is pleasant for the site users.

  • The confirmation page includes a nav bar, footer, buttons and background image that are all similar in styling to the main home page.

Confirmation Page Responsive Design

Social & App Section

  • The footer contains 2 divs which provide links for social media and app stores. The divs are displayed on 1 row on larger devices and 1 div per row on smaller devices.

  • The colours are inversed from the above sections, this is visually appealing and provides a clear distinction between the footer and above sections.

Footer Responsive Design

Favicon

  • The Favicon, the picture in the browser tab (learned from using W3Schools' guide on implemeting this feature), was added to give the site a profesional feel to the user.

Life Hax Favicon

Technologies


The following technologies were used to develop this site:

  • HTML - is used to structure the website.

  • CSS - is used to style the website.

  • Google Fonts - is used to import additional fonts.

  • Font Awesome V5 Icons - is used to import icons.

  • GitPod - is the platform used to develop the site.

  • GitHub - is used to host the website.

Testing


Initial Testing

  • The initial tests were carried out by utilising the inspect feature on the Google Chrome web browser on my laptop. I also checked how the website responded on my mobile phone. I checked different browsers such as Goggle Chrome, Brave Browser, Mozilla Firefox and Microsoft Edge. I ran initial (W3C & Jigsaw) validation tests for both the HTML and CSS alongside Lighthouse Reports on Chrome. I addressed and resolved any of the issues that arose.

Test Cases to ensure site performs as intended

  • All links in the nav bar were checked to ensure they direct you to the correct location and that the smooth scroll effect is working. The hover feature was checked to ensure the custom border is displayed correctly.

  • The Top of Page button was checked to ensure it directs you back to the top of the page smoothly.

  • The page was reloaded to check that the hero image zoom animation is working.

  • The sign up link in the hero image cover text was checked to ensure it directs the user to the correct location smoothly.

  • The W3C logo was checked to ensure it is displayed in the correct location, opens in a new tab and provides no errors on the validation page.

  • The Life Hacks section was checked to ensure that the styling, hover features, icons and images are all working as intended.

  • The Why Join section was checked to ensure that the styling, hover features, icons, link to sign up and images are all working as intended.

  • The Membership section was tested to ensure that the divs are styled correctly, icons are working, videos displayed correctly, playing automatically, in a continuous loop and in good quality.

  • The Sign Up section was checked to ensure the following:

    • The form is displayed with the correct styling.
    • Both the first and last name are required and show in the input field as standard test.
    • The email address field is required and set correctly (i.e. input requires an "@" and ".")
    • The password section is required and hides the entered text.
    • The what are you most interest in question is displayed correctly and one answer is required.
    • The all of the above radio answer is displayed below the first 6 options.
    • The Sign Up button is displayed in the correct style and that the hover feature is working. It must take the user to the confirmation page when the required data for the form as been completed by the user.
  • The Footer section was tested to ensure that all links are working, open in a separate page, and that the styling is set correctly for the different background colour, icons and text.

  • The Confirmation page was tested to ensure the following:

    • The nav menu and footer links are working correctly.
    • The content is displayed in front of the hero image.
    • The styling of the text, background and borders is working.
    • The Return to Home Page button is working.

Bugs & Solved Issues

  • My images and videos were not working when the site was deployed at first as I had used a "/" in front of the file locations.

  • Initially, I uploaded higher quality photos and videos. To improve the website performance, as recommended on the lighthouse report, I reduced the file sizes accordingly so that they are now an optimal size and in a optimal format (i.e. .webp & .mp4) for the website. I also experimented by adding the videos to the site by embedding a YouTube video using iframes but chose not to go ahead with this.

Video Size Warning

  • Initially, I had 6 nav bar links and designed for the nav bar menu items to be stacked vertically on smaller devices. This meant the clickable area on mobile devices would have been on the small side and potentially be considered as a bug or design flaw. To improve on this, I removed the link to the Social & App section in the footer and moved the "Top of Page" link into a button that is displayed at the bottom right hand side of the website instead. I then restyled the responsive design for the menu nav bar so that it goes from 4 items in 1 row to 2 items spread over 2 rows for smaller devices. Previous nav bar shown below:

Previous Nav Bar

  • At first, I created a circular div with a link inside of it that was displayed in the hero text. I consider this as a bug as it gave the impression that by clicking anywhere inside the circle would activate the link but the user actually had to click on the text to follow the link. To rectify this issue, I implemented a button enclosed in a form that sends the user to the desired location. I then implemented this button type on the confirmation page as well.

  • When I set up the confirmation page, I copied the nav bar over from the home page. I discovered during initial testing that the links were not working. The links on the home page nav bar were set to send the user directly to the section of the page without refreshing so did not include the full URL, only the section path. I updated the links on the confirmation page nav bar so they would work.

  • I was provided with a CSS validator link once the website passed the checks. Initially, this link would not work, I resolved this by using the alternative link they provided. I also removed the trailing slash and hosted the image on GitHub instead of linking to an external resource. I also added a no opener, alt, styling etc.

W3C HTML Validator

  • No issues found in final tests on both the main and confirmation pages.

Home Page HTML Validation:

HTML Validator for Home Page

Confirmation Page HTML Validation:

HTML Validator for Confirmation Page

W3C CSS Validator

  • No issues found in final tests on both the main and confirmation pages. CSS Validator logos with links have been added to both pages.

CSS Home Page Validation:

CSS Validator for Home Page

CSS Confirmation Page Validation:

CSS Validator for Home Page

Lighthouse - Performance, Accessibility, Best Practices & SEO

Lighthouse Score

  • Performance: 98%
  • Accessibility: 100%
  • Best Practices: 100%
  • SEO: 100%

The same results were achieved for both the main and confirmation page. The performance score can vary, above results achieved while using the Google Chrome Browser in Incognito mode to disable browser extensions. Time was spent on improving all scores by addressing the highlighted opportunities in the Lighthouse Report.

Lighthouse Score for Index Page

Lighthouse Score for Confirmation Page

Visual Testing

  • Visual testing was mainly carried out using the Google Chrome Inspect function. I tested all sections of the site on a combination of different screen sizes.

  • Visual testing was also carried out using Am I Responsive. The responsive image examples shown above were taken from this website. This site provides simulations in the following sizes:

    • Desktop: 1600 x 992 px - scaled down to scale (0.3181)
    • Laptop: 1280 x 802 px - scaled down to scale (0.277)
    • Tablet: 768 x 1024 px - scaled down to scale (0.219)
    • Mobile: 320 x 480 px - scaled down to scale (0.219)
  • I carried out visual testing on the following device sizes using Google Inspect:

    • iPhone SE: 375 x 667 px
    • iPhone XR: 414 x 896 px
    • iPhone 12 Pro 390 x 844 px
    • Pixel 5: 393 x 851 px
    • Samsung Galaxy S8+: 360 x 740 px
    • Samsung Galaxy S20 Ultra: 412 x 915 px
    • iPad Air: 820 x 1180 px
    • iPad Mini: 768 x 1024 px
    • Surface Pro 7: 912 x 1368 px
    • Galaxy Fold: 280 x 653 px - Note, this is the smallest device size the site has been designed to operate on
    • Nest Hub: 1024 x 600 px
    • Nest Hub Max: 1280 x 800 px
  • I physically tested the site on the following devices:

    • Dell Monitor - 24": 1920 x 1200 px
    • Lenovo Yoga 910 - 14" (4k): 3840 x 2160 px
    • Samsung Galaxy S10 - 5.8": 360 x 760 px

Unresolved Bugs & Future Improvements

Unresolved Bugs

  • All bugs that I am aware of have been addressed and resolved.

Future Improvements

  • Add JavaScript to remove the "Top of Page" link button when the user is already at the top of the page.

  • Implement a responsive nav menu with a "hamburger" styled menu for use on smaller devices, especially useful if additional sections are added to the site in future.

  • Consider relocating the cover text over the hero text on the home page to the right hand side of the screen so the sign up link is closer to the users thumb on mobile devices if right handed. This will only work once the Top of Page Button has been removed when the user is at the top of the page or it would interfere with the content - see above point.

  • Currently the sign up form does not send any data or create an account for user, this will need to be set up in future.

  • Implement a "404 Page Not Found" Page with custom design in line with the rest of the site.

  • Develop a mobile application for site and share via the Google and Apple App Stores. Updated links in footer.

  • Create social media pages for the site and update links in footer.

  • Create contact email address for the site, update contact info on confirmation page.

  • Set website up on custom web domain.

  • Add additional life hack examples with additional images and custom videos to draw in more potential users.

  • Carry out additional user feedback interviews and review any issues or recommendations that are highlighted accordingly.

Deployment


GitPod

  • I developed the site using HTML and CSS in GitPod.

  • I ran a local sever each time I was viewing & editing it by typing the below into the terminal:

    • python3 -m http.server
  • For version control, I regularly updated my work to GitHub by entering the below commands into the terminal:

    • git add .
    • git commit -m "Update message here"
    • git push

GitHub

  • The site was deployed to GitHub pages. This was achieved by navigating to settings from the GitHub Repository, selecting GitHub Pages, changing the source to main branch, saving and then publishing.

GitHub Pages in Settings

Credits


Content

  • This site was developed using information learned from the Code Institute alongside other online resources such as W3Schools.

  • The Code Institute's Gitpod Full Template was used as the basis for the project. The repository is available on their GitHub Account.

  • The code used to animate the hero image zoom effect was learned from the Code Institute's Love Running Project. The values were modified to suit the Life Hax website.

  • I learned how to implement the Favicon, the picture in the browser tab, from using W3Schools guide on implementing this feature.

  • I learned how to implement the smooth scroll function, the effect that scrolls down to the area being navigated to instead of jumping to it, from using W3Schools guide on implementing this feature.

  • The social links, app download sections and the CSS validator logo all contain links to third party websites.

  • Fonts added using Google Fonts.

  • Icons added using Font Awesome | Free V5 Icons.

  • The resposive images in the README file above were taken from Am I Responsive.

Media

  • Both of the videos on the homepage were sourced from Pexel. Both are available for use in the Public Domain. Both videos have a HTML comment above them to give credit to the content uploaders, "Tima Miroshnichenko" & "cottonbro", in the index.html file.

  • All of the images were sourced from RawPixel and are available for use in the Public Domain.

  • The custom site logo was created using Shopify's Free Logo Maker.

  • The CSS image was provided by the W3 Jigsaw Validator once all checks were passed.

  • The video size was reduced using Free Convert's Video Compessor.

  • The images were converted to webp format using Convertio's WEBP Converter.

  • The images were resized using Adobe's Online Image Resizer .

  • I got inspiration on colours by checking out sites such as Canva.

About

A website for life hacks (version 2)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published