From 11844458c155b295f43639be81569ce1efa8adbf Mon Sep 17 00:00:00 2001 From: Kelvin Kiptum Kiprop Date: Tue, 3 Oct 2023 17:16:21 +0300 Subject: [PATCH] - added corporate licence page --- src/constants/routes.ts | 2 +- src/layouts/app/SideNav.tsx | 2 +- src/mocks/License.json | 14 +++++++++ src/pages/corporate/Licence.tsx | 52 +++++++++++++++++++++++++++++++++ src/pages/corporate/index.ts | 3 +- src/pages/index.ts | 12 ++++++-- src/routes/routes.tsx | 6 +++- 7 files changed, 85 insertions(+), 6 deletions(-) create mode 100644 src/mocks/License.json create mode 100644 src/pages/corporate/Licence.tsx diff --git a/src/constants/routes.ts b/src/constants/routes.ts index 017a5eb..99c883c 100644 --- a/src/constants/routes.ts +++ b/src/constants/routes.ts @@ -63,7 +63,7 @@ export const PATH_CORPORATE = { faqs: path(ROOTS_CORPORATE, '/faqs'), contact: path(ROOTS_CORPORATE, '/contact'), pricing: path(ROOTS_CORPORATE, '/pricing'), - licence: path(ROOTS_CORPORATE, '/licence'), + license: path(ROOTS_CORPORATE, '/license'), sitemap: path(ROOTS_CORPORATE, '/sitemap'), } diff --git a/src/layouts/app/SideNav.tsx b/src/layouts/app/SideNav.tsx index d60b2d8..d63fdc4 100644 --- a/src/layouts/app/SideNav.tsx +++ b/src/layouts/app/SideNav.tsx @@ -83,7 +83,7 @@ const items: MenuProps['items'] = [ getItem(FAQ, 'faqs', null), getItem(Contact us, 'contact us', null), getItem(Pricing, 'pricing', null), - getItem(Licence, 'licence', null), + getItem(License, 'license', null), getItem(Sitemap, 'sitemap', null), ]), diff --git a/src/mocks/License.json b/src/mocks/License.json new file mode 100644 index 0000000..f4ca05e --- /dev/null +++ b/src/mocks/License.json @@ -0,0 +1,14 @@ +[ + { + "title": "free", + "description": "The Free Plan grants the user a non-exclusive, non-transferable license to use the dashboard template for personal or non-commercial purposes. Users are allowed to modify the template to suit their needs. However, this license does not permit the user to sublicense, sell, or distribute the template or any derivative works. The Free Plan also includes basic support via email. The license is valid as long as the user adheres to the terms of service." + }, + { + "title": "pro", + "description": "The Pro Plan includes a non-exclusive, non-transferable license that allows the user to use the dashboard template for commercial purposes. Users can modify, customize, and create derivative works based on the template. The license permits the user to sublicense the template to clients or end-users. It also includes priority email support and grants access to premium features such as data export/import and the premium templates library. The license is valid for the subscribed period (monthly or annually) and automatically renews unless canceled." + }, + { + "title": "enterprise", + "description": "The Enterprise Plan provides a comprehensive, non-exclusive, non-transferable license for large-scale commercial use. This license grants the user unlimited flexibility to modify, customize, and create derivative works from the dashboard template. Users can sublicense the template, access premium support with a dedicated account manager, and utilize advanced features like API access and integration support. The license includes 24/7 priority support and ensures the highest level of data security and compliance. The license is valid for the subscribed period (monthly or annually) and automatically renews unless canceled." + } +] \ No newline at end of file diff --git a/src/pages/corporate/Licence.tsx b/src/pages/corporate/Licence.tsx new file mode 100644 index 0000000..767ef43 --- /dev/null +++ b/src/pages/corporate/Licence.tsx @@ -0,0 +1,52 @@ +import {Card as AntCard, Col, Row, RowProps} from "antd"; +import {Card} from "../../components"; +import LicenceData from "../../mocks/License.json" +import {Typography} from "antd"; + +const ROW_PROPS: RowProps = { + gutter: [ + {xs: 8, sm: 16, md: 24, lg: 32}, + {xs: 8, sm: 16, md: 24, lg: 32} + ] +} + +const CorporateLicensePage = () => { + return ( +
+ + + + {LicenceData.map(l => + + {l.description} + + )} + + + + +
    +
  • + All licenses are subject to adherence to the terms of service and acceptable use policies outlined by the provider. +
  • +
  • + Users must not remove or alter any copyright notices or branding present in the template. +
  • +
  • + Users are responsible for the content and data they upload or display using the dashboard template. +
  • +
  • + The provider reserves the right to terminate the license in case of violation of terms or misuse of the template. +
  • +
  • + Refunds are subject to the refund policy of the provider and are applicable within the specified period after the purchase. +
  • +
+
+ +
+
+ ); +}; + +export default CorporateLicensePage; \ No newline at end of file diff --git a/src/pages/corporate/index.ts b/src/pages/corporate/index.ts index 0ee3c1b..1e78f41 100644 --- a/src/pages/corporate/index.ts +++ b/src/pages/corporate/index.ts @@ -3,5 +3,6 @@ import CorporateTeamPage from "./Team.tsx"; import CorporateFaqPage from "./Faqs.tsx"; import CorporateContactPage from "./Contact.tsx"; import CorporatePricingPage from "./Pricing.tsx"; +import CorporateLicensePage from "./Licence.tsx"; -export {CorporateAboutPage, CorporateTeamPage, CorporateFaqPage, CorporateContactPage, CorporatePricingPage} \ No newline at end of file +export {CorporateAboutPage, CorporateTeamPage, CorporateFaqPage, CorporateContactPage, CorporatePricingPage, CorporateLicensePage} \ No newline at end of file diff --git a/src/pages/index.ts b/src/pages/index.ts index 7c00834..b3ab7fc 100644 --- a/src/pages/index.ts +++ b/src/pages/index.ts @@ -7,7 +7,14 @@ import { BiddingDashboardPage } from "./dashboards" import HomePage from "./Home.tsx"; -import {CorporateAboutPage, CorporateTeamPage, CorporateFaqPage, CorporateContactPage, CorporatePricingPage} from "./corporate" +import { + CorporateAboutPage, + CorporateTeamPage, + CorporateFaqPage, + CorporateContactPage, + CorporatePricingPage, + CorporateLicensePage +} from "./corporate" export { DefaultDashboardPage, @@ -21,5 +28,6 @@ export { CorporateTeamPage, CorporateFaqPage, CorporateContactPage, - CorporatePricingPage + CorporatePricingPage, + CorporateLicensePage } \ No newline at end of file diff --git a/src/routes/routes.tsx b/src/routes/routes.tsx index 73e3309..f633c53 100644 --- a/src/routes/routes.tsx +++ b/src/routes/routes.tsx @@ -3,7 +3,7 @@ import { BiddingDashboardPage, CorporateAboutPage, CorporateContactPage, - CorporateFaqPage, + CorporateFaqPage, CorporateLicensePage, CorporatePricingPage, CorporateTeamPage, DefaultDashboardPage, @@ -124,6 +124,10 @@ const router = createBrowserRouter([ { path: "pricing", element: + }, + { + path: "license", + element: } ] }