Skip to content

Cleanup about tailwind classes#580

Open
prashantkumarniraj wants to merge 7 commits intoAOSSIE-Org:mainfrom
prashantkumarniraj:cleanup-about-tailwind-classes
Open

Cleanup about tailwind classes#580
prashantkumarniraj wants to merge 7 commits intoAOSSIE-Org:mainfrom
prashantkumarniraj:cleanup-about-tailwind-classes

Conversation

@prashantkumarniraj
Copy link

@prashantkumarniraj prashantkumarniraj commented Feb 17, 2026

Fixes #548

Not applicable — this PR performs a code cleanup only and does not introduce any visual or layout changes.

This PR cleans up conflicting and redundant Tailwind CSS utility classes on the About page.
Each element now uses a single utility per property per breakpoint, removing unnecessary overrides and improving readability and maintainability.
No visual or functional changes were introduced.

Checklist

  • My PR addresses a single issue, fixes a single bug or makes a single improvement.
  • My code follows the project's code style and conventions
  • If applicable, I have made corresponding changes or additions to the documentation
  • If applicable, I have made corresponding changes or additions to tests
  • My changes generate no new warnings or errors
  • I have joined the Discord server and I will share a link to this PR with the project maintainers there
  • I have read the Contribution Guidelines
  • Once I submit my PR, CodeRabbit AI will automatically review it and I will address CodeRabbit's comments.

⚠️ AI Notice - Important!

I have reviewed and understood all changes made in this PR.
AI tools were used only as an aid, and the final implementation was verified manually to ensure correctness, build stability, and alignment with the project’s requirements.

Summary by CodeRabbit

Release Notes

  • New Features

    • Organization statistics now displayed dynamically across the site (active projects, total contributors, community count).
  • Bug Fixes

    • Enhanced social media links with improved accessibility attributes and labels.
    • Updated mail contact links for better functionality.
  • Updates

    • Twitter icon updated to latest version.
    • Minor styling refinements to headings and text elements.

@coderabbitai
Copy link

coderabbitai bot commented Feb 17, 2026

📝 Walkthrough

Walkthrough

Four files updated to introduce centralized organization statistics configuration and modernize social links. New orgStats.js exports organization metrics; about.jsx and index.jsx consume these values; Footer.jsx and index.jsx replace Twitter icon with X icon and restructure social links with improved accessibility attributes. Tailwind CSS utilities simplified.

Changes

Cohort / File(s) Summary
Organization Statistics Configuration
src/config/orgStats.js
New module exporting static organization metrics: activeProjects (34), totalContributors (500), communityCount (3800).
Pages & Components Integration
src/pages/about.jsx, src/pages/index.jsx, src/components/Footer.jsx
Integrated orgStats data into homepage and about page stat displays; replaced hardcoded numbers with dynamic values. Updated social links from faTwitter to faXTwitter icon and restructured with ARIA labels. Simplified conflicting Tailwind CSS utilities in about.jsx heading and text elements.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

🐰 With stats now centralized and Twitter renamed to X,
The footer gleams with proper labels—no more vex!
Hardcoded numbers fade to config's gentle glow,
Each page now whispers dynamically: watch the community grow! ✨

🚥 Pre-merge checks | ✅ 1 | ❌ 5

❌ Failed checks (5 warnings)

Check name Status Explanation Resolution
Title check ⚠️ Warning Title refers to Tailwind cleanup on About page, but changes extend to Footer, homepage index, and new config file beyond the stated scope. Update title to reflect all changes, such as 'Cleanup Tailwind classes and centralize org stats' or specify that this is about more than just About page cleanup.
Linked Issues check ⚠️ Warning Linked issue #548 focuses on cleaning conflicting Tailwind classes on About page. Changes address this in about.jsx but also include unrelated changes to Footer, homepage, Twitter icon updates, and new orgStats config. Either link additional issues for the out-of-scope changes or remove those changes and focus on the Tailwind cleanup objective specified in #548.
Out of Scope Changes check ⚠️ Warning Significant out-of-scope changes include Twitter icon updates (faTwitter to faXTwitter), mailto link fixes in Footer and homepage, new orgStats config module, and email link changes unrelated to issue #548. Isolate Tailwind cleanup changes into a separate PR or provide linked issues justifying the additional icon, link, and config changes.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Merge Conflict Detection ⚠️ Warning ❌ Merge conflicts detected (7 files):

