-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e7e0f91
commit 9aaef75
Showing
19 changed files
with
315 additions
and
238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import type { ReactNode } from "react"; | ||
|
||
export const SpanRenderer = { | ||
paragraph(children: ReactNode) { | ||
return <span>{children}</span>; | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ | |
} | ||
|
||
.link { | ||
color: inherit !important; | ||
margin-left: 16px; | ||
margin-right: 16px; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
import React from "react"; | ||
import { Check, Info } from "@geist-ui/react-icons"; | ||
import { ProductCard, ProductCardProps } from "./ProductCard"; | ||
import { Spacer, Text } from "@geist-ui/react"; | ||
import styles from "./Card.module.css"; | ||
import { useRouter } from "next/router"; | ||
import { dictionary } from "@/dictionaries"; | ||
import Markdown from "marked-react"; | ||
import { SpanRenderer } from "../Markdown"; | ||
|
||
export function Commercial( | ||
props: Omit<ProductCardProps, "title"> | ||
): React.ReactElement { | ||
const router = useRouter(); | ||
const d = dictionary(router.locale).pricing.commercial; | ||
|
||
return ( | ||
<ProductCard | ||
{...props} | ||
extra={ | ||
<div> | ||
<Text b small> | ||
{d.what_need_to_do} | ||
</Text> | ||
<Spacer /> | ||
<div className="flex align-center"> | ||
<div> | ||
<Check className={styles.icon} width={24} /> | ||
</div> | ||
<Text small> | ||
<Markdown renderer={SpanRenderer}> | ||
{d.purchase_server} | ||
</Markdown> | ||
</Text> | ||
</div> | ||
<Spacer /> | ||
</div> | ||
} | ||
features={[ | ||
<Markdown renderer={SpanRenderer} key="licenseFeatures-3"> | ||
{d.unlimited_emails} | ||
</Markdown>, | ||
<Markdown renderer={SpanRenderer} key="licenseFeatures-1"> | ||
{d.bulk} | ||
</Markdown>, | ||
d.no_data_reacher, | ||
<Markdown renderer={SpanRenderer} key="licenseFeatures-4"> | ||
{d.support} | ||
</Markdown>, | ||
<Markdown renderer={SpanRenderer} key="licenseFeatures-6"> | ||
{d.terms} | ||
</Markdown>, | ||
]} | ||
footer={ | ||
<div className="flex"> | ||
<div> | ||
<Info className={styles.icon} width={24} /> | ||
</div> | ||
<Text small> | ||
<Markdown renderer={SpanRenderer}> | ||
{d.free_trial} | ||
</Markdown> | ||
</Text> | ||
</div> | ||
} | ||
header={ | ||
<Text b small type="success"> | ||
{d.overtitle} | ||
</Text> | ||
} | ||
subtitle={<Markdown renderer={SpanRenderer}>{d.subtitle}</Markdown>} | ||
title={d.title} | ||
/> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import React from "react"; | ||
import { Text } from "@geist-ui/react"; | ||
import { ProductCard } from "./ProductCard"; | ||
import type { ProductCardProps } from "./ProductCard"; | ||
import { useRouter } from "next/router"; | ||
import { dictionary } from "@/dictionaries"; | ||
import Markdown from "marked-react"; | ||
import { SpanRenderer } from "../Markdown"; | ||
|
||
export function SaaS100k( | ||
props: Omit<ProductCardProps, "title"> | ||
): React.ReactElement { | ||
const router = useRouter(); | ||
const d = dictionary(router.locale).pricing.saas100k; | ||
|
||
return ( | ||
<ProductCard | ||
{...props} | ||
header={ | ||
<Text b small type="warning"> | ||
{d.overtitle} | ||
</Text> | ||
} | ||
features={[ | ||
d.reacher_ip, | ||
<Markdown renderer={SpanRenderer} key="saasFeatures-2"> | ||
{d.full_feature} | ||
</Markdown>, | ||
<Markdown renderer={SpanRenderer} key="customer-support"> | ||
{d.support} | ||
</Markdown>, | ||
d.cancel, | ||
]} | ||
subtitle={<span>{d.subtitle}</span>} | ||
title={d.title} | ||
/> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import React from "react"; | ||
import { Text } from "@geist-ui/react"; | ||
import { ProductCard } from "./ProductCard"; | ||
import type { ProductCardProps } from "./ProductCard"; | ||
import { useRouter } from "next/router"; | ||
import { dictionary } from "@/dictionaries"; | ||
import Markdown from "marked-react"; | ||
import { SpanRenderer } from "../Markdown"; | ||
|
||
export function SaaS10k( | ||
props: Omit<ProductCardProps, "title"> | ||
): React.ReactElement { | ||
const router = useRouter(); | ||
const d = dictionary(router.locale).pricing.saas10k; | ||
|
||
return ( | ||
<ProductCard | ||
{...props} | ||
header={ | ||
<Text b small> | ||
{d.overtitle} | ||
</Text> | ||
} | ||
features={[ | ||
d.reacher_ip, | ||
<Markdown renderer={SpanRenderer} key="saasFeatures-2"> | ||
{d.full_feature} | ||
</Markdown>, | ||
<Markdown renderer={SpanRenderer} key="customer-support"> | ||
{d.support} | ||
</Markdown>, | ||
d.cancel, | ||
]} | ||
subtitle={<span>{d.subtitle}</span>} | ||
title={d.title} | ||
/> | ||
); | ||
} |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.