ampproject / ampproject/amphtml

I2I: fewcents paywall component

Open
#31,854 16 comments 0 reactions 2 assignees Claimed by @calebcordry View on GitHub
INTENT TO IMPLEMENT Stale
Dominant language
JavaScript
Stars
14.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

## Summary

Create a new component that adds Fewcents paywall to AMP articles. This component will be used by publishers. It's going to be based on the amp-access component.

## Design document

Our component will be based on amp-access.

### Head

```jsx

{
"vendor": "fewcents",
"fewcents": {
"contentSelector": ".article",
"category": "premium",
"primaryColor": "magenta",
}
}

The Article



This is a preview of the article.

Oops... Something broke.


Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Curabitur ullamcorper turpis vel commodo scelerisque. Phasellus
luctus nunc ut elit cursus, et imperdiet diam vehicula.
Duis et nisi sed urna blandit bibendum et sit amet erat.
Suspendisse potenti. Curabitur consequat volutpat arcu nec
elementum. Etiam a turpis ac libero varius condimentum.
Maecenas sollicitudin felis aliquam tortor vulputate,
ac posuere velit semper.

```

## Motivation

We're going to make Fewcents SDK integration easier for publishers using this component as amp-access-laterpay does.

## Additional context

[https://fewcents.co](https://fewcents.co/)

/cc @ampproject/wg-approvers @alanorozco

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.