Skip to content

feat(our-sponsors): Improved sponsor tabs and responsive styling#1292

Merged
sanjay-kv merged 1 commit intorecodehive:mainfrom
iaadillatif:feat/our-sponsors-improved-responsive-ui
Mar 2, 2026
Merged

feat(our-sponsors): Improved sponsor tabs and responsive styling#1292
sanjay-kv merged 1 commit intorecodehive:mainfrom
iaadillatif:feat/our-sponsors-improved-responsive-ui

Conversation

@iaadillatif
Copy link
Contributor

@iaadillatif iaadillatif commented Mar 1, 2026

This PR improves the Sponsors page by fixing responsiveness issues, stabilizing tab layout behavior, resolving a CSS build error, isolating class names to prevent global style conflicts, and refining visual polish for a premium UI experience.

Fixes #1291


Type of Change

  • New feature (responsive behavior enhancements and layout stabilization)
  • Bug fix (CSS build error and overflow issues)
  • UI/UX improvement (tab polish, gradient refinement, layout balance)
  • Performance optimization
  • Documentation update
  • Other

Changes Made

  1. Added scoped responsive breakpoints in Sponsors.css:

    • max-width 968px
    • max-width 640px
    • max-width 420px
  2. Adjusted:

    • Container spacing
    • Typography scaling
    • Tab sizing and spacing
    • Card grid proportions
    • Avatar, icon, and text sizes
    • Modal and button sizing for small screens

Before fixing:

image

After fixing:

image
  1. Fixed heading hidden behind navbar for tablet range:

    • Added padding-top using var(--ifm-navbar-height)
    • Applied in 768px to 996px range

After fixing:

image
  1. Stabilized tab layout:

    • Enforced strict two-column structure
    • Prevented wrapping and clipping
    • Added overflow guards
    • Neutralized conflicting global tab styles

Before fixing:

image

After fixing:

image
  1. Maintained two-column grid on mobile:

    • Proportionally reduced spacing and component sizes

Fixed:

image
  1. Improved gradient polish for heading using existing brand colors only.

Before changes:

image

After changes:

image

Desktop layout above 968px remains unchanged in design intent.


Dependencies

No new dependencies added.
No version changes required.


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.

Copilot AI review requested due to automatic review settings March 1, 2026 16:44
@vercel
Copy link
Contributor

vercel bot commented Mar 1, 2026

@iaadillatif 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

github-actions bot commented Mar 1, 2026

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 recode this is label for leaderboard enhancement New feature or request level 1 10 points labels Mar 1, 2026
@github-actions
Copy link

github-actions bot commented Mar 1, 2026

✅ Synchronized metadata from Issue #1291:

  • Labels: enhancement, level 1, recode
  • Milestone: None

@iaadillatif
Copy link
Contributor Author

@sanjay-kv Sir please check the PR for issue #1291

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the “Our Sponsors” page UI to improve responsiveness, stabilize the tab layout, and refine styling (including dark-mode) while aiming to prevent layout issues and style conflicts across breakpoints.

Changes:

  • Updated tab button markup (added tab-label spans) and removed an in-panel heading for the “Current Sponsors” section.
  • Added/adjusted Sponsors page CSS for tab styling polish, dark-mode styling, and multiple responsive breakpoints.
  • Adjusted heading gradient styling and introduced additional layout guards for smaller screens.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.

