From 47f7a396eac439ae7d93c8d28f93799a3bfaf8f2 Mon Sep 17 00:00:00 2001 From: Danish Arora Date: Mon, 10 Nov 2025 17:14:20 -0500 Subject: [PATCH] chore: add t&c and privacy-policy --- app/src/App.tsx | 4 + app/src/components/Footer.tsx | 48 ++++++ app/src/pages/BookmarksPage.tsx | 5 +- app/src/pages/CellPage.tsx | 5 +- app/src/pages/Dashboard.tsx | 2 + app/src/pages/Index.tsx | 5 +- app/src/pages/NotFound.tsx | 5 +- app/src/pages/PostPage.tsx | 5 +- app/src/pages/PrivacyPage.tsx | 179 ++++++++++++++++++++ app/src/pages/ProfilePage.tsx | 5 +- app/src/pages/TermsPage.tsx | 290 ++++++++++++++++++++++++++++++++ 11 files changed, 535 insertions(+), 18 deletions(-) create mode 100644 app/src/components/Footer.tsx create mode 100644 app/src/pages/PrivacyPage.tsx create mode 100644 app/src/pages/TermsPage.tsx diff --git a/app/src/App.tsx b/app/src/App.tsx index 353a6c8..2788dbc 100644 --- a/app/src/App.tsx +++ b/app/src/App.tsx @@ -11,6 +11,8 @@ import Index from './pages/Index'; import ProfilePage from './pages/ProfilePage'; import BookmarksPage from './pages/BookmarksPage'; import DebugPage from './pages/DebugPage'; +import TermsPage from './pages/TermsPage'; +import PrivacyPage from './pages/PrivacyPage'; // Create a client const queryClient = new QueryClient(); @@ -29,6 +31,8 @@ const App = () => ( } /> } /> } /> + } /> + } /> } /> diff --git a/app/src/components/Footer.tsx b/app/src/components/Footer.tsx new file mode 100644 index 0000000..d257d4a --- /dev/null +++ b/app/src/components/Footer.tsx @@ -0,0 +1,48 @@ +import React from 'react'; +import { Link } from 'react-router-dom'; +import { Terminal, FileText, Shield } from 'lucide-react'; + +const Footer: React.FC = () => { + return ( +
+
+
+ {/* Left: Logo and Copyright */} +
+ + + © 2025 opchan + +
+ + {/* Center: Links */} + + + {/* Right: Additional Info */} +
+ Licensed under CC-BY-SA +
+
+
+
+ ); +}; + +export default Footer; + + diff --git a/app/src/pages/BookmarksPage.tsx b/app/src/pages/BookmarksPage.tsx index 3b70bb9..f6b87c4 100644 --- a/app/src/pages/BookmarksPage.tsx +++ b/app/src/pages/BookmarksPage.tsx @@ -1,6 +1,7 @@ import { useState } from 'react'; import { useNavigate } from 'react-router-dom'; import Header from '@/components/Header'; +import Footer from '@/components/Footer'; import { BookmarkList } from '@/components/ui/bookmark-card'; import { Button } from '@/components/ui/button'; import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'; @@ -217,9 +218,7 @@ const BookmarksPage = () => { -
-

OpChan - A decentralized forum built on Waku & Bitcoin Ordinals

-
+