WDD 230 - Web Frontend Development I

07: Home Page Enhancement

Overview

Demonstrate your understanding of the learning activities by applying the concepts to your course home page. You will ♨️work with your group to apply the following specifications to your course home page.

Instructions

Screenshot example of home page counter.
Figure 1: Example of Page Counter
  1. Add a page visit counter component to the existing information card of the <main> section of the page.
    • The counter must be driven using JavaScript and localStorage
    Example: ⚙️ localStorage

    🛠️Go through the five(5) steps provided in the JS panel.

  2. Make sure that any images used on your home page do not violate their intrinsic aspect ratio in any view. Note this accessibility concept for future page testing.
    • Use the browser's DevTool Lighthouse tool to check for any violations.
    An example of contrast ratio issues can be found in this example: ⚙️Image Aspect Ratio
  3. Check that the Google Map on your page is loading lazily by viewing the loading of assets using DevTools to inspect the page.
    1. Open the browser's DevTools.
    2. Turn on the mobile device emulation.
    3. Click the Network tab in DevTools.
    4. Using the browser's Refresh button, right mouse click on it and click on the Empty Cache and Hard Reload option.
    5. Page assets can be isolated in the Network tab's submenu including img resources.
    6. Watch the loading of assets as you scroll down the page to get the Google Map into the view.

Testing & Submission