-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
3 changed files
with
147 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,3 +29,7 @@ | |
left: 16px !important; | ||
} | ||
} | ||
|
||
.cl-navbar > div:last-child { | ||
display: none; | ||
} |
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 |
---|---|---|
@@ -1,9 +1,146 @@ | ||
import { PageContentContainer, Title } from "@/components/common"; | ||
import Routes from "@/routes"; | ||
import { currentUser } from "@clerk/nextjs/server"; | ||
import { InfoIcon } from "lucide-react"; | ||
import Link from "next/link"; | ||
import type { FC } from "react"; | ||
|
||
export default async function PricingPage() { | ||
const user = await currentUser(); | ||
|
||
const HelperBtn: FC<{ | ||
content: string; | ||
}> = ({ content }) => { | ||
return ( | ||
<div className="dropdown dropdown-end"> | ||
<div | ||
tabIndex={0} | ||
role="button" | ||
className="btn btn-circle btn-ghost btn-xs" | ||
> | ||
<InfoIcon className="w-4 h-4" /> | ||
</div> | ||
<div | ||
tabIndex={0} | ||
className="card compact dropdown-content bg-base-100 rounded-box z-[1] w-64 shadow" | ||
> | ||
<div tabIndex={0} className="card-body"> | ||
<h2 className="card-title">Here's the math</h2> | ||
<p>{content}</p> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default function Pricing() { | ||
return ( | ||
<PageContentContainer> | ||
<Title>Pricing</Title> | ||
<div className="flex flex-col gap-4 justify-center items-center"> | ||
<p className="text-xl font-semibold">The Best Pricing On The Market</p> | ||
<p className="text-4xl font-bold my-6">$0.005 per run</p> | ||
{!user ? ( | ||
<Link href={Routes.signUp}> | ||
<button type="button" className="btn btn-primary btn-lg"> | ||
Get Started Now! | ||
</button> | ||
</Link> | ||
) : null} | ||
</div> | ||
|
||
<div className="flex flex-col gap-4"> | ||
<Title>Estimate</Title> | ||
|
||
<div className="grid grid-cols-3 gap-4"> | ||
<div className="card bg-base-100 shadow-md"> | ||
<div className="card-body"> | ||
<p className="font-bold">Low Usage</p> | ||
<p>2 Pyngs, each runs every 4 hours</p> | ||
<h2 className="card-title" style={{ gap: "0px" }}> | ||
$1.8 per month | ||
<HelperBtn content="2 Pyngs × 6 times a day × 30 days × 0.005 / run = $1.8 / mo" /> | ||
</h2> | ||
</div> | ||
</div> | ||
|
||
<div className="card bg-base-100 shadow-md"> | ||
<div className="card-body"> | ||
<p className="font-bold">Mid Usage</p> | ||
<p>10 Pyngs, 5 run every hour, 5 run every 15 mins</p> | ||
<h2 className="card-title" style={{ gap: "0px" }}> | ||
$90 per month | ||
<HelperBtn content="(5 Pyngs × 24 times a day × 30 days × 0.005 / run) + (5 Pyngs × 96 times a day × 30 days × 0.005 / run) = $90 / mo" /> | ||
</h2> | ||
</div> | ||
</div> | ||
|
||
<div className="card bg-base-100 shadow-md"> | ||
<div className="card-body"> | ||
<p className="font-bold">High Usage</p> | ||
<p>25 Pyngs, each runs every 15 mins</p> | ||
<h2 className="card-title" style={{ gap: "0px" }}> | ||
$360 / month | ||
<HelperBtn content="25 Pyngs × 96 times a day × 30 days × 0.005 / run = $360 / mo" /> | ||
</h2> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div className="flex flex-col gap-4"> | ||
<Title>FAQ</Title> | ||
<div className="flex flex-col gap-2"> | ||
<div className="collapse collapse-arrow bg-base-100 shadow-md"> | ||
<input type="radio" name="my-accordion-2" defaultChecked /> | ||
<div className="collapse-title text-xl font-medium"> | ||
What is a Pyng and a run? | ||
</div> | ||
<div className="collapse-content"> | ||
<p> | ||
A Pyng is a task that monitors a condition for a website. A run | ||
is an execution of a Pyng to check the condition. | ||
</p> | ||
</div> | ||
</div> | ||
|
||
<div className="collapse collapse-arrow bg-base-100 shadow-md"> | ||
<input type="radio" name="my-accordion-2" /> | ||
<div className="collapse-title text-xl font-medium"> | ||
Can I delete a Pyng anytime? | ||
</div> | ||
<div className="collapse-content"> | ||
<p> | ||
A Pyng can be deleted anytime. If you delete a Pyng, it will not | ||
run anymore and you will not be billed for it. You will only be | ||
billed for the runs that the Pyng has completed before it was | ||
deleted. | ||
</p> | ||
</div> | ||
</div> | ||
|
||
<div className="collapse collapse-arrow bg-base-100 shadow-md"> | ||
<input type="radio" name="my-accordion-2" /> | ||
<div className="collapse-title text-xl font-medium"> | ||
Is there a free tier? | ||
</div> | ||
<div className="collapse-content"> | ||
<p>Not at this time.</p> | ||
</div> | ||
</div> | ||
|
||
<div className="collapse collapse-arrow bg-base-100 shadow-md"> | ||
<input type="radio" name="my-accordion-2" /> | ||
<div className="collapse-title text-xl font-medium"> | ||
What is the billing cycle? | ||
</div> | ||
<div className="collapse-content"> | ||
<p> | ||
Billing is done on a monthly basis. You will be billed at the | ||
start of each month. | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</PageContentContainer> | ||
); | ||
} |
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