Updated Components Weather‐website design process - OtagoPolytechnic/Cloudy-with-a-Chance-of-LoRa GitHub Wiki

Redesign Weather Website - Update

https://github.com/OtagoPolytechnic/Cloudy-with-a-Chance-of-LoRa/wiki/Redesign-weather-website

image

Overview

In this redesign, I am working on improving the website's structure and user experience by reorganizing content into separate page files. This will make the codebase more manageable and ensure that future updates can be handled efficiently. The goal is to create a website that is both easy to navigate and scalable.

Changes

Moving Content to Page Files

  • I will move the existing components and content into dedicated page files. This change will create a cleaner and more organized structure where the landing page and other content pages are separate.
  • The landing page will feature simplified data for the user, greeting them with easy-to-digest information, as seen in the prototype.
  • The other pages will include more detailed content, like weather conditions, CO2 emissions, and cloud interactions.

Page Structure

The redesign will consist of 4 pages:

  1. Landing Page: This will be the first page users see, featuring a welcoming interface with basic weather data and navigation options.
  2. More Info Page: This page will contain detailed information about the weather system.
  3. CO2 Page: This page will focus on CO2 emissions and their impact on the environment.
  4. Cloud Page: This will include content related to clouds and their interaction with weather patterns.

The second page in the redesign will be the current page, which holds the existing content. This page will be refactored to serve as part of the landing page.

Design Approach

  • I will maintain identical components and format from the existing project to ensure the transition is smooth and the design remains familiar to users.
  • The page structure will allow for better scalability and easier navigation.
  • The page file will be responsible for holding the layout of the page, and each individual component will be imported and used within the appropriate page file unless the component is reusable across multiple pages.

Key Components for the Landing Page

  • NavigationBar: Handles navigation between the different pages of the website.
  • SearchHeader: Provides a search functionality for users to find specific weather information.
  • TodayForecast: Displays the current weather forecast.
  • MoreConditions: Offers additional weather-related information.
  • SevenDayForecast: Shows a forecast for the next seven days.
  • SunriseSunset: Displays sunrise and sunset times.
  • LocationDetails: Provides location-specific details, like the city name and geographical data.

These components will be imported into the landing page and arranged to offer an easy-to-understand view of the weather. This structure allows for clear presentation of data in an intuitive and accessible format.

Addressing Code Issues

  • The issue I am facing might be related to the line 'use client'; in the code along with the layout file. I plan to troubleshoot and address this to ensure proper functionality across different pages.

Conclusion

The redesign will improve the website’s organization and scalability while maintaining a familiar user experience. The new structure will allow for easier updates and provide users with a more intuitive interface. The next steps include continuing to build out the individual pages and ensuring the components work seamlessly in the new layout.

image

image image image

image