-
Notifications
You must be signed in to change notification settings - Fork 46
[ECWoC] feat: created a resuable footer component, privacy policy, terms and conditions pages #146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
7d5c75f
a68205d
cc35fef
f5486c2
da0f6d9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -5,6 +5,8 @@ import SignUp from '../../features/Auth/SignUp' | |||||||||
| import LoginPage from '../../shared/component/v1/LoginPage' | ||||||||||
| import ForgotPwd from '../../shared/component/v1/ForgotPwd' | ||||||||||
| import ResetPassword from '../../shared/component/v1/ResetPassword' | ||||||||||
| import PrivacyPolicy from './features/Pages/PrivacyPolicy' | ||||||||||
| import TermsConditions from './features/Pages/TermsConditions' | ||||||||||
|
|
||||||||||
| const AppRoutes: React.FC = () => { | ||||||||||
| return ( | ||||||||||
|
|
@@ -17,7 +19,7 @@ const AppRoutes: React.FC = () => { | |||||||||
| <Route path="/login" element={<LoginPage />} /> | ||||||||||
| <Route path="/forgot-password" element={<ForgotPassword />} /> | ||||||||||
| <Route path="/reset-password/:token" element={<ResetPassword />} /> | ||||||||||
|
|
||||||||||
| {/* Register Page - TODO: Create dedicated RegisterPage component */} | ||||||||||
| <Route path="/register" element={<LoginPage />} /> | ||||||||||
|
|
||||||||||
|
|
@@ -27,6 +29,10 @@ const AppRoutes: React.FC = () => { | |||||||||
| {/* Reset Password Page */} | ||||||||||
| <Route path="/reset-password/:token" element={<ResetPassword />} /> | ||||||||||
|
|
||||||||||
| {/* Legal Pages */} | ||||||||||
|
|
||||||||||
| <Route path="/privacy-policy" element={<PrivacyPolicy />} /> | ||||||||||
| <Route path="/terms-conditions" element={<TermsConditions />} /> | ||||||||||
|
Comment on lines
+34
to
+35
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The new routes for the legal pages have an extra level of indentation compared to the other routes in this file. To maintain consistent code formatting and improve readability, please remove the extra indentation.
Suggested change
|
||||||||||
| {/* Chat Page */} | ||||||||||
| </Routes> | ||||||||||
| ) | ||||||||||
|
|
||||||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,50 @@ | ||||||
| import React from 'react' | ||||||
| const PrivacyPolicy: React.FC = () => { | ||||||
| return ( | ||||||
| <div className="flex flex-col min-h-screen"> | ||||||
| <div className="flex-grow max-w-3xl mx-auto px-4 py-12"> | ||||||
| <h1 className="text-3xl font-bold text-gray-900 mb-6"> | ||||||
| Privacy Policy | ||||||
| </h1> | ||||||
|
|
||||||
| <p className="text-gray-700 mb-4"> | ||||||
| At LocalMind, your privacy matters. This Privacy Policy explains what | ||||||
| information we collect, how we use it, and your rights regarding your | ||||||
| personal data. | ||||||
| </p> | ||||||
|
|
||||||
| <section className="mb-4"> | ||||||
| <h2 className="text-xl font-semibold text-gray-800 mb-2"> | ||||||
| Information We Collect | ||||||
| </h2> | ||||||
| <p className="text-gray-700 text-sm"> | ||||||
| We do not collect, share, or sell personal information. LocalMind | ||||||
| operates locally, on your device, without tracking or analytics. | ||||||
| </p> | ||||||
| </section> | ||||||
|
|
||||||
| <section className="mb-4"> | ||||||
| <h2 className="text-xl font-semibold text-gray-800 mb-2"> | ||||||
| Use of Data | ||||||
| </h2> | ||||||
| <p className="text-gray-700 text-sm"> | ||||||
| Any data you input is processed locally within the app and is never | ||||||
| sent to external servers unless you explicitly configure integrations. | ||||||
| </p> | ||||||
| </section> | ||||||
|
|
||||||
| <section className="mb-4"> | ||||||
| <h2 className="text-xl font-semibold text-gray-800 mb-2"> | ||||||
| Contact Us | ||||||
| </h2> | ||||||
| <p className="text-gray-700 text-sm"> | ||||||
| For questions about this policy, email us at support@localmind.dev | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The support email address is hardcoded. It's a good practice to define such values as constants in a separate configuration file (e.g., Additionally, making the email a clickable
Suggested change
|
||||||
| </p> | ||||||
| </section> | ||||||
| </div> | ||||||
|
|
||||||
| </div> | ||||||
| ) | ||||||
| } | ||||||
|
|
||||||
| export default PrivacyPolicy | ||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| import React from 'react' | ||
|
|
||
| const TermsConditions: React.FC = () => { | ||
| return ( | ||
| <div className="flex flex-col min-h-screen"> | ||
| <div className="flex-grow max-w-3xl mx-auto px-4 py-12"> | ||
| <h1 className="text-3xl font-bold text-gray-900 mb-6"> | ||
| Terms & Conditions | ||
| </h1> | ||
|
|
||
| <p className="text-gray-700 mb-4"> | ||
| These Terms & Conditions govern your use of the LocalMind platform. | ||
| By accessing or using LocalMind, you agree to be bound by these terms. | ||
| </p> | ||
|
|
||
| <section className="mb-4"> | ||
| <h2 className="text-xl font-semibold text-gray-800 mb-2"> | ||
| Use License | ||
| </h2> | ||
| <p className="text-gray-700 text-sm"> | ||
| You are granted a limited, non-exclusive, non-transferable license to | ||
| use LocalMind for personal or internal use only. | ||
| </p> | ||
| </section> | ||
|
|
||
| <section className="mb-4"> | ||
| <h2 className="text-xl font-semibold text-gray-800 mb-2"> | ||
| Limitations | ||
| </h2> | ||
| <p className="text-gray-700 text-sm"> | ||
| LocalMind is provided “as-is.” We are not liable for any damages | ||
| arising from the use of the platform. | ||
| </p> | ||
| </section> | ||
|
|
||
| <section className="mb-4"> | ||
| <h2 className="text-xl font-semibold text-gray-800 mb-2"> | ||
| Governing Law | ||
| </h2> | ||
| <p className="text-gray-700 text-sm"> | ||
| These Terms are governed by the laws of the applicable jurisdiction | ||
| where LocalMind is operated. | ||
| </p> | ||
| </section> | ||
| </div> | ||
|
|
||
| </div> | ||
| ) | ||
| } | ||
|
|
||
| export default TermsConditions |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,50 @@ | ||||||
| import React from 'react' | ||||||
| import { Link } from 'react-router-dom' | ||||||
|
|
||||||
| const Footer: React.FC = () => { | ||||||
| const currentYear = new Date().getFullYear() | ||||||
|
|
||||||
| return ( | ||||||
| <footer className="bg-gray-900 text-white py-8 px-4 md:px-12"> | ||||||
| <div className="max-w-7xl mx-auto grid grid-cols-1 md:grid-cols-3 gap-6"> | ||||||
| {/* Brand + Description */} | ||||||
| <div> | ||||||
| <h3 className="text-xl font-bold">LocalMind</h3> | ||||||
| <p className="mt-2 text-sm text-gray-300"> | ||||||
| Your Data. Your AI. No Compromises. | ||||||
| </p> | ||||||
| </div> | ||||||
|
|
||||||
| {/* Navigation Links */} | ||||||
| <div className="flex flex-col space-y-2 text-sm"> | ||||||
| <Link to="/" className="hover:underline"> | ||||||
| Home | ||||||
| </Link> | ||||||
| <Link to="/privacy-policy" className="hover:underline"> | ||||||
| Privacy Policy | ||||||
| </Link> | ||||||
| <Link to="/terms-conditions" className="hover:underline"> | ||||||
| Terms & Conditions | ||||||
| </Link> | ||||||
| <Link to="/docs" className="hover:underline"> | ||||||
| Docs | ||||||
| </Link> | ||||||
|
Comment on lines
+29
to
+31
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||||||
| </div> | ||||||
|
|
||||||
| {/* Social / Info */} | ||||||
| <div className="text-sm text-gray-300"> | ||||||
| <p>Built with ❤️ by NexGenStudioDev</p> | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The author name "NexGenStudioDev" is hardcoded. To improve maintainability, it's better to define this as a constant in a shared configuration or constants file. This allows for easier updates if the name changes.
Suggested change
|
||||||
| <p className="mt-1">No tracking. No data capture.</p> | ||||||
| </div> | ||||||
| </div> | ||||||
|
|
||||||
| <hr className="border-gray-800 my-6" /> | ||||||
|
|
||||||
| <p className="text-center text-xs text-gray-500"> | ||||||
| © {currentYear} LocalMind. All rights reserved. | ||||||
| </p> | ||||||
| </footer> | ||||||
| ) | ||||||
| } | ||||||
|
|
||||||
| export default Footer | ||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The import paths for
PrivacyPolicyandTermsConditionsare incorrect. Based on the project's file structure, the paths should be relative from the current file's location (src/app/routes/) to the components' location (src/features/Dashboard/V1/Component/Pages/). The current paths will cause a module resolution error and break the build.