mirror of
https://github.com/documenso/documenso.git
synced 2025-11-15 01:01:49 +10:00
Merge branch 'main' into feat/typefully
This commit is contained in:
@ -203,7 +203,7 @@ export const SinglePlayerClient = () => {
|
|||||||
target="_blank"
|
target="_blank"
|
||||||
className="hover:text-foreground/80 font-semibold transition-colors"
|
className="hover:text-foreground/80 font-semibold transition-colors"
|
||||||
>
|
>
|
||||||
community plan
|
early adopter plan
|
||||||
</Link>{' '}
|
</Link>{' '}
|
||||||
for exclusive features, including the ability to collaborate with multiple signers.
|
for exclusive features, including the ability to collaborate with multiple signers.
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
@ -40,7 +40,7 @@ export const Callout = ({ starCount }: CalloutProps) => {
|
|||||||
className="rounded-full bg-transparent backdrop-blur-sm"
|
className="rounded-full bg-transparent backdrop-blur-sm"
|
||||||
onClick={onSignUpClick}
|
onClick={onSignUpClick}
|
||||||
>
|
>
|
||||||
Claim Community Plan
|
Claim Early Adopter Plan
|
||||||
<span className="bg-primary dark:text-background -mr-2.5 ml-2.5 rounded-full px-2 py-1.5 text-xs font-medium">
|
<span className="bg-primary dark:text-background -mr-2.5 ml-2.5 rounded-full px-2 py-1.5 text-xs font-medium">
|
||||||
$30/mo
|
$30/mo
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
@ -114,7 +114,7 @@ export const Hero = ({ className, ...props }: HeroProps) => {
|
|||||||
className="rounded-full bg-transparent backdrop-blur-sm"
|
className="rounded-full bg-transparent backdrop-blur-sm"
|
||||||
onClick={onSignUpClick}
|
onClick={onSignUpClick}
|
||||||
>
|
>
|
||||||
Claim Community Plan
|
Claim Early Adopter Plan
|
||||||
<span className="bg-primary dark:text-background -mr-2.5 ml-2.5 rounded-full px-2 py-1.5 text-xs font-medium">
|
<span className="bg-primary dark:text-background -mr-2.5 ml-2.5 rounded-full px-2 py-1.5 text-xs font-medium">
|
||||||
$30/mo
|
$30/mo
|
||||||
</span>
|
</span>
|
||||||
@ -225,7 +225,8 @@ export const Hero = ({ className, ...props }: HeroProps) => {
|
|||||||
<span className="bg-primary text-black">
|
<span className="bg-primary text-black">
|
||||||
(in a non-legally binding, but heartfelt way)
|
(in a non-legally binding, but heartfelt way)
|
||||||
</span>{' '}
|
</span>{' '}
|
||||||
and lock in the community plan for forever, including everything we build this year.
|
and lock in the early adopter plan for forever, including everything we build this
|
||||||
|
year.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div className="flex h-24 items-center">
|
<div className="flex h-24 items-center">
|
||||||
|
|||||||
@ -102,7 +102,7 @@ export const PricingTable = ({ className, ...props }: PricingTableProps) => {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
data-plan="community"
|
data-plan="early-adopter"
|
||||||
className="border-primary bg-background shadow-foreground/5 flex flex-col items-center justify-center rounded-lg border-2 px-8 py-12 shadow-[0px_0px_0px_4px_#E3E3E380]"
|
className="border-primary bg-background shadow-foreground/5 flex flex-col items-center justify-center rounded-lg border-2 px-8 py-12 shadow-[0px_0px_0px_4px_#E3E3E380]"
|
||||||
>
|
>
|
||||||
<p className="text-foreground text-4xl font-medium">Early Adopters</p>
|
<p className="text-foreground text-4xl font-medium">Early Adopters</p>
|
||||||
@ -119,7 +119,7 @@ export const PricingTable = ({ className, ...props }: PricingTableProps) => {
|
|||||||
|
|
||||||
<Button className="mt-6 rounded-full text-base" asChild>
|
<Button className="mt-6 rounded-full text-base" asChild>
|
||||||
<Link
|
<Link
|
||||||
href={`${NEXT_PUBLIC_WEBAPP_URL()}/signup?utm_source=pricing-community`}
|
href={`${NEXT_PUBLIC_WEBAPP_URL()}/signup?utm_source=pricing-early-adopter`}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>
|
>
|
||||||
Signup Now
|
Signup Now
|
||||||
|
|||||||
@ -199,7 +199,7 @@ export const Widget = ({ className, children, ...props }: WidgetProps) => {
|
|||||||
className="bg-foreground/5 col-span-12 flex flex-col rounded-2xl p-6 lg:col-span-5"
|
className="bg-foreground/5 col-span-12 flex flex-col rounded-2xl p-6 lg:col-span-5"
|
||||||
onSubmit={handleSubmit(onFormSubmit)}
|
onSubmit={handleSubmit(onFormSubmit)}
|
||||||
>
|
>
|
||||||
<h3 className="text-xl font-semibold">Sign up to Community Plan</h3>
|
<h3 className="text-xl font-semibold">Sign up to Early Adopter Plan</h3>
|
||||||
<p className="text-muted-foreground mt-2 text-xs">
|
<p className="text-muted-foreground mt-2 text-xs">
|
||||||
with Timur Ercan & Lucas Smith from Documenso
|
with Timur Ercan & Lucas Smith from Documenso
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
@ -54,7 +54,7 @@ export default async function TeamsSettingBillingPage({ params }: TeamsSettingsB
|
|||||||
<CardContent className="flex flex-row items-center justify-between p-4">
|
<CardContent className="flex flex-row items-center justify-between p-4">
|
||||||
<div className="flex flex-col text-sm">
|
<div className="flex flex-col text-sm">
|
||||||
<p className="text-foreground font-semibold">
|
<p className="text-foreground font-semibold">
|
||||||
Current plan: {teamSubscription ? 'Team' : 'Community Team'}
|
Current plan: {teamSubscription ? 'Team' : 'Early Adopter Team'}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p className="text-muted-foreground mt-0.5">
|
<p className="text-muted-foreground mt-0.5">
|
||||||
|
|||||||
@ -33,7 +33,7 @@ type TransferStripeSubscriptionOptions = {
|
|||||||
* Will create a new subscription for the new owner and cancel the old one.
|
* Will create a new subscription for the new owner and cancel the old one.
|
||||||
*
|
*
|
||||||
* Returns the subscription that should be associated with the team, null if
|
* Returns the subscription that should be associated with the team, null if
|
||||||
* no subscription is needed (for community plan).
|
* no subscription is needed (for early adopter plan).
|
||||||
*/
|
*/
|
||||||
export const transferTeamSubscription = async ({
|
export const transferTeamSubscription = async ({
|
||||||
user,
|
user,
|
||||||
|
|||||||
@ -15,12 +15,10 @@ export const downloadPDF = async ({ documentData, fileName }: DownloadPDFProps)
|
|||||||
type: 'application/pdf',
|
type: 'application/pdf',
|
||||||
});
|
});
|
||||||
|
|
||||||
const [baseTitle] = fileName?.includes('.pdf')
|
const baseTitle = (fileName ?? 'document').replace(/\.pdf$/, '');
|
||||||
? fileName.split('.pdf')
|
|
||||||
: [fileName ?? 'document'];
|
|
||||||
|
|
||||||
downloadFile({
|
downloadFile({
|
||||||
filename: baseTitle,
|
filename: `${baseTitle}.pdf`,
|
||||||
data: blob,
|
data: blob,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user