Skip to content

Commit 7b6cc53

Browse files
authored
docs: move CreemEmbeddedCheckout (#128)
* docs: move CreemEmbeddedCheckout * docs: add CreemPaymentLink
1 parent 32d3588 commit 7b6cc53

4 files changed

Lines changed: 78 additions & 2 deletions

File tree

docs/install.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ sidebar_position: 1
33
description: 'Install `@react-native-google-signin/google-signin`. Covers paid (Universal Sign In) and free (Original) versions, requirements, and package manager setup.'
44
---
55

6-
import CreemEmbeddedCheckout from '@site/src/components/CreemEmbeddedCheckout';
6+
import CreemPaymentLink from '@site/src/components/CreemPaymentLink';
77

88
# Installation
99

@@ -13,7 +13,7 @@ Why paid? According to the [State of React Native Survey](https://results.2024.s
1313

1414
[//]: # '🌟'
1515

16-
<CreemEmbeddedCheckout checkoutUrl="https://www.creem.io/payment/prod_2zElFBVDXGigzZTiK4MvYX" />
16+
<CreemPaymentLink paymentUrl="https://www.creem.io/payment/prod_2zElFBVDXGigzZTiK4MvYX" />
1717

1818
### Universal Sign In (premium) {/* #premium */}
1919

docs/license.md renamed to docs/license.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22
sidebar_position: 80
33
---
44

5+
import CreemEmbeddedCheckout from '@site/src/components/CreemEmbeddedCheckout';
6+
57
# License
68

9+
<CreemEmbeddedCheckout checkoutUrl="https://www.creem.io/payment/prod_2zElFBVDXGigzZTiK4MvYX" />
10+
711
The Original module is licensed as MIT, the Universal sign in module has [this license](https://universal-sign-in.com/license).
812

913
Please [get in touch](mailto:hello@universal-sign-in.com) if you have any questions or concerns about the license!
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import React from 'react';
2+
import './styles.css';
3+
4+
type CreemPaymentLinkProps = {
5+
paymentUrl: string;
6+
};
7+
8+
export default function CreemPaymentLink({ paymentUrl }: CreemPaymentLinkProps) {
9+
return (
10+
<section className="creem-payment" aria-labelledby="creem-payment-title">
11+
<div>
12+
<p className="creem-payment__eyebrow">Universal Sign In license</p>
13+
<h2 id="creem-payment-title">Ready to install Universal Sign In?</h2>
14+
<p>
15+
Buy a license, then use the private npm registry setup below to add
16+
the package to your app.
17+
</p>
18+
</div>
19+
<a
20+
className="button button--primary creem-payment__button"
21+
href={paymentUrl}
22+
rel="noreferrer"
23+
target="_blank"
24+
>
25+
Buy license
26+
</a>
27+
</section>
28+
);
29+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
.creem-payment {
2+
display: flex;
3+
align-items: flex-start;
4+
justify-content: space-between;
5+
gap: 1rem;
6+
margin: 2rem 0;
7+
padding: 1rem;
8+
border: 1px solid var(--ifm-color-emphasis-300);
9+
border-radius: 8px;
10+
background: var(--ifm-background-surface-color);
11+
}
12+
13+
.creem-payment__eyebrow {
14+
margin: 0 0 0.25rem;
15+
color: var(--ifm-color-primary);
16+
font-size: 0.78rem;
17+
font-weight: 700;
18+
letter-spacing: 0.04em;
19+
text-transform: uppercase;
20+
}
21+
22+
.creem-payment h2 {
23+
max-width: 32rem;
24+
margin: 0 0 0.5rem;
25+
}
26+
27+
.creem-payment p {
28+
margin: 0;
29+
}
30+
31+
.creem-payment__button {
32+
flex-shrink: 0;
33+
}
34+
35+
@media (max-width: 700px) {
36+
.creem-payment {
37+
flex-direction: column;
38+
}
39+
40+
.creem-payment__button {
41+
width: 100%;
42+
}
43+
}

0 commit comments

Comments
 (0)