1.4.6 • Published 4 years ago

@politico/interactive-style-elections v1.4.6

Weekly downloads
26
License
MIT
Repository
github
Last release
4 years ago

npm.io

@politico/interactive-style-elections

Component library for election pages.

Quick Start

Installation:

$ yarn add @politico/interactive-style-elections

Import only what you need:

import { Logo } from '@politico/interactive-style-elections';

Use it in your component:

import React from 'react';

const MyComponent = () => (
  <Logo />
);

export default MyComponent;

Headshots

Need to add a new headshot to the Headshot component?

Make sure you've added the candidate to the democratic candidates loader.

Create a .png file at 72ppi and at least 600px wide with an aspect ratio of 1:1.1.

Name the file the same as the generated slug of the candidate. These slugs are generated by combining the first and last name of the candidate with dashes (-). If they have a nickname, combine their nickname and last name the same way.

Put this file in the headshots folder.

Run the command to process and upload your headshot:

$ yarn build-headshots

Development

Clone Repo:

$ git clone https://github.com/The-Politico/politico-interactive-style-elections

Install dependencies:

$ yarn

Start development server:

$ yarn start

Build assets:

$ yarn build

Publish changes:

$ yarn publish
1.4.6

4 years ago

1.4.5

4 years ago

1.4.4

4 years ago

1.4.3

4 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago

0.0.30

5 years ago

0.0.29

5 years ago

0.0.28

5 years ago

0.0.27

5 years ago

0.0.26

5 years ago

0.0.25

5 years ago

0.0.24

5 years ago

0.0.23

5 years ago

0.0.22

5 years ago

0.0.21

5 years ago

0.0.20

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.7

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago