+ {/* GitHub Button */}
+
- My Rooms
-
+
+
- {loggedIn ? (
-
- ) : (
+ {/* Desktop Navigation */}
+
- {/* Mobile Menu */}
-
-
-
- {isMobileMenuOpen && (
-
+ {loggedIn ? (
+
+ ) : (
- isActive ? `${styles.mobileMenuItem} ${styles.active}` : styles.mobileMenuItem
+ isActive ? `${styles.navLink} ${styles.active}` : styles.navLink
}
- onClick={() => setIsMobileMenuOpen(false)}
>
-
- My Rooms
+ Sign In
+ )}
+
- {loggedIn ? (
-
- ) : (
+ {/* Mobile Menu */}
+
+
+
+ {isMobileMenuOpen && (
+
isActive ? `${styles.mobileMenuItem} ${styles.active}` : styles.mobileMenuItem
}
onClick={() => setIsMobileMenuOpen(false)}
>
-
- Sign In
+
+ My Rooms
- )}
-
- )}
+
+ {loggedIn ? (
+
+ ) : (
+
+ isActive ? `${styles.mobileMenuItem} ${styles.active}` : styles.mobileMenuItem
+ }
+ onClick={() => setIsMobileMenuOpen(false)}
+ >
+
+ Sign In
+
+ )}
+
+ )}
+
);
diff --git a/src/components/Header.module.css b/src/components/Header.module.css
index 00fd3ba..998afcd 100644
--- a/src/components/Header.module.css
+++ b/src/components/Header.module.css
@@ -238,3 +238,50 @@ header a * {
cursor: pointer;
}
+/* =============================
+ RIGHT SIDE GROUP (GitHub + Nav + Hamburger)
+============================= */
+.rightGroup {
+ display: flex;
+ align-items: center;
+ gap: 20px;
+}
+
+/* =============================
+ GITHUB BUTTON
+============================= */
+.githubButton {
+ display: flex;
+ align-items: center;
+}
+
+.githubIcon {
+ width: 35px;
+ height: 35px;
+ cursor: pointer;
+ transition: transform 0.2s ease;
+}
+
+.githubIcon:hover {
+ transform: scale(1.1);
+}
+
+/* =============================
+ MOBILE — GitHub stays outside (left of hamburger)
+============================= */
+@media (max-width: 480px) {
+ .rightGroup {
+ gap: 12px;
+ }
+
+ .githubButton {
+ order: -1; /* pushes GitHub before hamburger */
+ margin-right: 6px;
+ }
+
+ .githubIcon {
+ width: 32px;
+ height: 32px;
+
+}
+}
diff --git a/src/pages/legal/About.jsx b/src/pages/legal/About.jsx
new file mode 100644
index 0000000..f63ef69
--- /dev/null
+++ b/src/pages/legal/About.jsx
@@ -0,0 +1,94 @@
+import React from "react";
+
+export default function About() {
+ return (
+
+
About LeetComp
+
+
+ LeetComp is a skill-based competitive coding platform
+ built by a passionate team of seven students known as{" "}
+ Thenga Coders from the National Institute
+ of Technology Calicut. Users compete by solving LeetCode problems, climb
+ leaderboards, and win prize pools — all in a transparent and skill-based
+ manner.
+
+
+
Our Vision
+
+ To build India’s most transparent, fair, and community-driven
+ competitive coding ecosystem that rewards consistency, discipline, and
+ real effort — not luck.
+
+
+
What We Offer
+
+ - Create or join rooms based on LeetCode problem solving
+ - Real-time leaderboard & streaks updated via LeetCode APIs
+ - Entry-fee rooms with cash prizes (100% prize pool given to winners)
+ - Prize splitting when multiple users tie
+ - Zero commission — every rupee contributed by users is rewarded back
+ - Clean UI, seamless experience, and fair competition
+
+
+
Who Are We?
+
+ We are a group of seven NIT Calicut students known as{" "}
+ Thenga Coders. We love coding, fairness, product design,
+ and building cool community-driven projects. LeetComp is not a registered
+ company — it is a student-built platform with a commitment to ethics,
+ transparency, and user trust.
+
+
+
Open Source Contributions
+
+ LeetComp proudly welcomes open-source contributions from developers
+ worldwide. Anyone can contribute by submitting issues, improving features,
+ fixing bugs, enhancing UI, or creating new ideas.
+
+
+ You can contribute through our GitHub repository below:
+
+
+
+ Visit our GitHub Repository
+
+
+
+
Contact
+
+ Email:
+
+ thengacoders@gmail.com
+
+
+
+
+ Address:{" "}
+
+ National Institute of Technology Calicut, Kozhikode – 673601,
+ Kerala, India
+
+
+
+ );
+}
+
+const styles = {
+ container: {
+ maxWidth: "900px",
+ margin: "auto",
+ padding: "20px",
+ lineHeight: "1.8",
+ // fontFamily: "Inter, sans-serif",
+ },
+
+};
diff --git a/src/pages/legal/Contact.jsx b/src/pages/legal/Contact.jsx
new file mode 100644
index 0000000..c53a03c
--- /dev/null
+++ b/src/pages/legal/Contact.jsx
@@ -0,0 +1,45 @@
+import React from "react";
+
+export default function Contact() {
+ return (
+
+
Contact Us
+
+
+ If you have questions, support issues, refund concerns, or want to
+ report bugs, you can reach the LeetComp team here:
+
+
+
Email
+
+
+ thengacoders@gmail.com
+
+
+
+
Address
+
+ National Institute of Technology Calicut,
+ Kozhikode – 673601, Kerala, India
+
+
+
Support Hours
+
Monday – Saturday, 9:00 AM – 7:00 PM IST
+
+ );
+}
+
+const styles = {
+ container: {
+ maxWidth: "900px",
+ margin: "auto",
+ padding: "20px",
+ lineHeight: "1.8",
+ fontFamily: "Inter, sans-serif",
+ },
+ emailLink: {
+ color: "#0a66c2",
+ textDecoration: "none",
+ fontWeight: "500",
+ },
+};
diff --git a/src/pages/legal/PrivacyPolicy.jsx b/src/pages/legal/PrivacyPolicy.jsx
new file mode 100644
index 0000000..0c4777e
--- /dev/null
+++ b/src/pages/legal/PrivacyPolicy.jsx
@@ -0,0 +1,89 @@
+import React from "react";
+
+export default function PrivacyPolicy() {
+ return (
+
+
Privacy Policy
+
Last Updated: {new Date().toLocaleDateString()}
+
+
+ Welcome to LeetComp. This Privacy Policy explains how we
+ collect, use, and protect your information when you use our platform.
+
+
+
1. Who We Are
+
+ LeetComp is a skill-based competitive coding platform created by a team
+ of seven students known as{" "}
+ Thenga Coders from the National Institute of Technology Calicut.
+ We are not a registered business entity yet and operate as an independent
+ student project team.
+
+
+
2. Information We Collect
+
+ - Google Login Data (Name, Email, Profile Picture)
+ - Username (chosen by you)
+ - LeetCode ID (for tracking questions solved)
+ - Phone Number (UPI-linked for payouts)
+ - Entry Fee Payments processed securely via Razorpay
+ - Device information and analytics
+
+
+
3. How We Use Your Information
+
+ - Leaderboard generation & real-time score updates
+ - Room creation & participation management
+ - Prize pool distribution and UPI payouts
+ - Preventing fraud & ensuring fair gameplay
+ - Improving platform experience
+
+
+
4. How We Store & Secure Data
+
+ All data is stored securely using encrypted servers. We do not store
+ sensitive financial data. Razorpay handles payment processing in a
+ PCI-DSS compliant manner.
+
+
+
5. Sharing of Data
+
We share data only with:
+
+ - Razorpay (for processing payments)
+ - LeetCode APIs (for leaderboard updates)
+ - Legal authorities if required by Indian law
+
+
+
6. Your Rights
+
+ - Request profile deletion
+ - Edit your information
+ - Remove LeetCode ID or phone number
+ - Close your account
+
+
+
7. Contact Us
+
Email:
+
+ thengacoders@gmail.com
+
+
+
+ Address:
+ National Institute of Technology Calicut, Kozhikode – 673601, Kerala,
+ India
+
+
+
+ );
+}
+
+const styles = {
+ container: {
+ maxWidth: "900px",
+ margin: "auto",
+ padding: "20px",
+ lineHeight: "1.8",
+ // fontFamily: "Inter, sans-serif",
+ },
+};
diff --git a/src/pages/legal/RefundPolicy.jsx b/src/pages/legal/RefundPolicy.jsx
new file mode 100644
index 0000000..a99c7c0
--- /dev/null
+++ b/src/pages/legal/RefundPolicy.jsx
@@ -0,0 +1,63 @@
+import React from "react";
+
+export default function RefundPolicy() {
+ return (
+
+
Refund & Cancellation Policy
+
Last Updated: {new Date().toLocaleDateString()}
+
+
+ This Refund Policy outlines how refunds are handled on{" "}
+ LeetComp.
+
+
+
1. No-Refund Conditions
+
Refunds are NOT provided when:
+
+ - User voluntarily joins a room
+ - User changes mind
+ - User selects wrong room
+ - User forgets to compete
+ - Room ends normally
+ - User fails to win the room
+
+
+
2. Refund Allowed Only When:
+
+ - Payment deducted but user not added to room
+ - Double payment detected by Razorpay
+ - System-wide crash affecting all participants
+ - Invalid or failed transaction due to technical issues
+
+
+
3. Cancellation
+
+ Users cannot cancel a joined room or request withdrawal after
+ participation.
+
+
+
4. Contact for Refund Issues
+
Email:
+
+ thengacoders@gmail.com
+
+
+
+
5. Address
+
+ National Institute of Technology Calicut, Kozhikode – 673601, Kerala,
+ India
+
+
+ );
+}
+
+const styles = {
+ container: {
+ maxWidth: "900px",
+ margin: "auto",
+ padding: "20px",
+ lineHeight: "1.8",
+ // fontFamily: "Inter, sans-serif",
+ },
+};
diff --git a/src/pages/legal/TermsAndConditions.jsx b/src/pages/legal/TermsAndConditions.jsx
new file mode 100644
index 0000000..2b86bd3
--- /dev/null
+++ b/src/pages/legal/TermsAndConditions.jsx
@@ -0,0 +1,104 @@
+import React from "react";
+
+export default function TermsAndConditions() {
+ return (
+
+
Terms & Conditions
+
Last Updated: {new Date().toLocaleDateString()}
+
+
+ By using LeetComp, you agree to the following Terms &
+ Conditions. Please read them carefully.
+
+
+
1. About LeetComp
+
+ LeetComp is a skill-based competitive coding platform developed by seven
+ students known as{" "}
+ Thenga Coders of NIT Calicut. Participants join or create rooms, solve
+ LeetCode problems, and compete on leaderboards. Winners receive the
+ entire prize pool collected from entry fees.
+
+
+
2. Eligibility
+
+ - You must be 18+ or legally competent.
+ - You must use authentic information.
+ - You must have a valid UPI-linked phone number.
+
+
+
3. Nature of Platform
+
This platform is strictly:
+
+ - Skill-based (not gambling or lottery)
+ - Based on LeetCode problem solving
+ - Transparent & zero-commission
+
+
+
4. Payments
+
+ Entry fees are processed via Razorpay. LeetComp does not store payment
+ card details. All entry fees collected form the prize pool.
+
+
+
5. Prize Distribution
+
+ - Winner = highest score when room ends
+ - If multiple winners tie → prize split equally
+ - Payouts are sent via UPI to the verified phone number
+
+
+
6. No Commission
+
+ LeetComp takes 0% commission. Entire prize pool goes to
+ winners.
+
+
+
7. Refund Policy
+
Refunds are governed by our Refund & Cancellation Policy.
+
+
8. User Responsibilities
+
+ - No cheating or artificial score manipulation
+ - No fake LeetCode accounts
+ - No system abuse or exploitation
+
+
+
9. Limitation of Liability
+
+ We are not liable for LeetCode API downtime, bank/UPI failures, or users
+ entering incorrect information.
+
+
+
10. Governing Law
+
+ These terms are governed by Indian law. Any disputes fall under courts
+ in Kerala.
+
+
+
11. Contact
+
Email:
+
+ thengacoders@gmail.com
+
+
+
+
+ Address:
+ National Institute of Technology Calicut, Kozhikode – 673601, Kerala,
+ India
+
+
+
+ );
+}
+
+const styles = {
+ container: {
+ maxWidth: "900px",
+ margin: "auto",
+ padding: "20px",
+ lineHeight: "1.8",
+ // fontFamily: "Inter, sans-serif",
+ },
+};