Skip to content

A scroller web application that gives you a brief description of each UC school. It displays the demographic of each school, and there's an option to check the live weather update in each city. Click "Find Places to Eat" to see what eatery you can go to if you are visiting!

Notifications You must be signed in to change notification settings

kevinpark02/college_town_facts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UC College Town Facts

Table of contents

  • Background and overview
  • Project link
  • Functionality & MVP
  • Architecture and Technologies

Background and overview

UC College Town Facts is a scroller with data visualizations of demographics in each UC school along with live updates of the weather in each city and places to eat. The scroller format and different hover effects make the website interactive. The users can easily compare different information about each school by scrolling up and down.

Project link

Here is a link to the live project: https://kevinpark02.github.io/college_town_facts/

Functionality & MVP

Users are able to:

  • Scroll through the visualizations (9 slides)
  • Hover over each of the charts to see more detailed information about the demographics
  • Toggle between demographics chart and thelive weather chart
  • Click on "Find Places to Eat" button to look for places to eat
  • Hover over school icons to to the right to see general details about each school
  • Toggle between visualizations of each school by using the navigation bar to the right

Architecture and Technologies

The project uses the following technologies:

  • JavaScript for scrolling and updating the displayed visualization correctly depending on the location of the website
  • anychart for data visualization
  • OpenWeatherMapto get live weather updates
  • Webpack for bundling JS files

Keeping track of the scroll location

  • I created a scrollFunction that is activated once the user begins to scroll.
  • The scrollFunction first declares various components of each school, and I achieved that by using getElementById or querySelector as shown below:
  • I kept track of the scrollTop value to either add or remove different classes to update/show/remove visualization.

Receiving the live weather update

  • I created a weather class that makes a fetch request to openweathermap database that returns the weather information about the city in which each college is located in.
  • I created a user interface (UI) class for each school, which uses the weather information and displays them on the browser.
  • The combination of weather class and the UI classes are used to display the weather information.

About

A scroller web application that gives you a brief description of each UC school. It displays the demographic of each school, and there's an option to check the live weather update in each city. Click "Find Places to Eat" to see what eatery you can go to if you are visiting!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published