⚔️ README.md (content)
⚔️ package-lock.json (content)
⚔️ package.json (content)
⚔️ src/components/Footer.jsx (content)
⚔️ src/pages/about.jsx (content)
⚔️ src/pages/ideas/index.jsx (content)
⚔️ src/pages/index.jsx (content)

These conflicts must be resolved before merging into main.
Resolve conflicts locally and push changes to this branch.
✅ Passed checks (1 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
⚔️ Resolve merge conflicts (beta)
  • Auto-commit resolved conflicts to branch cleanup-about-tailwind-classes
  • Post resolved changes as copyable diffs in a comment

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/pages/index.jsx (1)

100-111: ⚠️ Potential issue | 🔴 Critical

The "Learn More About Us" button is missing its text content.

The <Link href="/about"> contains only decorative <span> elements for the hover animation effect but no visible text. This was removed by the latest commit ("Clean up conflicting Tailwind utility classes") and renders the button as an empty colored rectangle — both a UX and accessibility issue.

Previous commits show the text was wrapped in a <span className="relative font-mono text-xl font-black tracking-tighter">Learn More About Us</span>. Please restore it between the decorative layers.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/pages/index.jsx` around lines 100 - 111, The Link to "/about" currently
contains only decorative spans and no visible label; restore the missing text by
inserting the content span used previously (e.g., <span className="relative
font-mono text-xl font-black tracking-tighter">Learn More About Us</span>)
inside the Link, between the decorative overlay spans so it sits on top and
remains visible and accessible; ensure the text span is placed alongside the
existing decorative elements in the Link component so hover animations still
apply and include the exact phrase "Learn More About Us".
🧹 Nitpick comments (2)
src/components/Footer.jsx (1)

64-70: Aria-label says "Twitter" but icon is now the X logo.

The faXTwitter icon represents the rebranded "X" platform. Consider updating the aria-label to "Follow on X" for consistency with the visual icon.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/components/Footer.jsx` around lines 64 - 70, The aria-label on the social
Link inside the Footer component is inconsistent with the faXTwitter icon;
update the Link's aria-label from "Follow on Twitter" to "Follow on X" in the
Footer.jsx component (locate the Link element using the FontAwesomeIcon with
icon={faXTwitter}) so screen readers match the visual X branding.
src/pages/index.jsx (1)

104-106: Formatting is broken — closing tags are misaligned.

Lines 105-106 have inconsistent indentation with closing </span> tags at column 0. Even if the structure is intentional, the formatting should match the rest of the file.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/pages/index.jsx` around lines 104 - 106, The two closing JSX span tags
for the element with className "absolute bottom-0 right-0 mb-3 mr-2 h-14 w-full
rounded-lg bg-[`#00843D`] ..." are misaligned/indented at column 0; fix the JSX
formatting so the closing </span> tags are properly nested and indented to match
their corresponding opening <span> (the inner span with that className and its
outer wrapper span/group element), preserving the current DOM structure and
ensuring indentation style matches surrounding JSX.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/components/Footer.jsx`:
- Line 33: Update the static copyright string in the Footer component: locate
the Footer component (Footer.jsx) where the JSX contains "&copy; 2016-2025
AOSSIE. All rights reserved." and either change the end year to 2026 or replace
the hard-coded end year with a dynamic value (e.g., compute new
Date().getFullYear()) so the footer shows the current year automatically.

In `@src/pages/about.jsx`:
- Around line 147-149: The ABOUT h1 in about.jsx lacks a base Tailwind
text-size, so on small screens it inherits body size; update the <h1> element
(the ABOUT heading) to include a base text size utility such as text-3xl or
text-4xl in addition to the existing md:text-5xl and lg:text-6xl classes (e.g.,
add text-3xl before md:text-5xl) so the heading displays correctly on screens
below the md breakpoint.

---

Outside diff comments:
In `@src/pages/index.jsx`:
- Around line 100-111: The Link to "/about" currently contains only decorative
spans and no visible label; restore the missing text by inserting the content
span used previously (e.g., <span className="relative font-mono text-xl
font-black tracking-tighter">Learn More About Us</span>) inside the Link,
between the decorative overlay spans so it sits on top and remains visible and
accessible; ensure the text span is placed alongside the existing decorative
elements in the Link component so hover animations still apply and include the
exact phrase "Learn More About Us".

---

Nitpick comments:
In `@src/components/Footer.jsx`:
- Around line 64-70: The aria-label on the social Link inside the Footer
component is inconsistent with the faXTwitter icon; update the Link's aria-label
from "Follow on Twitter" to "Follow on X" in the Footer.jsx component (locate
the Link element using the FontAwesomeIcon with icon={faXTwitter}) so screen
readers match the visual X branding.

In `@src/pages/index.jsx`:
- Around line 104-106: The two closing JSX span tags for the element with
className "absolute bottom-0 right-0 mb-3 mr-2 h-14 w-full rounded-lg
bg-[`#00843D`] ..." are misaligned/indented at column 0; fix the JSX formatting so
the closing </span> tags are properly nested and indented to match their
corresponding opening <span> (the inner span with that className and its outer
wrapper span/group element), preserving the current DOM structure and ensuring
indentation style matches surrounding JSX.

@@ -33,20 +33,40 @@ export function Footer() {
&copy; 2016-2025 AOSSIE. All rights reserved.
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Copyright year is outdated.

The copyright reads "2016-2025" but the current year is 2026. Consider updating to "2016-2026" or dynamically generating the end year.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/components/Footer.jsx` at line 33, Update the static copyright string in
the Footer component: locate the Footer component (Footer.jsx) where the JSX
contains "&copy; 2016-2025 AOSSIE. All rights reserved." and either change the
end year to 2026 or replace the hard-coded end year with a dynamic value (e.g.,
compute new Date().getFullYear()) so the footer shows the current year
automatically.

Comment on lines +147 to 149
<h1 style={{ marginBottom: '20px' }} className="font-mono font-extrabold tracking-tighter text-[#32a852] dark:text-yellow-400 md:text-5xl lg:text-6xl">
ABOUT
</h1>
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

Missing base font-size class for the ABOUT heading on small screens.

With Tailwind's preflight, h1 elements are reset to font-size: inherit, so without a base size utility (e.g., text-3xl or text-4xl), this heading will render at body-text size on screens below the md breakpoint. The old code likely had a default size that was removed during cleanup.

Proposed fix
-        <h1 style={{ marginBottom: '20px' }} className="font-mono font-extrabold tracking-tighter text-[`#32a852`] dark:text-yellow-400 md:text-5xl lg:text-6xl">
+        <h1 style={{ marginBottom: '20px' }} className="font-mono font-extrabold tracking-tighter text-[`#32a852`] dark:text-yellow-400 text-3xl md:text-5xl lg:text-6xl">
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<h1 style={{ marginBottom: '20px' }} className="font-mono font-extrabold tracking-tighter text-[#32a852] dark:text-yellow-400 md:text-5xl lg:text-6xl">
ABOUT
</h1>
<h1 style={{ marginBottom: '20px' }} className="font-mono font-extrabold tracking-tighter text-[`#32a852`] dark:text-yellow-400 text-3xl md:text-5xl lg:text-6xl">
ABOUT
</h1>
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/pages/about.jsx` around lines 147 - 149, The ABOUT h1 in about.jsx lacks
a base Tailwind text-size, so on small screens it inherits body size; update the
<h1> element (the ABOUT heading) to include a base text size utility such as
text-3xl or text-4xl in addition to the existing md:text-5xl and lg:text-6xl
classes (e.g., add text-3xl before md:text-5xl) so the heading displays
correctly on screens below the md breakpoint.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clean up conflicting Tailwind CSS utility classes in About page

1 participant

Comments