@financial-times/n-desktop-app-banner
v5.0.2
Published
A banner to show new users to make them aware of the native mobile apps.
Downloads
94
Maintainers
Keywords
Readme
n-invite-colleagues
Bower component/Node module for the 'share with colleages' strip used on some B2B pages.
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