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

5.0.2 • Public • Published

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

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

    Package Sidebar

    Install

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

    Weekly Downloads

    0

    Version

    5.0.2

    License

    MIT

    Unpacked Size

    16 kB

    Total Files

    17

    Last publish

    Collaborators

    • robertboulton
    • seraph2000
    • hamza.samih
    • notlee
    • emmalewis
    • aendra
    • the-ft
    • rowanmanning
    • chee
    • alexwilson