Skip to content

nathand940/Web-Dev-Assignment-2

Repository files navigation

Web-Dev-Assignment-2

Project Name: SkySense

Description:

  • For this assignment I was tasked with creating a weather app that displays weather and forecast for 7 days for multiple countries across the world.

  • By using Eleventy and Bulma I was able to create a dynamic, mobile-friendly weather dashboard that allows you to navigate to pages displaying the weather forecast for specific countries.

Website Features:

  • Weekly forecast cards for the countries: AUstralia, Ireland, Japan, Russia, Spain, the UK and the USA.

  • The weather conditions (temp, wind speed, weather type) for each country are displayed under each country.

  • Emojis, gathered from Unicode.org, are used to represent the weather type for each country and day.

  • Clickable cards which navigate users to that specific country or preference page.

  • A preference page where users can choose the countries they wish to be displayed, how they would like the weather to be measured (celsius/fahrenheit), dark mode to be toggled on or off, etc.

  • A responsive design by using Bulma CSS

  • Lastly, custom backgrounds to match the different weather conditions for each spcific country.

Technologies Used:

  • Eleventy was used to help generate a static site and to create a means to navigate between pages.

  • Bulma was used to create a responsive design to allow users to navigate to and from pages.

  • HTML and Nunjucks templates were used for reusable components

  • Javascript was used to create the Navbar that was interactive, created a NavbarBurger that was displayed when the page was zoomed in on (this was also interactive).

  • Javascript was also used to create an interactive preference page allowing users to clickbox certain settings and countries to be displayed.

  • A custom weather.css block of code was created for backgrounds to represent the weather for those countries.

The structure of the files is as follows:

  • _Includes - Nunjucks components

  • _Site - Generated Files

  • Css - Stylesheets

  • Image - Icons, favicon, logos

  • Pages - Index.njk, preferences.njk, country html pages

  • .Eleventy.js - Eleventy config

  • Package.json - Project dependencies

How to run program:

  • Ensure node is installed by opening command promt and typing: node -v

  • Next type: cd path/to/project

  • Then type: elvenety --serve

Deployment:

  • The website was manually deployed via Netlify by dropping and dragginh the _sitre folder and having netlify build it from there.

  • Build command: npm run build.

  • Publish directory: _site.

Known Issues:

  • I attempted to push deploy the website from git by adding in the package.json, package-lock.json and the node_modules but Netlify identified issues in the code.

  • I attempted to correct the code based on the instructions given but this led to more issues unfortunately.

  • I ended up manually deploying in the end.

Attributions:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published