Skip to content

Removed the UI Inconsistencies in Testimonials and FAQs Pages#1288

Closed
iaadillatif wants to merge 0 commit intorecodehive:mainfrom
iaadillatif:main
Closed

Removed the UI Inconsistencies in Testimonials and FAQs Pages#1288
iaadillatif wants to merge 0 commit intorecodehive:mainfrom
iaadillatif:main

Conversation

@iaadillatif
Copy link
Copy Markdown
Contributor

@iaadillatif iaadillatif commented Mar 1, 2026

This PR resolves the visual and structural inconsistencies identified in the Testimonials and FAQs pages.

The goal was to improve layout alignment, visual hierarchy, and container consistency while keeping all existing animation logic and functionality unchanged.

Fixes #1287


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

1. Testimonials Page

  • Updated AvatarImage styling to properly fill the circular container.
  • Removed the small-image-inside-large-circle visual imbalance.
  • No testimonial content or structural layout was modified.

Preview

Below is a visual reference of the updated Testimonials avatar rendering.

image

2. FAQs Page Structural Fix

  • Unified question and answer within a single card container.
  • Ensured expanded answer renders inside the same container.
  • Applied rounded container with border, blur, and shadow.
  • Added overflow handling to maintain clean expand and collapse behavior.
  • Added divider and internal spacing for the answer section.
  • Preserved existing expand and collapse animation timing and logic exactly as implemented.

3. FAQs Header Refinement

  • Introduced distinct background treatment for the question header.
  • Differentiated open and closed states visually.
  • Added subtle highlight and active shadow effects.
  • Added a divider between header and answer when expanded.
  • Accordion functionality remains unchanged.

4. Large Screen Layout Improvements

  • Updated FAQ wrapper width to lg:max-w-6xl and xl:max-w-7xl.
  • Increased horizontal spacing for large screens.
  • Removed large-screen left alignment from heading and subheading.
  • Maintained centered layout with improved readability.
  • Small screen layout remains unchanged.

Preview

Below is a visual reference of the updated FAQs layout after resolving the alignment and structural inconsistencies. This reflects the improved avatar rendering and refined large screen spacing.

image

Dependencies

  • No new dependencies added.
  • No version updates required.
  • No configuration 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 11:20
@github-actions
Copy link
Copy Markdown

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 the recode this is label for leaderboard label Mar 1, 2026
@vercel
Copy link
Copy Markdown
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
Copy Markdown

github-actions Bot commented Mar 1, 2026

✅ Synchronized metadata from Issue #1287:

  • Labels: level 1, recode
  • Milestone: None

Copy link
Copy Markdown
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 addresses UI/UX inconsistencies on the Testimonials and FAQs pages by refining avatar rendering and aligning the FAQ accordion’s container, header/answer hierarchy, and large-screen layout constraints.

Changes:

  • Updated Testimonials avatar styling to better fill the circular container with improved visual treatment.
  • Refactored FAQ accordion item styling so question + answer render within a single consistent card, with clearer open/closed state visuals.
  • Adjusted FAQ layout constraints and centering for improved readability on large screens.

Reviewed changes

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

File Description
src/components/testimonials/TestimonialCard.tsx Updates avatar sizing/gradient treatment and image fitting behavior in testimonial cards.
src/components/faqs/faqs.tsx Unifies FAQ item container styling, refines header/expanded state visuals, and adjusts large-screen width/centering.

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

<AvatarImage src={avatar} className="object-contain" />
<div className="pointer-events-none absolute -inset-1 rounded-full bg-gradient-to-br from-purple-500/35 via-fuchsia-500/25 to-blue-500/35 blur-md" />
<Avatar className="relative z-10 h-20 w-20 overflow-hidden border border-white/70 bg-white/70 shadow-[0_10px_30px_-12px_rgba(147,51,234,0.7)] ring-2 ring-purple-300/50">
<AvatarImage src={avatar} className="h-full w-full scale-300 object-cover object-center" />
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.

