Skip to content

Commit

Permalink
- added corporate licence page
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvink96 committed Oct 3, 2023
1 parent 232008c commit 1184445
Show file tree
Hide file tree
Showing 7 changed files with 85 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/constants/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
}

Expand Down
2 changes: 1 addition & 1 deletion src/layouts/app/SideNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const items: MenuProps['items'] = [
getItem(<Link to={PATH_CORPORATE.faqs}>FAQ</Link>, 'faqs', null),
getItem(<Link to={PATH_CORPORATE.contact}>Contact us</Link>, 'contact us', null),
getItem(<Link to={PATH_CORPORATE.pricing}>Pricing</Link>, 'pricing', null),
getItem(<Link to={PATH_CORPORATE.licence}>Licence</Link>, 'licence', null),
getItem(<Link to={PATH_CORPORATE.license}>License</Link>, 'license', null),
getItem(<Link to={PATH_CORPORATE.sitemap}>Sitemap</Link>, 'sitemap', null),
]),

Expand Down
14 changes: 14 additions & 0 deletions src/mocks/License.json
Original file line number Diff line number Diff line change
@@ -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."
}
]
52 changes: 52 additions & 0 deletions src/pages/corporate/Licence.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<div>
<Row {...ROW_PROPS}>
<Col span={24}>
<Card title="licence comparisons">
{LicenceData.map(l =>
<AntCard title={`${l.title} plan license`} bordered={true} style={{marginBottom: "1rem"}}>
<Typography.Text>{l.description}</Typography.Text>
</AntCard>
)}
</Card>
</Col>
<Col span={24}>
<Card title="general terms and conditions">
<ul>
<li>
All licenses are subject to adherence to the terms of service and acceptable use policies outlined by the provider.
</li>
<li>
Users must not remove or alter any copyright notices or branding present in the template.
</li>
<li>
Users are responsible for the content and data they upload or display using the dashboard template.
</li>
<li>
The provider reserves the right to terminate the license in case of violation of terms or misuse of the template.
</li>
<li>
Refunds are subject to the refund policy of the provider and are applicable within the specified period after the purchase.
</li>
</ul>
</Card>
</Col>
</Row>
</div>
);
};

export default CorporateLicensePage;
3 changes: 2 additions & 1 deletion src/pages/corporate/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}
export {CorporateAboutPage, CorporateTeamPage, CorporateFaqPage, CorporateContactPage, CorporatePricingPage, CorporateLicensePage}
12 changes: 10 additions & 2 deletions src/pages/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -21,5 +28,6 @@ export {
CorporateTeamPage,
CorporateFaqPage,
CorporateContactPage,
CorporatePricingPage
CorporatePricingPage,
CorporateLicensePage
}
6 changes: 5 additions & 1 deletion src/routes/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
BiddingDashboardPage,
CorporateAboutPage,
CorporateContactPage,
CorporateFaqPage,
CorporateFaqPage, CorporateLicensePage,
CorporatePricingPage,
CorporateTeamPage,
DefaultDashboardPage,
Expand Down Expand Up @@ -124,6 +124,10 @@ const router = createBrowserRouter([
{
path: "pricing",
element: <CorporatePricingPage/>
},
{
path: "license",
element: <CorporateLicensePage/>
}
]
}
Expand Down

0 comments on commit 1184445

Please sign in to comment.