Skip to content

Commit 6b49d58

Browse files
Merge pull request #27 from harishdeivanayagam/feature/cloud-alpha-reqs
added ee pricing page
2 parents ccafb5f + 437768b commit 6b49d58

File tree

5 files changed

+55
-4
lines changed

5 files changed

+55
-4
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ next-env.d.ts
4545

4646
# docker
4747
protected-docker-compose.yml
48+
protected-docker-compose-cloud.yml
4849

4950

5051
# production server

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ next-env.d.ts
4545

4646
# docker
4747
protected-docker-compose.yml
48+
protected-docker-compose-cloud.yml
49+
4850

4951
# production server
5052
/dist

prisma/schema.prisma

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ enum ColumnDataType {
2929
OBJECT
3030
}
3131

32+
// ONLY for EE Usage
3233
enum Plan {
3334
FREE
3435
PRO
@@ -75,6 +76,7 @@ model Member {
7576
@@id([userId, organizationId])
7677
}
7778

79+
// ONLY for EE Usage
7880
model Billing {
7981
organizationId String @id @unique
8082
organization Organization @relation(fields: [organizationId], references: [id])

src/app/console/ee/actions.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ export async function getPlans() {
5454
},
5555
{
5656
name: "PRO_MONTHLY",
57-
price: "$35",
58-
credits: "15000",
57+
price: `$${process.env.PRO_PLAN_PRICE_MONTHLY}`,
58+
credits: `${process.env.PRO_PLAN_CREDITS}`,
5959
for: "monthly",
6060
purchaseUrl: "", // TODO: Stripe Link
6161
},
6262
{
6363
name: "PRO_YEARLY",
64-
price: "$350",
65-
credits: "15000",
64+
price: `$${process.env.PRO_PLAN_PRICE_YEARLY}`,
65+
credits: `${process.env.PRO_PLAN_CREDITS}`,
6666
for: "yearly",
6767
purchaseUrl: "", // TODO: Stripe Link
6868
},

src/app/ee/pricing/page.tsx

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import { Button } from "@/components/ui/button";
2+
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
3+
import Image from "next/image";
4+
import Link from "next/link";
5+
import { PiCheck } from "react-icons/pi";
6+
7+
export default function PricingPage() {
8+
9+
if (!process.env.EE_ENABLED || process.env.EE_ENABLED !== "true") {
10+
return (
11+
<div className="flex flex-col gap-5 items-center justify-center h-screen">
12+
<Image src="/logo.svg" alt="404" width={50} height={50} />
13+
<p className="text-lg">You are not authorized to access this page</p>
14+
</div>
15+
)
16+
}
17+
18+
return (
19+
<div className="flex items-center justify-center min-h-screen bg-gray-100">
20+
<Card className="w-[350px]">
21+
<CardHeader className="flex flex-col items-center">
22+
<Image src="/logo.svg" alt="Rowfill Logo" width={50} height={50} />
23+
<CardTitle className="text-lg pt-2">Professional Plan</CardTitle>
24+
<p className="text-lg font-bold">Starts at ${process.env.PRO_PLAN_PRICE_MONTHLY}/month</p>
25+
<Button>Get Started</Button>
26+
</CardHeader>
27+
<CardContent className="flex flex-col gap-2 px-5">
28+
<p className="flex items-center gap-2"><PiCheck /> {process.env.PRO_PLAN_CREDITS} Credits</p>
29+
<p className="flex items-center gap-2"><PiCheck /> Unlimited Sheets</p>
30+
<p className="flex items-center gap-2"><PiCheck /> Unlimited Sources</p>
31+
<p className="flex items-center gap-2"><PiCheck /> AI Answering Agent</p>
32+
<p className="flex items-center gap-2"><PiCheck /> AI Extraction Agent</p>
33+
<p className="flex items-center gap-2"><PiCheck /> AI Document Search Agent</p>
34+
<p className="flex items-center gap-2"><PiCheck /> Unlimited Users</p>
35+
<p className="flex items-center gap-2"><PiCheck /> Email Support</p>
36+
<p className="flex items-center gap-2"><PiCheck /> Priority Support</p>
37+
</CardContent>
38+
</Card>
39+
<div className="absolute bottom-5 right-5 flex gap-3 items-center">
40+
<Link href="/ee/legal/privacy-policy">Privacy Policy</Link>
41+
<Link href="/ee/legal/refund-policy">Refund Policy</Link>
42+
<Link href="/ee/legal/terms-of-service">Terms of Service</Link>
43+
</div>
44+
</div>
45+
)
46+
}

0 commit comments

Comments
 (0)