From ad1ae226442ad5cc57ae1c5f4e77ee1eef316a26 Mon Sep 17 00:00:00 2001 From: serban-alexandru Date: Mon, 15 Jun 2026 15:21:19 +0300 Subject: [PATCH] pricing page and plans.json --- src/pages/pricing.tsx | 33 +++++---------- static/plans.json | 98 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 109 insertions(+), 22 deletions(-) create mode 100644 static/plans.json diff --git a/src/pages/pricing.tsx b/src/pages/pricing.tsx index db0f773a..2a1b6583 100644 --- a/src/pages/pricing.tsx +++ b/src/pages/pricing.tsx @@ -1,4 +1,5 @@ import Link from "@docusaurus/Link"; +import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; import Layout from "@theme/Layout"; import React, { ReactNode, useEffect, useState } from "react"; @@ -57,6 +58,12 @@ const Feature = ({ const Pricing = () => { const [annual, setAnnual] = useState(true); + const { siteConfig } = useDocusaurusContext(); + const portalUrl = String( + siteConfig.customFields?.portalUrl ?? "https://my.easypanel.io" + ); + const checkoutUrl = (planId: string) => + `${portalUrl}/checkout?plan=${planId}&interval=${annual ? "yearly" : "monthly"}`; return (
@@ -167,13 +174,7 @@ const Pricing = () => { - +
{
- +
Buy Your License @@ -284,13 +279,7 @@ const Pricing = () => {
- +