Skip to content

Commit

Permalink
Merge pull request #1115 from near/feat/contact-us-page
Browse files Browse the repository at this point in the history
Contact Us Page (2 of 2)
  • Loading branch information
calebjacob committed Apr 15, 2024
2 parents 11dbcfe + 62fdc36 commit 11f79c8
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/marketing-navigation/categories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export const navigationCategories = [
},
{
title: 'Contact Us',
url: 'https://pages.near.org/about/contact-us/',
url: '/contact-us',
icon: 'ph-question ph-bold',
},
],
Expand Down
2 changes: 1 addition & 1 deletion src/components/sidebar-navigation/sections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export const marketingDrawerSections: NavigationSection[] = [
},
{
title: 'Contact Us',
url: 'https://pages.near.org/about/contact-us/',
url: '/contact-us',
icon: 'ph-question ph-bold',
},
],
Expand Down
3 changes: 3 additions & 0 deletions src/data/bos-components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ type NetworkComponents = {
foundersPage: string;
};
gateway: {
contactUsPage: string;
homePage: string;
};
relayerDemo: string;
Expand Down Expand Up @@ -125,6 +126,7 @@ export const componentsByNetworkId = ((): Record<NetworkId, NetworkComponents |
foundersPage: `${testnetTLA}/widget/NearOrg.FoundersPage`,
},
gateway: {
contactUsPage: `${testnetTLA}/widget/Gateway.ContactUsPage`,
homePage: `${testnetTLA}/widget/Gateway.Home`,
},
relayerDemo: 'one.testnet/widget/RelayerMessageDemo',
Expand Down Expand Up @@ -199,6 +201,7 @@ export const componentsByNetworkId = ((): Record<NetworkId, NetworkComponents |
foundersPage: 'near/widget/NearOrg.FoundersPage',
},
gateway: {
contactUsPage: 'near/widget/Gateway.ContactUsPage',
homePage: 'near/widget/Gateway.Home',
},
relayerDemo: 'relayer-demo.near/widget/RelayerMessageDemo',
Expand Down
23 changes: 23 additions & 0 deletions src/pages/contact-us.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { ComponentWrapperPage } from '@/components/near-org/ComponentWrapperPage';
import { useBosComponents } from '@/hooks/useBosComponents';
import { useDefaultLayout } from '@/hooks/useLayout';
import type { NextPageWithLayout } from '@/utils/types';

const ContactUsPage: NextPageWithLayout = () => {
const components = useBosComponents();

return (
<ComponentWrapperPage
src={components.gateway.contactUsPage}
meta={{
title: 'NEAR | Contact Us',
description:
'NEAR is a global community of Web3 enthusiasts and innovators. Dive into one of our social channels to engage in discussion with our lively community.',
}}
/>
);
};

ContactUsPage.getLayout = useDefaultLayout;

export default ContactUsPage;

0 comments on commit 11f79c8

Please sign in to comment.