File Description
src/pages/our-sponsors/index.tsx Updates tab button markup and removes the “Current Sponsors” heading within the current tab panel.
src/pages/our-sponsors/Sponsors.css Adds scoped tab styling, dark-mode updates, and extensive responsive breakpoint rules for the Sponsors page layout.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +112 to +118
[data-theme="dark"] .sponsor-page .tabs {
border-color: var(--dark-border);
background: linear-gradient(
180deg,
color-mix(in srgb, var(--dark-card-bg) 90%, white 10%) 0%,
var(--dark-card-bg) 100%
);
Copy link

Copilot AI Mar 1, 2026

Choose a reason for hiding this comment

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

color-mix() in the dark-mode tabs background is not supported in some browsers; when unsupported, the entire linear-gradient(...) becomes invalid and the background may drop to none. Add a safe fallback (e.g. a preceding background-color / simpler background value) or avoid color-mix() here to keep dark-mode tabs readable everywhere.

Copilot uses AI. Check for mistakes.
Comment on lines 17 to +22
.TitleText {
margin-top: 1rem;
background: linear-gradient(
90deg,
rgb(152 0 255) 0%,
rgb(246 41 41) 50%,
rgb(255 169 8) 100%
#4f46e5 0%,
#7c3aed 25%,
Copy link

Copilot AI Mar 1, 2026

Choose a reason for hiding this comment

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

.TitleText is defined as a global class (and redefined in media queries), which can unintentionally affect any other page that uses the same className in the future. To keep the sponsors styles isolated, scope this selector under .sponsor-page (or rename it to something sponsors-specific) and update the JSX accordingly.

Copilot uses AI. Check for mistakes.
@@ -120,9 +120,6 @@ const OurSponsors: React.FC = () => {
className={`tab-content ${activeTab === "current" ? "active" : ""}`}
>
Copy link

Copilot AI Mar 1, 2026

Choose a reason for hiding this comment

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

The “Current Sponsors” tab panel no longer has an in-content heading (while “Past Sponsors” still does). This can reduce page structure/navigation for assistive tech and makes the two panels inconsistent. Consider keeping a heading for the current section (optionally visually hidden) or adding proper tabs semantics (role="tablist"/"tab"/"tabpanel" with aria-controls/aria-labelledby) so the active panel is clearly labeled.

Suggested change
>
>
<h2 className="sponsors-heading">Current Sponsors</h2>

Copilot uses AI. Check for mistakes.
Comment on lines +98 to +110
.sponsor-page .tabs {
justify-content: center !important;
gap: 0.65rem;
margin: 0 auto 2rem;
padding: 0.42rem;
width: fit-content;
border: 1px solid #e5e7eb;
border-radius: 14px;
background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
box-shadow:
0 8px 24px rgba(15, 23, 42, 0.06),
0 1px 2px rgba(15, 23, 42, 0.05);
}
Copy link

Copilot AI Mar 1, 2026

Choose a reason for hiding this comment

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

The sponsors page stylesheet still defines generic global selectors like .tabs, .tab-button, .tab-badge, .tab-content, and .tab-button::after (elsewhere in this file). Because this CSS is bundled globally, these rules can override Docusaurus’ built-in .tabs and other pages’ .tab-button styles (e.g. src/pages/broadcasts/video.css, src/pages/dashboard/dashboard.css). Consider renaming these classes (e.g. sponsor-tabs, sponsor-tab-button, etc.) or scoping all tab-related selectors under .sponsor-page and removing the unscoped versions to prevent cross-page regressions.

Copilot uses AI. Check for mistakes.
padding: 1px 6px;
}

.tab-button::after {
Copy link

Copilot AI Mar 1, 2026

Choose a reason for hiding this comment

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

In the responsive block this selector is unscoped (.tab-button::after), so at <=968px it will affect every .tab-button across the site (e.g. broadcasts/dashboard tabs), not just the sponsors page. Scope this to .sponsor-page .tab-button::after (or remove it if the pseudo-element is intentionally disabled via .sponsor-page .tab-button::after { display: none; }).

Suggested change
.tab-button::after {
.sponsor-page .tab-button::after {

Copilot uses AI. Check for mistakes.
text-wrap: balance;
}

.tab-button::after {
Copy link

Copilot AI Mar 1, 2026

Choose a reason for hiding this comment

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

This responsive override also targets .tab-button::after without the .sponsor-page prefix, which can unintentionally modify other pages’ tab buttons at <=640px. Scope this rule to the sponsors page (or delete if the pseudo-element is disabled for sponsors tabs).

Suggested change
.tab-button::after {
.sponsor-page .tab-button::after {

Copilot uses AI. Check for mistakes.
@vercel
Copy link
Contributor

vercel bot commented Mar 1, 2026

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

Project Deployment Actions Updated (UTC)
recode-website Ready Ready Preview, Comment Mar 1, 2026 11:01pm

@sanjay-kv sanjay-kv moved this to Todo in @recode-web Mar 1, 2026
@sanjay-kv sanjay-kv added this to the Winter of recode milestone Mar 1, 2026
@sanjay-kv sanjay-kv merged commit 376687e into recodehive:main Mar 2, 2026
11 of 12 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in @recode-web Mar 2, 2026
@iaadillatif iaadillatif deleted the feat/our-sponsors-improved-responsive-ui branch March 2, 2026 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request level 1 10 points recode this is label for leaderboard

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

💡[Feature]: Sponsors Page Responsive Fix, Tab Stabilization, and UI Polish

3 participants