feat(storefront): update FAQ and legal documentation
- Added new FAQ sections for account security, ordering and checkout, returns, shipping, and contact information. - Introduced legal documents including privacy policy, terms of service, data protection, and general terms and conditions. - Updated package dependencies to include gray-matter and remark-gfm for enhanced markdown support.
This commit is contained in:
15
apps/storefront/src/app/legal/data-protection/page.tsx
Normal file
15
apps/storefront/src/app/legal/data-protection/page.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { LegalDocPage } from "@/components/legal/LegalDocPage";
|
||||
import { getLegalDoc } from "@/lib/legal/getLegalDoc";
|
||||
import type { Metadata } from "next";
|
||||
|
||||
export async function generateMetadata(): Promise<Metadata> {
|
||||
const doc = getLegalDoc("data-protection");
|
||||
return {
|
||||
title: doc?.data.title ?? "Data Protection",
|
||||
description: doc?.data.description,
|
||||
};
|
||||
}
|
||||
|
||||
export default function DataProtectionPage() {
|
||||
return <LegalDocPage slug="data-protection" />;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
import { LegalDocPage } from "@/components/legal/LegalDocPage";
|
||||
import { getLegalDoc } from "@/lib/legal/getLegalDoc";
|
||||
import type { Metadata } from "next";
|
||||
|
||||
export async function generateMetadata(): Promise<Metadata> {
|
||||
const doc = getLegalDoc("general-terms-and-conditions");
|
||||
return {
|
||||
title: doc?.data.title ?? "General Terms and Conditions",
|
||||
description: doc?.data.description,
|
||||
};
|
||||
}
|
||||
|
||||
export default function GeneralTermsAndConditionsPage() {
|
||||
return <LegalDocPage slug="general-terms-and-conditions" />;
|
||||
}
|
||||
15
apps/storefront/src/app/legal/privacy-policy/page.tsx
Normal file
15
apps/storefront/src/app/legal/privacy-policy/page.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { LegalDocPage } from "@/components/legal/LegalDocPage";
|
||||
import { getLegalDoc } from "@/lib/legal/getLegalDoc";
|
||||
import type { Metadata } from "next";
|
||||
|
||||
export async function generateMetadata(): Promise<Metadata> {
|
||||
const doc = getLegalDoc("privacy-policy");
|
||||
return {
|
||||
title: doc?.data.title ?? "Privacy Policy",
|
||||
description: doc?.data.description,
|
||||
};
|
||||
}
|
||||
|
||||
export default function PrivacyPolicyPage() {
|
||||
return <LegalDocPage slug="privacy-policy" />;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
import { LegalDocPage } from "@/components/legal/LegalDocPage";
|
||||
import { getLegalDoc } from "@/lib/legal/getLegalDoc";
|
||||
import type { Metadata } from "next";
|
||||
|
||||
export async function generateMetadata(): Promise<Metadata> {
|
||||
const doc = getLegalDoc("return-and-refund-policy");
|
||||
return {
|
||||
title: doc?.data.title ?? "Return and Refund Policy",
|
||||
description: doc?.data.description,
|
||||
};
|
||||
}
|
||||
|
||||
export default function ReturnAndRefundPolicyPage() {
|
||||
return <LegalDocPage slug="return-and-refund-policy" />;
|
||||
}
|
||||
15
apps/storefront/src/app/legal/terms-of-service/page.tsx
Normal file
15
apps/storefront/src/app/legal/terms-of-service/page.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { LegalDocPage } from "@/components/legal/LegalDocPage";
|
||||
import { getLegalDoc } from "@/lib/legal/getLegalDoc";
|
||||
import type { Metadata } from "next";
|
||||
|
||||
export async function generateMetadata(): Promise<Metadata> {
|
||||
const doc = getLegalDoc("terms");
|
||||
return {
|
||||
title: doc?.data.title ?? "Terms of Service",
|
||||
description: doc?.data.description,
|
||||
};
|
||||
}
|
||||
|
||||
export default function TermsOfServicePage() {
|
||||
return <LegalDocPage slug="terms-of-service" />;
|
||||
}
|
||||
Reference in New Issue
Block a user