Create legal pages and refactor navigation

New pages for Cookie Policy, Terms of Service, and Privacy Policy were added. The navigation system was restructured using a mapped array of links instead of hard coded components. The 'Not Found' page's metadata handling was improved and its translation was updated. Certain components that aid this refactoring were created and some pre-existing components or functions were moved to more appropriate locations or renamed for clarity. The Site Navigation, Footer, and Page header components were updated in layout and content. Various pages including Blog and Documentation were updated or removed.
This commit is contained in:
giancarlo
2024-04-04 10:04:07 +08:00
parent 2782b26dc2
commit 0b374c558a
18 changed files with 178 additions and 186 deletions

View File

@@ -0,0 +1,17 @@
import { SitePageHeader } from '~/(marketing)/_components/site-page-header';
import { withI18n } from '~/lib/i18n/with-i18n';
function CookiePolicyPage() {
return (
<div className={'mt-8'}>
<div className={'container mx-auto'}>
<SitePageHeader
title={`Cookie Policy`}
subtitle={`This is the cookie policy page. It's a great place to put information about the cookies your site uses.`}
/>
</div>
</div>
);
}
export default withI18n(CookiePolicyPage);

View File

@@ -0,0 +1,14 @@
import { SitePageHeader } from '~/(marketing)/_components/site-page-header';
import { withI18n } from '~/lib/i18n/with-i18n';
function PrivacyPolicyPage() {
return (
<div className={'mt-8'}>
<div className={'container mx-auto'}>
<SitePageHeader title={`Privacy Policy`} subtitle={``} />
</div>
</div>
);
}
export default withI18n(PrivacyPolicyPage);

View File

@@ -0,0 +1,14 @@
import { SitePageHeader } from '~/(marketing)/_components/site-page-header';
import { withI18n } from '~/lib/i18n/with-i18n';
function TermsOfServicePage() {
return (
<div className={'mt-8'}>
<div className={'container mx-auto'}>
<SitePageHeader title={`Terms of Service`} subtitle={``} />
</div>
</div>
);
}
export default withI18n(TermsOfServicePage);