scale-300 is not a standard Tailwind utility (and it’s the only occurrence in the repo), so this class will likely be ignored and the avatar may not fill as intended. Use an arbitrary scale value (e.g., scale-[3]) or adjust sizing/cropping without relying on a non-existent utility.

Suggested change
<AvatarImage src={avatar} className="h-full w-full scale-300 object-cover object-center" />
<AvatarImage src={avatar} className="h-full w-full scale-[3] object-cover object-center" />

Copilot uses AI. Check for mistakes.
Comment on lines 88 to 94
<p
className={`${
isDark ? "text-gray-400" : "text-gray-600"
} text-center lg:text-left`}
} mx-auto text-center`}
>
Find answers to the most common questions about recode hive.
</p>
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.

PR description mentions constraining the header text with something like max-w-2xl, but the updated paragraph is only mx-auto text-center with no max-width, so on wide screens it may still span too wide and doesn’t match the described change. Consider adding a max-width utility (or adjust the PR description if that’s not intended).

Copilot uses AI. Check for mistakes.
Comment on lines 116 to 121
<button
className={`accordion-toggle group flex w-full cursor-pointer items-center justify-between rounded-lg p-4 text-lg font-medium transition-all duration-300 focus:outline-none ${
className={`accordion-toggle group flex w-full cursor-pointer items-center justify-between p-4 text-left text-lg font-medium transition-all duration-300 focus:outline-none ${
isDark
? "text-gray-200 hover:text-indigo-400"
: "text-gray-700 hover:text-indigo-600"
? "text-gray-200 hover:text-indigo-300"
: "text-gray-700 hover:text-indigo-700"
}`}
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 accordion toggle button uses focus:outline-none but doesn’t add a replacement focus-visible style, which removes the visible focus indicator for keyboard users. Please add an explicit focus-visible ring/outline style (or stop removing the outline).

Copilot uses AI. Check for mistakes.
Comment on lines 116 to 118
<button
className={`accordion-toggle group flex w-full cursor-pointer items-center justify-between rounded-lg p-4 text-lg font-medium transition-all duration-300 focus:outline-none ${
className={`accordion-toggle group flex w-full cursor-pointer items-center justify-between p-4 text-left text-lg font-medium transition-all duration-300 focus:outline-none ${
isDark
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.

Accordion toggle doesn’t expose state to assistive tech (missing aria-expanded, and missing aria-controls pointing at the associated panel id). Please add aria-expanded={activeIndex === index} and wire aria-controls to an id on the corresponding content element.

Copilot uses AI. Check for mistakes.
<AvatarImage src={avatar} className="object-contain" />
<div className="pointer-events-none absolute -inset-1 rounded-full bg-gradient-to-br from-purple-500/35 via-fuchsia-500/25 to-blue-500/35 blur-md" />
<Avatar className="relative z-10 h-20 w-20 overflow-hidden border border-white/70 bg-white/70 shadow-[0_10px_30px_-12px_rgba(147,51,234,0.7)] ring-2 ring-purple-300/50">
<AvatarImage src={avatar} className="h-full w-full scale-300 object-cover object-center" />
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.

AvatarImage is rendered without an alt attribute. For accessibility, please provide meaningful alt text (e.g., the person’s name) or explicitly mark it as decorative if appropriate.

Suggested change
<AvatarImage src={avatar} className="h-full w-full scale-300 object-cover object-center" />
<AvatarImage
src={avatar}
alt={`${name}'s avatar`}
className="h-full w-full scale-300 object-cover object-center"
/>

Copilot uses AI. Check for mistakes.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 1, 2026

✅ Synchronized metadata from Issue #1287:

  • Labels: level 1, recode
  • Milestone: None

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 1, 2026

✅ Synchronized metadata from Issue #1287:

  • Labels: level 1, recode
  • Milestone: None

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

Labels

level 1 10 points recode this is label for leaderboard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Improvement]: UI Inconsistencies in Testimonials and FAQs Pages

2 participants