diff --git a/user/src/components/LinkingPolicy.jsx b/user/src/components/LinkingPolicy.jsx index d7f00b7..63b92ce 100644 --- a/user/src/components/LinkingPolicy.jsx +++ b/user/src/components/LinkingPolicy.jsx @@ -1,7 +1,26 @@ -import React from 'react'; -import { Link2, ExternalLink, Shield, AlertTriangle, CheckCircle, XCircle, Globe, Users } from 'lucide-react'; +import React, { useState, useEffect } from 'react'; +import { Link2, ExternalLink, Shield, AlertTriangle, CheckCircle, XCircle, Globe, Users, Sun, Moon } from 'lucide-react'; const LinkingPolicy = () => { + const [darkMode, setDarkMode] = useState(false); + + // Persist theme in localStorage + useEffect(() => { + if (darkMode) { + document.documentElement.classList.add("dark"); + localStorage.setItem("theme", "dark"); + } else { + document.documentElement.classList.remove("dark"); + localStorage.setItem("theme", "light"); + } + }, [darkMode]); + + // Load saved theme on mount + useEffect(() => { + const savedTheme = localStorage.getItem("theme"); + if (savedTheme === "dark") setDarkMode(true); + }, []); + const linkingTypes = [ { type: "Outbound Links", @@ -48,7 +67,7 @@ const LinkingPolicy = () => { ]; return ( -
+
{/* Header */}
@@ -68,10 +87,20 @@ const LinkingPolicy = () => {
+ {/* Theme Toggle Button */} +
+ +
+ {/* Introduction */} -
-

Our Linking Framework

-
+
+

Our Linking Framework

+

As a government platform dedicated to transparent and accessible digital governance, SaralSeva maintains strict guidelines for linking to and from external websites. @@ -83,8 +112,8 @@ const LinkingPolicy = () => { services while protecting users from security threats and ensuring compliance with government digital standards.

-
-

+

+

Policy Scope: This policy applies to all hyperlinks, redirects, API integrations, and digital connections associated with the SaralSeva platform.

@@ -93,25 +122,25 @@ const LinkingPolicy = () => {
{/* Types of Linking */} -
-

Types of Linking

+
+

Types of Linking

{linkingTypes.map((item, index) => ( -
+
{item.icon}
-

{item.type}

+

{item.type}

-

{item.description}

+

{item.description}

))}
{/* Outbound Linking Policy */} -
+
@@ -122,11 +151,11 @@ const LinkingPolicy = () => {
-

+

Permitted External Links

-
    +
    • Official government websites and portals (.gov.in domains) @@ -155,11 +184,11 @@ const LinkingPolicy = () => {
-

+

Prohibited External Links

-
    +
      {prohibitedContent.slice(0, 6).map((item, index) => (
    • @@ -170,9 +199,9 @@ const LinkingPolicy = () => {
-
-

Link Disclaimer

-

+

+

Link Disclaimer

+

All external links are provided for user convenience and informational purposes. SaralSeva does not endorse, control, or assume responsibility for the content, privacy policies, or practices of external websites. Users access external sites @@ -184,15 +213,15 @@ const LinkingPolicy = () => {

{/* Approved Government Domains */} -
-

Pre-Approved Government Domains

+
+

Pre-Approved Government Domains

{approvedDomains.map((category, index) => ( -
-

{category.category}

+
+

{category.category}

{category.domains.map((domain, domainIndex) => ( - + *.{domain} ))} @@ -203,7 +232,7 @@ const LinkingPolicy = () => {
{/* Inbound Linking Policy */} -
+
@@ -214,8 +243,8 @@ const LinkingPolicy = () => {
-

Permitted Inbound Links

-
    +

    Permitted Inbound Links

    +
    • Government websites and official portals @@ -234,8 +263,8 @@ const LinkingPolicy = () => {
    -

    Link Requirements

    -
      +

      Link Requirements

      +
      • • Links must be contextually relevant
      • • Must not misrepresent SaralSeva's purpose
      • • Should not bypass authentication mechanisms
      • @@ -244,8 +273,8 @@ const LinkingPolicy = () => {
-

Linking Restrictions

-
    +

    Linking Restrictions

    +
    • Commercial websites without prior approval @@ -264,9 +293,9 @@ const LinkingPolicy = () => {
    -
    -

    Approval Required

    -

    +

    +

    Approval Required

    +

    Commercial entities, media organizations, and third-party services must obtain written permission before linking to SaralSeva.

    @@ -277,7 +306,7 @@ const LinkingPolicy = () => {
    {/* Security and Monitoring */} -
    +
    @@ -288,8 +317,8 @@ const LinkingPolicy = () => {
    -

    Link Verification

    -
      +

      Link Verification

      +
      • • SSL/TLS certificate validation
      • • Malware and phishing detection
      • • Content appropriateness review
      • @@ -298,8 +327,8 @@ const LinkingPolicy = () => {
    -

    Monitoring Systems

    -
      +

      Monitoring Systems

      +
      • • 24/7 link availability monitoring
      • • Suspicious activity detection
      • • User feedback analysis
      • @@ -308,8 +337,8 @@ const LinkingPolicy = () => {
    -

    Response Protocols

    -
      +

      Response Protocols

      +
      • • Immediate removal of harmful links
      • • User notification systems
      • • Incident reporting procedures
      • @@ -358,17 +387,17 @@ const LinkingPolicy = () => {
    {/* Policy Updates */} -
    +
    -

    Policy Updates and Compliance

    +

    Policy Updates and Compliance

    -

    +

    This Linking Policy is regularly reviewed and updated to ensure compliance with evolving government guidelines, security standards, and digital governance best practices. All stakeholders will be notified of significant policy changes.

    -

    +

    Last Updated: August 2025 | Next Review: February 2026 | Version: 2.1

    diff --git a/user/src/components/PrivacyPolicy.jsx b/user/src/components/PrivacyPolicy.jsx index 75458bd..dd112f1 100644 --- a/user/src/components/PrivacyPolicy.jsx +++ b/user/src/components/PrivacyPolicy.jsx @@ -1,7 +1,26 @@ -import React from 'react'; -import { Shield, Lock, Eye, Users, Database, FileText, AlertTriangle, Mail } from 'lucide-react'; +import React, { useState, useEffect } from 'react'; +import { Shield, Lock, Eye, Users, Database, FileText, AlertTriangle, Mail, Sun, Moon } from 'lucide-react'; const PrivacyPolicy = () => { + const [darkMode, setDarkMode] = useState(false); + + // Persist theme in localStorage + useEffect(() => { + if (darkMode) { + document.documentElement.classList.add("dark"); + localStorage.setItem("theme", "dark"); + } else { + document.documentElement.classList.remove("dark"); + localStorage.setItem("theme", "light"); + } + }, [darkMode]); + + // Load saved theme on mount + useEffect(() => { + const savedTheme = localStorage.getItem("theme"); + if (savedTheme === "dark") setDarkMode(true); + }, []); + const sections = [ { id: "information-collection", @@ -168,7 +187,7 @@ const PrivacyPolicy = () => { ]; return ( -
    +
    {/* Header */}
    @@ -188,10 +207,20 @@ const PrivacyPolicy = () => {
    + {/* Theme Toggle Button */} +
    + +
    + {/* Introduction */} -
    -

    Our Commitment to Your Privacy

    -
    +
    +

    Our Commitment to Your Privacy

    +

    SaralSeva is dedicated to strengthening governance from the ground up by providing transparent, accessible, and secure digital services for rural government schemes. This Privacy Policy explains @@ -203,7 +232,7 @@ const PrivacyPolicy = () => { critical importance of maintaining the confidentiality and integrity of your personal information while ensuring transparency in government operations.

    -

    +

    Last Updated: August 2025 | Effective Date: August 19, 2025

    @@ -212,7 +241,7 @@ const PrivacyPolicy = () => { {/* Sections */}
    {sections.map((section, index) => ( -
    +
    {section.icon} @@ -224,7 +253,7 @@ const PrivacyPolicy = () => {
    {section.content.map((subsection, subIndex) => (
    -

    +

    {subsection.subtitle}

    @@ -232,7 +261,7 @@ const PrivacyPolicy = () => { {subsection.items.map((item, itemIndex) => (
  • - {item} + {item}
  • ))}
@@ -276,13 +305,13 @@ const PrivacyPolicy = () => {
{/* Footer Note */} -
-

+

+

This Privacy Policy is part of SaralSeva's commitment to building a transparent, accountable, and citizen-centric digital governance ecosystem. Regular updates ensure compliance with evolving data protection regulations and government guidelines.

-
+
🇮🇳 Proudly Indian Digital India Initiative