From 095c8cae0d48be82c40bb6ee1ef7e5bab02aa5b8 Mon Sep 17 00:00:00 2001 From: Pheonix Date: Sat, 20 Jun 2026 19:55:47 +0530 Subject: [PATCH 1/2] cookies page created and added --- src/components/Footer.jsx | 24 ++- src/components/cookiespage.jsx | 349 +++++++++++++++++++++++++++++++++ 2 files changed, 365 insertions(+), 8 deletions(-) create mode 100644 src/components/cookiespage.jsx diff --git a/src/components/Footer.jsx b/src/components/Footer.jsx index e9d48d7..569a4a2 100644 --- a/src/components/Footer.jsx +++ b/src/components/Footer.jsx @@ -87,7 +87,6 @@ const Footer = () => {

AlgoScope

- {/* Fixed Gap Space here */}
@@ -173,13 +172,22 @@ const Footer = () => {
- window.scrollTo({ top: 0, behavior: 'smooth' })} - className="text-xs theme-text-muted hover:theme-text-strong font-medium transition-colors" - > - About Project → - +
+ window.scrollTo({ top: 0, behavior: 'smooth' })} + className="text-xs theme-text-muted hover:theme-text-strong font-medium transition-colors" + > + About Project → + + window.scrollTo({ top: 0, behavior: 'smooth' })} + className="text-xs theme-text-muted hover:theme-text-strong font-medium transition-colors" + > + Cookies + +
diff --git a/src/components/cookiespage.jsx b/src/components/cookiespage.jsx new file mode 100644 index 0000000..541ef10 --- /dev/null +++ b/src/components/cookiespage.jsx @@ -0,0 +1,349 @@ +import React from 'react' +import { motion } from 'framer-motion' +import { Link } from 'react-router-dom' +import Footer from '../components/Footer' // Adjust import path according to your project structure + +const CookiesPage = () => { + return ( +
+
+
+ {/* Page Header */} + +

+ Cookie Policy +

+

+ Last updated: June 20, 2026 +

+
+ +
+ {/* Left Sidebar - Table of Contents */} +
+
+

+ Contents +

+ +
+
+ + {/* Right Main Content */} +
+
+ {/* 1. What Are Cookies */} + +

+ What Are Cookies? +

+

+ Cookies are small text files that are stored on your device + (computer, tablet, or mobile) when you visit a website. They + allow websites to remember your actions and preferences over + time, making your browsing experience more efficient and + personalized. +

+

+ Cookies do not typically contain personally identifiable + information, but they can help us provide a better and more + tailored experience on AlgoScope. +

+
+ + {/* 2. Types of Cookies */} + +

+ Types of Cookies We Use +

+
+
+

+ Essential Cookies +

+

+ These are necessary for the website to function + properly. They enable core features like navigation and + access to secure areas. +

+
+
+

+ Functional Cookies +

+

+ Allow us to remember your preferences (such as theme + selection) and provide enhanced, personalized features. +

+
+
+

+ Performance / Analytics Cookies +

+

+ Help us understand how visitors interact with AlgoScope + so we can improve performance and learning experience. +

+
+
+

+ Session Cookies +

+

+ Temporary cookies that are deleted when you close your + browser. They help maintain your session during use. +

+
+
+
+ + {/* 3. How We Use Cookies */} + +

+ How We Use Cookies +

+
    +
  • + Enable + smooth interactive algorithm visualizations +
  • +
  • + Remember + your preferred theme (light/dark mode) +
  • +
  • + Maintain + your progress and session state +
  • +
  • + Analyze + usage to improve educational content +
  • +
  • + Support + future features like user accounts +
  • +
+
+ + {/* 4. Third-Party Cookies */} + +

+ Third-Party Cookies +

+

+ We may use services from trusted third parties (such as + GitHub, Discord, and analytics providers). These services + may set their own cookies. We do not control these cookies + and recommend reviewing their privacy policies. +

+
+ + {/* 5. Retention Periods */} + +

+ Cookie Retention Periods +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Cookie TypeExampleDuration
Essentialsession_id + Session (deleted on browser close) +
Functionaltheme_preference1 year
Analytics_ga (if used)2 years
Performancevisitor_stats6 months
+
+
+ + {/* 6. Managing Cookies */} + +

+ Managing Your Cookies +

+

+ You can control and manage cookies through your browser + settings. Most browsers allow you to: +

+
    +
  • Block or allow all cookies
  • +
  • Delete cookies already stored on your device
  • +
  • Receive notifications before a cookie is set
  • +
  • Set preferences for specific websites
  • +
+

+ Note: Disabling essential cookies may + prevent some features (like algorithm visualizers) from + working properly. +

+
+ + {/* 7. Policy Updates */} + +

+ Updates to This Cookie Policy +

+

+ We may update this policy from time to time to reflect + changes in our practices or for legal reasons. The updated + version will be posted here with a new "Last updated" date. + We encourage you to review this page periodically. +

+
+ + {/* 8. Contact Us */} + +

+ Contact Us +

+

+ If you have any questions or concerns about our Cookie + Policy, please reach out to us: +

+ +
+
+ + {/* Return to Homepage Button - Bottom Only */} +
+ + ← Return to Homepage + +
+
+
+
+
+ + {/* Clean Footer */} +
+
+ ) +} + +export default CookiesPage From aee5c43dc40e0b9bc4a9b4b4f295950cb64ae36d Mon Sep 17 00:00:00 2001 From: Pheonix Date: Sat, 20 Jun 2026 20:17:19 +0530 Subject: [PATCH 2/2] updates --- src/components/Footer.jsx | 2 +- src/components/{cookiespage.jsx => cookies.jsx} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename src/components/{cookiespage.jsx => cookies.jsx} (100%) diff --git a/src/components/Footer.jsx b/src/components/Footer.jsx index 569a4a2..50d474d 100644 --- a/src/components/Footer.jsx +++ b/src/components/Footer.jsx @@ -181,7 +181,7 @@ const Footer = () => { About Project → window.scrollTo({ top: 0, behavior: 'smooth' })} className="text-xs theme-text-muted hover:theme-text-strong font-medium transition-colors" > diff --git a/src/components/cookiespage.jsx b/src/components/cookies.jsx similarity index 100% rename from src/components/cookiespage.jsx rename to src/components/cookies.jsx