Giter Site home page Giter Site logo

adefelic / hancock.lighting Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hancock-lighting/hancock.lighting

0.0 1.0 0.0 55.05 MB

๐ŸŒฉ Steady blue, clear view. Flashing blue, clouds due. Steady red, rain ahead. Flashing red, snow instead.

Home Page: http://hancock.lighting/

License: MIT License

JavaScript 1.66% Python 41.02% CSS 50.45% HTML 6.87%

hancock.lighting's Introduction

Steady blue, clear view. Flashing blue, clouds due. Steady red, rain ahead. Flashing red, snow instead.

Table of Contents

  1. Motivation

Motivation

It's almost a rite of passage for designers to make a flashy weather app of questionable utility. By looking down at your screen, this project replicates the experience of looking up in a limited geographic area to view the manually-controlled lights on the tip of a tower. This gives you the information you need to decipher a poem that gives you a high-level description of your current area's current weather conditions.

When I was working at the Boston Globe, I tried my hardest to resurrect the old Boston.com weather beacon feature. It captured a delightful little detail of the city's rich history, but unfortunately, the project was never made a priority.

This site makes good on that attempt, and is a little love letter to the city that's been my home for the past decade. It's also a chance to put a lot of CSS techniques into practice, including some new approaches and technologies I wanted a chance to try out. Fortunately, I was also able to browbeat my friend Dan into helping with the icky Python part.

Technology

Browser Support

This site makes liberal use of evergreen browser features such as flexbox, SVG, viewport units, CSS blend modes, etc. As such, it makes few concessions for IE support.

Installation

Assuming you have Node and Node Package Manager installed, you can install a local copy by:

  1. Cloning from https://github.com/ericwbailey/hancock.lighting.git
  • Running npm install
  • Then running gulp

This should pull down this repo's code, install all required Node modules, then build the site and open it in your browser via Browsersync.

Cheating

If you're impatient and would like to preview the different states without waiting for the time and weather to change, you can append the following to the end of the URL: /?beacon=cloudy&time=nighttime

Where the beacon values are:

  • clear
  • cloudy
  • raining
  • snowing
  • sox-rainout
  • sox-champs (only works with nighttime)

And the time values are:

  • daytime
  • nighttime

Note: Changing the site's time and weather states won't affect the outside world.

Contributing

Please follow the contributing guidelines for submitting Issues and Pull and Feature Requests.

If you'd just like to show a little love, contacting the authors on Twitter is probably your best bet:

License

MIT License

hancock.lighting's People

Contributors

ericwbailey avatar danielsmc avatar

Watchers

Adam DeFelice avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.