diff --git a/src/App.tsx b/src/App.tsx index bfba2fa..62bff73 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -7,6 +7,8 @@ import About from './pages/About'; import Features from './pages/Features'; import Download from './pages/Download'; import Developers from './pages/Developers'; +import PrivacyPolicy from './pages/PrivacyPolicy'; // Import the PrivacyPolicy page +import CookieNotice from './components/CookieNotice'; // Cookie Notice function App() { return ( @@ -20,8 +22,10 @@ function App() { } /> } /> } /> + } /> {/* Privacy Policy Route */} +
diff --git a/src/components/CookieNotice.tsx b/src/components/CookieNotice.tsx new file mode 100644 index 0000000..8c6a628 --- /dev/null +++ b/src/components/CookieNotice.tsx @@ -0,0 +1,42 @@ +// src/components/CookieNotice.tsx + +import React, { useState, useEffect } from 'react'; + +const CookieNotice: React.FC = () => { + const [isVisible, setIsVisible] = useState(false); + + useEffect(() => { + const isCookieAccepted = localStorage.getItem('cookieAccepted'); + if (!isCookieAccepted) { + setIsVisible(true); + } + }, []); + + const handleAccept = () => { + localStorage.setItem('cookieAccepted', 'true'); + setIsVisible(false); + }; + + if (!isVisible) return null; + + return ( +
+

+ This website uses cookies to ensure you get the best experience on our website. By continuing to browse, you consent to our use of cookies.{' '} + + Learn more + . +

+
+ +
+
+ ); +}; + +export default CookieNotice; diff --git a/src/components/layout/Footer.tsx b/src/components/layout/Footer.tsx index b0fc2a4..c77fb55 100644 --- a/src/components/layout/Footer.tsx +++ b/src/components/layout/Footer.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { Github, Twitter, Youtube } from 'lucide-react'; +import { FaGithub, FaDev } from 'react-icons/fa'; export default function Footer() { return ( @@ -16,6 +16,7 @@ export default function Footer() {
  • Download
  • Documentation
  • Tools
  • +
  • Contact Us
  • @@ -24,27 +25,57 @@ export default function Footer() {
  • Forums
  • Blog
  • Support
  • +
  • Contribute
  • + + {/* Legal & Newsletter Section */} +
    + +
    +

    Newsletter

    +
    + + +
    +
    +
    + + {/* Footer Bottom */}

    © {new Date().getFullYear()} Snigdha OS. All rights reserved.

    ); -} \ No newline at end of file +} diff --git a/src/components/layout/Navbar.tsx b/src/components/layout/Navbar.tsx index fd27bc9..fdd1198 100644 --- a/src/components/layout/Navbar.tsx +++ b/src/components/layout/Navbar.tsx @@ -1,6 +1,7 @@ import React from 'react'; import { NavLink } from 'react-router-dom'; import { Menu, X, Terminal } from 'lucide-react'; +import { FaGithub, FaDev } from 'react-icons/fa'; export default function Navbar() { const [isOpen, setIsOpen] = React.useState(false); @@ -16,7 +17,7 @@ export default function Navbar() { return ( ); -} \ No newline at end of file +} diff --git a/src/pages/PrivacyPolicy.tsx b/src/pages/PrivacyPolicy.tsx new file mode 100644 index 0000000..768fc2b --- /dev/null +++ b/src/pages/PrivacyPolicy.tsx @@ -0,0 +1,65 @@ +// src/pages/PrivacyPolicy.tsx + +import React from 'react'; + +const PrivacyPolicy: React.FC = () => { + return ( +
    +

    Privacy Policy

    +

    Last Updated: [Date]

    + +

    1. Information We Collect

    +

    We collect the following types of information when you use our website:

    +

    Personal Information

    +
      +
    • Email Address
    • +
    • Account Information
    • +
    + +

    Non-Personal Information

    +
      +
    • Usage Data
    • +
    • Cookies and Tracking Technologies
    • +
    + +

    2. How We Use Your Information

    +
      +
    • To provide, maintain, and improve our services.
    • +
    • To communicate with you.
    • +
    • To monitor and analyze the usage of our website.
    • +
    • To respond to customer service requests.
    • +
    + +

    3. How We Protect Your Information

    +

    We implement a variety of security measures to maintain the safety of your personal information.

    + +

    4. Sharing Your Information

    +

    We do not sell or share your personal information without your consent, except for the reasons listed in this policy.

    + +

    5. Third-Party Links

    +

    Our website may contain links to third-party sites that are not controlled by us.

    + +

    6. Your Rights and Choices

    +
      +
    • Access, update, or delete your information.
    • +
    • Opt-out of communications from us.
    • +
    • Control cookies and tracking technologies.
    • +
    + +

    7. Data Retention

    +

    We retain your information only as long as necessary to provide you with our services.

    + +

    8. Children's Privacy

    +

    Our services are not intended for children under 13. We do not knowingly collect information from children under 13.

    + +

    9. Changes to This Privacy Policy

    +

    We may update our Privacy Policy. Any changes will be posted here with a revised "Last Updated" date.

    + +

    10. Contact Us

    +

    If you have any questions or concerns about this Privacy Policy, please contact us at:

    +

    Email: support@snigdhaos.com

    +
    + ); +}; + +export default PrivacyPolicy;