diff --git a/pages/404.tsx b/pages/404.tsx index d40da2e3..2b0c3647 100644 --- a/pages/404.tsx +++ b/pages/404.tsx @@ -31,11 +31,12 @@ export default function Custom404() { ]; const isSubpage = router.asPath.includes("/", 2); + const isSignup = router.asPath.includes("/signup"); return ( <>
-
-

404 error

-

- {t("page_doesnt_exist")} -

- {isSubpage ? ( - {t("check_spelling_mistakes_or_go_back")} - ) : process.env.NEXT_PUBLIC_BASE_URL === "https://app.cal.com" ? ( - - {t("the_username")} cal.com{username}{" "} - {t("is_still_available")} {t("register_now")}. - - ) : ( - <> - {t("the_username")}{" "} - - {new URL(process.env.NEXT_PUBLIC_BASE_URL || "").hostname} - {username} - {" "} - {t("is_still_available")} - - )} -
-
-

- {t("popular_pages")} -

- {!isSubpage && process.env.NEXT_PUBLIC_BASE_URL === "https://app.cal.com" && ( - - )} +
+
+

+ + + + +

+

{t("the_infrastructure_plan")}

+
+
+
+ + + - -
- - - {t("or_go_back_home")} - - - +
+
- + ) : ( + <> +
+

{t("error_404")}

+

+ {t("page_doesnt_exist")} +

+ {isSubpage ? ( + + {t("check_spelling_mistakes_or_go_back")} + + ) : process.env.NEXT_PUBLIC_BASE_URL === "https://app.cal.com" ? ( + + {t("the_username")} cal.com{username}{" "} + {t("is_still_available")} {t("register_now")}. + + ) : ( + <> + {t("the_username")}{" "} + + {new URL(process.env.NEXT_PUBLIC_BASE_URL || "").hostname} + {username} + {" "} + {t("is_still_available")} + + )} +
+
+

+ {t("popular_pages")} +

+ {!isSubpage && process.env.NEXT_PUBLIC_BASE_URL === "https://app.cal.com" && ( + + )} + + +
+ + + {t("or_go_back_home")} + + + +
+
+ + )} diff --git a/public/static/locales/en/common.json b/public/static/locales/en/common.json index 5a86e5dd..2ee157b6 100644 --- a/public/static/locales/en/common.json +++ b/public/static/locales/en/common.json @@ -636,5 +636,15 @@ "add": "Add", "verify_wallet": "Verify Wallet", "connect_metamask": "Connect Metamask", - "create_events_on": "Create events on:" + "create_events_on": "Create events on:", + "missing_license": "Missing License", + "signup_requires": "Commercial license required", + "signup_requires_description": "Cal.com, Inc. currently does not offer a free open source version of the sign up page. To receive full access to the signup components you need to acquire a commercial license. For personal use we recommend the Prisma Data Platform or any other Postgres interface to create accounts.", + "next_steps": "Next Steps", + "acquire_commercial_license": "Acquire a commercial license", + "the_infrastructure_plan": "The infrastructure plan is usage-based and has startup-friendly discounts.", + "prisma_studio_tip": "Create an account via Prisma Studio", + "prisma_studio_tip_description": "Learn how to set up your first user", + "contact_sales": "Contact Sales", + "error_404": "Error 404" }