GithubHelp home page GithubHelp logo

teamcolors's Introduction

Team Colors

Team Colors is a reference of HEX values for the brand colors of major league sporting teams.

Technical Overview

PHP is used to parse and load the HTML markup. Javascript is used to load vector versions of the team logos (if SVG is supported by the browser).

Making Changes

Team Colors data is rendered from the team-data.json file. Any changes to the data of the page can be done from that file. Teams are sorted according to their respective leagues. Leagues and league navigation controls are all rendered from this single .json file.

Edit Team Color or Name

If you want to edit a team's name or color(s), find the team's entry in team-data.json.

Adding a Team

If you want to add a team, add the team name and colors in team-data.json. Then, add a .svg logo in the appropriate img/ directory, with the team's name (as stated in team-data.json) in lowercase with hyphens in place of spaces.

Adding a New League

Adding a league is relatively straight forward. Copy the model used for structuring data in team-data.json, add the appropriate logos, and you're done.

Dependencies

Compass

CSS is built and compiled using compass. Partials are in css/sass/ and are compiled to stylesheets in css/.

Modernizer

Specialized version of modernizer tests support for SVG only. If SVG is supported, a class of 'svg' is added to the body.

This class is important. The main script will check to see if the body has a class of svg. If it does, the team logos (in .svg fomat) will be loaded. Otherwise, the team logos are not loaded.

Team Logos

All team logos are in .svg format. See documentation on modernizer for more info.

teamcolors's People

Contributors

attebury avatar briankennedy1 avatar jimniels avatar qwz avatar suburbsomeone 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.