Skip to content

Conversation

@kanishka-commits
Copy link
Contributor

Description

This PR completely redesigns the "Terms of Service" page (index.tsx) to be more aesthetically pleasing and modern. The motivation was to move away from a standard "wall of text" and create an interactive, "Soft UI" (neumorphic) component that feels cohesive with the website's overall theme.

This update also significantly improves the content of the ToS by:

  1. Correcting contextual error.
  2. Rewriting key sections with more formal, legally precise language.
  3. Clarifying user responsibilities and liabilities.

Fixes #1070

Type of Change

  • New feature (e.g., new page, component, or functionality)
  • Bug fix (non-breaking change that fixes an issue)
  • UI/UX improvement (design, layout, or styling updates)
  • Performance optimization (e.g., code splitting, caching)
  • Documentation update (README, contribution guidelines, etc.)
  • Other (please specify):

Changes Made

  • New CSS Module: Created index.module.css to house all styling for the page, replacing previous utility classes.
  • "Soft UI" Design: Re-implemented the page container and collapsible sections with a "Soft UI" / neumorphic design (using shadows to create an "extruded" and "pressed-in" look).
  • New Accordion Icons: Replaced the default arrow with a + / icon set within its own circular container.
  • Gradient Text: The active (open) section title and icon now display a muted gradient text effect.
  • Theme Cohesion:
    • Added a muted dark gradient for active text in Light Mode.
    • Added a muted, footer-inspired gradient for active text in Dark Mode.
    • Mapped all dark mode colors (background, text, etc.) to match the dark theme established in enhanced-footer.css.
  • Legal Text & Content Update:
    • Renamed "Content" section to "Content & Intellectual Property."
    • Rewrote "Use of the Service" to include a clear "License to Use" and a "Prohibited Uses" sub-list.
    • Clarified "User-Generated Content" license terms.
    • Replaced "Compensation" with a formal, expanded "Indemnification" clause.
Screen.Recording.2025-10-26.at.4.43.02.PM.mp4

Dependencies

  • None. This PR only introduces a new CSS Module file (index.module.css) and modifies an existing component (index.tsx).

Checklist

  • My code follows the style guidelines of this project.
  • I have tested my changes across major browsers and devices
  • My changes do not generate new console warnings or errors .
  • I ran npm run build and attached screenshot(s) in this PR.
  • This is already assigned Issue to me, not an unassigned issue.

@vercel
Copy link
Contributor

vercel bot commented Oct 26, 2025

@kanishka-commits is attempting to deploy a commit to the recode Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. The estimated time for response is 5–8 hrs.

In the meantime, please provide all necessary screenshots and make sure you run - npm build run , command and provide a screenshot, a video recording, or an image of the update you made below, which helps speed up the review and assignment. If you have questions, reach out to LinkedIn. Your contributions are highly appreciated!😊

Note: I maintain the repo issue every day twice at 8:00 AM IST and 9:00 PM IST. If your PR goes stale for more than one day, you can tag and comment on this same issue by tagging @sanjay-kv.

We are here to help you on this journey of open source. Consistent 20 contributions are eligible for sponsorship 💰

🎁 check our list of amazing people we sponsored so far: GitHub Sponsorship. ✨

📚Your perks for contribution to this community 👇🏻

  1. Get free Consultation use code recode50 to get free: Mentorship for free.

  2. Get the Ebook for free use code recode at checkout: Data Science cheatsheet for Beginners.

  3. Check out this weekly Newsletter: Sanjay's Newsletter.

If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

@github-actions github-actions bot added hacktoberfest-accepted recode this is label for leaderboard enhancement New feature or request level 1 10 points labels Oct 26, 2025
@github-actions github-actions bot added this to the recode:launch 3.0 milestone Oct 26, 2025
@github-actions
Copy link

✅ Synchronized metadata from Issue #1070:

  • Labels: enhancement, level 1, recode, hacktoberfest-accepted
  • Milestone: recode:launch 3.0

{/* New Icon Container */}
<div className={styles.iconContainer}>
<span
className={`${styles.icon} ${styles.iconPlus} ${
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code references styles.iconPlus which doesn't exist in the CSS Module, causing undefined to appear in the className string when rendering the plus icon.

View Details
📝 Patch Details
diff --git a/src/pages/terms-service/index.module.css b/src/pages/terms-service/index.module.css
index 1d62eb3..025a042 100644
--- a/src/pages/terms-service/index.module.css
+++ b/src/pages/terms-service/index.module.css
@@ -178,6 +178,10 @@
   top: -1px;
 }
 
+.iconPlus {
+  position: relative;
+}
+
 .iconVisible {
   opacity: 1;
   transform: rotate(0deg);

Analysis

Missing iconPlus CSS class causing "undefined" in className

What fails: styles.iconPlus resolves to undefined in src/pages/terms-service/index.tsx line 34, causing literal "undefined" string to appear in HTML class attributes

How to reproduce:

npm run build
grep -o 'class="[^"]*undefined[^"]*"' build/terms-service/index.html

Result: HTML contains class="icon_H6bD undefined iconVisible_SHns">+</span> where "undefined" appears as a CSS class name

Expected: Should have proper CSS class name or remove the undefined reference. CSS module defines .iconMinus but missing corresponding .iconPlus class definition in index.module.css

The fix requires either adding .iconPlus class definition to the CSS module or removing the undefined reference from the JSX template literal.

@vercel
Copy link
Contributor

vercel bot commented Oct 27, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
recode-website Ready Ready Preview Comment Oct 27, 2025 6:14am

@sanjay-kv sanjay-kv added level 2 30 points and removed level 1 10 points labels Oct 27, 2025
@sanjay-kv sanjay-kv merged commit 55701b3 into recodehive:main Oct 27, 2025
8 checks passed
@sanjay-kv
Copy link
Member

@kanishka-commits the design was super cool., thanks for thinking outside the box designs.

@kanishka-commits
Copy link
Contributor Author

@sanjay-kv
Thanks a ton for the feedback! Stuff like this seriously hypes me up and keeps the grind going!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request hacktoberfest-accepted level 2 30 points recode this is label for leaderboard

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

📝[Docs]: Terms of Service Documentation Update

2 participants