diff --git a/src/app/(landing-routes)/privacy-policy/page.tsx b/src/app/(landing-routes)/privacy-policy/page.tsx new file mode 100644 index 000000000..6ed5cf47e --- /dev/null +++ b/src/app/(landing-routes)/privacy-policy/page.tsx @@ -0,0 +1,55 @@ +"use client"; + +import { useEffect } from "react"; + +import { Breadcrumb } from "~/components/common/breadcrumb"; +import privacyPolicyData, { + getTableOfContents, +} from "~/components/layouts/Legal/PrivacyPolicy/constants/privacyPolicyData"; +import PrivacyPolicyContent from "~/components/layouts/Legal/PrivacyPolicy/PrivacyPolicyContent"; +import TableOfContent from "~/components/layouts/Legal/TableOfContent"; +import SubPageHero from "~/components/layouts/Legal/Terms&Conditions/SubPageHero"; + +export default function PrivacyPolicy() { + const tableOfContents = getTableOfContents(privacyPolicyData); + + useEffect(() => { + const scrollClasses = [ + "scroll-smooth", + "scroll-pt-24", + "md:scroll-pt-[108px]", + ]; + + const htmlElement = document.documentElement; + htmlElement.classList.add(...scrollClasses); + + return () => { + htmlElement.classList.remove(...scrollClasses); + }; + }, []); + + return ( +
+ + +
+ + +
+ + + +
+
+
+ ); +} diff --git a/src/app/(landing-routes)/terms-and-conditions/page.tsx b/src/app/(landing-routes)/terms-and-conditions/page.tsx new file mode 100644 index 000000000..2d6896bc0 --- /dev/null +++ b/src/app/(landing-routes)/terms-and-conditions/page.tsx @@ -0,0 +1,42 @@ +import { Breadcrumb } from "~/components/common/breadcrumb"; +import Main from "~/components/layouts/Legal/Terms&Conditions/Main"; +import SubPageHero from "~/components/layouts/Legal/Terms&Conditions/SubPageHero"; + +const TermsConditions = () => { + return ( +
+
+ +
+ +
+
+ +
+ +
+
+
+
+
+ ); +}; + +export default TermsConditions; diff --git a/src/app/guides/page.tsx b/src/app/guides/page.tsx index c19d76602..2219118d0 100644 --- a/src/app/guides/page.tsx +++ b/src/app/guides/page.tsx @@ -3,7 +3,7 @@ import { Orbit, Plus } from "lucide-react"; import { FC } from "react"; -import CustomButton from "~/components/common/button/button"; +import CustomButton from "~/components/common/common-button/common-button"; const StyleGuide: FC = () => { return ( diff --git a/src/components/layouts/Legal/PrivacyPolicy/PrivacyPolicyContent.tsx b/src/components/layouts/Legal/PrivacyPolicy/PrivacyPolicyContent.tsx index 8932aefcd..c6676e263 100644 --- a/src/components/layouts/Legal/PrivacyPolicy/PrivacyPolicyContent.tsx +++ b/src/components/layouts/Legal/PrivacyPolicy/PrivacyPolicyContent.tsx @@ -41,7 +41,10 @@ export default function PrivacyPolicyContent({ }; return ( -
+
{content.map((section) => (

+