Coder Social home page Coder Social logo

o-header--theme-ic's Introduction

This component is now deprecated

o-header--theme-ic

This component is a theme for o-header. It includes o-header and then the required CSS to give the Investors Chronicle branding.

A table of contents to help people find things

Usage

This component includes on o-header as a dependency, so you only need to explicitly include component in your project.

Markup

There is a lot of markup for this component, an illustrative version of it can be seen in the demos.

JavaScript

No code will run automatically unless you are using the Build Service. You must either construct an oHeader object or fire the o.DOMContentLoaded event, which oComponent listens for.

Constructing an oHeader object

const oHeader = require('o-header');

oHeader.init();

Firing an oDomContentLoaded event

document.addEventListener('DOMContentLoaded', function() {
	document.dispatchEvent(new CustomEvent('o.DOMContentLoaded'));
});

Sass

As with all Origami components, o-header--theme-ic has a silent mode. To use its compiled CSS (rather than using its mixins with your own Sass) set $o-o-header--theme-ic-is-silent : false; in your Sass after you've imported the o-header--theme-ic Sass.

Contributing

Please let the Origami team know if you'd like push access to this repository. Building Origami components locally all works in the same way:

  1. Clone this repository
  2. Install the Origami Build Tools globally: $ npm install -g origami-build-tools
  3. On the command line, in the o-header--theme-ic directory run:
    1. $ obt install // this will install all of this component's dependencies including bower and npm if you don't have them
    2. You may need to add a .bowerrc file to tell bower where to look for Origami dependencies. OBT will let you know if you need to do this and how to do it.
    3. $ obt build // this will build all of this component's dependencies
    4. $ obt demo --runServer --watch // this will run all of this projects demos, which you'll now be able to see in a browser
  4. You can now work on the Sass, JS, or demos of this project and see the results

Contact

If you have any questions or comments about this component, or need help using it, please either raise an issue, visit #ft-origami or email Origami Support.


Licence

This software is published by the Financial Times under the MIT licence.

o-header--theme-ic's People

Contributors

alicebartlett avatar jakechampion avatar

Watchers

James Cloos 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.