@financial-times/n-desktop-app-banner

A banner to show new users to make them aware of the native mobile apps.

Stats

StarsIssuesVersionUpdatedCreatedSize
@financial-times/n-desktop-app-banner
005.0.23 years ago4 years agoMinified + gzip package size for @financial-times/n-desktop-app-banner in KB

Readme

n-invite-colleagues Circle CI

Bower component/Node module for the 'share with colleages' strip used on some B2B pages.

image


Usage

Important This assumes you are using n-ui in your application. We use the encode handlebars helper pulled in by n-handlerbars: https://github.com/Financial-Times/n-handlebars#encode

Template

{{> n-invite-colleagues/templates/index shortName=[xxx] longName=[xxx] }}

where shortName is the acquisition context company name to use in the copy link

and longName is the full name of the company for use in copy (e.g. in email title when sharing the link). This name will be uri encoded where relevant. If no longName is provided then sensible default copy will be used.

CSS

@import 'n-invite-colleagues/main';

JS

import inviteColleagues from '../../main';

inviteColleagues.init();

Demo

To run the demo, run make init followd by make demo. You should now be able to access this at http://local.ft.com:5005

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.