From 09b86f5a5e32563200c21607e2de8b5f80ebb9a9 Mon Sep 17 00:00:00 2001 From: davedude1011 Date: Thu, 1 Aug 2024 11:29:16 +0100 Subject: [PATCH] Built the Privacy Page --- packages/app/src/app/privacy/page.tsx | 104 +++++++++++++++++++++++++- 1 file changed, 103 insertions(+), 1 deletion(-) diff --git a/packages/app/src/app/privacy/page.tsx b/packages/app/src/app/privacy/page.tsx index c3f91c16..88d8ce3e 100644 --- a/packages/app/src/app/privacy/page.tsx +++ b/packages/app/src/app/privacy/page.tsx @@ -1,5 +1,36 @@ import { Heading } from "@/components/ui/heading"; +function PrivacyTextElement({ + title, + description, +}: { + title: string; + description: { type: string; content: string | string[] }[]; +}) { + return ( +
+

{title}

+ {description.map((descriptionData, index) => ( + <> + {descriptionData.type == "paragraph" && ( +

{descriptionData.content}

+ )} + {descriptionData.type == "list" && + typeof descriptionData.content == "object" && ( +
+
    + {descriptionData.content.map((content, index) => ( +
  • {content}
  • + ))} +
+
+ )} + + ))} +
+ ); +} + function PrivacyPage({}) { return (
@@ -7,7 +38,78 @@ function PrivacyPage({}) { title="Privacy Policies" description="Privacy policies for Code Racer" /> - {/* ADD PRIVACY POLICY */} + + + + + + + { + // TODO: + // - Add contact information + // - Improve UI, ( visuals are not my strongsuite :-) ) + // - Replace the text with the sites actuall privacy policy, i just used a generic one :I + }
); }