From b899c615323b1f78e232805b7136598e4fdc1bc0 Mon Sep 17 00:00:00 2001
From: Pheonix <150040105+ArshiBansal@users.noreply.github.com>
Date: Sat, 13 Jun 2026 14:46:29 +0530
Subject: [PATCH 1/2] added a cookies page with cookies pop up
---
src/app/cookies/page.tsx | 224 +++++++++++++++++++++++++++++++
src/app/page.tsx | 9 ++
src/components/CookieConsent.jsx | 67 +++++++++
src/components/layout/Footer.tsx | 7 +-
4 files changed, 306 insertions(+), 1 deletion(-)
create mode 100644 src/app/cookies/page.tsx
create mode 100644 src/components/CookieConsent.jsx
diff --git a/src/app/cookies/page.tsx b/src/app/cookies/page.tsx
new file mode 100644
index 00000000..8e062bef
--- /dev/null
+++ b/src/app/cookies/page.tsx
@@ -0,0 +1,224 @@
+export default function CookiesPage() {
+ const lastUpdated = new Date().toLocaleDateString();
+
+ return (
+
+
+ {/* Title */}
+
Cookies Policy
+
+
+ Last updated: {lastUpdated}
+
+
+ {/* Intro */}
+
+
+ This Cookies Policy explains how cookies and similar tracking
+ technologies are used on this website and related services operated
+ by {`{Your Brand Name}`}. It explains what cookies are, how
+ we use them, and how you can control them.
+
+
+ {/* 1 */}
+
+
1. What are cookies?
+
+ Cookies are small text files stored on your device (computer,
+ tablet, or mobile) when you visit a website. They are widely used
+ to make websites work efficiently and provide reporting
+ information.
+
+
+
+ {/* 2 */}
+
+
+ 2. Types of cookies we use
+
+
+
+ We use different types of cookies for various purposes:
+
+
+
+
+ Essential Cookies: Required for core functionality such
+ as authentication, security, and basic navigation.
+
+
+
+ Performance & Analytics Cookies: Help us understand how
+ users interact with the site (e.g., page views, traffic sources,
+ user behavior).
+
+
+
+ Functional Cookies: Remember your preferences such as
+ theme, language, or region settings.
+
+
+
+ Security Cookies: Used to detect fraud, abuse, and
+ unauthorized access.
+
+
+
+ Advertising Cookies (if enabled): Used to deliver
+ relevant ads and measure campaign performance.
+
+
+
+
+ {/* 3 */}
+
+
+ 3. How we use cookies
+
+
We use cookies to:
+
+
+
Ensure the website functions correctly
+
Improve performance and user experience
+
Remember user preferences and settings
+
Analyze traffic and usage patterns
+
Improve content, features, and services
+
Enhance security and prevent abuse
+
+
+
+ {/* 4 */}
+
+
+ 4. Third-party cookies
+
+
+ Some cookies may be placed by third-party services that appear on
+ our pages. These include tools such as:
+
+
+
+
+ Analytics providers (e.g., Google Analytics or alternatives)
+
+ These third parties may collect data in accordance with their own
+ privacy policies.
+
+
+
+ {/* 5 */}
+
+
+ 5. Why cookies are important
+
+
+ Cookies help us provide a smoother and more personalized
+ experience. Without cookies, some features may not work properly,
+ and you may need to re-enter information repeatedly.
+
+
+
+ {/* 6 */}
+
+
+ 6. How you can control cookies
+
+
+
+ You have full control over cookies and can manage them in several
+ ways:
+
+
+
+
Adjust browser settings to block or delete cookies
+
Set preferences to accept or reject certain cookies
+
Use “Do Not Track” options if supported by your browser
+
+
+
+ Please note that disabling cookies may affect website
+ functionality.
+
+
+
+ {/* 7 */}
+
+
7. Cookie retention
+
+ Cookies may be stored either temporarily (session cookies) or for
+ longer periods (persistent cookies). Session cookies are deleted
+ when you close your browser, while persistent cookies remain until
+ they expire or are deleted manually.
+
+
+
+ {/* 8 */}
+
+
+ 8. Data collected through cookies
+
+
Cookies may collect information such as:
+
+
+
+ IP address (anonymized or partial depending on configuration)
+
+
Browser type and device information
+
Pages visited and time spent on site
+
Interaction patterns (clicks, navigation flow)
+
Login/session status (if applicable)
+
+
+
+ {/* 9 */}
+
+
+ 9. Legal basis for cookies
+
+
Where applicable, we use cookies based on:
+
+
+
Your consent (for non-essential cookies)
+
+ Legitimate interest (for essential functionality and security)
+
+
Contractual necessity (for logged-in services)
+
+
+
+ {/* 10 */}
+
+
+ 10. Updates to this policy
+
+
+ We may update this Cookies Policy from time to time to reflect
+ changes in technology, legal requirements, or our services.
+ Updates will be posted on this page with a revised “Last Updated”
+ date.
+
+
+
+ {/* 11 */}
+
+
11. Contact us
+
+ If you have any questions about this Cookies Policy, you can
+ contact us at:
+
+
+
+ support@yourdomain.com (replace with your real email)
+