Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions LocalMind-Frontend/src/app/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, { useState } from 'react'
import MainLoader from '../features/Dashboard/V1/Component/Loader/MainLoader'
import Navbar from '../shared/component/v1/Navbar'
import AppRoutes from './routes/AppRoutes'
import Footer from '../shared/component/v1/Footer'

const App: React.FC = () => {
const [Loader, setLoader] = useState(true)
Expand All @@ -16,6 +17,8 @@ const App: React.FC = () => {

{/* All application routes including Chat Page */}
<AppRoutes />

<Footer />
</>
)
}
Expand Down
8 changes: 7 additions & 1 deletion LocalMind-Frontend/src/app/routes/AppRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Comment on lines +8 to +9
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The import paths for PrivacyPolicy and TermsConditions are 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.

Suggested change
import PrivacyPolicy from './features/Pages/PrivacyPolicy'
import TermsConditions from './features/Pages/TermsConditions'
import PrivacyPolicy from '../../features/Dashboard/V1/Component/Pages/PrivacyPolicy'
import TermsConditions from '../../features/Dashboard/V1/Component/Pages/TermsConditions'


const AppRoutes: React.FC = () => {
return (
Expand All @@ -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 />} />

Expand All @@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

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
<Route path="/privacy-policy" element={<PrivacyPolicy />} />
<Route path="/terms-conditions" element={<TermsConditions />} />
<Route path="/privacy-policy" element={<PrivacyPolicy />} />
<Route path="/terms-conditions" element={<TermsConditions />} />

{/* Chat Page */}
</Routes>
)
Expand Down
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The support email address is hardcoded. It's a good practice to define such values as constants in a separate configuration file (e.g., src/config/constants.ts) to improve maintainability and avoid magic strings. This makes it easier to update the email address across the application in the future.

Additionally, making the email a clickable mailto: link would improve user experience.

Suggested change
For questions about this policy, email us at support@localmind.dev
For questions about this policy, email us at <a href="mailto:support@localmind.dev" className="text-blue-600 hover:underline">support@localmind.dev</a>

</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
50 changes: 50 additions & 0 deletions LocalMind-Frontend/src/shared/component/v1/Footer.tsx
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

This link points to /docs, but there is no corresponding route defined in AppRoutes.tsx. This will lead to a "404 Not Found" error for users who click it. Please either add the /docs route or remove this link until the page is implemented.

</div>

{/* Social / Info */}
<div className="text-sm text-gray-300">
<p>Built with ❤️ by NexGenStudioDev</p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

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>Built with ❤️ by NexGenStudioDev</p>
<p>Built with ❤️ by {'NexGenStudioDev'}</p>

<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">
&copy; {currentYear} LocalMind. All rights reserved.
</p>
</footer>
)
}

export default Footer