Coder Social home page Coder Social logo

yoyosamo / airport-codes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lynnandtonic/airport-codes

0.0 2.0 0.0 266.13 MB

Making sense of those three-letter airport codes.

Home Page: http://airportcod.es

CSS 42.94% JavaScript 45.97% HTML 11.09%

airport-codes's Introduction

Airport Codes

A website that tries to make sense of those three-letter airport codes.

Contributing

If you'd like to add an airport or fix an error, please:

Working Locally

npm install
gulp

Adding/Editing Airport Content

Airport content can be found in /data in individual files. Use the three-letter airport code as the filename (e.g. phx.json).

Content in each json file:

  • id = three-letter code (e.g. phx)
  • code = three-letter code (phx)
  • name = airport name (Sky Harbor International Airport)
  • city = primary city name (Phoenix)
  • state = state name, if applicable (Arizona)
  • stateShort = state abbreviation, if applicable (AZ)
  • country = country name (USA)
  • description = description, accepts markdown, use * for emphasis on letters
  • imageCredit = name of photographer
  • imageCreditLink = URL of photographer's Flickr page

You can also optionally add for aid in searching:

  • city2 = another city or county the airport may be known for
  • city3 = another city or county the airport may be known for

Add the airport to /data/index.js.

Images

  • Please use photos from Flickr that are licensed under Creative Commons.

  • If photos are not available on Flickr, please use Wikipedia with the same license.

  • Please save out 4 sizes of each image as a JPG with the filename convention code-photographer.jpg

    • Card, 250px height, put in assets/images/card
    • Small, 500px width, put in assets/images/small
    • Medium, 900px width, put in assets/images/medium
    • Large, 1500px width, put in assets/images/large
  • Please optimize images

  • Add variable and photographer name to /assets/globals/image-names.styl. The photographer name must match how it is spelled in the image file name. So if an image is named abq-david-basanta.jpg you would add 'abq': 'david-basanta' to the image-names.styl.

Editing Templates

Most site content is written in Jade templates which produce the site HTML.

The Jade files are located in /templates and /src/views/templates.

Note that these aren't markdown files and the syntax and whitespace you use does matter quite a bit. See the Jade documentation to see how to use Jade.

Editing CSS

This site uses Stylus for preprocessing. Please follow the established indentation and commenting patterns.

Stylus files are located in /assets.

Declaration Order

Please use the following loose declaration order:

  • Box-model properties
  • Display and Positioning
  • Backgrounds
  • Borders
  • Box Shadows
  • Fonts and Colors
  • Other

airport-codes's People

Contributors

basilhayek avatar benjenkinson avatar chetanarvindpatil avatar compunutter avatar divarvel avatar geekoncoffee avatar jussupasayain avatar keppelen avatar lynnandtonic avatar markholland avatar mattsugihara avatar mrh-is avatar nagueva avatar ncrohn avatar nick-thurber avatar plbabin avatar proton72 avatar sansthesis avatar setheryb avatar sockdrawermoney avatar yoyosamo avatar

Watchers

 avatar  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.