diff --git a/apps/web/app/future/enterprise/layout.tsx b/apps/web/app/future/enterprise/layout.tsx new file mode 100644 index 0000000000..9bf51a70f5 --- /dev/null +++ b/apps/web/app/future/enterprise/layout.tsx @@ -0,0 +1,5 @@ +import { WithLayout } from "app/layoutHOC"; + +import { getLayout } from "@calcom/features/MainLayoutAppDir"; + +export default WithLayout({ getLayout })<"L">; diff --git a/apps/web/app/future/enterprise/page.tsx b/apps/web/app/future/enterprise/page.tsx new file mode 100644 index 0000000000..3be9790f06 --- /dev/null +++ b/apps/web/app/future/enterprise/page.tsx @@ -0,0 +1,11 @@ +import { _generateMetadata } from "app/_utils"; + +import EnterprisePage from "@components/EnterprisePage"; + +export const generateMetadata = async () => + await _generateMetadata( + (t) => t("create_your_org"), + (t) => t("create_your_org_description") + ); + +export default EnterprisePage; diff --git a/apps/web/components/EnterprisePage.tsx b/apps/web/components/EnterprisePage.tsx new file mode 100644 index 0000000000..87886245fe --- /dev/null +++ b/apps/web/components/EnterprisePage.tsx @@ -0,0 +1,70 @@ +"use client"; + +import { ShellMain } from "@calcom/features/shell/Shell"; +import { UpgradeTip } from "@calcom/features/tips"; +import { useLocale } from "@calcom/lib/hooks/useLocale"; +import { Button, ButtonGroup } from "@calcom/ui"; +import { BarChart, CreditCard, Globe, Lock, Paintbrush, Users } from "@calcom/ui/components/icon"; + +export default function EnterprisePage() { + const { t } = useLocale(); + + const features = [ + { + icon: , + title: t("branded_subdomain"), + description: t("branded_subdomain_description"), + }, + { + icon: , + title: t("org_insights"), + description: t("org_insights_description"), + }, + { + icon: , + title: t("extensive_whitelabeling"), + description: t("extensive_whitelabeling_description"), + }, + { + icon: , + title: t("unlimited_teams"), + description: t("unlimited_teams_description"), + }, + { + icon: , + title: t("unified_billing"), + description: t("unified_billing_description"), + }, + { + icon: , + title: t("advanced_managed_events"), + description: t("advanced_managed_events_description"), + }, + ]; + return ( +
+ + + + + + +
+ }> + <>Create Org + + + + ); +} diff --git a/apps/web/package.json b/apps/web/package.json index e0b9b60ee5..ac0b8fb91c 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -39,7 +39,7 @@ "@calcom/tsconfig": "*", "@calcom/ui": "*", "@daily-co/daily-js": "^0.37.0", - "@formkit/auto-animate": "^0.8.1", + "@formkit/auto-animate": "1.0.0-beta.5", "@glidejs/glide": "^3.5.2", "@hookform/error-message": "^2.0.0", "@hookform/resolvers": "^2.9.7", diff --git a/apps/web/pages/enterprise/index.tsx b/apps/web/pages/enterprise/index.tsx index 9854d5c6bc..4bddaef51d 100644 --- a/apps/web/pages/enterprise/index.tsx +++ b/apps/web/pages/enterprise/index.tsx @@ -1,74 +1,17 @@ -import { getLayout } from "@calcom/features/MainLayout"; -import { ShellMain } from "@calcom/features/shell/Shell"; -import { UpgradeTip } from "@calcom/features/tips"; -import { useLocale } from "@calcom/lib/hooks/useLocale"; -import { Button, ButtonGroup } from "@calcom/ui"; -import { BarChart, CreditCard, Globe, Lock, Paintbrush, Users } from "@calcom/ui/components/icon"; +"use client"; +import { getLayout } from "@calcom/features/MainLayout"; + +import EnterprisePage from "@components/EnterprisePage"; import PageWrapper from "@components/PageWrapper"; -export default function EnterprisePage() { - const { t } = useLocale(); +const ProxifiedEnterprisePage = new Proxy<{ + (): JSX.Element; + PageWrapper?: typeof PageWrapper; + getLayout?: typeof getLayout; +}>(EnterprisePage, {}); - const features = [ - { - icon: , - title: t("branded_subdomain"), - description: t("branded_subdomain_description"), - }, - { - icon: , - title: t("org_insights"), - description: t("org_insights_description"), - }, - { - icon: , - title: t("extensive_whitelabeling"), - description: t("extensive_whitelabeling_description"), - }, - { - icon: , - title: t("unlimited_teams"), - description: t("unlimited_teams_description"), - }, - { - icon: , - title: t("unified_billing"), - description: t("unified_billing_description"), - }, - { - icon: , - title: t("advanced_managed_events"), - description: t("advanced_managed_events_description"), - }, - ]; - return ( -
- - - - - - -
- }> - <>Create Org - - - - ); -} +ProxifiedEnterprisePage.PageWrapper = PageWrapper; +ProxifiedEnterprisePage.getLayout = getLayout; -EnterprisePage.PageWrapper = PageWrapper; -EnterprisePage.getLayout = getLayout; +export default ProxifiedEnterprisePage; diff --git a/packages/ui/package.json b/packages/ui/package.json index caf64f41ca..9ce51f89ee 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -26,7 +26,7 @@ "dependencies": { "@calcom/lib": "*", "@calcom/trpc": "*", - "@formkit/auto-animate": "^0.8.1", + "@formkit/auto-animate": "1.0.0-beta.5", "@radix-ui/react-checkbox": "^1.0.4", "@radix-ui/react-dialog": "^1.0.4", "@radix-ui/react-popover": "^1.0.2",